com.jalios.jcms
Class MemberIndexManager

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

public class MemberIndexManager
extends AbstractIndexManager


Field Summary
 
Fields inherited from class com.jalios.jcms.AbstractIndexManager
channel
 
Method Summary
 boolean addContent(Member mbr, Content content)
          Adds the given content to the content set of the given member.
 boolean addDelegate(Member mbr, Member delegate)
          Adds the given delegate to the delegate set of the given member.
 boolean addPublication(Member mbr, Publication pub)
          Adds the given publication to the publication set of the given member.
 boolean addWorkspace(Member mbr, Workspace workspace)
          Adds the given workspace to the workspace set of the given member.
 void clearCanPublishContentMap(Member mbr)
          Clears the publish rights map associated to the given member.
 void clearCanUpdateDeleteContentMap(Member mbr)
          Clears the updateDelete map associated to the given member.
 void clearWorkspaceSet(Member mbr)
          Clears the workspace set associated to the given member.
 Map<Workspace,Boolean> getCanPublishContentMap(Member mbr)
          Returns the publish rights map associated to the given member.
 Map<Workspace,Boolean> getCanUpdateDeleteContentMap(Member mbr)
          Returns the updateDelete map associated to the given member.
 Set<Content> getContentSet(Member mbr)
          Returns the content set associated to the given member.
 Set<Member> getDelegateSet(Member mbr)
          Returns the delegate set associated to the given member.
static MemberIndexManager getInstance()
           
 Set<Publication> getPublicationSet(Member mbr)
          Returns the publication set associated to the given member.
 Set<Workspace> getWorkspaceSet(Member mbr)
          Returns the workspace set associated to the given member.
 void putCanPublishContent(Member mbr, Workspace workspace, boolean bool)
          Adds the given entry to the publish rights map of the given member.
 void putCanUpdateDeleteContent(Member mbr, Workspace workspace, boolean bool)
          Adds the given entry to the workspace set of the given member.
 void removeCanPublishContent(Member mbr, Workspace workspace)
          Removes the given entry for the given member.
 void removeCanUpdateDeleteContent(Member mbr, Workspace workspace)
          Removes the given entry for the given member.
 boolean removeContent(Member mbr, Content content)
          Removes the given content for the given member.
 boolean removeDelegate(Member mbr, Member delegate)
          Removes the given delegate for the given member.
 boolean removePublication(Member mbr, Publication pub)
          Removes the given publication for the given member.
 boolean removeWorkspace(Member mbr, Workspace workspace)
          Removes the given workspace for the given member.
 
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 MemberIndexManager getInstance()

getPublicationSet

public Set<Publication> getPublicationSet(Member mbr)
Returns the publication set associated to the given member.

Parameters:
mbr - the member
Returns:
the publication set associated to the given member.
Since:
jcms-6.0.0

addPublication

public boolean addPublication(Member mbr,
                              Publication pub)
Adds the given publication to the publication set of the given member.

Parameters:
mbr - member with which this publication must be added.
pub - publication to be added to this set.
Returns:
true if this set did not already contain the specified element.
Since:
jcms-6.0.0

removePublication

public boolean removePublication(Member mbr,
                                 Publication pub)
Removes the given publication for the given member.

Parameters:
mbr - member with which this publication must be removed.
pub - publication to be removed from this set, if present.
Returns:
true if the set contained the specified element.
Since:
jcms-6.0.0

getContentSet

public Set<Content> getContentSet(Member mbr)
Returns the content set associated to the given member.

Parameters:
mbr - the member
Returns:
the content set associated to the given member.
Since:
jcms-6.0.0

addContent

public boolean addContent(Member mbr,
                          Content content)
Adds the given content to the content set of the given member.

Parameters:
mbr - ember with which this content must be added.
content - content to be added to this set.
Returns:
true if this set did not already contain the specified element.
Since:
jcms-6.0.0

removeContent

public boolean removeContent(Member mbr,
                             Content content)
Removes the given content for the given member.

Parameters:
mbr - member with which this content must be removed.
content - content to be removed from this set, if present.
Returns:
true if the set contained the specified element.
Since:
jcms-6.0.0

