Class AdminInterfaceUtils

  • All Implemented Interfaces:
    ServiceListener

    public class AdminInterfaceUtils
    extends Object
    implements ServiceListener
    AdminInterfaceUtils provides a set common utility methods to administration console and command line tool.
    • Constructor Detail

      • AdminInterfaceUtils

        public AdminInterfaceUtils()
    • Method Detail

      • inOrganizationalUnit

        public static boolean inOrganizationalUnit​(Debug debug,
                                                   AMStoreConnection storeConn,
                                                   AMObject obj)
        Returns true if an object is a descendent of an organizational unit.
        Parameters:
        debug - instance
        storeConn - Store Connection object.
        obj - AMObject to be inspected.
        Returns:
        true if obj is a descendent of an organizational unit.
      • getNamingAttribute

        public static String getNamingAttribute​(int object,
                                                Debug debug)
        Returns the naming attribute used the specified object. If this naming attribute cannot be determined for the object, empty string will be returned.
        Parameters:
        object - type of object.
        debug - instance for writing warning message.
        Returns:
        naming attribute for the object.
      • defaultPeopleContainerName

        public static String defaultPeopleContainerName()
        Returns the default people container name.
        Returns:
        default people container name
      • defaultGroupContainerName

        public static String defaultGroupContainerName()
        Returns the default group container name.
        Returns:
        default group container name
      • defaultAgentContainerName

        public static String defaultAgentContainerName()
        Returns the default agent container name.
        Returns:
        default agent container name
      • defaultPCCreateDuringOrgConfig

        public static String defaultPCCreateDuringOrgConfig()
        Returns the default people container name created when an organization is created in OpenAM. This may not be the one which the user sees as his/her default container through OpenAM console.
        Returns:
        Returns the default people container name created when an organization is created in OpenAM. This may not be the one which the user sees as his/her default container through OpenAM console.
      • defaultGCCreateDuringOrgConfig

        public static String defaultGCCreateDuringOrgConfig()
        Returns the default group container name created when an organization is created in OpenAM. This may not be the one which the user sees as his/her default container through the OpenAM console.
        Returns:
        Returns the default group container name created when an organization is created in OpenAM. This may not be the one which the user sees as his/her default container through the OpenAM console.
      • defaultOrgAdminRoleCreateDuringOrgConfig

        public static String defaultOrgAdminRoleCreateDuringOrgConfig()
        Returns the default org admin role name created when an organization is created in OpenAM.
        Returns:
        Returns the default org admin role name created when an organization is created in OpenAM.
      • defaultHelpDeskAdminRoleCreateDuringOrgConfig

        public static String defaultHelpDeskAdminRoleCreateDuringOrgConfig()
        Returns the default help desk admin role name created when an organization is created in OpenAM.
        Returns:
        Returns the default help desk admin role name created when an organization is created in OpenAM.
      • defaultPolicyAdminRoleCreateDuringOrgConfig

        public static String defaultPolicyAdminRoleCreateDuringOrgConfig()
        Returns the default policy admin role name created when an organization is created in OpenAM.
        Returns:
        Returns the default policy admin role name created when an organization is created in OpenAM.
      • schemaChanged

        public void schemaChanged​(String serviceName,
                                  String version)
        Description copied from interface: ServiceListener
        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)
        Description copied from interface: ServiceListener
        This method will be invoked when a service's global configuration data has been changed. The parameter groupName denote 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)
        Description copied from interface: ServiceListener
        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