it.sistematica.isharedoc.sharecloud.model.internal
Class InternalDocumentVersion

java.lang.Object
  extended by it.sistematica.isharedoc.sharecloud.model.CloudAbstractFile
      extended by it.sistematica.isharedoc.sharecloud.model.internal.InternalFile
          extended by it.sistematica.isharedoc.sharecloud.model.internal.InternalDocument
              extended by it.sistematica.isharedoc.sharecloud.model.internal.InternalDocumentVersion
All Implemented Interfaces:
CloudDocument, CloudDocumentVersion, CloudFile

public class InternalDocumentVersion
extends InternalDocument
implements CloudDocumentVersion


Field Summary
protected  DocumentContent content
           
 
Fields inherited from class it.sistematica.isharedoc.sharecloud.model.internal.InternalDocument
document
 
Fields inherited from class it.sistematica.isharedoc.sharecloud.model.internal.InternalFile
object, original
 
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, ownerOrganization, parent, session, status
 
Fields inherited from interface it.sistematica.isharedoc.sharecloud.model.CloudFile
PATH_SEPARATOR, TRASH_DIRECTORY_NAME
 
Constructor Summary
protected InternalDocumentVersion(CloudSession session, DocumentContent documentContent)
           
 
Method Summary
 void addReplica(DocumentContentReplica replica)
           
 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()
           
 boolean isPwc()
           
 void setInternalContent(DocumentContent content)
           
 void setReplicas(java.util.List<DocumentContentReplica> replicas)
           
 
Methods inherited from class it.sistematica.isharedoc.sharecloud.model.internal.InternalDocument
getApplicationReaderType, getCAdES, getCheckedOutBy, getCheckoutExpire, getCurrent, getIconReplica, getIconSignature, getSignatureExpireDate, getSignatureStatus, getSignatureValidationDescription, getSignatureValidationStatus, getSignatureValidationTimestamp, getVersion, getVersion, getVersions, isSigned, isVersionable
 
Methods inherited from class it.sistematica.isharedoc.sharecloud.model.internal.InternalFile
addAcl, addSecondaryType, getAcl, getAttributesAsString, getAttributeValues, getChangedProperties, getColor, getConfidentialityLevel, getConfidentialityLevelId, getCreated, getCreatedBy, getDescription, getFileType, getId, getIdFullPath, getModified, getModifiedBy, getName, getNameFullPath, getNameFullPathWithAttributes, getNameFullPathWithNote, getNameWithAttributes, getNameWithNote, getNote, getNoteInShort, getObject, getObjectTemplate, getObjectTemplateId, getOrganization, getOrganizationId, getOriginal, getParent, getParentObject, getPath, getProperties, getProperty, getPropertyValue, getPropertyValueString, getRepositoryPath, getSecondaryTypes, getStatus, getType, isContainer, isDeleted, isDocument, isDrive, isHidden, isItemLink, isLink, isRemote, isSpecial, isTopic, isTrash, isTrashed, removeAcl, removeSecondaryType, setAcl, setChangedProperties, setConfidentialityLevelId, setCreated, setCreatedBy, setDeleted, setDescription, setHidden, setId, setModified, setModifiedBy, setName, setNote, setObjectTemplateId, setOrganizationId, setParent, setPropertyValue, setStatus, trace, valueOf
 
Methods inherited from class it.sistematica.isharedoc.sharecloud.model.CloudAbstractFile
getIconClass, getIconDescription, getIconMedium, getIconTitle, getIconTree, getInternalFile, getRemotePath, getSession, getTrashPath, getURL, isFolder, isInternal, isReplica, 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
getApplicationReaderType, getName, getType, getVersion, isInternal
 
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
 

Field Detail

content

protected DocumentContent content
Constructor Detail

InternalDocumentVersion

protected InternalDocumentVersion(CloudSession session,
                                  DocumentContent documentContent)
Method Detail

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

getStream

public CloudStream getStream()
Specified by:
getStream 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

getInternalContent

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

setInternalContent

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

getHash

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