Ejemplo n.º 1
0
  public IItemCollection getRespPermissions(int idpcd, String uid) throws ISPACException {
    CollectionDAO coldao = PermissionsDAO.getPermissions(mDbCnt, idpcd, uid);
    List list = new ArrayList();
    if (coldao.next()) {
      IResponsible resp = getResp(uid);
      list.add(resp);
    }

    return new ListCollection(list);
  }
Ejemplo n.º 2
0
  public IItemCollection getRespPermissions(int idpcd, int codePermission) throws ISPACException {
    CollectionDAO coldao = PermissionsDAO.getPermissions(mDbCnt, idpcd, codePermission);
    List list = new ArrayList();
    while (coldao.next()) {
      ObjectDAO dao = coldao.value();
      String uid = dao.getString("UID_USR");
      IResponsible resp = getResp(uid);
      list.add(resp);
    }

    return new ListCollection(list);
  }
Ejemplo n.º 3
0
 public IItemCollection getPermissions(int idpcd, String uid) throws ISPACException {
   return PermissionsDAO.getPermissions(mDbCnt, idpcd, uid).disconnect();
 }