Class ServiceTypeManager


  • public class ServiceTypeManager
    extends Object
    The class ServiceTypeManager provides methods to determine the services that have policy privileges and and interfaces to instantiate ServiceType objects. This is a singleton class.
    • Constructor Detail

      • ServiceTypeManager

        public ServiceTypeManager​(SSOToken token)
                           throws SSOException
        Constructor to obtain an instance of ServiceTypeManager using single-sign-on token SSOToken. If the single-sign-on token is invalid or has expired an SSOException will be thrown.
        Parameters:
        token - single-sign-on token of the user
        Throws:
        SSOException - single-sign-on token has either expired or is invalid
    • Method Detail

      • getServiceTypeNames

        public Set getServiceTypeNames()
                                throws SSOException,
                                       NoPermissionException
        Returns a set of service names that have policy privileges.
        Returns:
        set of service type names that have policy privileges
        Throws:
        SSOException - single-sign-on token has either expired or is invalid
        NoPermissionException - user does not have privileges to access service names
      • getServiceType

        public ServiceType getServiceType​(String serviceTypeName)
                                   throws SSOException,
                                          NameNotFoundException
        Returns a ServiceType object for the given service name. If the service does not exist, the exception NameNotFoundException is thrown.
        Parameters:
        serviceTypeName - name of the service
        Returns:
        ServiceType object for the given service name
        Throws:
        SSOException - single-sign-on token has either expired or is invalid
        NameNotFoundException - service for the given serviceTypeName does not exist