public class RenditionService2Impl extends Object implements RenditionService2, org.springframework.beans.factory.InitializingBean, ContentServicePolicies.OnContentUpdatePolicy
Policy.Arg| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ENCODING |
static String |
DEFAULT_MIMETYPE |
static org.alfresco.service.namespace.QName |
DEFAULT_RENDITION_CONTENT_PROP |
static int |
RENDITION2_DOES_NOT_EXIST |
static int |
SOURCE_HAS_NO_CONTENT |
static String |
TRANSFORMING_ERROR_MESSAGE |
QNAME| Constructor and Description |
|---|
RenditionService2Impl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
consume(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
InputStream transformInputStream,
RenditionDefinition2 renditionDefinition,
int transformContentUrlHashCode)
Takes a transformation (InputStream) and attaches it as a rendition to the source node.
|
void |
deleteRendition(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName) |
void |
failure(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
RenditionDefinition2 renditionDefinition,
int transformContentUrlHashCode) |
org.alfresco.service.cmr.repository.ChildAssociationRef |
getRenditionByName(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
This method gets the rendition of the
sourceNodeRef identified by its name. |
RenditionDefinitionRegistry2 |
getRenditionDefinitionRegistry2() |
List<org.alfresco.service.cmr.repository.ChildAssociationRef> |
getRenditions(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
This method gets all the renditions of the
sourceNodeRef. |
boolean |
isCreatedByRenditionService2(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName) |
boolean |
isEnabled()
Indicates if renditions are enabled.
|
boolean |
isRenditionAvailable(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef renditionNode)
Indicates if the rendition is available.
|
boolean |
isThumbnailsEnabled() |
void |
onContentUpdate(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
boolean newContent) |
void |
render(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
This method asynchronously renders content as specified by the
renditionName. |
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setContentService(ContentService contentService) |
void |
setEnabled(boolean enabled) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setRenditionDefinitionRegistry2(RenditionDefinitionRegistry2 renditionDefinitionRegistry2) |
void |
setRenditionPreventionRegistry(RenditionPreventionRegistry renditionPreventionRegistry) |
void |
setRenditionRequestSheduler(PostTxnCallbackScheduler renditionRequestSheduler) |
void |
setRuleService(RuleService ruleService) |
void |
setThumbnailsEnabled(boolean thumbnailsEnabled) |
void |
setTransactionService(TransactionService transactionService) |
void |
setTransformClient(TransformClient transformClient) |
public static final String TRANSFORMING_ERROR_MESSAGE
public static final org.alfresco.service.namespace.QName DEFAULT_RENDITION_CONTENT_PROP
public static final String DEFAULT_MIMETYPE
public static final String DEFAULT_ENCODING
public static final int SOURCE_HAS_NO_CONTENT
public static final int RENDITION2_DOES_NOT_EXIST
public void setRenditionRequestSheduler(PostTxnCallbackScheduler renditionRequestSheduler)
public void setTransactionService(TransactionService transactionService)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setContentService(ContentService contentService)
public void setRenditionPreventionRegistry(RenditionPreventionRegistry renditionPreventionRegistry)
public void setRenditionDefinitionRegistry2(RenditionDefinitionRegistry2 renditionDefinitionRegistry2)
public RenditionDefinitionRegistry2 getRenditionDefinitionRegistry2()
getRenditionDefinitionRegistry2 in interface RenditionService2RenditionDefinitionRegistry2 being used by the service.public void setTransformClient(TransformClient transformClient)
public void setPolicyComponent(PolicyComponent policyComponent)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setRuleService(RuleService ruleService)
public void setEnabled(boolean enabled)
public void setThumbnailsEnabled(boolean thumbnailsEnabled)
public boolean isThumbnailsEnabled()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void render(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
RenditionService2renditionName. The content to be
rendered is provided by sourceNodeRef.render in interface RenditionService2sourceNodeRef - the node from which the content is retrieved.renditionName - the rendition to be performed.public void failure(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
RenditionDefinition2 renditionDefinition,
int transformContentUrlHashCode)
public void consume(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
InputStream transformInputStream,
RenditionDefinition2 renditionDefinition,
int transformContentUrlHashCode)
public boolean isCreatedByRenditionService2(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
public void deleteRendition(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
public List<org.alfresco.service.cmr.repository.ChildAssociationRef> getRenditions(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef)
RenditionService2sourceNodeRef.getRenditions in interface RenditionService2ChildAssociationRefs which link the sourceNodeRef to the renditions.public boolean isRenditionAvailable(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef renditionNode)
public org.alfresco.service.cmr.repository.ChildAssociationRef getRenditionByName(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionName)
RenditionService2sourceNodeRef identified by its name.getRenditionByName in interface RenditionService2sourceNodeRef - the source node for the renditionsrenditionName - the renditionName used to identify a rendition.ChildAssociationRef which links the source node to the
rendition or null if there is no rendition or it is not up to date.public boolean isEnabled()
RenditionService2system.thumbnail.generate value.isEnabled in interface RenditionService2public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
boolean newContent)
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicysourceNodeRef - the node referenceCopyright © 2005–2018 Alfresco Software. All rights reserved.