Class DomainsFinder
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.publisher.impl.service.DomainsFinder
-
public class DomainsFinder extends UnrestrictedSessionRunner
Finds the domains for a session.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<DocumentModel>
domains
static String
PUBLISHING_DOMAINS_PROVIDER
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description DomainsFinder(String repositoryName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<DocumentModel>
getDomains()
protected List<DocumentModel>
getDomainsFiltered()
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 Detail
-
PUBLISHING_DOMAINS_PROVIDER
public static final String PUBLISHING_DOMAINS_PROVIDER
- See Also:
- Constant Field Values
-
domains
protected List<DocumentModel> domains
-
-
Constructor Detail
-
DomainsFinder
public DomainsFinder(String repositoryName)
-
-
Method Detail
-
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
-
getDomainsFiltered
protected List<DocumentModel> getDomainsFiltered()
-
getDomains
public List<DocumentModel> getDomains()
-
-