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
Modifier and TypeFieldDescriptionprotected DocumentModelList
protected DocumentModel
static final String
static final String
protected CoreSession
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
buildQuery
(String path) protected abstract void
computeUnrestrictedRoots
(CoreSession session) protected abstract void
computeUserSectionRoots
(DocumentModel currentDoc) protected DocumentModelList
getAccessibleSectionRoots
(DocumentModel currentDoc) getDefaultSectionRoots
(boolean onlyHeads) getDefaultSectionRoots
(boolean onlyHeads, boolean addDefaultSectionRoots) protected DocumentModelList
getDefaultSectionRoots
(CoreSession session) protected DocumentModelList
getFiltredSectionRoots
(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 DocumentModelList
getSectionRootsFromWorkspaceConfig
(DocumentModel workspace, CoreSession session) getTypeNamesForFacet
(String facetName) void
reset()
void
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available 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:
reset
in interfaceRootSectionFinder
-
getAccessibleSectionRoots
- Specified by:
getAccessibleSectionRoots
in interfaceRootSectionFinder
-
getSectionRootsForWorkspace
public DocumentModelList getSectionRootsForWorkspace(DocumentModel currentDoc, boolean addDefaultSectionRoots) Description copied from interface:RootSectionFinder
Returns 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:
getSectionRootsForWorkspace
in interfaceRootSectionFinder
- Parameters:
currentDoc
- the target WorkspaceaddDefaultSectionRoots
- flag to indicate is default roots should be added
-
getSectionRootsForWorkspace
Description copied from interface:RootSectionFinder
Returns 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:
getSectionRootsForWorkspace
in interfaceRootSectionFinder
- Parameters:
currentDoc
- the target Workspace
-
getDefaultSectionRoots
- Specified by:
getDefaultSectionRoots
in interfaceRootSectionFinder
-
getDefaultSectionRoots
- Specified by:
getDefaultSectionRoots
in interfaceRootSectionFinder
-
getFiltredSectionRoots
-
filterDocuments
-
getDefaultSectionRoots
-
getSectionRootsFromWorkspaceConfig
protected DocumentModelList getSectionRootsFromWorkspaceConfig(DocumentModel workspace, CoreSession session) -
run
public void run()Description copied from class:UnrestrictedSessionRunner
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.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 classUnrestrictedSessionRunner
-
getSectionRootTypes
-
getTypeNamesForFacet
-
getSectionTypes
-