org.eclipse.stardust.engine.extensions.dms.data
Class DmsDocumentBean

java.lang.Object
  extended by org.eclipse.stardust.engine.extensions.dms.data.DmsResourceBean
      extended by org.eclipse.stardust.engine.extensions.dms.data.DmsDocumentBean
All Implemented Interfaces:
Serializable, Document, DocumentInfo, Resource, ResourceInfo

public class DmsDocumentBean
extends org.eclipse.stardust.engine.extensions.dms.data.DmsResourceBean
implements Document, DocumentInfo, Serializable

Version:
$Revision$
Author:
rsauer
See Also:
Serialized Form

Constructor Summary
DmsDocumentBean()
           
DmsDocumentBean(Map legoDocument)
           
 
Method Summary
 String getContentType()
          Gets the content type of the JCR document (e.g.
 DocumentAnnotations getDocumentAnnotations()
           
 DocumentType getDocumentType()
          Returns the meta data structure of a document
 String getEncoding()
          Gets the encoding of the document content.
 String getLockOwner()
          Deprecated. 
 String getRevisionComment()
          Gets the version comment of the revision represented by this Document object.
 String getRevisionId()
          Gets the id of the revision represented by this Document object.
 String getRevisionName()
          Gets the name of the revision represented by this Document object.
 long getSize()
          Gets the size of a the document content in bytes.
 List getVersionLabels()
          Gets all labels assigned to the revision represented by this Document object.
 void setContentType(String contentType)
          Sets the content type of the JCR document.
 void setDocumentAnnotations(DocumentAnnotations documentAnnotations)
           
 void setDocumentType(DocumentType documentType)
          Sets the meta data structure of a document
 void setEncoding(String encoding)
           
 void setRevisionComment(String revisionComment)
           
 void setRevisionId(String revisionId)
           
 void setRevisionName(String revisionName)
           
 void setSize(long size)
           
 void setVersionLabels(List<String> versionLabels)
           
 String toString()
           
 
Methods inherited from class org.eclipse.stardust.engine.extensions.dms.data.DmsResourceBean
equals, getDateCreated, getDateLastModified, getDescription, getId, getName, getOwner, getPath, getProperties, getProperty, getRepositoryId, setDateCreated, setDateLastModified, setDescription, setId, setName, setOwner, setPath, setProperties, setProperty, vfsResource
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.stardust.engine.api.runtime.Resource
getId, getPath, getRepositoryId
 
Methods inherited from interface org.eclipse.stardust.engine.api.runtime.ResourceInfo
getDateCreated, getDateLastModified, getDescription, getName, getOwner, getProperties, getProperty, setDescription, setName, setOwner, setProperties, setProperty
 

Constructor Detail

DmsDocumentBean

public DmsDocumentBean()

DmsDocumentBean

public DmsDocumentBean(Map legoDocument)
Method Detail

getSize

public long getSize()
Description copied from interface: Document
Gets the size of a the document content in bytes.

Specified by:
getSize in interface Document
Returns:
the size of a the document content in bytes.

setSize

public void setSize(long size)

getContentType

public String getContentType()
Description copied from interface: DocumentInfo
Gets the content type of the JCR document (e.g. "application/octet-stream").

Specified by:
getContentType in interface DocumentInfo
Returns:
the content type of the JCR document.

setContentType

public void setContentType(String contentType)
Description copied from interface: DocumentInfo
Sets the content type of the JCR document.

Specified by:
setContentType in interface DocumentInfo
Parameters:
contentType - the content type of the JCR document.

getRevisionId

public String getRevisionId()
Description copied from interface: Document
Gets the id of the revision represented by this Document object.

Specified by:
getRevisionId in interface Document
Returns:
the id of the revision represented by this Document object.

setRevisionId

public void setRevisionId(String revisionId)

getRevisionName

public String getRevisionName()
Description copied from interface: Document
Gets the name of the revision represented by this Document object.

Specified by:
getRevisionName in interface Document
Returns:
the name of the revision represented by this Document object.

setRevisionName

public void setRevisionName(String revisionName)

getRevisionComment

public String getRevisionComment()
Description copied from interface: Document
Gets the version comment of the revision represented by this Document object.

Specified by:
getRevisionComment in interface Document
Returns:
the version comment of the revision represented by this Document object.

setRevisionComment

public void setRevisionComment(String revisionComment)

getVersionLabels

public List getVersionLabels()
Description copied from interface: Document
Gets all labels assigned to the revision represented by this Document object.

Specified by:
getVersionLabels in interface Document
Returns:
all labels assigned to the revision represented by this Document object.

setVersionLabels

public void setVersionLabels(List<String> versionLabels)

getLockOwner

@Deprecated
public String getLockOwner()
Deprecated. 


getEncoding

public String getEncoding()
Description copied from interface: Document
Gets the encoding of the document content.

Specified by:
getEncoding in interface Document
Returns:
the encoding of the document content.

setEncoding

public void setEncoding(String encoding)

getDocumentAnnotations

public DocumentAnnotations getDocumentAnnotations()
Specified by:
getDocumentAnnotations in interface DocumentInfo
Returns:
document annotations

setDocumentAnnotations

public void setDocumentAnnotations(DocumentAnnotations documentAnnotations)
Specified by:
setDocumentAnnotations in interface DocumentInfo

setDocumentType

public void setDocumentType(DocumentType documentType)
Description copied from interface: DocumentInfo
Sets the meta data structure of a document

Specified by:
setDocumentType in interface DocumentInfo
Parameters:
documentType - the meta data structure of a document

getDocumentType

public DocumentType getDocumentType()
Description copied from interface: DocumentInfo
Returns the meta data structure of a document

Specified by:
getDocumentType in interface DocumentInfo
Returns:
the meta data structure of a document

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2017 Eclipse Stardust. All Rights Reserved.