Interface SubConfigModel

    • Method Detail

      • getAddConfigPropertyXML

        String getAddConfigPropertyXML​(String name)
                                throws AMConsoleException
        Returns property sheet XML for adding new sub configuration.
        Parameters:
        name - Name of Schema.
        Returns:
        property sheet XML for adding new sub configuration.
        Throws:
        AMConsoleException
      • getEditConfigPropertyXML

        String getEditConfigPropertyXML​(String viewbeanClassName)
                                 throws AMConsoleException
        Returns property sheet XML for editing sub configuration.
        Parameters:
        viewbeanClassName - Class name of view bean.
        Returns:
        property sheet XML for editing sub configuration.
        Throws:
        AMConsoleException
      • getCreateableSubSchemaNames

        Map getCreateableSubSchemaNames()
        Returns a map of sub schema name to its localized name. We should be able to create sub configuration with these names.
        Returns:
        Map of sub schema name to its localized name.
      • getAttributeNames

        Set getAttributeNames​(String schemaName)
        Returns a set of attribute names for a sub schema.
        Parameters:
        schemaName - Name of Schema.
        Returns:
        Set of attribute names for a sub schema.
      • createSubConfig

        void createSubConfig​(String name,
                             String schemaName,
                             Map values)
                      throws AMConsoleException
        Creates a new sub configuration.
        Parameters:
        name - Name of sub configuration.
        schemaName - Name of schema name.
        values - Map of attribute name to its values.
        Throws:
        AMConsoleException - if sub configuration cannot be created.
      • getSubConfigAttributeValues

        Map getSubConfigAttributeValues()
                                 throws AMConsoleException
        Returns attribute values.
        Returns:
        attribute values.
        Throws:
        AMConsoleException - if attribute values cannot be determined.
      • setSubConfigAttributeValues

        void setSubConfigAttributeValues​(Map values)
                                  throws AMConsoleException
        Set attribute values.
        Parameters:
        values - Attribute values.
        Throws:
        AMConsoleException - if attribute values cannot be set.
      • getServiceSchemaDefaultValues

        Map getServiceSchemaDefaultValues​(String name)
                                   throws AMConsoleException
        Returns default values of a schema.
        Parameters:
        name - Name of Schema.
        Returns:
        default values of a schema.
        Throws:
        AMConsoleException - if default values cannot be determined.
      • hasGlobalSubSchema

        boolean hasGlobalSubSchema()
        Returns true if this service has global sub schema.
        Returns:
        true if this service has global sub schema.
      • getSubConfigurations

        List getSubConfigurations()
        Returns list of sub configuration objects.
        Returns:
        list of sub configuration objects.
        See Also:
        SMSubConfig
      • deleteSubConfigurations

        void deleteSubConfigurations​(Set names)
                              throws AMConsoleException
        Deletes sub configurations.
        Parameters:
        names - Names of sub configuration which are to be deleted.
        Throws:
        AMConsoleException - if sub configuration cannot be deleted.
      • getSelectableSubConfigNamesPlugin

        String getSelectableSubConfigNamesPlugin​(String subSchemaName)
        Returns plugin name for returning possible sub configuration names.
        Parameters:
        subSchemaName - Name of sub schema.
        Returns:
        plugin name for returning possible sub configuration names.
      • getSelectableConfigNames

        Set getSelectableConfigNames​(String subSchemaName)
        Returns a set of possible names of sub configuration.
        Parameters:
        subSchemaName - Name of sub schema
        Returns:
        a set of possible names of sub configuration.
      • getDisplayName

        String getDisplayName()
        Get the display name for the sub configuration represented by this model.
        Returns:
        the sub configuration's display name.
      • getName

        String getName()
        Get the name for the sub configuration represented by this model.
        Returns:
        the sub configuration's name.