Interface ServiceAccountManager
- All Known Implementing Classes:
ServiceAccountManagerImpl
public interface ServiceAccountManager
Manager to interact with Service Accounts
- Since:
- 7.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanarchiveServiceAccount(long id) Archives a service accountcreateServiceAccount(ServiceAccount serviceAccount) Creates a new service accountfindServiceAccounts(ServiceAccountQuery query, PageRequest request) Finds service accounts based on the provided requestgetServiceAccount(long id) Fetches a service account by its IDFetches a service account by its namebooleanupdateServiceAccount(ServiceAccount serviceAccount) Updates a service account
-
Method Details
-
createServiceAccount
Creates a new service account- Parameters:
serviceAccount- to create- Returns:
- the newly created service account
- Since:
- 7.0.0
-
getServiceAccount
Fetches a service account by its ID- Parameters:
id- of the service account- Returns:
- the service account if exists, None otherwise
- Since:
- 7.0.0
-
getServiceAccountByName
Fetches a service account by its name- Parameters:
name- of the service account to fetch- Returns:
- the service account if exists, None otherwise
- Since:
- 7.0.0
-
updateServiceAccount
Updates a service account- Parameters:
serviceAccount- to modify- Returns:
- the updated service account
- Since:
- 7.0.0
-
findServiceAccounts
Finds service accounts based on the provided request- Parameters:
request- object to filter for service accounts.- Returns:
- The list of Service Accounts that match the request
- Since:
- 7.0.0
-
archiveServiceAccount
boolean archiveServiceAccount(long id) Archives a service account- Parameters:
id- of the service account to archive- Returns:
- true if the service account has been successfully archived
- Since:
- 7.0.0
-