Package es.ipsa.atril.doc.user

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


    Dms oDms = oSes.getDms();
    boolean bSubFolderFound = false;
    for (Document c : getDocument().children())
      if (bSubFolderFound = c.type().name().equals(sType+"s")) break;
    if (!bSubFolderFound)
      oDms.newDocument(oDms.getDocumentType(sType+"s"), getDocument()).save("");
    for (Document c : getDocument().children()) {
      if (c.type().name().equals(sType+"s")) {
        oTxPr = new TaxPayer(oDms, sTaxPayerId);
        BaseCompanyObject oObj;
        if (sType.equals("AllowedTaxPayer"))
View Full Code Here


          throw new InstantiationException("Could not find suitable codec for file "+oItm.name());
        }
        Log.out.debug("Picture.createThumbBitmap("+sCodec+","+String.valueOf(iWidth)+","+String.valueOf(iHeight)+",80)");
        byte[] byThumb = oPic.createThumbBitmap(aBytes, sCodec, iWidth, iHeight, 80);
       
        Document oThl = oDms.newDocument(oDms.getDocumentType(oDoc.type().name()+"Thumbnail"), oDoc);
        AttributeMultiValue oAtr = oThl.attribute("width");
      oAtr.set((long) iWidth);
      oAtr = oThl.attribute("height");
      oAtr.set((long) iHeight);
      oThl.save("");
View Full Code Here

    UsersGroup oUsrsGrp = new UsersGroup(oAum, Zesped.getUsersGroup(oAum));
    UsersGroup oOpersGrp = new UsersGroup(oAum, Zesped.getOperatorsGroup(oAum));
   
    SortableList<Document> oLst = oDms.query("DeviceInformationType$brand='TWAIN'");
    if (oLst.isEmpty()) {
      Document oDit = oDms.newDocument(oDms.getDocumentType("DeviceInformationType"), oDms.getRootDocument());
      oDit.attribute("model").set("TWAIN");
      oDit.attribute("brand").set("TWAIN");
      oDit.save("");
      oSess.commit();
      oUsrsGrp.grantReadOnly(oDit);
View Full Code Here

    if (oLst.isEmpty()) {
      Configurations oCnf = null;
      try {
        oCnf = Configurations.top(oSess);
      } catch (ElementNotFoundException enfe) {
        Document oDnf = oDms.newDocument(oDms.getDocumentType("Configurations"), oDms.getRootDocument());
        oDnf.save("");
        oSess.commit();
        oCnf = new Configurations(oDnf);
        oUsrsGrp.grantReadOnly(oDnf);
        oOpersGrp.grantReadOnly(oDnf);
View Full Code Here

        oSess.commit();
        oCnf = new Configurations(oDnf);
        oUsrsGrp.grantReadOnly(oDnf);
        oOpersGrp.grantReadOnly(oDnf);
      }
      Document oEns = oDms.newDocument(oDms.getDocumentType("Endorsements"), oCnf.getDocument());
      oEns.save("");
      oSess.commit();
      Document oEnd = oDms.newDocument(oDms.getDocumentType("Endorsement"), oEns);
      oEnd.attribute("endorsement_id").set("01");
      oEnd.attribute("endorsement_mask").set("JJJUUUSSS%03d");
View Full Code Here

        oOpersGrp.grantReadOnly(oDnf);
      }
      Document oEns = oDms.newDocument(oDms.getDocumentType("Endorsements"), oCnf.getDocument());
      oEns.save("");
      oSess.commit();
      Document oEnd = oDms.newDocument(oDms.getDocumentType("Endorsement"), oEns);
      oEnd.attribute("endorsement_id").set("01");
      oEnd.attribute("endorsement_mask").set("JJJUUUSSS%03d");
      oEnd.attribute("endorsement_text").set("Ipsa [date_dd/MM/yyyy] [Endorsement.endorsement_mask]");
      oEnd.save("");
      oSess.commit();
View Full Code Here

    CaptureTypes oCts = null;
   
    try {
      oCts = CaptureTypes.top(oSes);
    } catch(ElementNotFoundException enfe)   {
      Document dCts = oDms.newDocument(oDms.getDocumentType("CaptureTypes"), oDms.getRootDocument());
      dCts.save("");
      oUsrsGrp.grantReadOnly(dCts);
      oOpersGrp.grantReadOnly(dCts);
      oSes.commit();
      VolumeManager oVolm = oDms.getVolumeManager();
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.