Class ClientDescriptorDaoHelper


  • public class ClientDescriptorDaoHelper
    extends Object
    Helper class for working with authentication clients within the DAO.
    Since:
    8.2.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getAuthenticator

        public static IAuthenticator<?> getAuthenticator​(IEntityContext ec,
                                                         UUID callbackUuid)
        Returns the authentictor for the given callback UUID.
        Parameters:
        ec - entity context for database transactions.
        callbackUuid - callback UUID of the authenticator.
        Returns:
        the authenticator with the given callback UUID or null if none was found.
      • getClient

        @Nullable
        public static IClientDescriptor getClient​(IEntityContext ec,
                                                  String clientName)
        Returns the client for the given client name.
        Parameters:
        ec - Current entity context for accessing the database.
        clientName - to get client descriptor for
        Returns:
        the client for the given client name if available or null if none was found
        Since:
        8.2.0
      • getClientDescriptorsByTenant

        public static List<IClientDescriptor> getClientDescriptorsByTenant​(IEntityContext ec,
                                                                           UUID tenantUuid)
        Returns a list of all clients that are available for tenant with the given UUID.
        Parameters:
        ec - Current entity context for accessing the database.
        tenantUuid - UUID of the tenant to get client descriptors for.
        Returns:
        a list of client descriptors for the tenant with the given UUID ordered first by whether the client descriptor is a client descriptor of the tenant or a system client descriptor and then by the name of the client descriptor.
        Since:
        8.4.0