Class FileInfoImpl

java.lang.Object
org.alfresco.repo.model.filefolder.FileInfoImpl
All Implemented Interfaces:
Serializable, PermissionCheckValue, FileInfo

public class FileInfoImpl extends Object implements FileInfo
Common file information implementation.
Author:
Derek Hulley
See Also:
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      See Also:
    • toString

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

      public 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 NodeRef getLinkNodeRef()
      Specified by:
      getLinkNodeRef in interface FileInfo
      Returns:
      Return the reference to the node that this node is linked to
    • getName

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

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

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

      public 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 Map<QName,Serializable> getProperties()
      Specified by:
      getProperties in interface FileInfo
      Returns:
      Returns all the node properties
    • getType

      public QName getType()
      Specified by:
      getType in interface FileInfo
      Returns:
      Returns (sub-)type of folder or file