Class FileInfoImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      org.alfresco.service.cmr.repository.ContentData getContentData()
      Get the content data.
      java.util.Date getCreatedDate()  
      org.alfresco.service.cmr.repository.NodeRef getLinkNodeRef()  
      java.util.Date getModifiedDate()  
      java.lang.String getName()  
      org.alfresco.service.cmr.repository.NodeRef getNodeRef()
      Get the underlying node value that needs to be permission checked.
      java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> getProperties()  
      org.alfresco.service.namespace.QName getType()  
      int hashCode()  
      boolean isFolder()  
      boolean isHidden()  
      boolean isLink()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        getNodeRef(), NodeRef.equals(Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        getNodeRef(), NodeRef.hashCode()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getNodeRef

        public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
        Description copied from interface: PermissionCheckValue
        Get the underlying node value that needs to be permission checked.
        Specified by:
        getNodeRef in interface FileInfo
        Specified by:
        getNodeRef in interface PermissionCheckValue
        Returns:
        Returns a reference to the low-level node representing this file
      • isFolder

        public boolean isFolder()
        Specified by:
        isFolder in interface FileInfo
        Returns:
        Return true if this instance represents a folder, false if this represents a file
      • isLink

        public boolean isLink()
        Specified by:
        isLink in interface FileInfo
        Returns:
        true if this instance represents a link to a node
      • isHidden

        public boolean isHidden()
        Specified by:
        isHidden in interface FileInfo
        Returns:
        true if this instance represents a hidden file
      • getLinkNodeRef

        public org.alfresco.service.cmr.repository.NodeRef getLinkNodeRef()
        Specified by:
        getLinkNodeRef in interface FileInfo
        Returns:
        Return the reference to the node that this node is linked to
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface FileInfo
        Returns:
        Returns the name of the file or folder within the parent folder
      • getCreatedDate

        public java.util.Date getCreatedDate()
        Specified by:
        getCreatedDate in interface FileInfo
        Returns:
        Returns the date the node was created
      • getModifiedDate

        public java.util.Date getModifiedDate()
        Specified by:
        getModifiedDate in interface FileInfo
        Returns:
        Returns the modified date
      • getContentData

        public org.alfresco.service.cmr.repository.ContentData getContentData()
        Description copied from interface: FileInfo
        Get the content data. This is only valid for files.
        Specified by:
        getContentData in interface FileInfo
        Returns:
        Returns the content data
      • getProperties

        public java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> getProperties()
        Specified by:
        getProperties in interface FileInfo
        Returns:
        Returns all the node properties
      • getType

        public org.alfresco.service.namespace.QName getType()
        Specified by:
        getType in interface FileInfo
        Returns:
        Returns (sub-)type of folder or file