it.sistematica.isharedoc.sharecloud.model.cmis
Class CmisDocument

java.lang.Object
  extended by it.sistematica.isharedoc.sharecloud.model.CloudAbstractFile
      extended by it.sistematica.isharedoc.sharecloud.model.cmis.CmisFile
          extended by it.sistematica.isharedoc.sharecloud.model.cmis.CmisDocument
All Implemented Interfaces:
CloudDocument, CloudDocumentVersion, CloudFile

public class CmisDocument
extends CmisFile
implements CloudDocument, CloudDocumentVersion


Field Summary
(package private)  java.lang.Boolean isSigned
           
 
Fields inherited from class it.sistematica.isharedoc.sharecloud.model.cmis.CmisFile
object
 
Fields inherited from class it.sistematica.isharedoc.sharecloud.model.CloudAbstractFile
changedProperties, confidentialityLevel, created, createdBy, deleted, description, entities, file, hidden, id, modified, modifiedBy, name, note, objectTemplate, original, ownerOrganization, parent, session, status
 
Fields inherited from interface it.sistematica.isharedoc.sharecloud.model.CloudFile
PATH_SEPARATOR, TRASH_DIRECTORY_NAME
 
Constructor Summary
CmisDocument(CloudSession session, org.apache.chemistry.opencmis.client.api.Document file)
           
CmisDocument(CloudSession session, org.apache.chemistry.opencmis.client.api.Document file, DocumentContent content)
           
 
Method Summary
 void addReplica(DocumentContentReplica replica)
           
 java.lang.String getApplicationReaderType()
           
 it.neverworks.security.signature.DigSig getCAdES()
           
 java.lang.String getCheckedOutBy()
           
 java.lang.String getCheckinComment()
           
 java.util.Date getCheckoutExpire()
           
 java.lang.String getContentType()
           
 CloudDocumentVersion getCurrent()
           
 java.lang.String getHash()
           
 java.lang.String getIconReplica()
           
 java.lang.String getIconSignature()
           
 DocumentContent getInternalContent()
           
 java.lang.Object getObject()
           
 java.lang.String getPath()
           
 java.util.List<DocumentContentReplica> getReplicas()
           
 java.util.Date getSignatureExpireDate()
           
 java.lang.String getSignatureStatus()
           
 java.lang.String getSignatureValidationDescription()
           
 java.lang.String getSignatureValidationStatus()
           
 java.util.Date getSignatureValidationTimestamp()
           
 java.lang.Long getSize()
           
 java.lang.String getSizeString()
           
 CloudStream getStream()
           
 java.lang.String getType()
           
 java.lang.String getVersion()
           
 CloudDocumentVersion getVersion(java.lang.String version)
           
 java.util.List<CloudDocumentVersion> getVersions()
           
 java.lang.Boolean isDocument()
           
 boolean isPwc()
           
 java.lang.Boolean isSigned()
           
 boolean isVersionable()
           
 void setInternalContent(DocumentContent content)
           
 void setReplicas(java.util.List<DocumentContentReplica> replicas)
           
 
Methods inherited from class it.sistematica.isharedoc.sharecloud.model.cmis.CmisFile
addAcl, addSecondaryType, getAcl, getConfidentialityLevelId, getCreated, getCreatedBy, getDescription, getId, getIdFullPath, getModified, getModifiedBy, getName, getNameFullPathWithAttributes, getNote, getNoteInShort, getObjectTemplateId, getOrganization, getOrganizationId, getOriginal, getParent, getParentObject, getProperties, getProperty, getPropertyValue, getPropertyValueString, getRepositoryPath, getSecondaryTypes, getStatus, isContainer, isDeleted, isHidden, isItemLink, isLink, isRemote, isSpecial, isTopic, isTrash, isTrashed, removeAcl, removeSecondaryType, setAcl, setConfidentialityLevelId, setCreated, setCreatedBy, setDeleted, setDescription, setHidden, setId, setModified, setModifiedBy, setName, setNote, setObjectTemplateId, setOrganizationId, setParent, setPropertyValue, setStatus, trace
 
Methods inherited from class it.sistematica.isharedoc.sharecloud.model.CloudAbstractFile
getAttributesAsString, getAttributeValues, getChangedProperties, getColor, getConfidentialityLevel, getFileType, getIconClass, getIconDescription, getIconMedium, getIconTitle, getIconTree, getInternalFile, getNameFullPath, getNameFullPathWithNote, getNameWithAttributes, getNameWithNote, getObjectTemplate, getRemotePath, getSession, getTrashPath, getURL, isDrive, isFolder, isInternal, isReplica, setChangedProperties, setInternalFile, setSession, toString, traceChanges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.sistematica.isharedoc.sharecloud.model.CloudDocumentVersion
getName, isInternal
 
