Package es.ipsa.atril.doc.user

Examples of es.ipsa.atril.doc.user.Dms.newDocument()


  public CaptureType create(AtrilSession oSes, String sMimeType, boolean bMultiPage, boolean bMultiSheet,
                boolean bSign, boolean bServerSign, String sName, String sDescripcion) {
    CaptureType oCpt = new CaptureType();
    Dms oDms = oSes.getDms();
    Document oDoc = oDms.newDocument(oDms.getDocumentType(oCpt.getTypeName()), getDocument());
    oDoc.attribute("name").set(sName);
    oDoc.attribute("description").set(sDescripcion);
    oDoc.attribute("MimeType").set(sMimeType);
    oDoc.attribute("MultiPageItem").set(bMultiPage ? 1 : 0);
    oDoc.attribute("MultiSheetDocument").set(bMultiSheet ? 1 : 0);
View Full Code Here


    oDoc.attribute("IsPDFA").set(0);
    oDoc.attribute("XMPMetadataStructure").set("");
    oDoc.attribute("bitsDepth").set(0);
    oDoc.save("");
    oCpt.setDocument(oDoc);
    oDoc = oDms.newDocument(oDms.getDocumentType("Fields"), oCpt.getDocument());
    oDoc.save("");
    return oCpt;
  }
 
  public static CaptureTypes top(AtrilSession oSes) throws ElementNotFoundException {
View Full Code Here

        break;
      }
    }
    if (null==sId) {
      Dms oDms = oSes.getDms();
      Document oCredits = oDms.newDocument(oDms.getDocumentType("CustomerAccountCredits"), getDocument());
      oCredits.attribute("account_id").set(getString("account_id"));
      oCredits.attribute("credits_used").set(BigDecimal.ZERO);
      oCredits.attribute("credits_left").set(BigDecimal.ZERO);
      oCredits.save("");
      oAccCredits = new CustomerAccountCredits(oCredits);
View Full Code Here

    Log.out.debug("PROFILING: Search Business Name "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
    lStart = lEnd;
   
    Dms oDms = oSes.getDms();
    oNew.setDocument (oDms.newDocument(oDms.getDocumentType(oNew.getTypeName()), Zesped.top(oSes).getDocument()));
    oNew.put("account_id",Gadgets.generateUUID());
    oNew.put("active","1");
    oNew.put("business_name",sBusinessName);
    oNew.put("creation_date", dtNow);
    oNew.put("contact_person", oUsr.getFirstName()+" "+oUsr.getLastName());
View Full Code Here

    AttributeMultiValue oAttr = oUsr.getDocument().attribute("customer_acount");
    oAttr.set(oNew.getUuid());
    oUsr.getDocument().save("");
    oIdx.indexDocument(oUsr.getDocument());

    Document oOrders = oDms.newDocument(oDms.getDocumentType("Orders"), oNew.getDocument());
    oOrders.save("");
    oIdx.indexDocument(oOrders);
   
    Document oClients = oDms.newDocument(oDms.getDocumentType("Clients"), oNew.getDocument());
    oClients.save("");
View Full Code Here

    Document oOrders = oDms.newDocument(oDms.getDocumentType("Orders"), oNew.getDocument());
    oOrders.save("");
    oIdx.indexDocument(oOrders);
   
    Document oClients = oDms.newDocument(oDms.getDocumentType("Clients"), oNew.getDocument());
    oClients.save("");
    oIdx.indexDocument(oClients);

    Document oPayers = oDms.newDocument(oDms.getDocumentType("TaxPayers"), oNew.getDocument());
    oPayers.save("");
View Full Code Here

   
    Document oClients = oDms.newDocument(oDms.getDocumentType("Clients"), oNew.getDocument());
    oClients.save("");
    oIdx.indexDocument(oClients);

    Document oPayers = oDms.newDocument(oDms.getDocumentType("TaxPayers"), oNew.getDocument());
    oPayers.save("");
    oIdx.indexDocument(oPayers);

    Document oCredits = oDms.newDocument(oDms.getDocumentType("CustomerAccountCredits"), oNew.getDocument());
    oCredits.attribute("account_id").set(oNew.getString("account_id"));
View Full Code Here

    Document oPayers = oDms.newDocument(oDms.getDocumentType("TaxPayers"), oNew.getDocument());
    oPayers.save("");
    oIdx.indexDocument(oPayers);

    Document oCredits = oDms.newDocument(oDms.getDocumentType("CustomerAccountCredits"), oNew.getDocument());
    oCredits.attribute("account_id").set(oNew.getString("account_id"));
    oCredits.attribute("credits_used").set(0l);
    oCredits.attribute("credits_left").set(0l);
    oCredits.save("");
    oIdx.indexDocument(oCredits);
View Full Code Here

 
  public Scanner addScanner(AtrilSession oSes, String sName, InputStream oConfigProperties)
    throws ElementNotFoundException, IOException {
    Scanner oScr = new Scanner();
    Dms oDms = oSes.getDms();
    Document oDoc = oDms.newDocument(oDms.getDocumentType(oScr.getTypeName()), getDocument());
    oDoc.attribute("name").set(sName);
    oDoc.save("");
    oScr.setDocument(oDoc);
    oScr.insertContentFromInputStream(oSes, oConfigProperties, sName+".properties");
    oScr.save(oSes);
View Full Code Here

      Log.out.error("E-mail address "+getEmail()+" already belongs to another user");
      throw new IllegalArgumentException("E-mail address "+getEmail()+" already belongs to another user");
    }
   
    Dms oDms = oSes.getDms();
    Document oDoc = oDms.newDocument(oDms.getDocumentType("User"), oDms.getDocument(sUsrs));
    oDoc.save("");
    setDocument(oDoc);
   
    AttributeMultiValue oUid = oDoc.attribute("user_id");
    oUid.set(oDoc.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.