Class DefaultRootSectionsFinder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.publisher.impl.finder.AbstractRootSectionsFinder
-
- org.nuxeo.ecm.platform.publisher.impl.finder.DefaultRootSectionsFinder
-
- All Implemented Interfaces:
RootSectionFinder
public class DefaultRootSectionsFinder extends AbstractRootSectionsFinder implements RootSectionFinder
Helper class to manage:- unrestricted fetch of Sections
- filtering according to user rights
- Author:
- tiry
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.platform.publisher.impl.finder.AbstractRootSectionsFinder
accessibleSectionRoots, currentDocument, log, SCHEMA_PUBLISHING, sectionRootTypes, SECTIONS_PROPERTY_NAME, sectionTypes, unrestrictedDefaultSectionRoot, unrestrictedSectionRootFromWorkspaceConfig, userSession
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description DefaultRootSectionsFinder(CoreSession userSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
buildQuery(String path)
protected void
computeUnrestrictedRoots(CoreSession session)
protected void
computeUserSectionRoots(DocumentModel currentDoc)
-
Methods inherited from class org.nuxeo.ecm.platform.publisher.impl.finder.AbstractRootSectionsFinder
filterDocuments, getAccessibleSectionRoots, getDefaultSectionRoots, getDefaultSectionRoots, getDefaultSectionRoots, getFiltredSectionRoots, getSectionRootsForWorkspace, getSectionRootsForWorkspace, getSectionRootsFromWorkspaceConfig, getSectionRootTypes, getSectionTypes, getTypeNamesForFacet, reset, run
-
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.platform.publisher.helper.RootSectionFinder
getAccessibleSectionRoots, getDefaultSectionRoots, getDefaultSectionRoots, getSectionRootsForWorkspace, getSectionRootsForWorkspace, reset
-
-
-
-
Constructor Detail
-
DefaultRootSectionsFinder
public DefaultRootSectionsFinder(CoreSession userSession)
-
-
Method Detail
-
computeUserSectionRoots
protected void computeUserSectionRoots(DocumentModel currentDoc)
- Specified by:
computeUserSectionRoots
in classAbstractRootSectionsFinder
-
buildQuery
protected String buildQuery(String path)
- Specified by:
buildQuery
in classAbstractRootSectionsFinder
-
computeUnrestrictedRoots
protected void computeUnrestrictedRoots(CoreSession session)
- Specified by:
computeUnrestrictedRoots
in classAbstractRootSectionsFinder
-
-