public class RootSectionsFinder extends UnrestrictedSessionRunner
isUnrestricted
Constructor and Description |
---|
RootSectionsFinder(CoreSession userSession,
Set<String> sectionRootTypes,
Set<String> sectionTypes) |
Modifier and Type | Method and Description |
---|---|
DocumentModelList |
getAccessibleSectionRoots(DocumentModel currentDoc) |
DocumentModelList |
getDefaultSectionRoots(boolean onlyHeads) |
DocumentModelList |
getDefaultSectionRoots(boolean onlyHeads,
boolean addDefaultSectionRoots) |
DocumentModelList |
getSectionRootsForWorkspace(DocumentModel currentDoc) |
DocumentModelList |
getSectionRootsForWorkspace(DocumentModel currentDoc,
boolean addDefaultSectionRoots) |
void |
reset() |
void |
run()
This method will be called by
UnrestrictedSessionRunner.runUnrestricted() with
UnrestrictedSessionRunner.session available as an unrestricted session. |
getOriginatingUsername, runUnrestricted, setOriginatingUsername
public RootSectionsFinder(CoreSession userSession, Set<String> sectionRootTypes, Set<String> sectionTypes)
public void reset()
public DocumentModelList getAccessibleSectionRoots(DocumentModel currentDoc) throws ClientException
ClientException
public DocumentModelList getSectionRootsForWorkspace(DocumentModel currentDoc, boolean addDefaultSectionRoots) throws ClientException
ClientException
public DocumentModelList getSectionRootsForWorkspace(DocumentModel currentDoc) throws ClientException
ClientException
public DocumentModelList getDefaultSectionRoots(boolean onlyHeads, boolean addDefaultSectionRoots) throws ClientException
ClientException
public DocumentModelList getDefaultSectionRoots(boolean onlyHeads) throws ClientException
ClientException
public void run() throws ClientException
UnrestrictedSessionRunner
UnrestrictedSessionRunner.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 UnrestrictedSessionRunner
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.