Package com.jalios.jcms
Class GroupIndexManager
java.lang.Object
com.jalios.jcms.AbstractIndexManager
com.jalios.jcms.GroupIndexManager
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jalios.jcms.AbstractIndexManager
AbstractIndexManager.DataIndex<D extends Data,C>, AbstractIndexManager.DataIndexMap<D extends Data, K, V>, AbstractIndexManager.DataIndexSet<D extends Data, E> -
Field Summary
Fields inherited from class com.jalios.jcms.AbstractIndexManager
channel -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddAuthGroupPublication(Group group, Publication pub) Adds the given Publication to the given Group.booleanaddDeclaredMember(Group group, Member member) Adds the given Member to the given Group.booleanaddDeclaredMembers(Group group, Set<Member> memberSet) Adds the given Member to the given Group.booleanAdds the given Member to the given Group.booleanaddMembers(Group group, Set<Member> memberSet) Adds the given Member to the given Group.voidgetAncestorAndMeSet(Group group) Returns the ancestor set associated to the given Group.getAncestorSet(Group group) Returns the ancestor set associated to the given Group.getAuthGroupCategorySet(Group group) getAuthGroupPublicationSet(Group group) Returns publications which authorized Groups is associated to the given Group.getChildrenSet(Group group) Returns the children set associated to the given Group.getDeclaredMemberSet(Group group) Returns the member set associated to the given Group.getDescendantSet(Group group) Returns the descendant set associated to the given Group.Retrieve Groups who have the specified member as declared manager.static GroupIndexManagergetManager(Group grp) Returns the id of manager of the given group.getMemberSet(Group group) Returns the member set associated to the given Group.booleanCheck if the specified member was specified at least once as declared manager of a Group.voidrefreshAllChildrenDescendantsAndAncestors(Group group, boolean add) voidrefreshIndexForCreation(Group group) Specific update of indices while a group is currently created.voidrefreshIndexForDelete(Group group) Specific update of indices while a group is currently deleted.voidrefreshIndexForUpdate(Group cloneOldGroup, Group group) Specific update of indices while a group is currently updated.booleanremoveAuthGroupPublication(Group group, Publication pub) Removes the given Publication for the given Group.booleanremoveDeclaredMember(Group group, Member member) Removes the given member for the given Group.booleanremoveDeclaredMembers(Group group, Set<Member> memberSet) Removes the given member for the given Group.voidremoveManager(Group grp) Remove the given group form the manager map.booleanremoveMember(Group group, Member member) Removes the given member for the given Group.booleanremoveMembers(Group group, Set<Member> memberSet) Removes the given member for the given Group.voidsetManager(Group grp, String managerId) Sets id of the manager of the given group.voidsetNoManager(Group grp) Methods inherited from class com.jalios.jcms.AbstractIndexManager
addIndexWithSet, addIndexWithSet, clearIndex, getIndexWithMap, getIndexWithMap, getIndexWithSet, getOriginalData, isUndefinedIndexWithSet, putIndexWithMap, removeIndexWithMap, removeIndexWithSet, removeIndexWithSet, setIndexWithSet
-
Method Details
-
getInstance
-
getMemberSet
Returns the member set associated to the given Group.- Parameters:
group- the Group- Returns:
- the member set associated to the given Group.
- Since:
- jcms-6.0.0
-
addMember
Adds the given Member to the given Group.- Parameters:
group- Group with which this member must be added.member- the Member- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-6.0.0
-
removeMember
Removes the given member for the given Group.- Parameters:
group- Group with which this content must be removed.member- Member to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-6.0.0
-
addMembers
Adds the given Member to the given Group.- Parameters:
group- Group with which this member must be added.memberSet- Members to be added- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-9.0.5 JCMS-5821
-
removeMembers
Removes the given member for the given Group.- Parameters:
group- Group with which this content must be removed.memberSet- Members to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-9.0.5 JCMS-5821
-
getDeclaredMemberSet
Returns the member set associated to the given Group.- Parameters:
group- the Group- Returns:
- the member set associated to the given Group.
- Since:
- jcms-6.0.0
-
addDeclaredMember
Adds the given Member to the given Group.- Parameters:
group- Group with which this member must be added.member- the Member- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-6.0.0
-
removeDeclaredMember
Removes the given member for the given Group.- Parameters:
group- Group with which this content must be removed.member- Member to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-6.0.0
-
addDeclaredMembers
Adds the given Member to the given Group.- Parameters:
group- Group with which this member must be added.memberSet- Members to be added- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-9.0.5 JCMS-5821
-
removeDeclaredMembers
Removes the given member for the given Group.- Parameters:
group- Group with which this content must be removed.memberSet- Members to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-9.0.5 JCMS-5821
-
getChildrenSet
Returns the children set associated to the given Group.- Parameters:
group- the Group- Returns:
- the children set associated to the given Group.
- Since:
- jcms-6.0.0
-
refreshIndexForCreation
Specific update of indices while a group is currently created.- Parameters:
group- the group- Since:
- jcms-6.0.2 jcms-6.1.0
-
refreshIndexForUpdate
Specific update of indices while a group is currently updated.- Parameters:
cloneOldGroup- a clone of the former group, before update is effectivegroup- the stored group, already updated- Since:
- jcms-6.0.2 jcms-6.1.0
-
refreshIndexForDelete
Specific update of indices while a group is currently deleted.- Parameters:
group- the stored group, to be deleted- Since:
- jcms-6.1.1
-
refreshAllChildrenDescendantsAndAncestors
-
getDescendantSet
Returns the descendant set associated to the given Group.- Parameters:
group- the Group- Returns:
- the descendant set associated to the given Group.
- Since:
- jcms-6.0.0
-
getAncestorSet
Returns the ancestor set associated to the given Group.- Parameters:
group- the Group- Returns:
- the ancestor set associated to the given Group.
- Since:
- jcms-6.0.0
-
getAncestorAndMeSet
Returns the ancestor set associated to the given Group.- Parameters:
group- the Group- Returns:
- the ancestor set associated to the given Group.
- Since:
- jcms-6.0.0
-
getAuthGroupPublicationSet
Returns publications which authorized Groups is associated to the given Group.- Parameters:
group- the Group- Returns:
- the ancestor set associated to the given Group.
- Since:
- jcms-9.0.5 jcms-10.0.2 JCMS-6305
-
addAuthGroupPublication
Adds the given Publication to the given Group.- Parameters:
group- Group with which this Publication must be added.pub- the publication- Returns:
- true if this set did not already contain the specified element.
- Since:
- jcms-9.0.5 jcms-10.0.2 JCMS-6305
-
removeAuthGroupPublication
Removes the given Publication for the given Group.- Parameters:
group- Group with which this content must be removed.pub- Publication to be removed from this set, if present.- Returns:
- true if the set contained the specified element.
- Since:
- jcms-9.0.5 jcms-10.0.2 JCMS-6305
-
getAuthGroupCategorySet
- Parameters:
group- the group to het its referrers.- Returns:
- the Categories using this group in their read right group field.
- Since:
- jcms-9.0.5 jcms-10.0.2 JCMS-6305
-
getManager
Returns the id of manager of the given group.- Parameters:
grp- the group- Returns:
- the id of manager of the given group.
- Since:
- jcms-10.0.2
-
setManager
Sets id of the manager of the given group.- Parameters:
grp- the groupmanagerId- the id of the manager of the given group.- Since:
- jcms-10.0.2
-
clearManagerIndex
public void clearManagerIndex() -
setNoManager
-
removeManager
Remove the given group form the manager map.- Parameters:
grp- the group- Since:
- jcms-10.0.2
-
isExplicitGroupManager
Check if the specified member was specified at least once as declared manager of a Group.- Parameters:
mbr- the member to check- Returns:
- true if member is manager of at least one Group, false if member is not a manager of any group
- Since:
- jcms-10.0.7 / JCMS-9477
- See Also:
-
getExplicitelyManagedGroupSet
Retrieve Groups who have the specified member as declared manager.- Parameters:
mbr- the manager- Returns:
- a Collection of Group, never return null
- Since:
- jcms-10.0.7 / JCMS-9477
-