Class ResourceTypeConfigurationImpl

  • All Implemented Interfaces:
    ResourceTypeConfiguration

    public class ResourceTypeConfigurationImpl
    extends Object
    implements ResourceTypeConfiguration
    The implementation for ResourceTypeConfiguration that is responsible for the persistence of the resource type entitlement configuration.
    Since:
    13.0.0
    • Method Detail

      • containsUUID

        public boolean containsUUID​(Subject subject,
                                    String realm,
                                    String uuid)
                             throws EntitlementException
        Check to see if a resource type with the given UUID already exists in this realm.
        Specified by:
        containsUUID in interface ResourceTypeConfiguration
        Parameters:
        subject - The subject for whom the resource type should be retrieved.
        realm - The realm in which the resource type resides.
        uuid - The unique identifier for the resource type.
        Returns:
        True if the resource type already exists.
        Throws:
        EntitlementException
      • containsName

        public boolean containsName​(Subject subject,
                                    String realm,
                                    String name)
                             throws EntitlementException
        Check to see if a resource type with the given name already exists in this realm.
        Specified by:
        containsName in interface ResourceTypeConfiguration
        Parameters:
        subject - The subject for whom the resource type should be retrieved.
        realm - The realm in which the resource type resides.
        name - The name of the resource type.
        Returns:
        True if the resource type already exists.
        Throws:
        EntitlementException
      • getResourceTypesData

        public Map<String,​Map<String,​Set<String>>> getResourceTypesData​(Subject subject,
                                                                                    String realm)
                                                                             throws EntitlementException
        Description copied from interface: ResourceTypeConfiguration
        Retrieve the resource types stored under the specified realm from the data store.
        Specified by:
        getResourceTypesData in interface ResourceTypeConfiguration
        Parameters:
        subject - The subject with privilege to access the resource types in this realm.
        realm - The realm from which to retrieve the resource types.
        Returns:
        The registered resource types in a map. The outer map holds the resource type UUID as the key. The inner map (value of the outer map) holds the names of the attributes of the resource type as keys and a set of values for that attribute as the value.
        Throws:
        EntitlementException - If the retrieval of the resource type failed.