Class PublishUnrestricted
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.ecm.platform.publisher.task.PublishUnrestricted
-
public class PublishUnrestricted extends UnrestrictedSessionRunner
- Author:
- arussel
-
-
Field Summary
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Constructor Description PublishUnrestricted(CoreSession session, DocumentModel docToPublish, DocumentModel sectionToPublishTo)
PublishUnrestricted(CoreSession session, DocumentModel docToPublish, DocumentModel sectionToPublishTo, boolean overwriteProxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
getModel()
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
-
-
-
-
Constructor Detail
-
PublishUnrestricted
public PublishUnrestricted(CoreSession session, DocumentModel docToPublish, DocumentModel sectionToPublishTo)
-
PublishUnrestricted
public PublishUnrestricted(CoreSession session, DocumentModel docToPublish, DocumentModel sectionToPublishTo, boolean overwriteProxy)
-
-
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
-
getModel
public DocumentModel getModel()
-
-