|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BGContextManager
Description:
Manager to manipulate business group contexts. A business
group context is a collection of business groups of the same business group
type and of business group areas that area associated with the business
groups. A business group context can be associated with multiple courses.
Every course has at least two business group contexts, the default learning
group context and the default right group context
Initial Date: Aug 25, 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 context)
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 |
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 |
| Method Detail |
|---|
BGContext createAndPersistBGContext(java.lang.String name,
java.lang.String description,
java.lang.String groupType,
Identity owner,
boolean defaultContext)
name - Display name of the group contextdescription - groupType - 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
BGContext copyAndAddBGContextToResource(java.lang.String contextName,
OLATResource resource,
BGContext originalBgContext)
contextName - 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
void updateBGContext(BGContext bgContext)
bgContext - void deleteBGContext(BGContext bgContext)
bgContext - java.util.List<BusinessGroup> getGroupsOfBGContext(BGContext bgContext)
bgContext - the business group context or null to find groups that are
not within a business group context (e.b. buddygroups)
int countGroupsOfBGContext(BGContext bgContext)
bgContext -
int countGroupsOfType(java.lang.String groupType)
groupType -
java.util.List getBGOwnersOfBGContext(BGContext bgContext)
bgContext -
int countBGOwnersOfBGContext(BGContext bgContext)
bgContext -
java.util.List getBGParticipantsOfBGContext(BGContext bgContext)
bgContext -
int countBGParticipantsOfBGContext(BGContext bgContext)
bgContext -
boolean isIdentityInBGContext(Identity identity,
BGContext bgContext,
boolean asOwner,
boolean asParticipant)
identity - bgContext - asOwner - Flag to check if the user is in any group as ownerasParticipant - Flag to check if the user is in any group as
participant
BusinessGroup findGroupOfBGContext(java.lang.String groupName,
BGContext bgContext)
groupName - bgContext -
BusinessGroup findGroupAttendedBy(Identity identity,
java.lang.String groupName,
BGContext context)
identity - groupName - context -
BGContext createAndAddBGContextToResource(java.lang.String contextName,
OLATResource resource,
java.lang.String groupType,
Identity initialOwner,
boolean defaultContext)
contextName - The new context nameresource - The OALTResource that the new context should be associated
withinitialOwner - The initial owner. the users who can manage the
business group context using the group context management toolgroupType - The group type the context should be used fordefaultContext - true: create as a default context, false: create as a
regular context
void addBGContextToResource(BGContext bgContext,
OLATResource resource)
bgContext - resource -
java.util.List findBGContextsForResource(OLATResource resource,
boolean defaultContexts,
boolean nonDefaultContexts)
resource - defaultContexts - true: find default contextsnonDefaultContexts - true: find non-default contexts
java.util.List findBGContextsForResource(OLATResource resource,
java.lang.String groupType,
boolean defaultContexts,
boolean nonDefaultContexts)
resource - groupType - defaultContexts - true: find default contextsnonDefaultContexts - true: find non-default contexts
java.util.List findBGContextsForIdentity(Identity identity,
boolean defaultContexts,
boolean nonDefaultContexts)
identity - defaultContexts - true: find default contextsnonDefaultContexts - true: find non-default contexts
java.util.List findOLATResourcesForBGContext(BGContext bgContext)
bgContext -
java.util.List findRepositoryEntriesForBGContext(BGContext bgContext)
bgContext -
void removeBGContextFromResource(BGContext bgContext,
OLATResource resource)
bgContext - resource - BGContext loadBGContext(BGContext bgContext)
bgContext -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||