Class ObjectMenuFilter


  • public class ObjectMenuFilter
    extends Object
    Class created to store menu 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_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
    • Constructor Detail

      • ObjectMenuFilter

        public ObjectMenuFilter()
        Create empty filter
    • 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 text
        filterType - The filter type