Class ContentFileInfo


  • public class ContentFileInfo
    extends org.alfresco.jlan.server.filesys.FileInfo
    Content Disk Driver File Info Class

    Adds fields for the file/folder NodeRef, and linked NodeRef for a link node.

    Author:
    gkspencer
    • Field Summary

      • Fields inherited from class org.alfresco.jlan.server.filesys.FileInfo

        FlagDeleteOnClose, FlagPseudoFile, m_attr, m_name, m_path, m_shortName, m_size, SetAccessDate, SetAllocationSize, SetAttributes, SetChangeDate, SetCreationDate, SetDeleteOnClose, SetFileSize, SetGid, SetMode, SetModifyDate, SetUid
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object other)  
      NodeRef getLinkNodeRef()
      Return the link node, or null if this is not a link
      NodeRef getNodeRef()
      Return the file/folder node
      int hashCode()  
      boolean isLinkNode()
      Check if this is a link node
      void setLinkNodeRef​(NodeRef link)
      Set the link node
      void setNodeRef​(NodeRef node)
      Set the node for this file/folder
      • Methods inherited from class org.alfresco.jlan.server.filesys.FileInfo

        copyFrom, getAccessDateTime, getAllocationSize, getAllocationSizeInt, getChangeDateTime, getCreationDateTime, getDirectoryId, getDirectoryIdLong, getFileAttributes, getFileFlags, getFileId, getFileIdLong, getFileName, getGid, getMode, getModifyDateTime, getNetworkFile, getPath, getSetFileInformationFlags, getSetFileInformationFlagsString, getShortName, getSize, getSizeInt, getUid, hasAccessDateTime, hasAttribute, hasChangeDateTime, hasCreationDateTime, hasDeleteOnClose, hasFileAttributes, hasGid, hasMode, hasModifyDateTime, hasNetworkFile, hasSetFlag, hasShortName, hasUid, isArchived, isDirectory, isFileType, isHidden, isPseudoFile, isReadOnly, isSystem, isTemporary, resetInfo, setAccessDateTime, setAllocationSize, setChangeDateTime, setCreationDateTime, setDeleteOnClose, setDirectoryId, setFileAttributes, setFileId, setFileInformationFlags, setFileName, setFileSize, setFileType, setGid, setMode, setModifyDateTime, setNetworkFile, setPath, setPseudoFile, setShortName, setSize, setSize, setUid, toString
    • Constructor Detail

      • ContentFileInfo

        public ContentFileInfo​(NodeRef nodeRef)
    • Method Detail

      • getNodeRef

        public final NodeRef getNodeRef()
        Return the file/folder node
        Returns:
        NodeRef
      • isLinkNode

        public final boolean isLinkNode()
        Check if this is a link node
        Returns:
        boolean
      • getLinkNodeRef

        public final NodeRef getLinkNodeRef()
        Return the link node, or null if this is not a link
        Returns:
        NodeRef
      • setNodeRef

        public final void setNodeRef​(NodeRef node)
        Set the node for this file/folder
        Parameters:
        node - NodeRef
      • setLinkNodeRef

        public final void setLinkNodeRef​(NodeRef link)
        Set the link node
        Parameters:
        link - NodeRef
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object