Examples of ElementNotFoundException


Examples of es.ipsa.atril.exceptions.ElementNotFoundException

      if (d.type().name().equals(z.getTypeName())) {
        z.setDocument(oSes.getDms().getDocument(d.id()));
        break;
      }
    } // next
    if (z.getDocument()==null) throw new ElementNotFoundException(z.getTypeName()+" document not found");
    Log.out.debug("End com.zesped.model.Zesped.top() : " + z);
    return z;     
  }
View Full Code Here

Examples of es.ipsa.atril.exceptions.ElementNotFoundException

    if (sConcept.length()==0) throw new NullPointerException("BillNote.create() concept may not be empty");
    if (sEmployeeUuid.length()==0) throw new NullPointerException("BillNote.create() employee may not be empty");
    Employee emee = new Employee();
    Document dmee = emee.exists(oSes, "employee_uuid", sEmployeeUuid);
    if (null==dmee)
      throw new ElementNotFoundException("BillNotes.create()  Employee "+sEmployeeUuid+" not found");
    emee.setDocument(dmee);
    Log.out.debug("got employee "+sEmployeeUuid);
    BillNote bill = new BillNote(oSes, this);
    bill.put("service_type", sServiceType);
    bill.put("concept", sSanitizedConcept);
View Full Code Here

Examples of es.ipsa.atril.exceptions.ElementNotFoundException

    }
    SortableList<Document> oLst = (SortableList<Document>) oIdx.query("business_name:\"" + sSanitizedBusinessName + "\" AND " + DocumentIndexer.AdditionalDocumentFields.DOCUMENT_TYPE_NAME.value() + ":" + sTypeName);
    if (oLst.isEmpty()) {
      oSes.disconnect();
      oSes.close();
      throw new ElementNotFoundException(sBusinessName+" not found");
    } else {
      String sId = oLst.get(0).id();
      oSes.disconnect();
      oSes.close();
      return sId;
View Full Code Here

Examples of es.ipsa.atril.exceptions.ElementNotFoundException

    }
    SortableList<Document> oLst = (SortableList<Document>) oIdx.query("tax_id:\"" + sTaxId + "\" AND " + DocumentIndexer.AdditionalDocumentFields.DOCUMENT_TYPE_NAME.value() + ":" + sTypeName);
    if (oLst.isEmpty()) {
      oSes.disconnect();
      oSes.close();
      throw new ElementNotFoundException(sTaxId+" not found");
    } else {
      String sId = oLst.get(0).id();
      oSes.disconnect();
      oSes.close();
      return sId;     
View Full Code Here

Examples of es.ipsa.atril.exceptions.ElementNotFoundException

    Dms oDms = oSes.getDms();
    SortableList<Document> oLst = oDms.query("User$email='"+sEmailAddr.toLowerCase().trim()+"'");
    if (oLst.isEmpty()) {
      oSes.disconnect();
      oSes.close();
      throw new ElementNotFoundException("No user found with email "+sEmailAddr.toLowerCase().trim());
    } else {
      String sUsrId = oLst.get(0).id();     
      oSes.disconnect();
      oSes.close();
      return sUsrId;     
View Full Code Here

Examples of es.ipsa.atril.exceptions.ElementNotFoundException

    Dms oDms = oSes.getDms();
    SortableList<Document> oLst = oDms.query("User$user_uuid='"+sUuid+"'");
    if (oLst.isEmpty()) {
      oSes.disconnect();
      oSes.close();
      throw new ElementNotFoundException("No user found with UUID "+sUuid);
    } else {
      String sUsrId = oLst.get(0).id();     
      oSes.disconnect();
      oSes.close();
      return sUsrId;     
View Full Code Here

Examples of es.ipsa.atril.exceptions.ElementNotFoundException

  public void save(AtrilSession oSes)
    throws ClassCastException, RuntimeException, IllegalStateException, NullPointerException, DmsDocumentModificationException,
    NotYetConnectedException, DmsException, RecentlyUsedPasswordException, OldPasswordWrongOnPasswordChangeException {
   
    if (getEmail()==null) throw new NullPointerException("User e-mail cannot be null");
    if (exists(oSes,"user_uuid",sNickName)==null) throw new ElementNotFoundException("Cannot find any user with uuid "+sNickName);

    String sAllowedServices = "";
    for (CaptureService s : allowedServices())
      sAllowedServices += (sAllowedServices.length()==0 ? "" : ",") + String.valueOf(s.toInt());
    put ("allowed_services", sAllowedServices);
View Full Code Here

Examples of org.graphstream.graph.ElementNotFoundException

    if (edge == null) {
      GraphicNode n1 = (GraphicNode) styleGroups.getNode(from);
      GraphicNode n2 = (GraphicNode) styleGroups.getNode(to);

      if (n1 == null)
        throw new ElementNotFoundException("node \"%s\"", from);

      if (n2 == null)
        throw new ElementNotFoundException("node \"%s\"", to);

      edge = new GraphicEdge(id, n1, n2, directed, null);// , attributes);

      styleGroups.addElement(edge);
View Full Code Here

Examples of org.gwtwidgets.client.wwrapper.ElementNotFoundException

    {
        super("");
        Element e = DOM.getElementById(id);
       
        if (e == null) {
            throw new ElementNotFoundException(id);
        }

        DOM.insertBefore(DOM.getParent(e), getElement(), e);
        setElement(e);
View Full Code Here

Examples of org.radargun.stages.tpcc.ElementNotFoundException

      boolean found = false;
      Customer c = null;
      if (c_by_name) {
         List<Customer> cList = CustomerDAC.loadByCLast(basicCache, w_id, d_id, c_last);
         if (cList == null || cList.isEmpty())
            throw new ElementNotFoundException("C_LAST=" + c_last + " C_D_ID=" + d_id + " C_W_ID=" + w_id + " not found!");
         Collections.sort(cList);


         namecnt = cList.size();


         if (namecnt % 2 == 1) namecnt++;
         Iterator<Customer> itr = cList.iterator();

         for (int i = 1; i <= namecnt / 2; i++) {

            c = itr.next();

         }

      } else {
         // clause 2.6.2.2 (dot 3, Case 1)
         c = new Customer();
         c.setC_id(c_id);
         c.setC_d_id(d_id);
         c.setC_w_id(w_id);
         found = c.load(basicCache);
         if (!found)
            throw new ElementNotFoundException("C_ID=" + c_id + " C_D_ID=" + d_id + " C_W_ID=" + w_id + " not found!");

      }

      // clause 2.6.2.2 (dot 4)
      Order o = OrderDAC.loadByGreatestId(basicCache, w_id, d_id, c_id);
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.