Interface AuthorizationServerService<P extends AuthorizationServer>
- Type Parameters:
P
- GenerallyAuthorizationServer
- All Known Implementing Classes:
DefaultAuthorizationServerService
public interface AuthorizationServerService<P extends AuthorizationServer>
Service interface for managing authorization servers.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new authorization servervoid
Delete an authorization servervoid
deleteById
(String id) Delete an authorization serverboolean
existsById
(String id) Check if an authorization server exists by its IDorg.springframework.data.domain.Page<P>
findAll
(org.springframework.data.domain.Pageable pageable) Find all authorization servers.org.springframework.data.domain.Page<P>
findAllByTenantId
(String tenantId, org.springframework.data.domain.Pageable pageable) Find all authorization servers for a tenant.Find an authorization server by its IDfindByName
(String name) Find an authorization server by its namefindByNameAndTenantId
(String name, String tenantId) Find an authorization server by its name and tenant idReplace an authorization serverSave an authorization server
-
Method Details
-
findAll
Find all authorization servers.- Parameters:
pageable
- the pageable- Returns:
- A page of authorization servers
-
findAllByTenantId
org.springframework.data.domain.Page<P> findAllByTenantId(String tenantId, org.springframework.data.domain.Pageable pageable) Find all authorization servers for a tenant.- Parameters:
tenantId
- the tenant IDpageable
- the pageable- Returns:
- a page of authorization servers for the tenant
-
findById
Find an authorization server by its ID- Parameters:
id
- The authorization server ID- Returns:
- An optional of authorization server
-
existsById
Check if an authorization server exists by its ID- Parameters:
id
- The authorization server ID- Returns:
- whether or not the authorization server exists
-
findByName
Find an authorization server by its name- Parameters:
name
- The name of the authorization service- Returns:
- An optional of authorization server
-
findByNameAndTenantId
Find an authorization server by its name and tenant id- Parameters:
name
- The name of the authorization servicetenantId
- the tenant id that thisAuthorizationServer
belongs to- Returns:
- An optional of authorization server
-
replace
Replace an authorization server- Parameters:
id
- The id of the server to replaceauthorizationServer
- The replacement- Returns:
- The replaced authorization server
-
create
Create a new authorization server- Parameters:
authorizationServer
- The authorization server to create- Returns:
- The created authorization server.
-
delete
Delete an authorization server- Parameters:
authorizationServer
- The authorization server to delete.
-
deleteById
Delete an authorization server- Parameters:
id
- The id of the authorization server to delete.
-
save
Save an authorization server- Parameters:
authorizationServer
- The authorization server to save- Returns:
- The saved authorization server
-