Class AMCommonNameGenerator

    • Method Detail

      • getInstance

        public static AMCommonNameGenerator getInstance()
        Gets an instance of Common Name generator.
        Returns:
        an instance of Common Name generator.
      • generateCommonName

        public String generateCommonName​(String univId,
                                         AMModel model)
        Generates common name for an user. This name is generated by reading the common name format attribute from Globalization service. This format contains tokenized User Profile's attributes. E.g. {givenname} {initials} {sn}. This method replaces these tokens with attributes values from userInfoMap.
        Parameters:
        univId - Universal Id of user.
        model - of the view bean.
        Returns:
        common name for user.
      • getFormats

        public Map getFormats​(AMModel model)
        Returns a map of common name formats.
      • schemaChanged

        public void schemaChanged​(String serviceName,
                                  String version)
        This method will be invoked when a service's schema has been changed.
        Specified by:
        schemaChanged in interface ServiceListener
        Parameters:
        serviceName - name of the service
        version - version of the service
      • globalConfigChanged

        public void globalConfigChanged​(String serviceName,
                                        String version,
                                        String groupName,
                                        String serviceComponent,
                                        int type)
        This method will be invoked when a service's global configuration data has been changed. The parameter groupName denotes the name of the configuration grouping (e.g. default) and serviceComponent denotes the service's sub-component that changed (e.g. /NamedPolicy, /Templates).
        Specified by:
        globalConfigChanged in interface ServiceListener
        Parameters:
        serviceName - name of the service
        version - version of the service
        groupName - name of the configuration grouping
        serviceComponent - name of the service components that changed
        type - change type, i.e., ADDED, REMOVED or MODIFIED
      • organizationConfigChanged

        public void organizationConfigChanged​(String serviceName,
                                              String version,
                                              String orgName,
                                              String groupName,
                                              String serviceComponent,
                                              int type)
        This method will be invoked when a service's organization configuration data has been changed. The parameters orgName, groupName and serviceComponent denotes the organization name, configuration grouping name and service's sub-component that are changed respectively.
        Specified by:
        organizationConfigChanged in interface ServiceListener
        Parameters:
        serviceName - name of the service
        version - version of the service
        orgName - organization name as DN
        groupName - name of the configuration grouping
        serviceComponent - the name of the service components that changed
        type - change type, i.e., ADDED, REMOVED or MODIFIED