Package com.exedosoft.plat.bo.org

Examples of com.exedosoft.plat.bo.org.OrgParterValue


          List<OrgParterValue> parters = (List<OrgParterValue>) DOGlobals
              .getInstance().getSessoinContext().getUser()
              .getObjectValue(LoginMain.ALLAUTH);
          for (Iterator<OrgParterValue> it = parters.iterator(); it
              .hasNext();) {
            OrgParterValue pv = it.next();
            if (pv.getName().equals(accessOrg)) {
              return true;
            }
          }
          return false;
        }
View Full Code Here


    // //这根据用户和角色两种parter 权限过滤

    List allAuths = new ArrayList();
    // //值根据用户进行权限过滤
    OrgParter userPater = OrgParter.getDefaultEmployee();
    OrgParterValue pv = new OrgParterValue(userPater, accountUid);
    allAuths.add(pv);

    // ////////加入角色

    OrgParter roleParter = OrgParter.getDefaultRole();
    // /多租户下对应创建者,内置角色
    BOInstance user = DOGlobals.getInstance().getSessoinContext().getUser();
    if ("2".equals(user.getValue("asrole")) || "1".equals(user.getValue("asrole"))) {
      OrgParterValue pvRole = new OrgParterValue(roleParter,
          "40288031288a2b8501288a3d009d000d",
          "管理员");
      allAuths.add(pvRole);
    }
View Full Code Here

            System.out.println("listRoles::" + listRoles);

            for (Iterator roles = listRoles.iterator(); roles
                .hasNext();) {
              BOInstance boRole = (BOInstance) roles.next();
              OrgParterValue pv = new OrgParterValue(parter,
                  boRole.getUid(), boRole.getName());
              allAuths.add(pv);
            }
          }
        }
View Full Code Here

    // //这根据用户和角色两种parter 权限过滤

    List allAuths = new ArrayList();
    // //加入用户
    OrgParter userPater = OrgParter.getDefaultEmployee();
    OrgParterValue pv = new OrgParterValue(userPater, accountUid);
    allAuths.add(pv);

    // ////////加入角色
    OrgParter roleParter = OrgParter.getDefaultRole();
    appendRoles(allAuths, accountUid, roleParter);
View Full Code Here

          .getService("do.bx.role.findbyuseridcontext");
      List listRoles = findUserService.invokeSelect(accountUid);
      if (listRoles != null) {
        for (Iterator roles = listRoles.iterator(); roles.hasNext();) {
          BOInstance boRole = (BOInstance) roles.next();
          OrgParterValue pv = new OrgParterValue(parter, boRole
              .getUid(), boRole.getName());
          allAuths.add(pv);
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.exedosoft.plat.bo.org.OrgParterValue

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.