Class AgentPropertyXMLBuilder

    • Constructor Detail

      • AgentPropertyXMLBuilder

        public AgentPropertyXMLBuilder​(String agentType,
                                       boolean bGroup,
                                       boolean olderAgentType,
                                       String tab,
                                       AMModel model)
                                throws SMSException,
                                       SSOException
        Constructor
        Parameters:
        agentType - Type of agent
        bGroup - true if this is for agent group.
        olderAgentType - true if agent is older ones like 2.2 agent
        tab - Tab name.
        model - Model for getting localized string and user locale.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
    • Method Detail

      • getXML

        public String getXML​(Set readonly,
                             String choice)
                      throws SMSException,
                             SSOException,
                             AMConsoleException
        Returns a XML for displaying attribute in property sheet.
        Parameters:
        readonly - Set of readonly attribute names.
        choice - Choice of type of configuration.
        Returns:
        XML for displaying attribute in property sheet.
        Throws:
        SMSException - if attribute schema cannot obtained.
        SSOException - if single sign on token is invalid.
        AMConsoleException - if there are no attribute to display.
      • getAttributeSchemas

        public Set getAttributeSchemas()
        Returns a set of attribute schemas for generating the XML.
        Overrides:
        getAttributeSchemas in class PropertyXMLBuilderBase
        Returns:
        a set of attribute schemas for generating the XML.