Interface UserOperationService
- All Known Implementing Classes:
DefaultUserOperationService
public interface UserOperationService
Service API for
UserOperation.- Author:
- Nick Crum (ncrum)
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByScopeIn(Collection<String> scopes) Deprecated.getUserOperationInformation(Collection<String> scopes) Finds theUserOperationInformationfor the current user and the given scopes.getUserOperationInformation(Collection<String> scopes, String accountId) Finds theUserOperationInformationfor the current user and the given scopes by mapping their roles via the current user's account information.
-
Method Details
-
findAllByScopeIn
Deprecated.usegetUserOperationInformation(Collection)insteadFinds 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
Finds theUserOperationInformationfor 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 theUserOperationInformationfor 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 foraccountId- 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
-
getUserOperationInformation(Collection)instead