@At @Ok(">>:/permission/all") // @Authorization(requiresPermissions = "permission:update:*") public void edit(@Param("..") Permission permission) { permissionService.update(permission); }
@At @Ok("jsp:jsp.permission_view") // @Authorization(requiresPermissions = "permission:read:*") public Permission view(@Param("id") Long id) { return permissionService.view(id); }
@At @Ok(">>:/permission/all") // @Authorization(requiresPermissions = "permission:create:*") public void add(@Param("..") Permission permission) { permissionService.insert(permission); }
@At @Ok(">>:/permission/all") // @Authorization(requiresPermissions = "permission:delete:*") public void delete(@Param("id") Long id) { permissionService.delete(id); }
@At @Ok("json") // @Authorization(requiresPermissions = "permission:read:*") public Map<Long, String> map() { return permissionService.map(); }
@At @Ok("jsp:jsp.permission_list") // @Authorization(requiresPermissions = "permission:read:*") public List<Permission> all() { return permissionService.list(); }