Package org.netxms.client.server
Class AgentFile
- java.lang.Object
-
- org.netxms.client.server.AgentFile
-
public class AgentFile extends Object
Represents information about file in server's file store
-
-
Field Summary
Fields Modifier and Type Field Description static intDIRECTORYstatic intFILEstatic intPLACEHOLDERstatic intSYMBOLYC_LINK
-
Constructor Summary
Constructors Constructor Description AgentFile(String name, int fileType, AgentFile parent, long nodeId)Constructor for AgentFileAgentFile(org.netxms.base.NXCPMessage msg, long baseId, AgentFile parent, long nodeId)Create server file object from NXCP message.AgentFile(AgentFile src)Copy constructor for agent file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChield(AgentFile chield)StringgetAccessRights()List<AgentFile>getChildren()StringgetExtension()AgentFileInfogetFileInfo()StringgetFilePath()StringgetFullName()StringgetGroup()DategetModifyicationTime()StringgetName()longgetNodeId()StringgetOwner()AgentFilegetParent()longgetSize()intgetType()booleanisDirectory()booleanisPlaceholder()voidremoveChield(AgentFile chield)voidsetAccessRights(String accessRights)voidsetChildren(List<AgentFile> children)voidsetFileInfo(AgentFileInfo info)voidsetGroup(String group)voidsetName(String name)voidsetOwner(String owner)voidsetParent(AgentFile parent)
-
-
-
Field Detail
-
FILE
public static final int FILE
- See Also:
- Constant Field Values
-
DIRECTORY
public static final int DIRECTORY
- See Also:
- Constant Field Values
-
SYMBOLYC_LINK
public static final int SYMBOLYC_LINK
- See Also:
- Constant Field Values
-
PLACEHOLDER
public static final int PLACEHOLDER
- See Also:
- Constant Field Values
-
-
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 messagebaseId- base variable IDparent- parent file for this filenodeId- source node of file
-
AgentFile
public AgentFile(String name, int fileType, AgentFile parent, long nodeId)
Constructor for AgentFile- Parameters:
name- file namefileType- file typeparent- parent file for this filenodeId- 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
-
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
-
-