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 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<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)
           
 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, 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

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

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-2007 Jalios SA. All Rights Reserved.