Class AbstractRootSectionsFinder
java.lang.Object
org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
org.nuxeo.ecm.platform.publisher.impl.finder.AbstractRootSectionsFinder
- All Implemented Interfaces:
RootSectionFinder
- Direct Known Subclasses:
DefaultRootSectionsFinder
public abstract class AbstractRootSectionsFinder
extends UnrestrictedSessionRunner
implements RootSectionFinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DocumentModelListprotected DocumentModelstatic final Stringstatic final Stringprotected CoreSessionFields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringbuildQuery(String path) protected abstract voidcomputeUnrestrictedRoots(CoreSession session) protected abstract voidcomputeUserSectionRoots(DocumentModel currentDoc) protected DocumentModelListgetAccessibleSectionRoots(DocumentModel currentDoc) getDefaultSectionRoots(boolean onlyHeads) getDefaultSectionRoots(boolean onlyHeads, boolean addDefaultSectionRoots) protected DocumentModelListgetDefaultSectionRoots(CoreSession session) protected DocumentModelListgetFiltredSectionRoots(List<String> rootPaths, boolean onlyHeads) getSectionRootsForWorkspace(DocumentModel currentDoc) Returns the head (root) sections that are bound to a given Workspace.getSectionRootsForWorkspace(DocumentModel currentDoc, boolean addDefaultSectionRoots) Returns the head (root) sections that are bound to a given Workspace.protected DocumentModelListgetSectionRootsFromWorkspaceConfig(DocumentModel workspace, CoreSession session) getTypeNamesForFacet(String facetName) voidreset()voidrun()This method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable as an unrestricted session.Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
Field Details
-
SCHEMA_PUBLISHING
- See Also:
-
SECTIONS_PROPERTY_NAME
- See Also:
-
sectionRootTypes
-
sectionTypes
-
userSession
-
unrestrictedSectionRootFromWorkspaceConfig
-
unrestrictedDefaultSectionRoot
-
accessibleSectionRoots
-
currentDocument
-
-
Constructor Details
-
AbstractRootSectionsFinder
-
-
Method Details
-
computeUserSectionRoots
-
buildQuery
-
computeUnrestrictedRoots
-
reset
public void reset()- Specified by:
resetin interfaceRootSectionFinder
-
getAccessibleSectionRoots
- Specified by:
getAccessibleSectionRootsin interfaceRootSectionFinder
-
getSectionRootsForWorkspace
public DocumentModelList getSectionRootsForWorkspace(DocumentModel currentDoc, boolean addDefaultSectionRoots) Description copied from interface:RootSectionFinderReturns the head (root) sections that are bound to a given Workspace.If no specific binding is defined at the workspace level, an empty list is returned.
- Specified by:
getSectionRootsForWorkspacein interfaceRootSectionFinder- Parameters:
currentDoc- the target WorkspaceaddDefaultSectionRoots- flag to indicate is default roots should be added
-
getSectionRootsForWorkspace
Description copied from interface:RootSectionFinderReturns the head (root) sections that are bound to a given Workspace.If no specific binding is defined at the workspace level, an empty list is returned.
- Specified by:
getSectionRootsForWorkspacein interfaceRootSectionFinder- Parameters:
currentDoc- the target Workspace
-
getDefaultSectionRoots
- Specified by:
getDefaultSectionRootsin interfaceRootSectionFinder
-
getDefaultSectionRoots
- Specified by:
getDefaultSectionRootsin interfaceRootSectionFinder
-
getFiltredSectionRoots
-
filterDocuments
-
getDefaultSectionRoots
-
getSectionRootsFromWorkspaceConfig
protected DocumentModelList getSectionRootsFromWorkspaceConfig(DocumentModel workspace, CoreSession session) -
run
public void run()Description copied from class:UnrestrictedSessionRunnerThis method will be called byUnrestrictedSessionRunner.runUnrestricted()withUnrestrictedSessionRunner.sessionavailable as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.sessionavailable will be the one passed to#UnrestrictedSessionRunner(CoreSession).- Specified by:
runin classUnrestrictedSessionRunner
-
getSectionRootTypes
-
getTypeNamesForFacet
-
getSectionTypes
-