public interface OwRenditionService
Interface for Rendition capability handling.
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
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 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.
|
InputStream getRenditionStream(OwObject obj, String type) throws IOException, OwException
obj
- OwObject from whom a rendition is providedtype
- String MIME or Rendition typeIOException
- if could not access/retrieve streamOwException
- in other cases not matching IO problemsList<String> getRenditionMimeType(OwObject obj, String type) throws OwException
obj
- OwObject from which rendition are requestedtype
- String of RenditionOwException
boolean hasRendition(OwObject obj, String type)
obj
- OwObjecttype
- Stringvoid createRendition(OwObject obj, String type) throws OwException
canCreateRendition(OwObject, String)
.obj
- OwObjecttype
- StringOwException
boolean canCreateRendition(OwObject obj, String type) throws OwException
obj
- OwObjecttype
- String rendition type or MIMEOwException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.