protected class CoreProxyWithWorkflowFactory.DocumentPublisherUnrestricted extends UnrestrictedSessionRunner
Modifier and Type | Field and Description |
---|---|
protected String |
comment |
protected DocumentRef |
docRef |
protected NuxeoPrincipal |
principal |
protected PublishedDocument |
result |
protected DocumentRef |
targetRef |
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
Constructor and Description |
---|
DocumentPublisherUnrestricted(CoreSession session,
DocumentRef docRef,
DocumentRef targetRef,
NuxeoPrincipal principal,
String comment) |
Modifier and Type | Method and Description |
---|---|
PublishedDocument |
getPublishedDocument() |
void |
run()
This method will be called by
UnrestrictedSessionRunner.runUnrestricted() with UnrestrictedSessionRunner.session available as an unrestricted
session. |
getOriginatingUsername, isUnrestricted, runUnrestricted, setOriginatingUsername
protected PublishedDocument result
protected DocumentRef docRef
protected DocumentRef targetRef
protected NuxeoPrincipal principal
public DocumentPublisherUnrestricted(CoreSession session, DocumentRef docRef, DocumentRef targetRef, NuxeoPrincipal principal, String comment)
public PublishedDocument getPublishedDocument()
public void run()
UnrestrictedSessionRunner
UnrestrictedSessionRunner.runUnrestricted()
with UnrestrictedSessionRunner.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)
.
run
in class UnrestrictedSessionRunner
Copyright © 2018 Nuxeo. All rights reserved.