Examples of Role


Examples of com.github.zhangkaitao.shiro.chapter21.entity.Role

        }

        return s.toString();
    }
    public static String roleName(Long roleId) {
        Role role = getRoleService().findOne(roleId);
        if(role == null) {
            return "";
        }
        return role.getDescription();
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter22.entity.Role

    @RequiresPermissions("role:create")
    @RequestMapping(value = "/create", method = RequestMethod.GET)
    public String showCreateForm(Model model) {
        setCommonData(model);
        model.addAttribute("role", new Role());
        model.addAttribute("op", "新增");
        return "role/edit";
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter23.entity.Role

    @RequiresPermissions("role:create")
    @RequestMapping(value = "/create", method = RequestMethod.GET)
    public String showCreateForm(Model model) {
        setCommonData(model);
        model.addAttribute("role", new Role());
        model.addAttribute("op", "新增");
        return "role/edit";
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter24.entity.Role

        }

        return s.toString();
    }
    public static String roleName(Long roleId) {
        Role role = getRoleService().findOne(roleId);
        if(role == null) {
            return "";
        }
        return role.getDescription();
    }
View Full Code Here

Examples of com.github.zhangkaitao.shiro.chapter6.entity.Role

        p3 = new Permission("menu:create", "菜单模块新增", Boolean.TRUE);
        permissionService.createPermission(p1);
        permissionService.createPermission(p2);
        permissionService.createPermission(p3);
        //2、新增角色
        r1 = new Role("admin", "管理员", Boolean.TRUE);
        r2 = new Role("user", "用户管理员", Boolean.TRUE);
        roleService.createRole(r1);
        roleService.createRole(r2);
        //3、关联角色-权限
        roleService.correlationPermissions(r1.getId(), p1.getId());
        roleService.correlationPermissions(r1.getId(), p2.getId());
View Full Code Here

Examples of com.givens.springdata.model.Role

        // Drop existing collections
        mongoTemplate.dropCollection("role");
        mongoTemplate.dropCollection("user");

        // Create new records
        Role adminRole = new Role();
        adminRole.setRole(1);
        adminRole.setRolename("Administrator");

        Role userRole = new Role();
        userRole.setRole(2);
        userRole.setRolename("User");

        User john = new User();      
        john.setFirstname("John");
        john.setLastname("Smith");
        john.setPassword("21232f297a57a5a743894a0e4a801fc3");
View Full Code Here

Examples of com.google.code.lightssh.project.security.entity.Role

      root = new LoginAccount( );
      root.setCreateDate( new Date() );
      root.setLoginName(ROOT_LOGIN_NAME);
      root.setStatus(AuditStatus.EFFECTIVE);
      root.setType(LoginAccountType.ADMIN);
      Role superRole = roleManager.initRole(true);
      root.addRole(superRole);
      root.setPassword(CryptographyUtil.hashMd5Hex(DEFAULT_PASSWORD ) );
      root.setDescription("系统初始化自动创建。");
     
      try{
View Full Code Here

Examples of com.google.wave.api.Participants.Role

    // Add participants.
    List<String> participants = new ArrayList<String>();
    for (String participant : this.participants) {
      participants.add(participant);
      Role role = getParticipants().getParticipantRole(participant);
      waveletData.setParticipantRole(participant, role.name());
    }
    waveletData.setParticipants(participants);

    // Add data documents.
    Map<String, String> dataDocuments = new HashMap<String, String>();
View Full Code Here

Examples of com.ibs.academic.models.Role

    private DAORole daoRole;
    private boolean updateItem;

    @PostConstruct
    public void init(){//Here I initialize everything I need
        roleItem = new Role();
        daoRole = DAORole.getInstance();//This goes here to  avoid NullPointerException
        roleList = daoRole.listAllRoles();

    }
View Full Code Here

Examples of com.iisigroup.cap.auth.model.Role

    }// ;

    public IResult queryForm(IRequest request) {
        AjaxFormResult result = new AjaxFormResult();
        String code = request.get("code");
        Role role = null;

        if (!CapString.isEmpty(code)) {
            role = roleSetService.findRoleByCode(code);
        }

        if (role != null) {
            result.putAll(new AjaxFormResult(role.toJSONObject(
                    CapEntityUtil.getColumnName(role), null)));
        }

        return result;
    }// ;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.