Class 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 the Fileable interface.
    Author:
    mmoquillon
    See Also:
    Serialized Form
    • 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 interface Fileable
        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.
        Specified by:
        getPath in interface Fileable
        Returns:
        a slash-separated path whose the first slash is 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 class CmisObject
        Returns:
        true if the object can be put in the CMIS objects tree as a node or a leaf of that tree. False otherwise
      • completeWithFileActions

        protected Set<org.apache.chemistry.opencmis.commons.enums.Action> completeWithFileActions​(Set<org.apache.chemistry.opencmis.commons.enums.Action> actions)