Package org.silverpeas.core.cmis.model
Class CmisFile
- java.lang.Object
-
- org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
-
- org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl
-
- org.silverpeas.core.cmis.model.CmisObject
-
- org.silverpeas.core.cmis.model.CmisFile
-
- All Implemented Interfaces:
Serializable
,org.apache.chemistry.opencmis.commons.data.ExtensionsData
,org.apache.chemistry.opencmis.commons.data.MutableObjectData
,org.apache.chemistry.opencmis.commons.data.ObjectData
,Fileable
- Direct Known Subclasses:
CmisFolder
,DocumentFile
public abstract class CmisFile extends CmisObject implements Fileable
A CMIS File is a CMIS object that is file-able in the CMIS objects tree. This is an abstract class that provides a default implementation of theFileable
interface.- Author:
- mmoquillon
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<org.apache.chemistry.opencmis.commons.enums.Action>
completeWithFileActions(Set<org.apache.chemistry.opencmis.commons.enums.Action> actions)
String
getParentId()
Gets the unique identifier of the folder into which this object is filed.String
getPath()
Gets the path of this object from the root folder in the CMIS objects tree.boolean
isFileable()
Is this CMIS object file-able into the CMIS objects tree?boolean
isFolding()
Is this file has folding capabilities?CmisFile
setParentId(String parentId)
Sets a unique identifier of the parent to this file is any.-
Methods inherited from class org.silverpeas.core.cmis.model.CmisObject
addACEs, getAcl, getAllowableActions, getAllowableActionsSupplier, getBaseTypeId, getCreationDate, getCreator, getDescription, getId, getLabel, getLanguage, getLastModificationDate, getLastModifier, getName, getSymbol, getTypeId, isDocument, setAcesSupplier, setAcl, setAllowableActions, setCreationDate, setCreator, setDescription, setIsExactAcl, setLastModificationDate, setLastModifier, theCommonActions
-
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.ObjectDataImpl
getChangeEventInfo, getPolicyIds, getProperties, getRelationships, getRenditions, isExactAcl, setAllowableActions, setChangeEventInfo, setPolicyIds, setProperties, setRelationships, setRenditions, toString
-
Methods inherited from class org.apache.chemistry.opencmis.commons.impl.dataobjects.AbstractExtensionData
getExtensions, setExtensions
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.chemistry.opencmis.commons.data.ExtensionsData
getExtensions, setExtensions
-
Methods inherited from interface org.silverpeas.core.cmis.model.Fileable
isOrphaned
-
-
-
-
Method Detail
-
getParentId
public String getParentId()
Description copied from interface:Fileable
Gets the unique identifier of the folder into which this object is filed.- Specified by:
getParentId
in interfaceFileable
- Returns:
- the unique identifier of the parent of this fileable instance or null if it is a root folder. Cannot be null or empty for any non-folder objects.
-
getPath
public String getPath()
Description copied from interface:Fileable
Gets the path of this object from the root folder in the CMIS objects tree.
-
setParentId
public CmisFile setParentId(String parentId)
Sets a unique identifier of the parent to this file is any. If null, then this file is orphaned, that is to say it is not filed in the CMIS objects tree. A file has always as parent a CMIS folder.- Parameters:
parentId
- the unique identifier of a folder.- Returns:
- itself.
-
isFolding
public boolean isFolding()
Is this file has folding capabilities? A file has such capabilities when it can wrap others file-able objects.- Returns:
- by default false.
-
isFileable
public final boolean isFileable()
Description copied from class:CmisObject
Is this CMIS object file-able into the CMIS objects tree?- Specified by:
isFileable
in classCmisObject
- Returns:
- true if the object can be put in the CMIS objects tree as a node or a leaf of that tree. False otherwise
-
-