Package com.ketayao.ketacustom.entity.main

Examples of com.ketayao.ketacustom.entity.main.Permission


   
    Collection<String> stringPermissions = new ArrayList<String>();
    for (Role role : roles) {
      List<RolePermission> rolePermissions = role.getRolePermissions();
      for (RolePermission rolePermission : rolePermissions) {
        Permission permission = rolePermission.getPermission();
       
        String resource = permission.getModule().getSn();
        String operate = permission.getSn();
   
        StringBuilder builder = new StringBuilder();
        builder.append(resource + ":" + operate);
       
        shiroUser.getHasModules().put(resource, permission.getModule());
       
        StringBuilder dcBuilder = new StringBuilder();
        for (RolePermissionDataControl rpdc : rolePermission.getRolePermissionDataControls()) {
          DataControl dataControl = rpdc.getDataControl();
          dcBuilder.append(dataControl.getName() + ",");
View Full Code Here

TOP

Related Classes of com.ketayao.ketacustom.entity.main.Permission

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.