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(NodeRef nodeRef,
Rendition rendition,
boolean executeAsync,
Parameters parameters)
Creates a rendition for the given node - either async r sync
|
void |
createRendition(NodeRef nodeRef,
Rendition rendition,
Parameters parameters)
Creates a rendition for the given node asynchronously.
|
BinaryResource |
getContent(NodeRef nodeRef,
String renditionId,
Parameters parameters)
Downloads rendition.
|
BinaryResource |
getContentNoValidation(NodeRef sourceNodeRef,
String renditionId,
Parameters parameters)
Downloads rendition.
|
Rendition |
getRendition(NodeRef nodeRef,
String renditionId,
Parameters parameters)
Gets information about a rendition of a node in the repository.
|
protected NodeRef |
getRenditionByName(NodeRef nodeRef,
String renditionId,
Parameters parameters) |
CollectionWithPagingInfo<Rendition> |
getRenditions(NodeRef nodeRef,
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 |
setRenditionsDataCollector(RenditionsDataCollector renditionsDataCollector) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
void |
setScriptThumbnailService(ScriptThumbnailService scriptThumbnailService) |
void |
setServiceRegistry(ServiceRegistry serviceRegistry) |
void |
setTenantService(TenantService tenantService) |
void |
setThumbnailService(ThumbnailService thumbnailService) |
protected Rendition |
toApiRendition(NodeRef renditionNodeRef) |
protected Rendition |
toApiRendition(ThumbnailDefinition thumbnailDefinition) |
NodeRef |
validateNode(StoreRef storeRef,
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.ResourceLoaderAwarepublic void setTenantService(TenantService tenantService)
public void setRenditionsDataCollector(RenditionsDataCollector renditionsDataCollector)
public void init()
public CollectionWithPagingInfo<Rendition> getRenditions(NodeRef nodeRef, Parameters parameters)
RenditionsgetRenditions in interface Renditionsparameters - the Parameters object to get the parameters passed into the requestpublic Rendition getRendition(NodeRef nodeRef, String renditionId, Parameters parameters)
RenditionsgetRendition in interface RenditionsrenditionId - the rendition idparameters - the Parameters object to get the parameters passed into the requestRendition objectpublic void createRendition(NodeRef nodeRef, Rendition rendition, Parameters parameters)
RenditionscreateRendition in interface Renditionsrendition - the Rendition requestparameters - the Parameters object to get the parameters passed into the requestpublic void createRendition(NodeRef nodeRef, Rendition rendition, boolean executeAsync, Parameters parameters)
RenditionscreateRendition in interface Renditionspublic BinaryResource getContent(NodeRef nodeRef, String renditionId, Parameters parameters)
RenditionsgetContent in interface RenditionsnodeRef - the source nodeRefrenditionId - the rendition idparameters - the Parameters object to get the parameters passed into the requestpublic BinaryResource getContentNoValidation(NodeRef sourceNodeRef, String renditionId, Parameters parameters)
RenditionsgetContentNoValidation in interface RenditionssourceNodeRef - the source nodeRefrenditionId - the rendition idparameters - the Parameters object to get the parameters passed into the requestprotected NodeRef getRenditionByName(NodeRef nodeRef, String renditionId, Parameters parameters)
protected Rendition toApiRendition(ThumbnailDefinition thumbnailDefinition)
Copyright © 2005–2020 Alfresco Software. All rights reserved.