Package org.netxms.client.objecttools
Class ObjectToolDetails
java.lang.Object
org.netxms.client.objecttools.ObjectTool
org.netxms.client.objecttools.ObjectToolDetails
- All Implemented Interfaces:
ObjectAction
Detailed information about object tool
-
Field Summary
Fields inherited from class org.netxms.client.objecttools.ObjectTool
ASK_CONFIRMATION, commandName, commandShortName, confirmationText, data, description, DISABLED, displayName, filter, flags, GENERATES_OUTPUT, id, imageData, inputFields, name, remotePort, RUN_IN_CONTAINER_CONTEXT, SETUP_TCP_TUNNEL, SHOW_IN_COMMANDS, SNMP_INDEXED_BY_VALUE, SUPPRESS_SUCCESS_MESSAGE, type, TYPE_ACTION, TYPE_AGENT_LIST, TYPE_AGENT_TABLE, TYPE_FILE_DOWNLOAD, TYPE_INTERNAL, TYPE_LOCAL_COMMAND, TYPE_SERVER_COMMAND, TYPE_SERVER_SCRIPT, TYPE_SNMP_TABLE, TYPE_SSH_COMMAND, TYPE_URL -
Constructor Summary
ConstructorsConstructorDescriptionObjectToolDetails(long toolId, int type, String name) Create new tool objectCreate object tool from NXCP message containing detailed tool information. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd or replace input field definition.voidfillMessage(NXCPMessage msg) Fill NXCP message with tool's data.booleanvoidsetAccessList(List<Integer> accessList) voidsetColumns(List<ObjectToolTableColumn> columns) voidsetCommandName(String commandName) Set command name (to be displayed in command list).voidsetCommandShortName(String commandShortName) Set short command name (to be displayed in command list when UI requires short name, usually on toolbars and buttons).voidsetConfirmationText(String confirmationText) voidvoidsetDescription(String description) voidUpdate menu filter informationvoidsetFilterFlags(int flags) Update menu filter flagsvoidsetFlags(int flags) voidsetId(long id) Set tool ID.voidsetImageData(byte[] imageData) Set image data (for displaying tool icon).voidsetInputFields(Collection<InputField> fields) Set input field definitionsvoidSet tool name.voidsetRemotePort(int remotePort) Set remote TCP port number for TCP tunnel.voidsetType(int type) Methods inherited from class org.netxms.client.objecttools.ObjectTool
createDisplayName, getCommandDisplayName, getCommandName, getCommandShortDisplayName, getCommandShortName, getConfirmationText, getData, getDescription, getDisplayName, getFlags, getId, getImageData, getInputField, getInputFields, getMenuFilter, getName, getRemotePort, getSnmpOid, getToolNodeOS, getToolTemplate, getToolType, getToolWorkstationOS, isApplicableForObject, isContainerObject, isEnabled, isRunInContainerContext, isVisibleInCommands, setMenuFilter, validateInputFields
-
Constructor Details
-
ObjectToolDetails
Create new tool object- Parameters:
toolId- tool idtype- tool typename- tool name
-
ObjectToolDetails
Create object tool from NXCP message containing detailed tool information. Intended to be called only by NXCSession methods.- Parameters:
msg- NXCP message
-
-
Method Details
-
fillMessage
Fill NXCP message with tool's data.- Parameters:
msg- NXCP message
-
getAccessList
- Returns:
- the accessList
-
getColumns
- Returns:
- the columns
-
addInputField
Add or replace input field definition.- Parameters:
f- new input field
-
setInputFields
Set input field definitions- Parameters:
fields- new set of input fields
-
setId
public void setId(long id) Set tool ID.- Parameters:
id- new tool ID
-
setName
Set tool name.- Parameters:
name- new name
-
setType
public void setType(int type) - Parameters:
type- the type to set
-
setFlags
public void setFlags(int flags) - Parameters:
flags- the flags to set
-
setDescription
- Parameters:
description- the description to set
-
setData
- Parameters:
data- the data to set
-
setConfirmationText
- Parameters:
confirmationText- the confirmationText to set
-
setRemotePort
public void setRemotePort(int remotePort) Set remote TCP port number for TCP tunnel.- Parameters:
remotePort- remote TCP port number
-
isModified
public boolean isModified()- Returns:
- the modified
-
setAccessList
- Parameters:
accessList- the accessList to set
-
setColumns
- Parameters:
columns- the columns to set
-
setCommandName
Set command name (to be displayed in command list).- Parameters:
commandName- new command name for this tool
-
setCommandShortName
Set short command name (to be displayed in command list when UI requires short name, usually on toolbars and buttons).- Parameters:
commandShortName- new short command name for this tool
-
setImageData
public void setImageData(byte[] imageData) Set image data (for displaying tool icon).- Parameters:
imageData- new image data
-
setFilter
Update menu filter information- Parameters:
filterText- menu filter textfilterType- menu filter type
-
setFilterFlags
public void setFilterFlags(int flags) Update menu filter flags- Parameters:
flags- new value for menu filter flag- See Also:
-