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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description P
create(P authorizationServer)
Create a new authorization servervoid
delete(P authorizationServer)
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.Optional<P>
findById(String id)
Find an authorization server by its IDOptional<P>
findByName(String name)
Find an authorization server by its nameOptional<P>
findByNameAndTenantId(String name, String tenantId)
Find an authorization server by its name and tenant idP
replace(String id, P authorizationServer)
Replace an authorization serverP
save(P authorizationServer)
Save an authorization server
-
-
-
Method Detail
-
findAll
org.springframework.data.domain.Page<P> findAll(org.springframework.data.domain.Pageable pageable)
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
Optional<P> findById(String id)
Find an authorization server by its ID- Parameters:
id
- The authorization server ID- Returns:
- An optional of authorization server
-
existsById
boolean existsById(String id)
Check if an authorization server exists by its ID- Parameters:
id
- The authorization server ID- Returns:
- whether or not the authorization server exists
-
findByName
Optional<P> findByName(String name)
Find an authorization server by its name- Parameters:
name
- The name of the authorization service- Returns:
- An optional of authorization server
-
findByNameAndTenantId
Optional<P> findByNameAndTenantId(String name, String tenantId)
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
P replace(String id, P authorizationServer)
Replace an authorization server- Parameters:
id
- The id of the server to replaceauthorizationServer
- The replacement- Returns:
- The replaced authorization server
-
create
P create(P authorizationServer)
Create a new authorization server- Parameters:
authorizationServer
- The authorization server to create- Returns:
- The created authorization server.
-
delete
void delete(P authorizationServer)
Delete an authorization server- Parameters:
authorizationServer
- The authorization server to delete.
-
deleteById
void deleteById(String id)
Delete an authorization server- Parameters:
id
- The id of the authorization server to delete.
-
-