Examples of DOAuthorization


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

        }

        String[] idarray = nextPerformerUids.split(",");
        for (int i = 0; i < idarray.length; i++) {
          String anId = idarray[i];
          DOAuthorization da = new DOAuthorization();

          storePersionAuth(nextNodeInstance.getObjUid(),anId);
          // /针对 user 存储 存储权限表, 修改待办的 sql
//
//          da.setParterUid(OrgParter.getDefaultEmployee().getObjUid());
View Full Code Here

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

  public static void storePersionAuth(String nodeInstanceUid,
      String personUid) {

    // WFDAO dao = new WFDAO();
    DOAuthorization daNew = new DOAuthorization();
    daNew.setAuthority(Boolean.TRUE);

    // daNew.setIsInherit(Boolean.TRUE);
    daNew.setOuUid(personUid);
    daNew.setParterUid(OrgParter.getDefaultEmployee().getObjUid());

    daNew.setWhatType(Integer.valueOf(DOAuthorization.WHAT_WF_NODEINSTANCE));
    daNew.setWhatUid(nodeInstanceUid);
    try {
      DAOUtil.BUSI().store(daNew);
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

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

        if (allAuthMenus.contains(aConfig[0])) {
          dbAccess = "1";
        }
        if (!dbAccess.equals(aConfig[1])) {

          DOAuthorization da = new DOAuthorization();
          da.setParterUid(OrgParter.getDefaultEmployee().getObjUid());
          da.setOuUid(user.getUid());
          da.setWhatType(DOAuthorization.WHAT_UI_MENU);
          da.setWhatUid(aConfig[0]);
          if (("0".equals(aConfig[1]))) {
            da.setAuthority(Boolean.FALSE);
            da.setIsInherit(Boolean.TRUE);
          } else {
            da.setAuthority(Boolean.TRUE);
            da.setIsInherit(Boolean.TRUE);
          }
          DAOUtil.BUSI().store(da);

        }
      }
View Full Code Here

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

        if (nodeUUid != null) {
          List nextUserList = DOAuthorization.getAuthConfigOfWhat(""
              + DOAuthorization.WHAT_WF_NODEINSTANCE, nodeUUid);

          if (nextUserList.size() > 0) {
            DOAuthorization nextuserDO = (DOAuthorization) nextUserList
                .iterator().next();
            if (nextuserDO != null) {
              nextUserId = nextuserDO.getOuUid();
            }

            if (nextUserId != null) {
              BOInstance ouUser = OrgParter.getDefaultEmployee()
                  .getDoBO().getInstance(nextUserId);
View Full Code Here

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

  // /////////增加角色权限
  private void addAuth(String whatUid, BOInstance role, int type,
      String whereDOBO) throws ExedoException {

    DOAuthorization da = new DOAuthorization();
    da.setParterUid(OrgParter.getDefaultRole().getObjUid());
    da.setOuUid(role.getUid());
    da.setWhatType(type);
    da.setWhatUid(whatUid);
    da.setWhereDOBO(whereDOBO);
    da.setAuthority(Boolean.TRUE);
    da.setIsInherit(Boolean.TRUE);
    DAOUtil.BUSI().store(da);
  }
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.