Package org.netxms.client
Class ObjectMenuFilter
- java.lang.Object
-
- org.netxms.client.ObjectMenuFilter
-
public class ObjectMenuFilter extends Object
Class created to store menu filter
-
-
Field Summary
Fields Modifier and Type Field Description intflagsstatic intREQUIRES_AGENTstatic intREQUIRES_CUSTOM_ATTRIBUTE_MATCHstatic intREQUIRES_NODE_OS_MATCHstatic intREQUIRES_OID_MATCHstatic intREQUIRES_SNMPstatic intREQUIRES_TEMPLATE_MATCHstatic intREQUIRES_WORKSTATION_OS_MATCHStringsnmpOidStringtoolCustomAttributesStringtoolNodeOSStringtoolTemplateStringtoolWorkstationOS
-
Constructor Summary
Constructors Constructor Description ObjectMenuFilter()Create empty filter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ObjectMenuFiltercreateFromXml(String xml)Create ObjectToolFilter object from XML documentStringcreateXml()Create XML from configuration.booleanisApplicableForNode(AbstractNode node)Check if tool is applicable for given node.voidsetFilter(String filterText, int filterType)Set filter
-
-
-
Field Detail
-
toolNodeOS
public String toolNodeOS
-
toolWorkstationOS
public String toolWorkstationOS
-
toolTemplate
public String toolTemplate
-
toolCustomAttributes
public String toolCustomAttributes
-
snmpOid
public String snmpOid
-
flags
public int flags
-
REQUIRES_SNMP
public static final int REQUIRES_SNMP
- See Also:
- Constant Field Values
-
REQUIRES_AGENT
public static final int REQUIRES_AGENT
- See Also:
- Constant Field Values
-
REQUIRES_OID_MATCH
public static final int REQUIRES_OID_MATCH
- See Also:
- Constant Field Values
-
REQUIRES_NODE_OS_MATCH
public static final int REQUIRES_NODE_OS_MATCH
- See Also:
- Constant Field Values
-
REQUIRES_TEMPLATE_MATCH
public static final int REQUIRES_TEMPLATE_MATCH
- See Also:
- Constant Field Values
-
REQUIRES_WORKSTATION_OS_MATCH
public static final int REQUIRES_WORKSTATION_OS_MATCH
- See Also:
- Constant Field Values
-
REQUIRES_CUSTOM_ATTRIBUTE_MATCH
public static final int REQUIRES_CUSTOM_ATTRIBUTE_MATCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
createFromXml
public static ObjectMenuFilter createFromXml(String xml) throws Exception
Create ObjectToolFilter object from XML document- Parameters:
xml- XML document- Returns:
- deserialized object
- Throws:
Exception- if the object cannot be fully deserialized
-
createXml
public String createXml()
Create XML from configuration.- Returns:
- XML document
-
isApplicableForNode
public boolean isApplicableForNode(AbstractNode node)
Check if tool is applicable for given node.- Parameters:
node- AbstractNode object- Returns:
- true if tool is applicable for given node
-
setFilter
public void setFilter(String filterText, int filterType)
Set filter- Parameters:
filterText- The filter textfilterType- The filter type
-
-