Class UserPermissionEndpoint
java.lang.Object
com.broadleafcommerce.auth.resource.web.endpoint.UserPermissionEndpoint
@FrameworkRestController
@FrameworkMapping("/permissions")
public class UserPermissionEndpoint
extends Object
Endpoint for CRUD operations on UserPermissions
- Author:
- Chris Getz
-
Constructor Summary
ConstructorDescriptionUserPermissionEndpoint
(UserPermissionService<UserPermission> userPermissionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected UserPermissionService<UserPermission>
org.springframework.data.domain.Page<UserPermission>
readAllPermissions
(String query, boolean accountPermission, boolean includeNonUserAssignablePermissions, org.springframework.data.domain.Pageable page) readByIds
(Collection<String> ids) readPermission
(String id) replacePermission
(String id, UserPermission req)
-
Constructor Details
-
UserPermissionEndpoint
-
-
Method Details
-
readAllPermissions
@FrameworkGetMapping @Policy(permissionRoots="PERMISSION", operationTypes=READ) public org.springframework.data.domain.Page<UserPermission> readAllPermissions(@RequestParam(value="q",required=false) String query, @RequestParam(value="accountPermission",required=false,defaultValue="false") boolean accountPermission, @RequestParam(value="includeNonUserAssignablePermissions",required=false,defaultValue="false") boolean includeNonUserAssignablePermissions, @PageableDefault(size=50) org.springframework.data.domain.Pageable page) -
readPermission
@FrameworkGetMapping("/{id}") @Policy(permissionRoots="PERMISSION", operationTypes=READ) public UserPermission readPermission(@PathVariable("id") String id) -
createPermission
@FrameworkPostMapping @Policy(permissionRoots="PERMISSION", operationTypes=CREATE) public UserPermission createPermission(@RequestBody UserPermission req) -
replacePermission
@FrameworkPutMapping("/{id}") @Policy(permissionRoots="PERMISSION", operationTypes=UPDATE) public UserPermission replacePermission(@PathVariable("id") String id, @RequestBody UserPermission req) -
deletePermission
@FrameworkDeleteMapping("/{id}") @Policy(permissionRoots="PERMISSION", operationTypes=DELETE) public void deletePermission(@PathVariable("id") String id) -
readByIds
@FrameworkGetMapping("/ids") @Policy(permissionRoots="PERMISSION", operationTypes=READ) public Set<UserPermission> readByIds(@RequestParam(name="ids") Collection<String> ids) -
getUserPermissionService
-