Package com.sogou.qadev.service.cynthia.bean

Examples of com.sogou.qadev.service.cynthia.bean.Role


  public Role[] queryActionRoles(UUID actionId){
    Set<Role> roleSet = new HashSet<Role>();

    for(ActionRole actionRole : this.actionRoleSet){
      if(actionRole.actionId.equals(actionId)){
        Role role = this.roleMap.get(actionRole.roleId);
        if(role != null){
          roleSet.add(role);
        }
      }
    }
View Full Code Here


    for(ActionRole actionRole : this.actionRoleSet)
    {
      if(!actionRole.actionId.equals(Action.editUUID))
        continue;

      Role role = this.roleMap.get(actionRole.roleId);
      if(role != null)
        roleSet.add(role);
    }

    return roleSet.toArray(new Role[0]);
View Full Code Here

    Map<UUID, Role> roleMap = new LinkedHashMap<UUID, Role>();
    for(Right right: this.rightSet)
    {
      if(right.templateId.equals(templateId))
      {
        Role role = this.roleMap.get(right.roleId);
        if(role != null)
          roleMap.put(role.getId(), role);
      }
    }

    return roleMap.values().toArray(new Role[0]);
  }
View Full Code Here

    for(ActionRole actionRole : this.actionRoleSet)
    {
      if(!actionRole.actionId.equals(Action.readUUID))
        continue;

      Role role = this.roleMap.get(actionRole.roleId);
      if(role != null)
        roleSet.add(role);
    }

    return roleSet.toArray(new Role[0]);
View Full Code Here

    for(Right right: this.rightSet)
    {
      if(right.username.equals(user) && right.templateId.equals(templateId))
      {
        Role role = this.roleMap.get(right.roleId);
        if(role != null)
          roleSet.add(role);
      }
    }
View Full Code Here

TOP

Related Classes of com.sogou.qadev.service.cynthia.bean.Role

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.