Class DefaultUserOperationService
- java.lang.Object
-
- com.broadleafcommerce.auth.resource.service.DefaultUserOperationService
-
- All Implemented Interfaces:
UserOperationService
public class DefaultUserOperationService extends Object implements UserOperationService
- Author:
- Nick Crum (ncrum)
-
-
Constructor Summary
Constructors Constructor Description DefaultUserOperationService(PermissionRepository permissionRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UserOperation>findAllByScopeIn(Collection<String> scopes)Finds all user operations tied to the provided set of scopes.protected PermissionRepositorygetPermissionRepository()UserOperationInformationgetUserOperationInformation(Collection<String> scopes)Finds theUserOperationInformationfor the current user and the given scopes.
-
-
-
Constructor Detail
-
DefaultUserOperationService
public DefaultUserOperationService(PermissionRepository permissionRepository)
-
-
Method Detail
-
getUserOperationInformation
public UserOperationInformation getUserOperationInformation(@NonNull Collection<String> scopes)
Description copied from interface:UserOperationServiceFinds theUserOperationInformationfor the current user and the given scopes.- Specified by:
getUserOperationInformationin interfaceUserOperationService- Parameters:
scopes- the set of scopes to retrieve operation info for- Returns:
- the operation information on the current user for the given scopes
-
findAllByScopeIn
public List<UserOperation> findAllByScopeIn(@NonNull Collection<String> scopes)
Description copied from interface:UserOperationServiceFinds all user operations tied to the provided set of scopes.- Specified by:
findAllByScopeInin interfaceUserOperationService- Parameters:
scopes- the set of scopes to retrieve operations for- Returns:
- all `UserOperation` matching at least one of the scopes
-
getPermissionRepository
protected PermissionRepository getPermissionRepository()
-
-