public class GroupIndexManager extends AbstractIndexManager
channel
Modifier and Type | Method and Description |
---|---|
boolean |
addDeclaredMember(Group group,
Member member)
Adds the given Member to the given Group.
|
boolean |
addMember(Group group,
Member member)
Adds the given Member to the given Group.
|
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<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.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 |
removeDeclaredMember(Group group,
Member member)
Removes the given member for the given Group.
|
boolean |
removeMember(Group group,
Member member)
Removes the given member for the given Group.
|
addIndexWithSet, clearIndex, getIndexWithMap, getIndexWithMap, getIndexWithSet, isUndefinedIndexWithSet, putIndexWithMap, removeIndexWithMap, removeIndexWithSet, setIndexWithSet
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 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 java.util.Set<Group> getChildrenSet(Group group)
group
- the Grouppublic void refreshIndexForCreation(Group group)
group
- public 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 GroupCopyright © 2001-2010 Jalios SA. All Rights Reserved.