use of com.ganster.cms.core.pojo.PermissionExample in project Ganster-CMS by Gangster-trio.
the class AllotPermissionController method addPermission.
@RequestMapping("/add")
@RequiresPermissions("add")
public void addPermission(@RequestParam("GroupName") String groupName, @RequestParam("PermissionName") String permissionName) throws PermissionNotFoundException, GroupNotFountException {
PermissionExample permissionExample = new PermissionExample();
permissionExample.createCriteria().andPermissionNameEqualTo(permissionName);
List<Permission> permissions = permissionService.selectByExample(permissionExample);
if (permissions == null)
throw new PermissionNotFoundException();
for (Permission i : permissions) {
// groupService.addCategoryPermissionToGroup(i.getPermissionName(),groupName);
}
}
Aggregations