P
- Generally AuthorizationServer
public interface AuthorizationServerService<P extends AuthorizationServer>
Modifier and Type | Method and Description |
---|---|
P |
create(P authorizationServer)
Create a new authorization server
|
void |
delete(P authorizationServer)
Delete an authorization server
|
void |
deleteById(String id)
Delete an authorization server
|
boolean |
existsById(String id)
Check if an authorization server exists by its ID
|
org.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 ID
|
Optional<P> |
findByName(String name)
Find an authorization server by its name
|
P |
replace(String id,
P authorizationServer)
Replace an authorization server
|
P |
save(P authorizationServer)
Save an authorization server
|
org.springframework.data.domain.Page<P> findAll(org.springframework.data.domain.Pageable pageable)
pageable
- the pageableorg.springframework.data.domain.Page<P> findAllByTenantId(String tenantId, org.springframework.data.domain.Pageable pageable)
tenantId
- the tenant IDpageable
- the pageableOptional<P> findById(String id)
id
- The authorization server IDboolean existsById(String id)
id
- The authorization server IDOptional<P> findByName(String name)
name
- The name of the authorization serviceP replace(String id, P authorizationServer)
id
- The id of the server to replaceauthorizationServer
- The replacementP create(P authorizationServer)
authorizationServer
- The authorization server to createvoid delete(P authorizationServer)
authorizationServer
- The authorization server to delete.void deleteById(String id)
id
- The id of the authorization server to delete.Copyright © 2021. All rights reserved.