예제 #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();
 }