public class MemberIndexManager
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
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 | 
clearIsWorker(Member mbr)
Clears the isWorker status cache. 
 | 
void | 
clearWorkspaceSet(Member mbr)
Clears the workspace set associated to the given member. 
 | 
java.util.Map<Workspace,java.lang.Boolean> | 
getCanPublishContentMap(Member mbr)
Returns the publish rights map associated to the given member. 
 | 
java.util.Map<Workspace,java.lang.Boolean> | 
getCanUpdateDeleteContentMap(Member mbr)
Returns the updateDelete map associated to the given member. 
 | 
java.util.Set<Content> | 
getContentSet(Member mbr)
Returns the content set associated to the given member. 
 | 
java.util.Set<Member> | 
getDelegateSet(Member mbr)
Returns the delegate set associated to the given member. 
 | 
static MemberIndexManager | 
getInstance()  | 
java.lang.Boolean | 
getIsWorker(Member mbr,
           Workspace workspace)
Returns the isWorker status for the specified member. 
 | 
java.util.Set<Publication> | 
getPublicationSet(Member mbr)
Returns the publication set associated to the given member. 
 | 
java.util.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 | 
putIsWorker(Member mbr,
           Workspace workspace,
           boolean isWorker)
Add the member isWorker status. 
 | 
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. 
 | 
void | 
setWorkspaceSet(Member mbr,
               java.util.Set<Workspace> set)
Sets the workspace set associated to the given member. 
 | 
public static MemberIndexManager getInstance()
public java.util.Set<Publication> getPublicationSet(Member mbr)
mbr - the memberpublic boolean addPublication(Member mbr, Publication pub)
mbr - member with which this publication must be added.pub - publication to be added to this set.public boolean removePublication(Member mbr, Publication pub)
mbr - member with which this publication must be removed.pub - publication to be removed from this set, if present.public java.util.Set<Content> getContentSet(Member mbr)
mbr - the memberpublic boolean addContent(Member mbr, Content content)
mbr - ember with which this content must be added.content - content to be added to this set.public boolean removeContent(Member mbr, Content content)
mbr - member with which this content must be removed.content - content to be removed from this set, if present.public java.util.Set<Workspace> getWorkspaceSet(Member mbr)
mbr - the memberpublic void setWorkspaceSet(Member mbr, java.util.Set<Workspace> set)
mbr - the memberset - the workspace set to associate to the given member. MUST NOT be null.public void clearWorkspaceSet(Member mbr)
mbr - the memberpublic boolean addWorkspace(Member mbr, Workspace workspace)
mbr - ember with which this workspace must be added.workspace - workspace to be added to this set.public boolean removeWorkspace(Member mbr, Workspace workspace)
mbr - member with which this workspace must be removed.workspace - workspace to be removed from this set, if present.public java.util.Set<Member> getDelegateSet(Member mbr)
mbr - the memberpublic boolean addDelegate(Member mbr, Member delegate)
mbr - member with which this delegate must be added.delegate - delegate to be added to this set.public boolean removeDelegate(Member mbr, Member delegate)
mbr - member with which this workspace must be removed.delegate - delegate to be removed from this set, if present.public java.util.Map<Workspace,java.lang.Boolean> getCanPublishContentMap(Member mbr)
mbr - the memberpublic void clearCanPublishContentMap(Member mbr)
mbr - the memberpublic void putCanPublishContent(Member mbr, Workspace workspace, boolean bool)
mbr - ember with which this workspace must be added.workspace - workspace to be added to this set.bool - true if member can publish in specified workspace, false if member cannotpublic void removeCanPublishContent(Member mbr, Workspace workspace)
mbr - member with which this workspace must be removed.workspace - workspace to be removed from this set, if present.public java.util.Map<Workspace,java.lang.Boolean> getCanUpdateDeleteContentMap(Member mbr)
mbr - the memberpublic void clearCanUpdateDeleteContentMap(Member mbr)
mbr - the memberpublic void putCanUpdateDeleteContent(Member mbr, Workspace workspace, boolean bool)
mbr - ember with which this workspace must be added.workspace - workspace to be added to this set.bool - true if member can update or delete content in the specified workspace, false if member cannotpublic void removeCanUpdateDeleteContent(Member mbr, Workspace workspace)
mbr - member with which this workspace must be removed.workspace - workspace to be removed from this set, if present.public java.lang.Boolean getIsWorker(Member mbr, Workspace workspace)
mbr - the member, must not be nullworkspace - an optionnal workspace in which to check the isWorker status (if null isWorker status relates to all workspace)public void putIsWorker(Member mbr, Workspace workspace, boolean isWorker)
mbr - Member for which isWorker status was computed, must not be nullworkspace - an optionnal workspace for which isWorker status was computed (if null isWorker status relates to all workspace)isWorker - true if member was computed as a worker, false otherwisepublic void clearIsWorker(Member mbr)
mbr - an optionnal mbr for which cache should be cleared, if null cache is cleared for ALL members.Copyright © 2001-2018 Jalios SA. All Rights Reserved.