|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.olat.course.groupsandrights.PersistingCourseGroupManager
public class PersistingCourseGroupManager
Description:
Implementation of the CourseGroupManager that persists its
data on the database
| Field Summary |
|---|
| Fields inherited from interface org.olat.course.groupsandrights.CourseGroupManager |
|---|
DEFAULT_CONTEXT_PREFIX, DEFAULT_NAME_LC_PREFIX, DEFAULT_NAME_RC_PREFIX |
| Method Summary | |
|---|---|
void |
archiveCourseGroups(java.io.File exportDirectory)
Archive all learning-group-contexts and right-group-contexts. |
void |
createCourseGroupmanagement(java.lang.String courseTitle)
Initializes the course groupmanagement. |
void |
createCourseGroupmanagementAsCopy(CourseGroupManager originalCourseGroupManager,
java.lang.String courseTitle)
Initializes the course groupmanagement as a copy of another course. |
void |
deleteCourseGroupmanagement()
Deletes the course group management. |
void |
exportCourseLeaningGroups(java.io.File fExportDirectory)
Export all groups which are course internal to a file for later import. |
void |
exportCourseRightGroups(java.io.File fExportDirectory)
Export all groups which are course internal to a file for later import. |
java.util.List |
getAllAreasFromAllContexts()
|
java.util.List |
getAllLearningGroupsFromAllContexts()
|
java.util.List |
getAllRightGroupsFromAllContexts()
|
java.util.List |
getCoachesFromArea(java.lang.String areaName)
List with identities being coaches in the areas of this course. |
java.util.List |
getCoachesFromLearningGroup(java.lang.String groupName)
List with identities being coaches in learning groups of this course. |
static PersistingCourseGroupManager |
getInstance(OLATResource courseResource)
|
static PersistingCourseGroupManager |
getInstance(OLATResourceable course)
|
java.util.List |
getLearningAreasOfGroupFromAllContexts(java.lang.String groupName)
|
java.util.List |
getLearningGroupContexts()
|
java.util.List |
getLearningGroupsFromAllContexts(java.lang.String groupName)
|
java.util.List |
getLearningGroupsInAreaFromAllContexts(java.lang.String areaName)
|
java.util.List |
getNumberOfMembersFromGroups(java.util.List groups)
Method to count group memberships. |
java.util.List |
getOwnedLearningGroupsFromAllContexts(Identity identity)
|
java.util.List |
getParticipantsFromArea(java.lang.String areaName)
List with identities being participants in the areas of this course. |
java.util.List |
getParticipantsFromLearningGroup(java.lang.String groupName)
List with identities being participants in the learning groups of this course. |
java.util.List |
getParticipatingLearningGroupsFromAllContexts(Identity identity)
|
java.util.List |
getParticipatingLearningGroupsFromAllContexts(Identity identity,
java.lang.String groupName)
|
java.util.List |
getParticipatingLearningGroupsInAreaFromAllContexts(Identity identity,
java.lang.String areaName)
|
java.util.List |
getParticipatingRightGroupsFromAllContexts(Identity identity)
|
java.util.List |
getRightGroupContexts()
|
java.util.List |
getRightGroupsFromAllContexts(java.lang.String groupName)
|
java.util.List |
getUniqueAreaNamesFromAllContexts()
|
java.util.List |
getUniqueLearningGroupNamesFromAllContexts()
|
java.util.List |
getWaitingListGroupsFromAllContexts(Identity identity)
|
boolean |
hasRight(Identity identity,
java.lang.String courseRight)
Checks users course rights in any of the available right group context of this course |
boolean |
hasRight(Identity identity,
java.lang.String courseRight,
java.lang.String groupContextName)
Checks users course rights in the specified right group context of this course |
void |
importCourseLearningGroups(java.io.File fImportDirectory)
Import course internal groups fa previous export. |
void |
importCourseRightGroups(java.io.File fImportDirectory)
Import course internal groups fa previous export. |
void |
initGroupContextsList()
Initialize the group contexts list. |
boolean |
isIdentityCourseAdministrator(Identity identity)
Checks if user is course administrator (is owner of repository entry) |
boolean |
isIdentityCourseCoach(Identity identity)
Checks if user is coach in any of the courses learning groups |
boolean |
isIdentityInGroupContext(Identity identity,
java.lang.String groupContextName)
Checks if an identity is in the given group context |
boolean |
isIdentityInLearningArea(Identity identity,
java.lang.String areaName)
Checks if an identity is in any learning areas with the given name in any of the courses group contexts |
boolean |
isIdentityInLearningArea(Identity identity,
java.lang.String areaName,
java.lang.String groupContextName)
Checks if an identity is in a learning areas with the given name in the given group context |
boolean |
isIdentityInLearningGroup(Identity identity,
java.lang.String groupName)
Checks if an identity is in a learning group with the given name in any contexts of this course, either as owner or as participant |
boolean |
isIdentityInLearningGroup(Identity identity,
java.lang.String groupName,
java.lang.String groupContextName)
Checks if an identity is in a learning group with the given name in the the given group context of this course, either as owner or as participant |
boolean |
isIdentityInRightGroup(Identity identity,
java.lang.String groupName)
Checks if an identity is in a right group with the given name in any contexts of this course |
boolean |
isIdentityInRightGroup(Identity identity,
java.lang.String groupName,
java.lang.String groupContextName)
Checks if an identity is in a right group with the given name in the the given group context of this course |
boolean |
isIdentityParticipantInAnyLearningGroup(Identity identity)
Checks if user is participant in any learning group of this course |
boolean |
isIdentityParticipantInAnyRightGroup(Identity identity)
Checks if user is participant in any right group of this course |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void initGroupContextsList()
CourseGroupManager
initGroupContextsList in interface CourseGroupManagerCourseGroupManager.initGroupContextsList()public static PersistingCourseGroupManager getInstance(OLATResourceable course)
course - The current course
public static PersistingCourseGroupManager getInstance(OLATResource courseResource)
courseResource - The current course resource
public boolean hasRight(Identity identity,
java.lang.String courseRight)
CourseGroupManager
hasRight in interface CourseGroupManagerCourseGroupManager.hasRight(org.olat.core.id.Identity,
java.lang.String)
public boolean hasRight(Identity identity,
java.lang.String courseRight,
java.lang.String groupContextName)
CourseGroupManager
hasRight in interface CourseGroupManagerCourseGroupManager.hasRight(org.olat.core.id.Identity,
java.lang.String, java.lang.String)
public boolean isIdentityInLearningGroup(Identity identity,
java.lang.String groupName)
CourseGroupManager
isIdentityInLearningGroup in interface CourseGroupManagerCourseGroupManager.isIdentityInLearningGroup(org.olat.core.id.Identity,
java.lang.String)
public boolean isIdentityInLearningGroup(Identity identity,
java.lang.String groupName,
java.lang.String groupContextName)
CourseGroupManager
isIdentityInLearningGroup in interface CourseGroupManagerCourseGroupManager.isIdentityInLearningGroup(org.olat.core.id.Identity,
java.lang.String, java.lang.String)
public boolean isIdentityInRightGroup(Identity identity,
java.lang.String groupName)
CourseGroupManager
isIdentityInRightGroup in interface CourseGroupManagerCourseGroupManager.isIdentityInRightGroup(org.olat.core.id.Identity,
java.lang.String)
public boolean isIdentityInRightGroup(Identity identity,
java.lang.String groupName,
java.lang.String groupContextName)
CourseGroupManager
isIdentityInRightGroup in interface CourseGroupManagerCourseGroupManager.isIdentityInRightGroup(org.olat.core.id.Identity,
java.lang.String, java.lang.String)
public boolean isIdentityInLearningArea(Identity identity,
java.lang.String areaName)
CourseGroupManager
isIdentityInLearningArea in interface CourseGroupManagerCourseGroupManager.isIdentityInLearningArea(org.olat.core.id.Identity,
java.lang.String)
public boolean isIdentityInLearningArea(Identity identity,
java.lang.String areaName,
java.lang.String groupContextName)
CourseGroupManager
isIdentityInLearningArea in interface CourseGroupManagerCourseGroupManager.isIdentityInLearningArea(org.olat.core.id.Identity,
java.lang.String, java.lang.String)
public boolean isIdentityInGroupContext(Identity identity,
java.lang.String groupContextName)
CourseGroupManager
isIdentityInGroupContext in interface CourseGroupManagerCourseGroupManager.isIdentityInGroupContext(org.olat.core.id.Identity,
java.lang.String)public java.util.List getLearningGroupContexts()
getLearningGroupContexts in interface CourseGroupManagerCourseGroupManager.getLearningGroupContexts()public java.util.List getRightGroupContexts()
getRightGroupContexts in interface CourseGroupManagerCourseGroupManager.getRightGroupContexts()public java.util.List getRightGroupsFromAllContexts(java.lang.String groupName)
getRightGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getRightGroupsFromAllContexts(java.lang.String)public java.util.List getAllLearningGroupsFromAllContexts()
getAllLearningGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getAllLearningGroupsFromAllContexts()public java.util.List getLearningGroupsFromAllContexts(java.lang.String groupName)
getLearningGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getLearningGroupsFromAllContexts(java.lang.String)public java.util.List getAllAreasFromAllContexts()
getAllAreasFromAllContexts in interface CourseGroupManagerCourseGroupManager.getAllAreasFromAllContexts()public java.util.List getLearningGroupsInAreaFromAllContexts(java.lang.String areaName)
getLearningGroupsInAreaFromAllContexts in interface CourseGroupManagerCourseGroupManager.getLearningGroupsInAreaFromAllContexts(java.lang.String)public java.util.List getLearningAreasOfGroupFromAllContexts(java.lang.String groupName)
getLearningAreasOfGroupFromAllContexts in interface CourseGroupManagerCourseGroupManager.getLearningAreasOfGroupFromAllContexts(java.lang.String)
public java.util.List getParticipatingLearningGroupsFromAllContexts(Identity identity,
java.lang.String groupName)
getParticipatingLearningGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getParticipatingLearningGroupsFromAllContexts(org.olat.core.id.Identity,
java.lang.String)
public java.util.List getParticipatingLearningGroupsInAreaFromAllContexts(Identity identity,
java.lang.String areaName)
getParticipatingLearningGroupsInAreaFromAllContexts in interface CourseGroupManagerCourseGroupManager.getParticipatingLearningGroupsInAreaFromAllContexts(org.olat.core.id.Identity,
java.lang.String)public java.util.List getAllRightGroupsFromAllContexts()
getAllRightGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getAllRightGroupsFromAllContexts()public java.util.List getOwnedLearningGroupsFromAllContexts(Identity identity)
getOwnedLearningGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getOwnedLearningGroupsFromAllContexts(org.olat.core.id.Identity)public java.util.List getParticipatingLearningGroupsFromAllContexts(Identity identity)
getParticipatingLearningGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getParticipatingLearningGroupsFromAllContexts(org.olat.core.id.Identity)public java.util.List getParticipatingRightGroupsFromAllContexts(Identity identity)
getParticipatingRightGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getParticipatingRightGroupsFromAllContexts(org.olat.core.id.Identity)public boolean isIdentityCourseCoach(Identity identity)
CourseGroupManager
isIdentityCourseCoach in interface CourseGroupManagerCourseGroupManager.isIdentityCourseCoach(org.olat.core.id.Identity)public boolean isIdentityCourseAdministrator(Identity identity)
CourseGroupManager
isIdentityCourseAdministrator in interface CourseGroupManagerCourseGroupManager.isIdentityCourseAdministrator(org.olat.core.id.Identity)public boolean isIdentityParticipantInAnyLearningGroup(Identity identity)
CourseGroupManager
isIdentityParticipantInAnyLearningGroup in interface CourseGroupManagerCourseGroupManager.isIdentityParticipantInAnyLearningGroup(org.olat.core.id.Identity)public boolean isIdentityParticipantInAnyRightGroup(Identity identity)
CourseGroupManager
isIdentityParticipantInAnyRightGroup in interface CourseGroupManagerCourseGroupManager.isIdentityParticipantInAnyRightGroup(org.olat.core.id.Identity)public void createCourseGroupmanagement(java.lang.String courseTitle)
CourseGroupManager
createCourseGroupmanagement in interface CourseGroupManagerCourseGroupManager.createCourseGroupmanagement(java.lang.String)
public void createCourseGroupmanagementAsCopy(CourseGroupManager originalCourseGroupManager,
java.lang.String courseTitle)
CourseGroupManager
createCourseGroupmanagementAsCopy in interface CourseGroupManagerCourseGroupManager.createCourseGroupmanagementAsCopy(org.olat.course.groupsandrights.CourseGroupManager,
java.lang.String)public void deleteCourseGroupmanagement()
CourseGroupManager
deleteCourseGroupmanagement in interface CourseGroupManagerCourseGroupManager.deleteCourseGroupmanagement()public java.util.List getNumberOfMembersFromGroups(java.util.List groups)
CourseGroupManager
getNumberOfMembersFromGroups in interface CourseGroupManagergroups - List of business groups
public java.util.List getUniqueAreaNamesFromAllContexts()
getUniqueAreaNamesFromAllContexts in interface CourseGroupManagerCourseGroupManager.getUniqueAreaNamesFromAllContexts()public java.util.List getUniqueLearningGroupNamesFromAllContexts()
getUniqueLearningGroupNamesFromAllContexts in interface CourseGroupManagerCourseGroupManager.getUniqueLearningGroupNamesFromAllContexts()public void exportCourseLeaningGroups(java.io.File fExportDirectory)
CourseGroupManager
exportCourseLeaningGroups in interface CourseGroupManagerCourseGroupManager.exportCourseLeaningGroups(java.io.File)public void importCourseLearningGroups(java.io.File fImportDirectory)
CourseGroupManager
importCourseLearningGroups in interface CourseGroupManagerCourseGroupManager.importCourseLearningGroups(java.io.File)public void exportCourseRightGroups(java.io.File fExportDirectory)
CourseGroupManager
exportCourseRightGroups in interface CourseGroupManagerCourseGroupManager.exportCourseRightGroups(java.io.File)public void importCourseRightGroups(java.io.File fImportDirectory)
CourseGroupManager
importCourseRightGroups in interface CourseGroupManagerCourseGroupManager.importCourseRightGroups(java.io.File)public java.util.List getCoachesFromLearningGroup(java.lang.String groupName)
CourseGroupManager
getCoachesFromLearningGroup in interface CourseGroupManagerorg.olat.course.groupsandrights.CourseGroupManager#getCoachesFromLearningGroups(String)public java.util.List getParticipantsFromLearningGroup(java.lang.String groupName)
CourseGroupManager
getParticipantsFromLearningGroup in interface CourseGroupManagerorg.olat.course.groupsandrights.CourseGroupManager#getParticipantsFromLearningGroups(String)public java.util.List getCoachesFromArea(java.lang.String areaName)
CourseGroupManager
getCoachesFromArea in interface CourseGroupManagerCourseGroupManager.getCoachesFromArea(java.lang.String)public java.util.List getParticipantsFromArea(java.lang.String areaName)
CourseGroupManager
getParticipantsFromArea in interface CourseGroupManagerCourseGroupManager.getParticipantsFromArea(java.lang.String)public java.util.List getWaitingListGroupsFromAllContexts(Identity identity)
getWaitingListGroupsFromAllContexts in interface CourseGroupManagerCourseGroupManager.getWaitingListGroupsFromAllContexts(org.olat.core.id.Identity)public void archiveCourseGroups(java.io.File exportDirectory)
exportDirectory -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||