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, waitgetRenditionMimeTypepublic 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 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 MIMEOwExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.