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, 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 Details
-
DefaultRootSectionsFinder
-
-
Method Details
-
computeUserSectionRoots
- Specified by:
computeUserSectionRoots
in classAbstractRootSectionsFinder
-
buildQuery
- Specified by:
buildQuery
in classAbstractRootSectionsFinder
-
computeUnrestrictedRoots
- Specified by:
computeUnrestrictedRoots
in classAbstractRootSectionsFinder
-