com.jalios.jcms
Class GroupIndexManager

java.lang.Object
  extended by com.jalios.jcms.AbstractIndexManager
      extended by com.jalios.jcms.GroupIndexManager

public class GroupIndexManager
extends AbstractIndexManager


Field Summary
 
Fields inherited from class com.jalios.jcms.AbstractIndexManager
channel
 
Method Summary
 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.
 Set<Group> getAncestorAndMeSet(Group group)
          Returns the ancestor set associated to the given Group.
 Set<Group> getAncestorSet(Group group)
          Returns the ancestor set associated to the given Group.
 Set<Group> getChildrenSet(Group group)
          Returns the children set associated to the given Group.
 Set<Member> getDeclaredMemberSet(Group group)
          Returns the member set associated to the given Group.
 Set<Group> getDescendantSet(Group group)
          Returns the descendant set associated to the given Group.
static GroupIndexManager getInstance()
           
 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.
 
Methods inherited from class com.jalios.jcms.AbstractIndexManager
addIndexWithSet, clearIndex, getIndexWithMap, getIndexWithMap, getIndexWithSet, isUndefinedIndexWithSet, putIndexWithMap, removeIndexWithMap, removeIndexWithSet, setIndexWithSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GroupIndexManager getInstance()

getMemberSet

public Set<Member> getMemberSet(Group group)
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

public boolean addMember(Group group,
                         Member member)
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

public boolean removeMember(Group group,
                            Member member)
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

getDeclaredMemberSet

public Set<Member> getDeclaredMemberSet(Group group)
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

public boolean addDeclaredMember(Group group,
                                 Member member)
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

public boolean removeDeclaredMember(Group group,
                                    Member member)
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

getChildrenSet

public Set<Group> getChildrenSet(Group group)
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

public void refreshIndexForCreation(Group group)
Specific update of indices while a group is currently created.

Parameters:
group -
Since:
jcms-6.0.2 jcms-6.1.0

refreshIndexForUpdate

public void refreshIndexForUpdate(Group cloneOldGroup,
                                  Group group)
Specific update of indices while a group is currently created.

Parameters:
cloneOldGroup - a clone of the former group, before update is effective
group - the stored group, already updated
Since:
jcms-6.0.2 jcms-6.1.0

refreshIndexForDelete

public void refreshIndexForDelete(Group group)
Specific update of indices while a group is currently deleted.

Parameters:
group - the stored group, to be deleted
Since:
jcms-6.1.1

refreshAllChildrenDescendantsAndAncestors

public void refreshAllChildrenDescendantsAndAncestors(Group group,
                                                      boolean add)

getDescendantSet

public Set<Group> getDescendantSet(Group group)
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

public Set<Group> getAncestorSet(Group group)
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

public Set<Group> getAncestorAndMeSet(Group group)
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


Copyright © 2001-2010 Jalios SA. All Rights Reserved.