Class SCModelBase

  • All Implemented Interfaces:
    AMAdminConstants, AMModel, SCModel
    Direct Known Subclasses:
    SCPolicyModelImpl

    public abstract class SCModelBase
    extends AMModelBase
    implements SCModel
    This class contains the common service management related calls used for global service configuration. Views that need service processing can implement this class and get many needed routines for free. The extending class needs to implement getServiceName() and return the appropriate service name.
    • Constructor Detail

      • SCModelBase

        public SCModelBase​(jakarta.servlet.http.HttpServletRequest req,
                           Map map)
        Creates a service data model implementation object
        Parameters:
        req - The HttpServletRequest object.
        map - of user information.
    • Method Detail

      • getAttributeNames

        protected Set getAttributeNames​(SchemaType type)
                                 throws AMConsoleException
        Returns a set of attribute names that are defined for the given SchemaType. All attribute names are returned. There is no schema, display, or i18nkey checks performed here.
        Throws:
        AMConsoleException
      • setValues

        public void setValues​(Map modifiedValues)
                       throws AMConsoleException
        Sets the values for the attributes that are configurable for the service. The policy service contains only global and organization attributes. To store the attributes, we first remove the global attributes and put them into another Map. This map is then stored in the service config. The values remaining in the original map are the organization attributes, which can then be stored in the service config.
        Specified by:
        setValues in interface SCModel
        Parameters:
        modifiedValues - that will be set in the service configuration data.
        Throws:
        AMConsoleException - on any error condition.
      • getServiceName

        public abstract String getServiceName()