public class GroupIndexManager extends AbstractIndexManager
AbstractIndexManager.DataIndex<D extends Data,C>, AbstractIndexManager.DataIndexMap<D extends Data,K,V>, AbstractIndexManager.DataIndexSet<D extends Data,E>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
REVISION |
channel
Modifier and Type | Method and Description |
---|---|
boolean |
addAuthGroupPublication(Group group,
Publication pub)
Adds the given Publication to the given Group.
|
boolean |
addDeclaredMember(Group group,
Member member)
Adds the given Member to the given Group.
|
boolean |
addDeclaredMembers(Group group,
java.util.Set<Member> memberSet)
Adds the given Member to the given Group.
|
boolean |
addMember(Group group,
Member member)
Adds the given Member to the given Group.
|
boolean |
addMembers(Group group,
java.util.Set<Member> memberSet)
Adds the given Member to the given Group.
|
void |
clearManagerIndex() |
java.util.Set<Group> |
getAncestorAndMeSet(Group group)
Returns the ancestor set associated to the given Group.
|
java.util.Set<Group> |
getAncestorSet(Group group)
Returns the ancestor set associated to the given Group.
|
java.util.Set<Category> |
getAuthGroupCategorySet(Group group) |
java.util.Set<Publication> |
getAuthGroupPublicationSet(Group group)
Returns publications which authorized Groups is associated to the given Group.
|
java.util.Set<Group> |
getChildrenSet(Group group)
Returns the children set associated to the given Group.
|
java.util.Set<Member> |
getDeclaredMemberSet(Group group)
Returns the member set associated to the given Group.
|
java.util.Set<Group> |
getDescendantSet(Group group)
Returns the descendant set associated to the given Group.
|
static GroupIndexManager |
getInstance() |
java.util.Optional<java.lang.String> |
getManager(Group grp)
Returns the id of manager of the given group.
|
java.util.Set<Member> |
getMemberSet(Group group)
Returns the member set associated to the given Group.
|
void |
refreshAllChildrenDescendantsAndAncestors(Group group,
boolean add) |
void |
refreshIndexForCreation(Group group)
Specific update of indices while a group is currently created.
|
void |
refreshIndexForDelete(Group group)
Specific update of indices while a group is currently deleted.
|
void |
refreshIndexForUpdate(Group cloneOldGroup,
Group group)
Specific update of indices while a group is currently created.
|
boolean |
removeAuthGroupPublication(Group group,
Publication pub)
Removes the given Publication for the given Group.
|
boolean |
removeDeclaredMember(Group group,
Member member)
Removes the given member for the given Group.
|
boolean |
removeDeclaredMembers(Group group,
java.util.Set<Member> memberSet)
Removes the given member for the given Group.
|
void |
removeManager(Group grp)
Remove the given group form the manager map.
|
boolean |
removeMember(Group group,
Member member)
Removes the given member for the given Group.
|
boolean |
removeMembers(Group group,
java.util.Set<Member> memberSet)
Removes the given member for the given Group.
|
void |
setManager(Group grp,
java.lang.String managerId)
Sets id of the manager of the given group.
|
void |
setNoManager(Group grp) |
addIndexWithSet, addIndexWithSet, clearIndex, getIndexWithMap, getIndexWithMap, getIndexWithSet, isUndefinedIndexWithSet, putIndexWithMap, removeIndexWithMap, removeIndexWithSet, removeIndexWithSet, setIndexWithSet
public static final java.lang.String REVISION
public static GroupIndexManager getInstance()
public java.util.Set<Member> getMemberSet(Group group)
group
- the Grouppublic boolean addMember(Group group, Member member)
group
- Group with which this member must be added.member
- the Memberpublic boolean removeMember(Group group, Member member)
group
- Group with which this content must be removed.member
- Member to be removed from this set, if present.public boolean addMembers(Group group, java.util.Set<Member> memberSet)
group
- Group with which this member must be added.memberSet
- Members to be addedpublic boolean removeMembers(Group group, java.util.Set<Member> memberSet)
group
- Group with which this content must be removed.memberSet
- Members to be removed from this set, if present.public java.util.Set<Member> getDeclaredMemberSet(Group group)
group
- the Grouppublic boolean addDeclaredMember(Group group, Member member)
group
- Group with which this member must be added.member
- the Memberpublic boolean removeDeclaredMember(Group group, Member member)
group
- Group with which this content must be removed.member
- Member to be removed from this set, if present.public boolean addDeclaredMembers(Group group, java.util.Set<Member> memberSet)
group
- Group with which this member must be added.memberSet
- Members to be addedpublic boolean removeDeclaredMembers(Group group, java.util.Set<Member> memberSet)
group
- Group with which this content must be removed.memberSet
- Members to be removed from this set, if present.public java.util.Set<Group> getChildrenSet(Group group)
group
- the Grouppublic void refreshIndexForCreation(Group group)
group
- the grouppublic void refreshIndexForUpdate(Group cloneOldGroup, Group group)
cloneOldGroup
- a clone of the former group, before update is effectivegroup
- the stored group, already updatedpublic void refreshIndexForDelete(Group group)
group
- the stored group, to be deletedpublic void refreshAllChildrenDescendantsAndAncestors(Group group, boolean add)
public java.util.Set<Group> getDescendantSet(Group group)
group
- the Grouppublic java.util.Set<Group> getAncestorSet(Group group)
group
- the Grouppublic java.util.Set<Group> getAncestorAndMeSet(Group group)
group
- the Grouppublic java.util.Set<Publication> getAuthGroupPublicationSet(Group group)
group
- the Grouppublic boolean addAuthGroupPublication(Group group, Publication pub)
group
- Group with which this Publication must be added.pub
- the publicationpublic boolean removeAuthGroupPublication(Group group, Publication pub)
group
- Group with which this content must be removed.pub
- Publication to be removed from this set, if present.public java.util.Set<Category> getAuthGroupCategorySet(Group group)
group
- the group to het its referrers.public java.util.Optional<java.lang.String> getManager(Group grp)
grp
- the grouppublic void setManager(Group grp, java.lang.String managerId)
grp
- the groupmanagerId
- the id of the manager of the given group.public void clearManagerIndex()
public void setNoManager(Group grp)
public void removeManager(Group grp)
grp
- the groupCopyright © 2001-2019 Jalios SA. All Rights Reserved.