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 ofPublishedDocumentFactory
that uses theRenditionService
to publish a Rendition of the given document.- Since:
- 5.4.1
- Author:
- Thomas Roger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RenditionPublicationFactory.RemoveACP
-
Nested classes/interfaces inherited from class org.nuxeo.ecm.platform.publisher.task.CoreProxyWithWorkflowFactory
CoreProxyWithWorkflowFactory.DocumentPublisherUnrestricted
-
-
Field Summary
Fields Modifier and Type Field Description static String
RENDITION_NAME_PARAMETER_KEY
-
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
Constructors Constructor Description RenditionPublicationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentModel
getLiveDocument(CoreSession session, DocumentModel proxy)
protected RenditionService
getRenditionService()
PublishedDocument
publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
protected void
removeExistingProxiesOnPreviousVersions(DocumentModel newProxy)
-
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 Detail
-
RENDITION_NAME_PARAMETER_KEY
public static final String RENDITION_NAME_PARAMETER_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
publishDocument
public PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
- Specified by:
publishDocument
in interfacePublishedDocumentFactory
- Overrides:
publishDocument
in classCoreProxyWithWorkflowFactory
-
getLiveDocument
protected DocumentModel getLiveDocument(CoreSession session, DocumentModel proxy)
- Overrides:
getLiveDocument
in classCoreProxyWithWorkflowFactory
-
removeExistingProxiesOnPreviousVersions
protected void removeExistingProxiesOnPreviousVersions(DocumentModel newProxy)
- Overrides:
removeExistingProxiesOnPreviousVersions
in classCoreProxyWithWorkflowFactory
-
getRenditionService
protected RenditionService getRenditionService()
-
-