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

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
              extended by it.sistematica.isharedoc.sharecloud.model.replica.ReplicaDocumentVersion
All Implemented Interfaces:
CloudDocument, CloudDocumentVersion, CloudFile

public class ReplicaDocumentVersion
extends ReplicaDocument
implements CloudDocumentVersion


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
ReplicaDocumentVersion(CloudSession session, DocumentContentReplica document)
           
 
Method Summary
 void addReplica(DocumentContentReplica replica)
           
 java.lang.String getApplicationReaderType()
           
 java.lang.String getCheckinComment()
           
 java.lang.String getContentType()
           
 java.lang.String getHash()
           
 DocumentContent getInternalContent()
           
 java.util.List<DocumentContentReplica> getReplicas()
           
 java.lang.Long getSize()
           
 java.lang.String getSizeString()
           
 CloudStream getStream()
           
 java.lang.Boolean isInternal()
           
 boolean isPwc()
           
 void setInternalContent(DocumentContent content)
           
 void setReplicas(java.util.List<DocumentContentReplica> replicas)
           
 
Methods inherited from class it.sistematica.isharedoc.sharecloud.model.replica.ReplicaDocument
getCAdES, getCheckedOutBy, getCheckoutExpire, getCurrent, getIconReplica, getIconSignature, getObject, getSignatureExpireDate, getSignatureStatus, getSignatureValidationDescription, getSignatureValidationStatus, getSignatureValidationTimestamp, getType, getVersion, getVersion, getVersions, isDocument, isSigned, 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, 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.CloudDocumentVersion
getName, getType, getVersion
 
Methods inherited from interface it.sistematica.isharedoc.sharecloud.model.CloudDocument
getCAdES, getCheckedOutBy, getCheckoutExpire, getCurrent, getIconReplica, getIconSignature, getSignatureExpireDate, getSignatureStatus, getSignatureValidationDescription, getSignatureValidationStatus, getSignatureValidationTimestamp, getVersion, getVersions, isSigned, isVersionable
 
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, getObject, getObjectTemplate, getObjectTemplateId, getOrganization, getOrganizationId, getOriginal, getParent, getParentObject, getPath, getProperties, getProperty, getPropertyValue, getPropertyValueString, getRemotePath, getRepositoryPath, getSecondaryTypes, getSession, getStatus, getTrashPath, getURL, isContainer, isDeleted, isDocument, 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
 

Constructor Detail

ReplicaDocumentVersion

public ReplicaDocumentVersion(CloudSession session,
                              DocumentContentReplica document)
Method Detail

getInternalContent

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

setInternalContent

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

isInternal

public java.lang.Boolean isInternal()
Specified by:
isInternal in interface CloudDocumentVersion
Specified by:
isInternal in interface CloudFile
Overrides:
isInternal in class ReplicaFile

getStream

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

getApplicationReaderType

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

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

getHash

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