public abstract class OwAbstractRenditionService extends Object implements OwRenditionService
Abstract implementation of OwRendtionService, with default implementations throwing exception. Derived classes can override only required methods, and avoid the thrown exceptions.
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 |
---|
OwAbstractRenditionService() |
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) . |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRenditionMimeType
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 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
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.