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
OwRenditionService
getRenditionStream
in interface OwRenditionService
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 problemspublic List<String> getRenditionMimeType(OwObject obj, String type) throws OwException
OwRenditionService
getRenditionMimeType
in interface OwRenditionService
obj
- OwObject from which rendition are requestedtype
- String of RenditionOwException
public boolean hasRendition(OwObject obj, String type)
OwRenditionService
hasRendition
in interface OwRenditionService
obj
- OwObjecttype
- Stringpublic void createRendition(OwObject obj, String type) throws OwException
OwRenditionService
OwRenditionService.canCreateRendition(OwObject, String)
.createRendition
in interface OwRenditionService
obj
- OwObjecttype
- StringOwException
public boolean canCreateRendition(OwObject obj, String type) throws OwException
OwRenditionService
canCreateRendition
in interface OwRenditionService
obj
- OwObjecttype
- String rendition type or MIMEOwException
public void init(OwXMLUtil serviceXMLUtil) throws OwException
init
in interface OwConfigurableRenditionService
OwException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.