Methods inherited from interface it.sistematica.isharedoc.sharecloud.model.CloudFile
addAcl, addSecondaryType, getAcl, getAttributesAsString, getAttributeValues, getChangedProperties, getColor, getConfidentialityLevel, getConfidentialityLevelId, getCreated, getCreatedBy, getDescription, getFileType, getIconClass, getIconDescription, getIconMedium, getIconTitle, getIconTree, getId, getIdFullPath, getInternalFile, getModified, getModifiedBy, getNameFullPath, getNameFullPathWithAttributes, getNameFullPathWithNote, getNameWithAttributes, getNameWithNote, getNote, getNoteInShort, getObjectTemplate, getObjectTemplateId, getOrganization, getOrganizationId, getOriginal, getParent, getParentObject, getProperties, getProperty, getPropertyValue, getPropertyValueString, getRemotePath, getRepositoryPath, getSecondaryTypes, getSession, getStatus, getTrashPath, getURL, isContainer, isDeleted, isDrive, isFolder, isHidden, isItemLink, isLink, isRemote, isReplica, isSpecial, isTopic, isTrash, isTrashed, removeAcl, removeSecondaryType, setAcl, setChangedProperties, setConfidentialityLevelId, setCreated, setCreatedBy, setDeleted, setDescription, setHidden, setId, setInternalFile, setModified, setModifiedBy, setName, setNote, setObjectTemplateId, setOrganizationId, setParent, setPropertyValue, setStatus, trace, traceChanges
 

Field Detail

isSigned

java.lang.Boolean isSigned
Constructor Detail

CmisDocument

public CmisDocument(CloudSession session,
                    org.apache.chemistry.opencmis.client.api.Document file)

CmisDocument

public CmisDocument(CloudSession session,
                    org.apache.chemistry.opencmis.client.api.Document file,
                    DocumentContent content)
Method Detail

getInternalContent

public DocumentContent getInternalContent()
Specified by:
getInternalContent in interface CloudDocumentVersion

setInternalContent

public void setInternalContent(DocumentContent content)
Specified by:
setInternalContent in interface CloudDocumentVersion

getObject

public java.lang.Object getObject()
Specified by:
getObject in interface CloudFile
Overrides:
getObject in class CmisFile

getType

public java.lang.String getType()
Specified by:
getType in interface CloudDocumentVersion
Specified by:
getType in interface CloudFile
Overrides:
getType in class CmisFile
Returns:
LINK for link DOC for document FOLDER for folder

getPath

public java.lang.String getPath()
Specified by:
getPath in interface CloudFile
Overrides:
getPath in class CmisFile

isVersionable

public boolean isVersionable()
Specified by:
isVersionable in interface CloudDocument

isSigned

public java.lang.Boolean isSigned()
Specified by:
isSigned in interface CloudDocument

getSignatureExpireDate

public java.util.Date getSignatureExpireDate()
Specified by:
getSignatureExpireDate in interface CloudDocument

getSignatureStatus

public java.lang.String getSignatureStatus()
Specified by:
getSignatureStatus in interface CloudDocument

getSignatureValidationStatus

public java.lang.String getSignatureValidationStatus()
Specified by:
getSignatureValidationStatus in interface CloudDocument

getSignatureValidationTimestamp

public java.util.Date getSignatureValidationTimestamp()
Specified by:
getSignatureValidationTimestamp in interface CloudDocument

isDocument

public java.lang.Boolean isDocument()
Specified by:
isDocument in interface CloudFile
Overrides:
isDocument in class CloudAbstractFile

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface CloudDocument
Specified by:
getVersion in interface CloudDocumentVersion

getVersion

public CloudDocumentVersion getVersion(java.lang.String version)
Specified by:
getVersion in interface CloudDocument

getCurrent

public CloudDocumentVersion getCurrent()
Specified by:
getCurrent in interface CloudDocument

getVersions

public java.util.List<CloudDocumentVersion> getVersions()
Specified by:
getVersions in interface CloudDocument

getApplicationReaderType

public java.lang.String getApplicationReaderType()
Specified by:
getApplicationReaderType in interface CloudDocument
Specified by:
getApplicationReaderType in interface CloudDocumentVersion

getIconReplica

public java.lang.String getIconReplica()
Specified by:
getIconReplica in interface CloudDocument

getIconSignature

public java.lang.String getIconSignature()
Specified by:
getIconSignature in interface CloudDocument

getSignatureValidationDescription

public java.lang.String getSignatureValidationDescription()
Specified by:
getSignatureValidationDescription in interface CloudDocument

getCAdES

public it.neverworks.security.signature.DigSig getCAdES()
                                                 throws java.lang.Exception
Specified by:
getCAdES in interface CloudDocument
Throws:
java.lang.Exception

getStream

public CloudStream getStream()
Specified by:
getStream in interface CloudDocumentVersion

getCheckinComment

public java.lang.String getCheckinComment()
Specified by:
getCheckinComment in interface CloudDocumentVersion

getSizeString

public java.lang.String getSizeString()
Specified by:
getSizeString in interface CloudDocumentVersion

getSize

public java.lang.Long getSize()
Specified by:
getSize in interface CloudDocumentVersion

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface CloudDocumentVersion

isPwc

public boolean isPwc()
Specified by:
isPwc in interface CloudDocumentVersion

getReplicas

public java.util.List<DocumentContentReplica> getReplicas()
Specified by:
getReplicas in interface CloudDocumentVersion

setReplicas

public void setReplicas(java.util.List<DocumentContentReplica> replicas)
Specified by:
setReplicas in interface CloudDocumentVersion

addReplica

public void addReplica(DocumentContentReplica replica)
Specified by:
addReplica in interface CloudDocumentVersion

getCheckedOutBy

public java.lang.String getCheckedOutBy()
Specified by:
getCheckedOutBy in interface CloudDocument

getCheckoutExpire

public java.util.Date getCheckoutExpire()
Specified by:
getCheckoutExpire in interface CloudDocument

getHash

public java.lang.String getHash()
Specified by:
getHash in interface CloudDocumentVersion