Class AMServiceUtils


  • public class AMServiceUtils
    extends Object
    Deprecated.
    As of Sun Java System Access Manager 7.1.
    This class has some of the most commonly used Service Management functionality.
    • Constructor Detail

      • AMServiceUtils

        public AMServiceUtils()
        Deprecated.
    • Method Detail

      • getServiceAttributeNames

        protected static Set getServiceAttributeNames​(SSOToken token,
                                                      String serviceName,
                                                      SchemaType type)
                                               throws SMSException,
                                                      SSOException
        Deprecated.
        Get attribute names for the specified Service and Schema Type
        Parameters:
        token - SSOToken a valid SSOToken
        serviceName - the service name
        type - the SchemaType
        Returns:
        the Set of attribute names for that specified Service and Schema Type
        Throws:
        SMSException
        SSOException
      • getServiceAttributesWithQualifier

        protected static Set getServiceAttributesWithQualifier​(SSOToken token,
                                                               String serviceName)
                                                        throws SMSException,
                                                               SSOException
        Deprecated.
        Method to get the attribute names of a service with CosQualifier. For example: Return set could be:
        ["iplanet-am-web-agent-allow-list merge-schemes", "iplanet-am-web-agent-deny-list merge-schemes"]

        This method only populates these attributes only for Dynamic attributes.

        Throws:
        SMSException
        SSOException
      • serviceHasSubSchema

        public static boolean serviceHasSubSchema​(SSOToken token,
                                                  String serviceName,
                                                  SchemaType schemaType)
                                           throws SMSException,
                                                  SSOException
        Deprecated.
        Returns true if the service has the subSchema. False otherwise.
        Parameters:
        token - SSOToken a valid SSOToken
        serviceName - the service name
        schemaType - service schema type (Dynamic, Policy etc)
        Returns:
        true if the service has the subSchema.
        Throws:
        SMSException
        SSOException
      • getServiceConfig

        public static Map getServiceConfig​(SSOToken token,
                                           String serviceName,
                                           SchemaType type)
                                    throws SMSException,
                                           SSOException
        Deprecated.
        Get service default config from SMS
        Parameters:
        token - SSOToken a valid SSOToken
        serviceName - the service name
        type - service schema type (Dynamic, Policy etc)
        Returns:
        returns a Map of Default Configuration values for the specified service.
        Throws:
        SMSException
        SSOException
      • createOrgConfig

        protected static ServiceConfig createOrgConfig​(SSOToken token,
                                                       String orgDN,
                                                       String serviceName,
                                                       Map avPair)
                                                throws SSOException,
                                                       AMException
        Deprecated.
        Create Service Template for a AMro profile, could be used to set policy to a profile
        Parameters:
        token - SSOToken
        orgDN - DN of the org or org unit
        serviceName - Service Name
        avPair - attributes to be set
        Returns:
        String DN of the newly created template
        Throws:
        SSOException
        AMException