org.alfresco.cmis.renditions
Class CMISRenditionImpl

java.lang.Object
  extended by org.alfresco.cmis.renditions.CMISRenditionImpl
All Implemented Interfaces:
CMISRendition

public class CMISRenditionImpl
extends java.lang.Object
implements CMISRendition

CMIS Rendition Implementation


Constructor Summary
CMISRenditionImpl()
          Default constructor
CMISRenditionImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.lang.String streamId, java.lang.String mimeType, java.lang.String kind, java.lang.Integer height, java.lang.Integer width, java.lang.String title, java.lang.Integer length, java.lang.String renditionDocumentId)
          Construct a CmisRendition using fields
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Integer getHeight()
          Get the height of image.
 java.lang.String getKind()
          Get rendition kind.
 java.lang.Integer getLength()
          Get the length of the rendition stream in bytes.
 java.lang.String getMimeType()
          Get the MIME type of the rendition stream.
 org.alfresco.service.cmr.repository.NodeRef getNodeRef()
          Gets the thumbnail node reference
 java.lang.String getRenditionDocumentId()
          Get the rendition document id.
 java.lang.String getStreamId()
          Get the rendition stream id
 java.lang.String getTitle()
          Get a human readable information about the rendition.
 java.lang.Integer getWidth()
          Get the width of image.
 int hashCode()
           
 void setHeight(java.lang.Integer height)
          Set the height of image
 void setKind(java.lang.String kind)
          Set rendition kind
 void setLength(java.lang.Integer length)
          Set the length of the rendition stream in bytes
 void setMimeType(java.lang.String mimeType)
          Set the MIME type of the rendition stream
 void setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
           
 void setRenditionDocumentId(java.lang.String renditionDocumentId)
          Set the rendition document id
 void setStreamId(java.lang.String streamId)
          Set the rendition stream id
 void setTitle(java.lang.String title)
          Set the title of rendition
 void setWidth(java.lang.Integer width)
          Set the width of image
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMISRenditionImpl

public CMISRenditionImpl(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                         java.lang.String streamId,
                         java.lang.String mimeType,
                         java.lang.String kind,
                         java.lang.Integer height,
                         java.lang.Integer width,
                         java.lang.String title,
                         java.lang.Integer length,
                         java.lang.String renditionDocumentId)
Construct a CmisRendition using fields

Parameters:
nodeRef - the rendition node reference
streamId - rendition stream id
mimeType - the MIME type of the rendition stream
kind - a categorization String associated with the rendition
height - the height of image
width - the width of image
title - rendition title
length - the length of the rendition stream in bytes
renditionDocumentId - the rendition document id

CMISRenditionImpl

public CMISRenditionImpl()
Default constructor

Method Detail

getStreamId

public java.lang.String getStreamId()
Description copied from interface: CMISRendition
Get the rendition stream id

Specified by:
getStreamId in interface CMISRendition
Returns:
See Also:
CMISRendition.getStreamId()

setStreamId

public void setStreamId(java.lang.String streamId)
Set the rendition stream id

Parameters:
streamId - rendition stream id

getMimeType

public java.lang.String getMimeType()
Description copied from interface: CMISRendition
Get the MIME type of the rendition stream.

Specified by:
getMimeType in interface CMISRendition
Returns:
See Also:
CMISRendition.getMimeType()

setMimeType

public void setMimeType(java.lang.String mimeType)
Set the MIME type of the rendition stream

Parameters:
mimeType - the MIME type of the rendition stream

getKind

public java.lang.String getKind()
Description copied from interface: CMISRendition
Get rendition kind.

Specified by:
getKind in interface CMISRendition
Returns:
See Also:
CMISRendition.getKind()

setKind

public void setKind(java.lang.String kind)
Set rendition kind

Parameters:
kind - rendition kind

getHeight

public java.lang.Integer getHeight()
Description copied from interface: CMISRendition
Get the height of image. Typically used for ‘image’ renditions (expressed as pixels).

Specified by:
getHeight in interface CMISRendition
Returns:
See Also:
CMISRendition.getHeight()

setHeight

public void setHeight(java.lang.Integer height)
Set the height of image

Parameters:
height - the height of image

getWidth

public java.lang.Integer getWidth()
Description copied from interface: CMISRendition
Get the width of image. Typically used for ‘image’ renditions (expressed as pixels).

Specified by:
getWidth in interface CMISRendition
Returns:
See Also:
CMISRendition.getWidth()

setWidth

public void setWidth(java.lang.Integer width)
Set the width of image

Parameters:
width - the width of image

getTitle

public java.lang.String getTitle()
Description copied from interface: CMISRendition
Get a human readable information about the rendition.

Specified by:
getTitle in interface CMISRendition
Returns:
See Also:
CMISRendition.getTitle()

setTitle

public void setTitle(java.lang.String title)
Set the title of rendition

Parameters:
title - the title

getLength

public java.lang.Integer getLength()
Description copied from interface: CMISRendition
Get the length of the rendition stream in bytes.

Specified by:
getLength in interface CMISRendition
Returns:
See Also:
CMISRendition.getLength()

setLength

public void setLength(java.lang.Integer length)
Set the length of the rendition stream in bytes

Parameters:
length - length of the rendition stream in bytes

getRenditionDocumentId

public java.lang.String getRenditionDocumentId()
Description copied from interface: CMISRendition
Get the rendition document id. If specified, then the rendition can also be accessed as a document object in the CMIS services.

Specified by:
getRenditionDocumentId in interface CMISRendition
Returns:
See Also:
CMISRendition.getRenditionDocumentId()

setRenditionDocumentId

public void setRenditionDocumentId(java.lang.String renditionDocumentId)
Set the rendition document id

Parameters:
renditionDocumentId - the rendition document id

getNodeRef

public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Description copied from interface: CMISRendition
Gets the thumbnail node reference

Specified by:
getNodeRef in interface CMISRendition

setNodeRef

public void setNodeRef(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Parameters:
nodeRef - the nodeRef to set

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.