it.sistematica.isharedoc.sharecloud.model.cmis
Class CmisFile
java.lang.Object
it.sistematica.isharedoc.sharecloud.model.CloudAbstractFile
it.sistematica.isharedoc.sharecloud.model.cmis.CmisFile
- All Implemented Interfaces:
- CloudFile
- Direct Known Subclasses:
- CmisDocument, CmisFolder, DropboxFile, EvernoteFile, GoogleDriveFile
public class CmisFile
- extends CloudAbstractFile
- implements CloudFile
|
Field Summary |
protected org.apache.chemistry.opencmis.client.api.FileableCmisObject |
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 |
| 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, isDocument, 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.CloudFile |
getAttributesAsString, getAttributeValues, getChangedProperties, getColor, getConfidentialityLevel, getFileType, getIconClass, getIconDescription, getIconMedium, getIconTitle, getIconTree, getInternalFile, getNameFullPath, getNameFullPathWithNote, getNameWithAttributes, getNameWithNote, getObjectTemplate, getRemotePath, getSession, getTrashPath, getURL, isDocument, isDrive, isFolder, isInternal, isReplica, setChangedProperties, setInternalFile, traceChanges |
object
protected org.apache.chemistry.opencmis.client.api.FileableCmisObject object
CmisFile
public CmisFile()
CmisFile
public CmisFile(java.lang.String id)
CmisFile
public CmisFile(CloudSession session,
org.apache.chemistry.opencmis.client.api.FileableCmisObject file)
getObject
public java.lang.Object getObject()
- Specified by:
getObject in interface CloudFile
getId
public java.lang.String getId()
- Specified by:
getId in interface CloudFile- Overrides:
getId in class CloudAbstractFile
setId
public void setId(java.lang.String id)
- Specified by:
setId in interface CloudFile- Overrides:
setId in class CloudAbstractFile
getType
public java.lang.String getType()
- Specified by:
getType in interface CloudFile- Overrides:
getType in class CloudAbstractFile
- Returns:
- LINK for link
DOC for document
FOLDER for folder
isTopic
public java.lang.Boolean isTopic()
- Specified by:
isTopic in interface CloudFile- Overrides:
isTopic in class CloudAbstractFile
isSpecial
public java.lang.Boolean isSpecial()
- Specified by:
isSpecial in interface CloudFile- Overrides:
isSpecial in class CloudAbstractFile
isItemLink
public java.lang.Boolean isItemLink()
- Specified by:
isItemLink in interface CloudFile- Overrides:
isItemLink in class CloudAbstractFile
isRemote
public java.lang.Boolean isRemote()
- Specified by:
isRemote in interface CloudFile- Overrides:
isRemote in class CloudAbstractFile
getCreated
public java.util.Date getCreated()
- Specified by:
getCreated in interface CloudFile- Overrides:
getCreated in class CloudAbstractFile
setCreated
public void setCreated(java.util.Date created)
- Specified by:
setCreated in interface CloudFile- Overrides:
setCreated in class CloudAbstractFile
getCreatedBy
public java.lang.String getCreatedBy()
- Specified by:
getCreatedBy in interface CloudFile- Overrides:
getCreatedBy in class CloudAbstractFile
setCreatedBy
public void setCreatedBy(java.lang.String createdBy)
- Specified by:
setCreatedBy in interface CloudFile- Overrides:
setCreatedBy in class CloudAbstractFile
getModified
public java.util.Date getModified()
- Specified by:
getModified in interface CloudFile- Overrides:
getModified in class CloudAbstractFile
setModified
public void setModified(java.util.Date modified)
- Specified by:
setModified in interface CloudFile- Overrides:
setModified in class CloudAbstractFile
getModifiedBy
public java.lang.String getModifiedBy()
- Specified by:
getModifiedBy in interface CloudFile- Overrides:
getModifiedBy in class CloudAbstractFile
setModifiedBy
public void setModifiedBy(java.lang.String modifiedBy)
- Specified by:
setModifiedBy in interface CloudFile- Overrides:
setModifiedBy in class CloudAbstractFile
getPath
public java.lang.String getPath()
- Specified by:
getPath in interface CloudFile
getRepositoryPath
public java.lang.String getRepositoryPath()
- Specified by:
getRepositoryPath in interface CloudFile
getName
public java.lang.String getName()
- Specified by:
getName in interface CloudFile- Overrides:
getName in class CloudAbstractFile
setName
public void setName(java.lang.String name)
- Specified by:
setName in interface CloudFile- Overrides:
setName in class CloudAbstractFile
getNote
public java.lang.String getNote()
- Specified by:
getNote in interface CloudFile- Overrides:
getNote in class CloudAbstractFile
setNote
public void setNote(java.lang.String note)
- Specified by:
setNote in interface CloudFile- Overrides:
setNote in class CloudAbstractFile
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription in interface CloudFile- Overrides:
getDescription in class CloudAbstractFile
setDescription
public void setDescription(java.lang.String description)
- Specified by:
setDescription in interface CloudFile- Overrides:
setDescription in class CloudAbstractFile
getParentObject
public CloudFolder getParentObject()
- Specified by:
getParentObject in interface CloudFile- Overrides:
getParentObject in class CloudAbstractFile
getParent
public java.lang.String getParent()
- Specified by:
getParent in interface CloudFile- Overrides:
getParent in class CloudAbstractFile
setParent
public void setParent(java.lang.String parent)
- Specified by:
setParent in interface CloudFile- Overrides:
setParent in class CloudAbstractFile
getStatus
public java.lang.String getStatus()
- Specified by:
getStatus in interface CloudFile- Overrides:
getStatus in class CloudAbstractFile
setStatus
public void setStatus(java.lang.String status)
- Specified by:
setStatus in interface CloudFile- Overrides:
setStatus in class CloudAbstractFile
isHidden
public java.lang.Boolean isHidden()
- Specified by:
isHidden in interface CloudFile- Overrides:
isHidden in class CloudAbstractFile
setHidden
public void setHidden(java.lang.Boolean hidden)
- Specified by:
setHidden in interface CloudFile- Overrides:
setHidden in class CloudAbstractFile
isDeleted
public java.lang.Boolean isDeleted()
- Specified by:
isDeleted in interface CloudFile- Overrides:
isDeleted in class CloudAbstractFile
setDeleted
public void setDeleted(java.lang.Boolean deleted)
- Specified by:
setDeleted in interface CloudFile- Overrides:
setDeleted in class CloudAbstractFile
isTrash
public java.lang.Boolean isTrash()
- Specified by:
isTrash in interface CloudFile- Overrides:
isTrash in class CloudAbstractFile
isTrashed
public java.lang.Boolean isTrashed()
- Specified by:
isTrashed in interface CloudFile- Overrides:
isTrashed in class CloudAbstractFile
getObjectTemplateId
public java.lang.String getObjectTemplateId()
- Specified by:
getObjectTemplateId in interface CloudFile- Overrides:
getObjectTemplateId in class CloudAbstractFile
setObjectTemplateId
public void setObjectTemplateId(java.lang.String objectTemplate)
- Specified by:
setObjectTemplateId in interface CloudFile- Overrides:
setObjectTemplateId in class CloudAbstractFile
isLink
public java.lang.Boolean isLink()
- Specified by:
isLink in interface CloudFile- Overrides:
isLink in class CloudAbstractFile
isContainer
public java.lang.Boolean isContainer()
- Specified by:
isContainer in interface CloudFile- Overrides:
isContainer in class CloudAbstractFile
getOriginal
public CloudFile getOriginal()
- Specified by:
getOriginal in interface CloudFile- Overrides:
getOriginal in class CloudAbstractFile
getOrganizationId
public java.lang.String getOrganizationId()
- Specified by:
getOrganizationId in interface CloudFile- Overrides:
getOrganizationId in class CloudAbstractFile
setOrganizationId
public void setOrganizationId(java.lang.String ownerOrganization)
- Specified by:
setOrganizationId in interface CloudFile- Overrides:
setOrganizationId in class CloudAbstractFile
getConfidentialityLevelId
public java.lang.String getConfidentialityLevelId()
- Specified by:
getConfidentialityLevelId in interface CloudFile- Overrides:
getConfidentialityLevelId in class CloudAbstractFile
setConfidentialityLevelId
public void setConfidentialityLevelId(java.lang.String confidentialityLevel)
- Specified by:
setConfidentialityLevelId in interface CloudFile- Overrides:
setConfidentialityLevelId in class CloudAbstractFile
getNoteInShort
public java.lang.String getNoteInShort()
- Specified by:
getNoteInShort in interface CloudFile- Overrides:
getNoteInShort in class CloudAbstractFile
getOrganization
public Organization getOrganization()
- Specified by:
getOrganization in interface CloudFile- Overrides:
getOrganization in class CloudAbstractFile
addAcl
public void addAcl(java.util.List<CloudAce> aces,
org.apache.chemistry.opencmis.commons.enums.AclPropagation propagation)
- Specified by:
addAcl in interface CloudFile- Overrides:
addAcl in class CloudAbstractFile
removeAcl
public void removeAcl(java.util.List<CloudAce> aces,
org.apache.chemistry.opencmis.commons.enums.AclPropagation propagation)
- Specified by:
removeAcl in interface CloudFile- Overrides:
removeAcl in class CloudAbstractFile
setAcl
public void setAcl(java.util.List<CloudAce> aces)
- Specified by:
setAcl in interface CloudFile- Overrides:
setAcl in class CloudAbstractFile
getAcl
public CloudAcl getAcl()
- Specified by:
getAcl in interface CloudFile- Overrides:
getAcl in class CloudAbstractFile
trace
public void trace()
- Specified by:
trace in interface CloudFile- Overrides:
trace in class CloudAbstractFile
getIdFullPath
public java.lang.String getIdFullPath()
- Specified by:
getIdFullPath in interface CloudFile- Overrides:
getIdFullPath in class CloudAbstractFile
getNameFullPathWithAttributes
public java.lang.String getNameFullPathWithAttributes()
- Specified by:
getNameFullPathWithAttributes in interface CloudFile- Overrides:
getNameFullPathWithAttributes in class CloudAbstractFile
getSecondaryTypes
public java.util.Set<CloudType> getSecondaryTypes()
- Specified by:
getSecondaryTypes in interface CloudFile- Overrides:
getSecondaryTypes in class CloudAbstractFile
getProperty
public CloudProperty getProperty(java.lang.String id)
- Specified by:
getProperty in interface CloudFile- Overrides:
getProperty in class CloudAbstractFile
getProperties
public java.util.Set<CloudProperty> getProperties()
- Specified by:
getProperties in interface CloudFile- Overrides:
getProperties in class CloudAbstractFile
setPropertyValue
public void setPropertyValue(java.lang.String id,
java.lang.Object value)
- Specified by:
setPropertyValue in interface CloudFile- Overrides:
setPropertyValue in class CloudAbstractFile
getPropertyValue
public java.lang.Object getPropertyValue(java.lang.String id)
- Specified by:
getPropertyValue in interface CloudFile- Overrides:
getPropertyValue in class CloudAbstractFile
getPropertyValueString
public java.lang.String getPropertyValueString(java.lang.String id)
- Specified by:
getPropertyValueString in interface CloudFile- Overrides:
getPropertyValueString in class CloudAbstractFile
addSecondaryType
public void addSecondaryType(CloudType ct)
- Specified by:
addSecondaryType in interface CloudFile- Overrides:
addSecondaryType in class CloudAbstractFile
removeSecondaryType
public void removeSecondaryType(CloudType ct)
- Specified by:
removeSecondaryType in interface CloudFile- Overrides:
removeSecondaryType in class CloudAbstractFile