P - The projection domain typepublic interface ApplicationService<P extends Application>
Application projection domain.| Modifier and Type | Method and Description |
|---|---|
P |
create(P payload) |
void |
delete(String id) |
List<P> |
findApplicationsForCustomerContext(String customerContextId)
Returns the application, or applications for a particular customer context.
|
List<P> |
findApplicationsForTenant(String tenantId)
Returns the application or applications for a particular tenant.
|
Optional<P> |
findById(String id) |
List<P> |
findByIdIn(Collection<String> ids) |
Optional<P> |
readByIdentifier(String identifierType,
String identifierValue) |
P |
replace(String id,
P payload) |
P |
save(P payload) |
List<P> findByIdIn(Collection<String> ids)
void delete(String id)
List<P> findApplicationsForCustomerContext(String customerContextId)
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.
customerContextId - The customer context ID.Applications or an empty list if no applications are
found for this customer context.AuthorizedClientService.findApplicationClient(String, String),
AuthorizedClient.getServerId()List<P> findApplicationsForTenant(String tenantId)
tenantId - The tenant IDCopyright © 2021. All rights reserved.