Class AgentFile


  • public class AgentFile
    extends Object
    Represents information about file in server's file store
    • Constructor Detail

      • AgentFile

        public AgentFile​(org.netxms.base.NXCPMessage msg,
                         long baseId,
                         AgentFile parent,
                         long nodeId)
        Create server file object from NXCP message.
        Parameters:
        msg - NXCP message
        baseId - base variable ID
        parent - parent file for this file
        nodeId - source node of file
      • AgentFile

        public AgentFile​(String name,
                         int fileType,
                         AgentFile parent,
                         long nodeId)
        Constructor for AgentFile
        Parameters:
        name - file name
        fileType - file type
        parent - parent file for this file
        nodeId - source node of file
      • AgentFile

        public AgentFile​(AgentFile src)
        Copy constructor for agent file
        Parameters:
        src - AgentFile to copy
    • Method Detail

      • isDirectory

        public boolean isDirectory()
      • isPlaceholder

        public boolean isPlaceholder()
      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getSize

        public long getSize()
        Returns:
        the size
      • getModifyicationTime

        public Date getModifyicationTime()
        Returns:
        the modifyicationTime
      • getExtension

        public String getExtension()
        Returns:
        the type
      • getChildren

        public List<AgentFile> getChildren()
        Returns:
        the children
      • setChildren

        public void setChildren​(List<AgentFile> children)
        Parameters:
        children - the children to set
      • removeChield

        public void removeChield​(AgentFile chield)
        Parameters:
        chield - to be removed
      • addChield

        public void addChield​(AgentFile chield)
        Parameters:
        chield - to be added
      • getFullName

        public String getFullName()
        Returns:
        the fullName
      • getFilePath

        public String getFilePath()
        Returns:
        the fullName
      • getParent

        public AgentFile getParent()
        Returns:
        the parent
      • setParent

        public void setParent​(AgentFile parent)
        Parameters:
        parent - the parent to set
      • getNodeId

        public long getNodeId()
        Returns:
        the nodeId
      • getType

        public int getType()
        Returns:
        the type
      • getOwner

        public String getOwner()
        Returns:
        the owner
      • setOwner

        public void setOwner​(String owner)
        Parameters:
        owner - the owner to set
      • getGroup

        public String getGroup()
        Returns:
        the group
      • setGroup

        public void setGroup​(String group)
        Parameters:
        group - the group to set
      • getAccessRights

        public String getAccessRights()
        Returns:
        the accessRights
      • setAccessRights

        public void setAccessRights​(String accessRights)
        Parameters:
        accessRights - the accessRights to set
      • setFileInfo

        public void setFileInfo​(AgentFileInfo info)
        Parameters:
        info - Set agent file info
      • getFileInfo

        public AgentFileInfo getFileInfo()
        Returns:
        Agent File Info