Interface UserOperationService

All Known Implementing Classes:
DefaultUserOperationService

public interface UserOperationService
Service API for UserOperation.
Author:
Nick Crum (ncrum)
  • Method Details

    • findAllByScopeIn

      @Deprecated List<UserOperation> findAllByScopeIn(@NonNull Collection<String> scopes)
      Finds all user operations tied to the provided set of scopes.
      Parameters:
      scopes - the set of scopes to retrieve operations for
      Returns:
      all `UserOperation` matching at least one of the scopes
    • getUserOperationInformation

      UserOperationInformation getUserOperationInformation(@NonNull Collection<String> scopes)
      Finds the UserOperationInformation for the current user and the given scopes.
      Parameters:
      scopes - the set of scopes to retrieve operation info for
      Returns:
      the operation information on the current user for the given scopes
    • getUserOperationInformation

      UserOperationInformation getUserOperationInformation(@NonNull Collection<String> scopes, String accountId)
      Finds the UserOperationInformation for the current user and the given scopes by mapping their roles via the current user's account information.
      Parameters:
      scopes - the set of scopes to retrieve operation info for
      accountId - the id to use to check if the current user has permissions for the account
      Returns:
      the operation information on the current user for the given scopes