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,
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(ScriptThumbnailService scriptThumbnailService) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setTenantService(org.alfresco.repo.tenant.TenantService tenantService) |
void |
setThumbnailService(ThumbnailService thumbnailService) |
protected Rendition |
toApiRendition(org.alfresco.service.cmr.repository.NodeRef renditionNodeRef) |
protected Rendition |
toApiRendition(ThumbnailDefinition thumbnailDefinition) |
protected org.alfresco.service.cmr.repository.NodeRef |
validateSourceNode(String nodeId) |
public void setNodes(Nodes nodes)
public void setThumbnailService(ThumbnailService thumbnailService)
public void setScriptThumbnailService(ScriptThumbnailService scriptThumbnailService)
public void setServiceRegistry(ServiceRegistry serviceRegistry)
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
public void init()
public CollectionWithPagingInfo<Rendition> getRenditions(String nodeId, Parameters parameters)
Renditions
getRenditions
in interface Renditions
nodeId
- the source node idparameters
- the Parameters
object to get the parameters passed into the requestpublic Rendition getRendition(String nodeId, String renditionId, Parameters parameters)
Renditions
getRendition
in interface Renditions
nodeId
- 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)
Renditions
createRendition
in interface Renditions
nodeId
- the source node idrendition
- the Rendition
requestparameters
- the Parameters
object to get the parameters passed into the requestpublic BinaryResource getContent(String nodeId, String renditionId, Parameters parameters)
Renditions
getContent
in interface Renditions
nodeId
- 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)
Renditions
getContent
in interface Renditions
sourceNodeRef
- 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(ThumbnailDefinition thumbnailDefinition)
protected org.alfresco.service.cmr.repository.NodeRef validateSourceNode(String nodeId)
Copyright © 2005–2017 Alfresco Software. All rights reserved.