public class AgentFile extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTORY |
static int |
FILE |
static int |
PLACEHOLDER |
static int |
SYMBOLYC_LINK |
Constructor and Description |
---|
AgentFile(org.netxms.base.NXCPMessage msg,
long baseId,
AgentFile parent,
long nodeId)
Create server file object from NXCP message.
|
AgentFile(String name,
int fileType,
AgentFile parent,
long nodeId) |
Modifier and Type | Method and Description |
---|---|
void |
addChield(AgentFile chield) |
String |
getAccessRights() |
AgentFile[] |
getChildren() |
String |
getExtension() |
String |
getFullName() |
String |
getGroup() |
Date |
getModifyicationTime() |
String |
getName() |
long |
getNodeId() |
String |
getOwner() |
AgentFile |
getParent() |
long |
getSize() |
int |
getType() |
boolean |
isDirectory() |
boolean |
isPlaceholder() |
void |
removeChield(AgentFile chield) |
void |
setAccessRights(String accessRights) |
void |
setChildren(AgentFile[] children) |
void |
setGroup(String group) |
void |
setName(String name) |
void |
setOwner(String owner) |
void |
setParent(AgentFile parent) |
public static final int FILE
public static final int DIRECTORY
public static final int SYMBOLYC_LINK
public static final int PLACEHOLDER
public AgentFile(org.netxms.base.NXCPMessage msg, long baseId, AgentFile parent, long nodeId)
msg
- NXCP messagebaseId
- base variable IDpublic boolean isDirectory()
public boolean isPlaceholder()
public String getName()
public void setName(String name)
name
- the name to setpublic long getSize()
public Date getModifyicationTime()
public String getExtension()
public AgentFile[] getChildren()
public void setChildren(AgentFile[] children)
children
- the children to setpublic void removeChield(AgentFile chield)
chield
- to be removedpublic void addChield(AgentFile chield)
chield
- to be addedpublic String getFullName()
public AgentFile getParent()
public void setParent(AgentFile parent)
parent
- the parent to setpublic long getNodeId()
public int getType()
public String getOwner()
public void setOwner(String owner)
owner
- the owner to setpublic String getGroup()
public void setGroup(String group)
group
- the group to setpublic String getAccessRights()
public void setAccessRights(String accessRights)
accessRights
- the accessRights to setCopyright © 2015. All rights reserved.