Пример #1
0
 @At
 @Ok(">>:/permission/all")
 // @Authorization(requiresPermissions = "permission:update:*")
 public void edit(@Param("..") Permission permission) {
   permissionService.update(permission);
 }
Пример #2
0
 @At
 @Ok("jsp:jsp.permission_view")
 // @Authorization(requiresPermissions = "permission:read:*")
 public Permission view(@Param("id") Long id) {
   return permissionService.view(id);
 }
Пример #3
0
 @At
 @Ok(">>:/permission/all")
 // @Authorization(requiresPermissions = "permission:create:*")
 public void add(@Param("..") Permission permission) {
   permissionService.insert(permission);
 }
Пример #4
0
 @At
 @Ok(">>:/permission/all")
 // @Authorization(requiresPermissions = "permission:delete:*")
 public void delete(@Param("id") Long id) {
   permissionService.delete(id);
 }
Пример #5
0
 @At
 @Ok("json")
 // @Authorization(requiresPermissions = "permission:read:*")
 public Map<Long, String> map() {
   return permissionService.map();
 }
Пример #6
0
 @At
 @Ok("jsp:jsp.permission_list")
 // @Authorization(requiresPermissions = "permission:read:*")
 public List<Permission> all() {
   return permissionService.list();
 }