public abstract class AbstractRootSectionsFinder extends UnrestrictedSessionRunner implements RootSectionFinder
| Modifier and Type | Field and Description |
|---|---|
static String |
SCHEMA_PUBLISHING |
static String |
SECTIONS_PROPERTY_NAME |
isUnrestricted| Constructor and Description |
|---|
AbstractRootSectionsFinder(CoreSession userSession) |
| Modifier and Type | Method and Description |
|---|---|
DocumentModelList |
getAccessibleSectionRoots(DocumentModel currentDoc) |
DocumentModelList |
getDefaultSectionRoots(boolean onlyHeads) |
DocumentModelList |
getDefaultSectionRoots(boolean onlyHeads,
boolean addDefaultSectionRoots) |
DocumentModelList |
getSectionRootsForWorkspace(DocumentModel currentDoc)
Returns the head (root) sections that are bound to a given Workspace.
|
DocumentModelList |
getSectionRootsForWorkspace(DocumentModel currentDoc,
boolean addDefaultSectionRoots)
Returns the head (root) sections that are bound to a given Workspace.
|
void |
reset() |
void |
run()
This method will be called by
UnrestrictedSessionRunner.runUnrestricted() with UnrestrictedSessionRunner.session available as an unrestricted
session. |
getOriginatingUsername, runUnrestricted, setOriginatingUsernamepublic static final String SCHEMA_PUBLISHING
public static final String SECTIONS_PROPERTY_NAME
public AbstractRootSectionsFinder(CoreSession userSession)
public void reset()
reset in interface RootSectionFinderpublic DocumentModelList getAccessibleSectionRoots(DocumentModel currentDoc) throws ClientException
getAccessibleSectionRoots in interface RootSectionFinderClientExceptionpublic DocumentModelList getSectionRootsForWorkspace(DocumentModel currentDoc, boolean addDefaultSectionRoots) throws ClientException
RootSectionFinderIf no specific binding is defined at the workspace level, an empty list is returned.
getSectionRootsForWorkspace in interface RootSectionFindercurrentDoc - the target WorkspaceaddDefaultSectionRoots - flag to indicate is default roots should be addedClientExceptionpublic DocumentModelList getSectionRootsForWorkspace(DocumentModel currentDoc) throws ClientException
RootSectionFinderIf no specific binding is defined at the workspace level, an empty list is returned.
getSectionRootsForWorkspace in interface RootSectionFindercurrentDoc - the target WorkspaceClientExceptionpublic DocumentModelList getDefaultSectionRoots(boolean onlyHeads, boolean addDefaultSectionRoots) throws ClientException
getDefaultSectionRoots in interface RootSectionFinderClientExceptionpublic DocumentModelList getDefaultSectionRoots(boolean onlyHeads) throws ClientException
getDefaultSectionRoots in interface RootSectionFinderClientExceptionpublic void run()
throws ClientException
UnrestrictedSessionRunnerUnrestrictedSessionRunner.runUnrestricted() with UnrestrictedSessionRunner.session available as an unrestricted
session.
It can also be called directly in which case the UnrestrictedSessionRunner.session available will be the one passed to
#UnrestrictedSessionRunner(CoreSession).
run in class UnrestrictedSessionRunnerClientExceptionCopyright © 2015 Nuxeo SA. All rights reserved.