Interface ServiceAccountManager

All Known Implementing Classes:
ServiceAccountManagerImpl

public interface ServiceAccountManager
Manager to interact with Service Accounts
Since:
7.0.0
  • Method Details

    • createServiceAccount

      ServiceAccount createServiceAccount(ServiceAccount serviceAccount)
      Creates a new service account
      Parameters:
      serviceAccount - to create
      Returns:
      the newly created service account
      Since:
      7.0.0
    • getServiceAccount

      Optional<ServiceAccount> getServiceAccount(long id)
      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

      Optional<ServiceAccount> getServiceAccountByName(String name)
      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

      boolean updateServiceAccount(ServiceAccount serviceAccount)
      Updates a service account
      Parameters:
      serviceAccount - to modify
      Returns:
      the updated service account
      Since:
      7.0.0
    • findServiceAccounts

      Page<ServiceAccount> findServiceAccounts(ServiceAccountQuery query, PageRequest request)
      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