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 Summary
Modifier and TypeMethodDescriptionvoid
findApplicationsForCustomerContext
(String customerContextId) Returns the application, or applications for a particular customer context.findApplicationsForTenant
(String tenantId) Returns the application or applications for a particular tenant.findByIdIn
(Collection<String> ids) readByIdentifier
(String identifierType, String identifierValue)
-
Method Details
-
findById
-
findByIdIn
-
create
-
delete
-
replace
-
save
-
readByIdentifier
-
findApplicationsForCustomerContext
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
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.
-