org.nuxeo.ecm.platform.publisher.helper
Class RootSectionsFinder
java.lang.Object
org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
org.nuxeo.ecm.platform.publisher.helper.RootSectionsFinder
public class RootSectionsFinder
- extends UnrestrictedSessionRunner
Helper class to manage:
- unrestricted fetch of Sections
- filtering according to user rights
- Author:
- tiry
RootSectionsFinder
public RootSectionsFinder(CoreSession userSession,
Set<String> sectionRootTypes,
Set<String> sectionTypes)
reset
public void reset()
getAccessibleSectionRoots
public DocumentModelList getAccessibleSectionRoots(DocumentModel currentDoc)
throws ClientException
- Throws:
ClientException
getSectionRootsForWorkspace
public DocumentModelList getSectionRootsForWorkspace(DocumentModel currentDoc,
boolean addDefaultSectionRoots)
throws ClientException
- Throws:
ClientException
getSectionRootsForWorkspace
public DocumentModelList getSectionRootsForWorkspace(DocumentModel currentDoc)
throws ClientException
- Throws:
ClientException
getDefaultSectionRoots
public DocumentModelList getDefaultSectionRoots(boolean onlyHeads,
boolean addDefaultSectionRoots)
throws ClientException
- Throws:
ClientException
getDefaultSectionRoots
public DocumentModelList getDefaultSectionRoots(boolean onlyHeads)
throws ClientException
- Throws:
ClientException
run
public void run()
throws ClientException
- Description copied from class:
UnrestrictedSessionRunner
- This method will be called by
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)
.
- Specified by:
run
in class UnrestrictedSessionRunner
- Throws:
ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.