org.xcmis.spi.model
Class Rendition

java.lang.Object
  extended by org.xcmis.spi.model.Rendition

public class Rendition
extends Object

CMIS rendition.

Version:
$Id: $
Author:
Andrey Parfonov

Constructor Summary
Rendition()
           
Rendition(String streamId, String kind, String mimeType, long length, int height, int width, String title, String renditionDocumentId)
           
 
Method Summary
 int getHeight()
          Typically used for 'image' renditions (expressed as pixels).
 String getKind()
          A categorization String associated with the rendition.
 long getLength()
           
 String getMimeType()
          The mime-type of the rendition stream.
 String getRenditionDocumentId()
          If specified, then the rendition can also be accessed as a document object in the CMIS services.
 String getStreamId()
          Identifies the rendition stream ID.
 String getTitle()
          Optional human readable information about the rendition.
 int getWidth()
          Typically used for 'image' renditions (expressed as pixels).
 void setHeight(int height)
           
 void setKind(String kind)
           
 void setLength(long length)
           
 void setMimeType(String mimeType)
           
 void setRenditionDocumentId(String renditionDocumentId)
           
 void setStreamId(String streamId)
           
 void setTitle(String title)
           
 void setWidth(int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rendition

public Rendition(String streamId,
                 String kind,
                 String mimeType,
                 long length,
                 int height,
                 int width,
                 String title,
                 String renditionDocumentId)

Rendition

public Rendition()
Method Detail

getStreamId

public String getStreamId()
Identifies the rendition stream ID.

Returns:
rendition stream ID

getKind

public String getKind()
A categorization String associated with the rendition.

Returns:
rendition kind

getMimeType

public String getMimeType()
The mime-type of the rendition stream.

Returns:
rendition stream mime-type

getLength

public long getLength()
Returns:
length of the rendition stream in bytes. This attribute is optional

getHeight

public int getHeight()
Typically used for 'image' renditions (expressed as pixels). Should be provided if kind of rendition is 'cmis:thumbnail'.

Returns:
rendition height

getWidth

public int getWidth()
Typically used for 'image' renditions (expressed as pixels). Should be provided if kind of rendition is 'cmis:thumbnail'.

Returns:
rendition weight

getTitle

public String getTitle()
Optional human readable information about the rendition.

Returns:
rendition title or null if not provided

getRenditionDocumentId

public String getRenditionDocumentId()
If specified, then the rendition can also be accessed as a document object in the CMIS services. If not set, then the rendition can only be accessed via the rendition services.

Returns:
rendition document ID or null if rendition is not provided as separate document

setStreamId

public void setStreamId(String streamId)

setKind

public void setKind(String kind)

setMimeType

public void setMimeType(String mimeType)

setLength

public void setLength(long length)

setHeight

public void setHeight(int height)

setWidth

public void setWidth(int width)

setTitle

public void setTitle(String title)

setRenditionDocumentId

public void setRenditionDocumentId(String renditionDocumentId)


Copyright © 2011 eXo Platform SAS. All Rights Reserved.