Package com.jalios.jcms
Class MemberIndexManager
java.lang.Object
com.jalios.jcms.MemberIndexManager
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddContent(Member mbr, Content content) Adds the given content to the content set of the given member.booleanaddDelegate(Member mbr, Member delegate) Adds the given delegate to the delegate set of the given member.booleanaddPublication(Member mbr, Publication pub) Adds the given publication to the publication set of the given member.booleanaddWorkspace(Member mbr, Workspace workspace) Adds the given workspace to the workspace set of the given member.voidClears the publish rights map associated to the given member.voidClears the updateDelete map associated to the given member.voidclearIsWorker(Member mbr) Clears the isWorker status cache.voidvoidClears the managed member set associated to the given member.voidclearWorkspaceSet(Member mbr) Clears the workspace set associated to the given member.Returns the publish rights map associated to the given member.Returns the updateDelete map associated to the given member.getContentSet(Member mbr) Returns the content set associated to the given member.getDelegateSet(Member mbr) Returns the delegate set associated to the given member.static MemberIndexManagergetIsWorker(Member mbr, Workspace workspace) Returns the isWorker status for the specified member.Returns the id of managed member set associated to the given member.getPublicationSet(Member mbr) Returns the publication set associated to the given member.getWorkspaceSet(Member mbr) Returns the workspace set associated to the given member.booleanCheck if the specified member was specified at least once as declared manager of a DBMember.booleanCheck if the specified member was specified at least once as declared manager of a JStore Member.voidputCanPublishContent(Member mbr, Workspace workspace, boolean bool) Adds the given entry to the publish rights map of the given member.voidputCanUpdateDeleteContent(Member mbr, Workspace workspace, boolean bool) Adds the given entry to the workspace set of the given member.voidputIsWorker(Member mbr, Workspace workspace, boolean isWorker) Add the member isWorker status.voidremoveCanPublishContent(Member mbr, Workspace workspace) Removes the given entry for the given member.voidremoveCanUpdateDeleteContent(Member mbr, Workspace workspace) Removes the given entry for the given member.booleanremoveContent(Member mbr, Content content) Removes the given content for the given member.booleanremoveDelegate(Member mbr, Member delegate) Removes the given delegate for the given member.booleanremovePublication(Member mbr, Publication pub) Removes the given publication for the given member.booleanremoveWorkspace(Member mbr, Workspace workspace) Removes the given workspace for the given member.voidsetManagedMemberSet(Member mbr, Set<String> set) Sets the id of managed member set associated to the given member.voidsetWorkspaceSet(Member mbr, Set<Workspace> set) Sets the workspace set associated to the given member.
-
Method Details
-
getInstance
-
getPublicationSet
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
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
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
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
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
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
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
-
setWorkspaceSet
Sets the workspace set associated to the given member.- Parameters:
mbr- the memberset- the workspace set to associate to the given member. MUST NOT be null.- Since:
- jcms-7.0.2
-
clearWorkspaceSet
Clears the workspace set associated to the given member.- Parameters:
mbr- the member- Since:
- jcms-6.0.0
-
addWorkspace
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
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
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
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
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
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
Clears the publish rights map associated to the given member.- Parameters:
mbr- the member- Since:
- jcms-6.0.0
-
putCanPublishContent
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.bool- true if member can publish in specified workspace, false if member cannot- Since:
- jcms-6.0.0
-
removeCanPublishContent
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
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
Clears the updateDelete map associated to the given member.- Parameters:
mbr- the member- Since:
- jcms-6.0.0
-
putCanUpdateDeleteContent
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.bool- true if member can update or delete content in the specified workspace, false if member cannot- Since:
- jcms-6.0.0
-
removeCanUpdateDeleteContent
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
-
getIsWorker
Returns the isWorker status for the specified member.- Parameters:
mbr- the member, must not be nullworkspace- an optional workspace in which to check the isWorker status (if null isWorker status relates to all workspace)- Returns:
- isWorker status for the given member (in the specified workspace if any), may return null if computation was never performed.
- Since:
- jcms-9.0.5 - JCMS-5683
-
putIsWorker
Add the member isWorker status.- Parameters:
mbr- Member for which isWorker status was computed, must not be nullworkspace- an optional 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 otherwise- Since:
- jcms-9.0.5 - JCMS-5683
-
clearIsWorker
Clears the isWorker status cache.- Parameters:
mbr- an optional mbr for which cache should be cleared, if null cache is cleared for ALL members.- Since:
- jcms-9.0.5 - JCMS-5683
-
isExplicitMemberManager
Check if the specified member was specified at least once as declared manager of a JStore Member.Warning: this does NOT check if the specified member manages any DBMember, use
isExplicitDBMemberManager(Member)- Parameters:
mbr- the member to check- Returns:
- true if member is manager of at least once JStore Member, false if member is not a manager of any JStore member
- Since:
- jcms-10.0.7 / JCMS-9477
- See Also:
-
isExplicitDBMemberManager
Check if the specified member was specified at least once as declared manager of a DBMember.Warning: this does NOT check if the specified member manages any JStore Member, use
isExplicitMemberManager(Member)- Parameters:
mbr- the member to check- Returns:
- true if member is manager of at least once DB Member, false if member is not a manager of any DB member
- Since:
- jcms-10.0.7 / JCMS-9477
- See Also:
-
getManagedMemberSet
Returns the id of managed member set associated to the given member.- Parameters:
mbr- the member- Returns:
- the managed member set associated to the given member.
- Since:
- jcms-10.0.2
-
setManagedMemberSet
Sets the id of managed member set associated to the given member.- Parameters:
mbr- the memberset- the managed member set to associate to the given member. MUST NOT be null.- Since:
- jcms-10.0.2
-
clearManagedMemberSet
Clears the managed member set associated to the given member.- Parameters:
mbr- the member- Since:
- jcms-10.0.2
-
clearManagedMemberIndex
public void clearManagedMemberIndex()
-