|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.group.context.BGContextManagerImpl
public class BGContextManagerImpl
Description:
Implementation of the business group context manager.
Initial Date: Aug 19, 2004
| Method Summary | |
|---|---|
void |
addBGContextToResource(BGContext bgContext,
OLATResource resource)
Add a business group context to an OLATResource |
BGContext |
copyAndAddBGContextToResource(java.lang.String contextName,
OLATResource resource,
BGContext originalBgContext)
Creates and persists a business group context as a copy of an existing business group context. |
int |
countBGOwnersOfBGContext(BGContext bgContext)
Count the number of identities that are owner of any group in the given business group context |
int |
countBGParticipantsOfBGContext(BGContext bgContext)
Count the number of identities that are participants of any group in the given business group context |
int |
countGroupsOfBGContext(BGContext bgContext)
Count the number of groups within a business group context |
int |
countGroupsOfType(java.lang.String groupType)
Count the number of groups of a certain group type |
BGContext |
createAndAddBGContextToResource(java.lang.String contextName,
OLATResource resource,
java.lang.String groupType,
Identity initialOwner,
boolean defaultContext)
Creates a relation from a business group context to an OLATResource (e.g. |
BGContext |
createAndPersistBGContext(java.lang.String name,
java.lang.String description,
java.lang.String groupType,
Identity owner,
boolean defaultContext)
Creates a busines group context object and persists the object in the database |
void |
deleteBGContext(BGContext bgContext)
Deletes a business group context from the database |
java.util.List |
findBGContextsForIdentity(Identity identity,
boolean defaultContexts,
boolean nonDefaultContexts)
Find all business group contexts for a specific user. |
java.util.List |
findBGContextsForResource(OLATResource resource,
boolean defaultContexts,
boolean nonDefaultContexts)
Find all business group contexts for the given OLATResource defaultContexts and nonDefaultContexts can both be true or partly be true, but not be both false |
java.util.List |
findBGContextsForResource(OLATResource resource,
java.lang.String groupType,
boolean defaultContexts,
boolean nonDefaultContexts)
Find all business group contexts for the given OLATResource with the given group type defaultContexts and nonDefaultContexts can both be true or partly be true, but not be both false |
BusinessGroup |
findGroupAttendedBy(Identity identity,
java.lang.String groupName,
BGContext bgContext)
Find a business group in the given business group context where the given user is in the group as participant |
BusinessGroup |
findGroupOfBGContext(java.lang.String groupName,
BGContext bgContext)
Find a business group in the given business group context |
java.util.List |
findOLATResourcesForBGContext(BGContext bgContext)
Find all OLATResources that are associated with the given business group context |
java.util.List |
findRepositoryEntriesForBGContext(BGContext bgContext)
Find all repository entries of the OLAT resources that have a relation to this group context. |
java.util.List |
getBGOwnersOfBGContext(BGContext bgContext)
Find the identities that are owners of any group in the given business group context |
java.util.List |
getBGParticipantsOfBGContext(BGContext bgContext)
Find the identities that are participants of any group in the given business group context |
java.util.List<BusinessGroup> |
getGroupsOfBGContext(BGContext bgContext)
Find all groups from a business group context |
static BGContextManager |
getInstance()
|
boolean |
isIdentityInBGContext(Identity identity,
BGContext bgContext,
boolean asOwner,
boolean asParticipant)
Check if the given identity is in this business group context |
BGContext |
loadBGContext(BGContext bgContext)
Refresh the given bgContext |
void |
removeBGContextFromResource(BGContext bgContext,
OLATResource resource)
Remove the given business group context from this OLATResource |
void |
updateBGContext(BGContext bgContext)
Updates a business group context in the database |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static BGContextManager getInstance()
public BGContext createAndPersistBGContext(java.lang.String name,
java.lang.String description,
java.lang.String groupType,
Identity owner,
boolean defaultContext)
BGContextManager
createAndPersistBGContext in interface BGContextManagername - Display name of the group contextgroupType - Business group type that this business group context can
containowner - The initial owner, the users who can manage the business group
context using the group context management tooldefaultContext - true: create as a default context, false: create as a
regular context
BGContextManager.createAndPersistBGContext(java.lang.String,
java.lang.String, java.lang.String, org.olat.core.id.Identity,
boolean)
public BGContext copyAndAddBGContextToResource(java.lang.String contextName,
OLATResource resource,
BGContext originalBgContext)
BGContextManager
copyAndAddBGContextToResource in interface BGContextManagercontextName - The new context nameresource - The OALTResource that the new context should be associated
with using the group context management tooloriginalBgContext - The original business group context that is uses
for the copy process
BGContextManager.copyAndAddBGContextToResource(java.lang.String,
org.olat.resource.OLATResource, org.olat.group.context.BGContext)public void updateBGContext(BGContext bgContext)
BGContextManager
updateBGContext in interface BGContextManagerBGContextManager.updateBGContext(org.olat.group.context.BGContext)public void deleteBGContext(BGContext bgContext)
BGContextManager
deleteBGContext in interface BGContextManagerBGContextManager.deleteBGContext(org.olat.group.context.BGContext)public java.util.List<BusinessGroup> getGroupsOfBGContext(BGContext bgContext)
BGContextManager
getGroupsOfBGContext in interface BGContextManagerbgContext - the business group context or null to find groups that are
not within a business group context (e.b. buddygroups)
BGContextManager.getGroupsOfBGContext(org.olat.group.context.BGContext)public int countGroupsOfBGContext(BGContext bgContext)
BGContextManager
countGroupsOfBGContext in interface BGContextManagerBGContextManager.countGroupsOfBGContext(org.olat.group.context.BGContext)public int countGroupsOfType(java.lang.String groupType)
BGContextManager
countGroupsOfType in interface BGContextManagerBGContextManager.countGroupsOfType(java.lang.String)
public BusinessGroup findGroupOfBGContext(java.lang.String groupName,
BGContext bgContext)
BGContextManager
findGroupOfBGContext in interface BGContextManagerBGContextManager.findGroupOfBGContext(java.lang.String,
org.olat.group.context.BGContext)
public BusinessGroup findGroupAttendedBy(Identity identity,
java.lang.String groupName,
BGContext bgContext)
BGContextManager
findGroupAttendedBy in interface BGContextManagerBGContextManager.findGroupAttendedBy(org.olat.core.id.Identity,
java.lang.String, org.olat.group.context.BGContext)public java.util.List getBGOwnersOfBGContext(BGContext bgContext)
BGContextManager
getBGOwnersOfBGContext in interface BGContextManagerBGContextManager.getBGOwnersOfBGContext(org.olat.group.context.BGContext)public int countBGOwnersOfBGContext(BGContext bgContext)
BGContextManager
countBGOwnersOfBGContext in interface BGContextManagerBGContextManager.countBGOwnersOfBGContext(org.olat.group.context.BGContext)public java.util.List getBGParticipantsOfBGContext(BGContext bgContext)
BGContextManager
getBGParticipantsOfBGContext in interface BGContextManagerBGContextManager.getBGParticipantsOfBGContext(org.olat.group.context.BGContext)public int countBGParticipantsOfBGContext(BGContext bgContext)
BGContextManager
countBGParticipantsOfBGContext in interface BGContextManagerBGContextManager.countBGParticipantsOfBGContext(org.olat.group.context.BGContext)
public boolean isIdentityInBGContext(Identity identity,
BGContext bgContext,
boolean asOwner,
boolean asParticipant)
BGContextManager
isIdentityInBGContext in interface BGContextManagerasOwner - Flag to check if the user is in any group as ownerasParticipant - Flag to check if the user is in any group as
participant
BGContextManager.isIdentityInBGContext(org.olat.core.id.Identity,
org.olat.group.context.BGContext, boolean, boolean)
public BGContext createAndAddBGContextToResource(java.lang.String contextName,
OLATResource resource,
java.lang.String groupType,
Identity initialOwner,
boolean defaultContext)
BGContextManager
createAndAddBGContextToResource in interface BGContextManagercontextName - The new context nameresource - The OALTResource that the new context should be associated
withgroupType - The group type the context should be used forinitialOwner - The initial owner. the users who can manage the
business group context using the group context management tooldefaultContext - true: create as a default context, false: create as a
regular context
BGContextManager.createAndAddBGContextToResource(java.lang.String,
org.olat.resource.OLATResource, java.lang.String,
org.olat.core.id.Identity, boolean)
public void addBGContextToResource(BGContext bgContext,
OLATResource resource)
BGContextManager
addBGContextToResource in interface BGContextManagerBGContextManager.addBGContextToResource(org.olat.group.context.BGContext,
org.olat.resource.OLATResource)
public java.util.List findBGContextsForResource(OLATResource resource,
boolean defaultContexts,
boolean nonDefaultContexts)
BGContextManager
findBGContextsForResource in interface BGContextManagerdefaultContexts - true: find default contextsnonDefaultContexts - true: find non-default contexts
BGContextManager.findBGContextsForResource(org.olat.resource.OLATResource,
boolean, boolean)
public java.util.List findBGContextsForResource(OLATResource resource,
java.lang.String groupType,
boolean defaultContexts,
boolean nonDefaultContexts)
BGContextManager
findBGContextsForResource in interface BGContextManagerdefaultContexts - true: find default contextsnonDefaultContexts - true: find non-default contexts
BGContextManager.findBGContextsForResource(org.olat.resource.OLATResource,
java.lang.String, boolean, boolean)
public java.util.List findBGContextsForIdentity(Identity identity,
boolean defaultContexts,
boolean nonDefaultContexts)
BGContextManager
findBGContextsForIdentity in interface BGContextManagerdefaultContexts - true: find default contextsnonDefaultContexts - true: find non-default contexts
BGContextManager.findBGContextsForIdentity(org.olat.core.id.Identity,
boolean, boolean)public java.util.List findOLATResourcesForBGContext(BGContext bgContext)
BGContextManager
findOLATResourcesForBGContext in interface BGContextManagerBGContextManager.findOLATResourcesForBGContext(org.olat.group.context.BGContext)public java.util.List findRepositoryEntriesForBGContext(BGContext bgContext)
BGContextManager
findRepositoryEntriesForBGContext in interface BGContextManagerBGContextManager.findRepositoryEntriesForBGContext(org.olat.group.context.BGContext)
public void removeBGContextFromResource(BGContext bgContext,
OLATResource resource)
BGContextManager
removeBGContextFromResource in interface BGContextManagerBGContextManager.removeBGContextFromResource(org.olat.group.context.BGContext,
org.olat.resource.OLATResource)public BGContext loadBGContext(BGContext bgContext)
BGContextManager
loadBGContext in interface BGContextManagerBGContextManager.loadBGContext(org.olat.group.context.BGContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||