public class RenditionsImpl extends Object implements Renditions, org.springframework.context.ResourceLoaderAware
PARAM_STATUS| Constructor and Description |
|---|
RenditionsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createRendition(String nodeId,
Rendition rendition,
boolean executeAsync,
Parameters parameters)
Creates a rendition for the given node - either async r sync
|
void |
createRendition(String nodeId,
Rendition rendition,
Parameters parameters)
Creates a rendition for the given node asynchronously.
|
BinaryResource |
getContent(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
String renditionId,
Parameters parameters)
Downloads rendition.
|
BinaryResource |
getContent(String nodeId,
String renditionId,
Parameters parameters)
Downloads rendition.
|
Rendition |
getRendition(String nodeId,
String renditionId,
Parameters parameters)
Gets information about a rendition of a node in the repository.
|
protected org.alfresco.service.cmr.repository.NodeRef |
getRenditionByName(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String renditionId,
Parameters parameters) |
CollectionWithPagingInfo<Rendition> |
getRenditions(String nodeId,
Parameters parameters)
Lists all available renditions includes those that have been created and those that are yet to be created.
|
void |
init() |
void |
setNodes(Nodes nodes) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
void |
setScriptThumbnailService(org.alfresco.repo.thumbnail.script.ScriptThumbnailService scriptThumbnailService) |
void |
setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setThumbnailService(org.alfresco.service.cmr.thumbnail.ThumbnailService thumbnailService) |
protected Rendition |
toApiRendition(org.alfresco.service.cmr.repository.NodeRef renditionNodeRef) |
protected Rendition |
toApiRendition(org.alfresco.repo.thumbnail.ThumbnailDefinition thumbnailDefinition) |
protected org.alfresco.service.cmr.repository.NodeRef |
validateSourceNode(String nodeId) |
public void setNodes(Nodes nodes)
public void setThumbnailService(org.alfresco.service.cmr.thumbnail.ThumbnailService thumbnailService)
public void setScriptThumbnailService(org.alfresco.repo.thumbnail.script.ScriptThumbnailService scriptThumbnailService)
public void setServiceRegistry(org.alfresco.service.ServiceRegistry serviceRegistry)
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void init()
public CollectionWithPagingInfo<Rendition> getRenditions(String nodeId, Parameters parameters)
RenditionsgetRenditions in interface RenditionsnodeId - the source node idparameters - the Parameters object to get the parameters passed into the requestpublic Rendition getRendition(String nodeId, String renditionId, Parameters parameters)
RenditionsgetRendition in interface RenditionsnodeId - the source node idrenditionId - the rendition idparameters - the Parameters object to get the parameters passed into the requestRendition objectpublic void createRendition(String nodeId, Rendition rendition, Parameters parameters)
RenditionscreateRendition in interface RenditionsnodeId - the source node idrendition - the Rendition requestparameters - the Parameters object to get the parameters passed into the requestpublic void createRendition(String nodeId, Rendition rendition, boolean executeAsync, Parameters parameters)
RenditionscreateRendition in interface Renditionspublic BinaryResource getContent(String nodeId, String renditionId, Parameters parameters)
RenditionsgetContent in interface RenditionsnodeId - the source node idrenditionId - the rendition idparameters - the Parameters object to get the parameters passed into the requestpublic BinaryResource getContent(org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, String renditionId, Parameters parameters)
RenditionsgetContent in interface RenditionssourceNodeRef - the source nodeRefrenditionId - the rendition idparameters - the Parameters object to get the parameters passed into the requestprotected org.alfresco.service.cmr.repository.NodeRef getRenditionByName(org.alfresco.service.cmr.repository.NodeRef nodeRef,
String renditionId,
Parameters parameters)
protected Rendition toApiRendition(org.alfresco.service.cmr.repository.NodeRef renditionNodeRef)
protected Rendition toApiRendition(org.alfresco.repo.thumbnail.ThumbnailDefinition thumbnailDefinition)
protected org.alfresco.service.cmr.repository.NodeRef validateSourceNode(String nodeId)
Copyright © 2005–2018 Alfresco Software. All rights reserved.