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 PermissionRepository
getPermissionRepository()
UserOperationInformation
getUserOperationInformation(Collection<String> scopes)
Finds theUserOperationInformation
for 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:UserOperationService
Finds theUserOperationInformation
for the current user and the given scopes.- Specified by:
getUserOperationInformation
in 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:UserOperationService
Finds all user operations tied to the provided set of scopes.- Specified by:
findAllByScopeIn
in 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()
-
-