it.sistematica.isharedoc.sharecloud.model.replica
Class ReplicaDocument

java.lang.Object
  extended by it.sistematica.isharedoc.sharecloud.model.CloudAbstractFile
      extended by it.sistematica.isharedoc.sharecloud.model.replica.ReplicaFile
          extended by it.sistematica.isharedoc.sharecloud.model.replica.ReplicaDocument
All Implemented Interfaces:
CloudDocument, CloudFile
Direct Known Subclasses:
ReplicaDocumentVersion

public class ReplicaDocument
extends ReplicaFile
implements CloudDocument


Field Summary
 
Fields inherited from class it.sistematica.isharedoc.sharecloud.model.replica.ReplicaFile
content, document, 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
ReplicaDocument(CloudSession session, DocumentContentReplica document)
           
ReplicaDocument(DocumentContentReplica object)
           
 
Method Summary
 java.lang.String getApplicationReaderType()
           
 it.neverworks.security.signature.DigSig getCAdES()
           
 java.lang.String getCheckedOutBy()
           
 java.util.Date getCheckoutExpire()
           
 CloudDocumentVersion getCurrent()
           
 java.lang.String getIconReplica()
           
 java.lang.String getIconSignature()
           
 java.lang.Object getObject()
           
 java.util.Date getSignatureExpireDate()
           
 java.lang.String getSignatureStatus()
           
 java.lang.String getSignatureValidationDescription()
           
 java.lang.String getSignatureValidationStatus()
           
 java.util.Date getSignatureValidationTimestamp()
           
 java.lang.String getType()
           
 java.lang.String getVersion()
           
 CloudDocumentVersion getVersion(java.lang.String version)
           
 java.util.List<CloudDocumentVersion> getVersions()
           
 java.lang.Boolean isDocument()
           
 java.lang.Boolean isSigned()
           
 boolean isVersionable()
           
 
Methods inherited from class it.sistematica.isharedoc.sharecloud.model.replica.ReplicaFile
getCreated, getCreatedBy, getId, getModified, getModifiedBy, getName, getPath, getProperties, getProperty, getPropertyValue, getRepositoryPath, getSecondaryTypes, getSourceDocument, isInternal, isReplica, setCreated, setCreatedBy, setId, setModified, setModifiedBy, setName, trace
 
Methods inherited from class it.sistematica.isharedoc.sharecloud.model.CloudAbstractFile
addAcl, addSecondaryType, getAcl, getAttributesAsString, getAttributeValues, getChangedProperties, getColor, getConfidentialityLevel, getConfidentialityLevelId, getDescription, getFileType, getIconClass, getIconDescription, getIconMedium, getIconTitle, getIconTree, getIdFullPath, getInternalFile, getNameFullPath, getNameFullPathWithAttributes, getNameFullPathWithNote, getNameWithAttributes, getNameWithNote, getNote, getNoteInShort, getObjectTemplate, getObjectTemplateId, getOrganization, getOrganizationId, getOriginal, getParent, getParentObject, getPropertyValueString, getRemotePath, getSession, getStatus, getTrashPath, getURL, isContainer, isDeleted, isDrive, isFolder, isHidden, isItemLink, isLink, isRemote, isSpecial, isTopic, isTrash, isTrashed, removeAcl, removeSecondaryType, setAcl, setChangedProperties, setConfidentialityLevelId, setDeleted, setDescription, setHidden, setInternalFile, setNote, setObjectTemplateId, setOrganizationId, setParent, setPropertyValue, setSession, setStatus, 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.CloudFile
addAcl, addSecondaryType, getAcl, getAttributesAsString, getAttributeValues, getChangedProperties, getColor, getConfidentialityLevel, getConfidentialityLevelId, getCreated, getCreatedBy, getDescription, getFileType, getIconClass, getIconDescription, getIconMedium, getIconTitle, getIconTree, getId, getIdFullPath, getInternalFile, getModified, getModifiedBy, getName, getNameFullPath, getNameFullPathWithAttributes, getNameFullPathWithNote, getNameWithAttributes, getNameWithNote, getNote, getNoteInShort, getObjectTemplate, getObjectTemplateId, getOrganization, getOrganizationId, getOriginal, getParent, getParentObject, getPath, getProperties, getProperty, getPropertyValue, getPropertyValueString, getRemotePath, getRepositoryPath, getSecondaryTypes, getSession, getStatus, getTrashPath, getURL, isContainer, isDeleted, isDrive, isFolder, isHidden, isInternal, 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
 

Constructor Detail

ReplicaDocument

public ReplicaDocument(CloudSession session,
                       DocumentContentReplica document)

ReplicaDocument

public ReplicaDocument(DocumentContentReplica object)
Method Detail

getObject

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

getType

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

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

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

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

getCheckedOutBy

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

getCheckoutExpire

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