Class RenditionPublicationFactory
java.lang.Object
org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
org.nuxeo.ecm.platform.publisher.impl.core.CoreProxyFactory
org.nuxeo.ecm.platform.publisher.task.CoreProxyWithWorkflowFactory
org.nuxeo.ecm.platform.rendition.publisher.RenditionPublicationFactory
- All Implemented Interfaces:
PublishedDocumentFactory
public class RenditionPublicationFactory
extends CoreProxyWithWorkflowFactory
implements PublishedDocumentFactory
Implementation of
PublishedDocumentFactory
that uses the RenditionService
to publish a Rendition of
the given document.- Since:
- 5.4.1
- Author:
- Thomas Roger
-
Nested Class Summary
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.publisher.task.CoreProxyWithWorkflowFactory
CoreProxyWithWorkflowFactory.DocumentPublisherUnrestricted
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.publisher.task.CoreProxyWithWorkflowFactory
ACL_NAME, JBPM_ACL_NAME, LOOKUP_STATE_PARAM_BYACL, LOOKUP_STATE_PARAM_BYTASK, LOOKUP_STATE_PARAM_KEY, lookupState, PUBLISH_TASK_TYPE, TASK_NAME
Fields inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
coreSession, ENABLE_SNAPSHOT, eventProducer, parameters, publicationTree, TARGET_PUBLISHED_DOCUMENT_STATE, validatorsRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DocumentModel
getLiveDocument
(CoreSession session, DocumentModel proxy) protected RenditionService
publishDocument
(DocumentModel doc, PublicationNode targetNode, Map<String, String> params) protected void
Methods inherited from class org.nuxeo.ecm.platform.publisher.task.CoreProxyWithWorkflowFactory
canManagePublishing, createTask, endTask, getTaskService, hasValidationTask, hasValidationTask, init, isPublished, isPublishedDocWaitingForPublication, isValidator, removeACL, removeProxy, restrictPermission, setLookupByACL, setLookupByTask, validatorPublishDocument, validatorRejectPublication, wrapDocumentModel
Methods inherited from class org.nuxeo.ecm.platform.publisher.impl.core.CoreProxyFactory
snapshotDocumentBeforePublish, unwrapPublishedDocument
Methods inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
getEventProducer, getName, getParameter, getTargetPublishedDocumentState, getValidatorsFor, getValidatorsRule, init, isSnapshotingEnabled, needToVersionDocument, notifyEvent, notifyEvent, publishDocument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublishedDocumentFactory
canManagePublishing, getName, getValidatorsFor, getValidatorsRule, hasValidationTask, init, init, publishDocument, snapshotDocumentBeforePublish, validatorPublishDocument, validatorRejectPublication, wrapDocumentModel
-
Field Details
-
RENDITION_NAME_PARAMETER_KEY
- See Also:
-
-
Constructor Details
-
RenditionPublicationFactory
public RenditionPublicationFactory()
-
-
Method Details
-
publishDocument
public PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String, String> params) - Specified by:
publishDocument
in interfacePublishedDocumentFactory
- Overrides:
publishDocument
in classCoreProxyWithWorkflowFactory
-
getLiveDocument
- Overrides:
getLiveDocument
in classCoreProxyWithWorkflowFactory
-
removeExistingProxiesOnPreviousVersions
- Overrides:
removeExistingProxiesOnPreviousVersions
in classCoreProxyWithWorkflowFactory
-
getRenditionService
-