Class CoreProxyWithWorkflowFactory.DocumentPublisherUnrestricted
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.publisher.task.CoreProxyWithWorkflowFactory.DocumentPublisherUnrestricted
-
- Enclosing class:
- CoreProxyWithWorkflowFactory
protected class CoreProxyWithWorkflowFactory.DocumentPublisherUnrestricted extends UnrestrictedSessionRunner
- Author:
- arussel
-
-
Field Summary
Fields Modifier and Type Field Description protected String
comment
protected DocumentRef
docRef
protected NuxeoPrincipal
principal
protected PublishedDocument
result
protected DocumentRef
targetRef
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description DocumentPublisherUnrestricted(CoreSession session, DocumentRef docRef, DocumentRef targetRef, NuxeoPrincipal principal, String comment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublishedDocument
getPublishedDocument()
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
-
result
protected PublishedDocument result
-
docRef
protected DocumentRef docRef
-
targetRef
protected DocumentRef targetRef
-
principal
protected NuxeoPrincipal principal
-
-
Constructor Detail
-
DocumentPublisherUnrestricted
public DocumentPublisherUnrestricted(CoreSession session, DocumentRef docRef, DocumentRef targetRef, NuxeoPrincipal principal, String comment)
-
-
Method Detail
-
getPublishedDocument
public PublishedDocument getPublishedDocument()
-
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
-
-