getWorkspaceSet

public Set<Workspace> getWorkspaceSet(Member mbr)
Returns the workspace set associated to the given member.

Parameters:
mbr - the member
Returns:
the workspace set associated to the given member.
Since:
jcms-6.0.0

clearWorkspaceSet

public void clearWorkspaceSet(Member mbr)
Clears the workspace set associated to the given member.

Parameters:
mbr - the member
Since:
jcms-6.0.0

addWorkspace

public boolean addWorkspace(Member mbr,
                            Workspace workspace)
Adds the given workspace to the workspace set of the given member.

Parameters:
mbr - ember with which this workspace must be added.
workspace - workspace to be added to this set.
Returns:
true if this set did not already contain the specified element.
Since:
jcms-6.0.0

removeWorkspace

public boolean removeWorkspace(Member mbr,
                               Workspace workspace)
Removes the given workspace for the given member.

Parameters:
mbr - member with which this workspace must be removed.
workspace - workspace to be removed from this set, if present.
Returns:
true if the set contained the specified element.
Since:
jcms-6.0.0

getDelegateSet

public Set<Member> getDelegateSet(Member mbr)
Returns the delegate set associated to the given member.

Parameters:
mbr - the member
Returns:
the delegate set associated to the given member.
Since:
jcms-6.0.0

addDelegate

public boolean addDelegate(Member mbr,
                           Member delegate)
Adds the given delegate to the delegate set of the given member.

Parameters:
mbr - member with which this delegate must be added.
delegate - delegate to be added to this set.
Returns:
true if this set did not already contain the specified element.
Since:
jcms-6.0.0

removeDelegate

public boolean removeDelegate(Member mbr,
                              Member delegate)
Removes the given delegate for the given member.

Parameters:
mbr - member with which this workspace must be removed.
delegate - delegate to be removed from this set, if present.
Returns:
true if the set contained the specified element.
Since:
jcms-6.0.0

getCanPublishContentMap

public Map<Workspace,Boolean> getCanPublishContentMap(Member mbr)
Returns the publish rights map associated to the given member.

Parameters:
mbr - the member
Returns:
the publish rights map associated to the given member.
Since:
jcms-6.0.0

clearCanPublishContentMap

public void clearCanPublishContentMap(Member mbr)
Clears the publish rights map associated to the given member.

Parameters:
mbr - the member
Since:
jcms-6.0.0

putCanPublishContent

public void putCanPublishContent(Member mbr,
                                 Workspace workspace,
                                 boolean bool)
Adds the given entry to the publish rights map of the given member.

Parameters:
mbr - ember with which this workspace must be added.
workspace - workspace to be added to this set.
Since:
jcms-6.0.0

removeCanPublishContent

public void removeCanPublishContent(Member mbr,
                                    Workspace workspace)
Removes the given entry for the given member.

Parameters:
mbr - member with which this workspace must be removed.
workspace - workspace to be removed from this set, if present.
Since:
jcms-6.0.0

getCanUpdateDeleteContentMap

public Map<Workspace,Boolean> getCanUpdateDeleteContentMap(Member mbr)
Returns the updateDelete map associated to the given member.

Parameters:
mbr - the member
Returns:
the workspace set associated to the given member.
Since:
jcms-6.0.0

clearCanUpdateDeleteContentMap

public void clearCanUpdateDeleteContentMap(Member mbr)
Clears the updateDelete map associated to the given member.

Parameters:
mbr - the member
Since:
jcms-6.0.0

putCanUpdateDeleteContent

public void putCanUpdateDeleteContent(Member mbr,
                                      Workspace workspace,
                                      boolean bool)
Adds the given entry to the workspace set of the given member.

Parameters:
mbr - ember with which this workspace must be added.
workspace - workspace to be added to this set.
Since:
jcms-6.0.0

removeCanUpdateDeleteContent

public void removeCanUpdateDeleteContent(Member mbr,
                                         Workspace workspace)
Removes the given entry for the given member.

Parameters:
mbr - member with which this workspace must be removed.
workspace - workspace to be removed from this set, if present.
Since:
jcms-6.0.0


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