Examples of DescKey


Examples of org.butor.auth.common.desc.DescKey

    List<GroupItem> items = group.getItems();
    Desc desc = new Desc();
    desc.setDescription(group.getDescription());
    desc.setId(group.getId());
    desc.setIdType("group");
    DescKey dk = descDao.insertDesc(desc, cra);
    if (dk == null) {
      ApplicationException.exception(
          CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

      ApplicationException.exception(
          CommonMessageID.MISSING_ARG.getMessage("description"));
      return;
    }
    group.setIdType("group");
    DescKey dk = descDao.updateDesc(group, cra);
    if (dk == null) {
      ApplicationException.exception(
          CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

    List<RoleItem> items = role.getItems();
    Desc desc = new Desc();
    desc.setDescription(role.getDescription());
    desc.setId(role.getId());
    desc.setIdType("role");
    DescKey dk = descDao.insertDesc(desc, cra);
    if (dk == null) {
      ApplicationException.exception(
          CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

    if (Strings.isNullOrEmpty(role.getDescription())) {
      ApplicationException.exception(
          CommonMessageID.MISSING_ARG.getMessage("description"));
      return;
    }
    DescKey dk = descDao.updateDesc(role, cra);
    if (dk == null) {
      ApplicationException.exception(
          CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

    List<GroupItem> items = group.getItems();
    Desc desc = new Desc();
    desc.setDescription(group.getDescription());
    desc.setId(group.getId());
    desc.setIdType("group");
    DescKey dk = descDao.insertDesc(desc, cra);
    if (dk == null) {
      ApplicationException.exception(
          CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

      ApplicationException.exception(
          CommonMessageID.MISSING_ARG.getMessage("description"));
      return;
    }
    group.setIdType("group");
    DescKey dk = descDao.updateDesc(group, cra);
    if (dk == null) {
      ApplicationException.exception(
          CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

    List<RoleItem> items = role.getItems();
    Desc desc = new Desc();
    desc.setDescription(role.getDescription());
    desc.setId(role.getId());
    desc.setIdType("role");
    DescKey dk = descDao.insertDesc(desc, cra);
    if (dk == null) {
      ApplicationException.exception(
          CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

    if (Strings.isNullOrEmpty(role.getDescription())) {
      ApplicationException.exception(
          CommonMessageID.MISSING_ARG.getMessage("description"));
      return;
    }
    DescKey dk = descDao.updateDesc(role, cra);
    if (dk == null) {
      ApplicationException.exception(
          CommonMessageID.SERVICE_FAILURE.getMessage());
      return;
    }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

    cra.setReqId((String)params.getValue("reqId"));
    cra.setSessionId((String)params.getValue("sessionId"));

    String idType = (String)params.getValue("idType");
    String id = (String)params.getValue("id");
    DescKey dk = new DescKey(id, idType);
    return readDesc(dk, cra);
  }
View Full Code Here

Examples of org.butor.auth.common.desc.DescKey

    desc.setRevNo(0);
    UpdateResult ur = insert(PROC_INSERT_DESC, this.insertSql, desc, cra);
    if (ur.numberOfRowAffected == 0) {
      ApplicationException.exception(DAOMessageID.UPDATE_FAILURE.getMessage());
    }
    return new DescKey(desc.getId(), desc.getIdType(), 0);
  }
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.