public class OwSymbolicRenditionService extends Object implements OwConfigurableRenditionService
Symbolic rendition service representation.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Constructor and Description |
|---|
OwSymbolicRenditionService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canCreateRendition(OwObject obj,
String type)
Capability check for creation of rendition.
|
void |
createRendition(OwObject obj,
String type)
Trigger a generation of a Rendition for specific object.
Before calling this method, verify that capability is available through OwRenditionService.canCreateRendition(OwObject, String). |
List<String> |
getRenditionMimeType(OwObject obj,
String type)
Return the MIME type of rendition, for specific type.
|
InputStream |
getRenditionStream(OwObject obj,
String type)
Retrieve the stream for specific type and object.
|
boolean |
hasRendition(OwObject obj,
String type)
Has Rendition representation for such object.
|
void |
init(OwXMLUtil serviceXMLUtil) |
public InputStream getRenditionStream(OwObject obj, String type) throws IOException, OwException
OwRenditionServicegetRenditionStream in interface OwRenditionServiceobj - OwObject from whom a rendition is providedtype - String MIME or Rendition typeIOException - if could not access/retrieve streamOwException - in other cases not matching IO problemspublic List<String> getRenditionMimeType(OwObject obj, String type) throws OwException
OwRenditionServicegetRenditionMimeType in interface OwRenditionServiceobj - OwObject from which rendition are requestedtype - String of RenditionOwExceptionpublic boolean hasRendition(OwObject obj, String type)
OwRenditionServicehasRendition in interface OwRenditionServiceobj - OwObjecttype - Stringpublic void createRendition(OwObject obj, String type) throws OwException
OwRenditionServiceOwRenditionService.canCreateRendition(OwObject, String).createRendition in interface OwRenditionServiceobj - OwObjecttype - StringOwExceptionpublic boolean canCreateRendition(OwObject obj, String type) throws OwException
OwRenditionServicecanCreateRendition in interface OwRenditionServiceobj - OwObjecttype - String rendition type or MIMEOwExceptionpublic void init(OwXMLUtil serviceXMLUtil) throws OwException
init in interface OwConfigurableRenditionServiceOwExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.