Interface ApplicationService<P extends Application>

Type Parameters:
P - The projection domain type
All Known Implementing Classes:
DefaultApplicationService

public interface ApplicationService<P extends Application>
Perform CRUD operations using the Application projection domain.
  • Method Details

    • findById

      Optional<P> findById(String id)
    • findByIdIn

      List<P> findByIdIn(Collection<String> ids)
    • create

      P create(P payload)
    • delete

      void delete(String id)
    • replace

      P replace(String id, P payload)
    • save

      P save(P payload)
    • readByIdentifier

      Optional<P> readByIdentifier(String identifierType, String identifierValue)
    • findApplicationsForCustomerContext

      List<P> findApplicationsForCustomerContext(String customerContextId)
      Returns the application, or applications for a particular customer context. If no applications exist for the customer context, the list returned will be empty.

      Note that the primary usage for this call is assigning newly created customers to the correct authorization server viaAuthorizedClient. In the case that this returns a list with multiple Applications, these applications should all share the same authorization server, so it is safe to simply use the value at index 0.

      Parameters:
      customerContextId - The customer context ID.
      Returns:
      A list of Applications or an empty list if no applications are found for this customer context.
      See Also:
    • findApplicationsForTenant

      List<P> findApplicationsForTenant(String tenantId)
      Returns the application or applications for a particular tenant. If no applications exist for the supplied tenant id, the list returned will be empty.
      Parameters:
      tenantId - The tenant ID
      Returns:
      A list of applications for the supplied tenant ID.