Package es.ipsa.atril.doc.user

Examples of es.ipsa.atril.doc.user.Document.attribute()


    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);
   
    Log.out.debug("PROFILING: Create CustomerAccount child documents "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
View Full Code Here


    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);
   
    Log.out.debug("PROFILING: Create CustomerAccount child documents "+String.valueOf((lEnd=new Date().getTime())-lStart)+" ms");
    lStart = lEnd;
View Full Code Here

      case STRING:
        if (oDoc1.attribute(sAtr).isEmpty())
          oAtr1 = null;
        else
          oAtr1 = oDoc1.attribute(sAtr).toString();
        if (oDoc2.attribute(sAtr).isEmpty())
          oAtr2 = null;
        else
          oAtr2 = oDoc2.attribute(sAtr).toString();
        break;
      case DATE:
View Full Code Here

        else
          oAtr1 = oDoc1.attribute(sAtr).toString();
        if (oDoc2.attribute(sAtr).isEmpty())
          oAtr2 = null;
        else
          oAtr2 = oDoc2.attribute(sAtr).toString();
        break;
      case DATE:
      case DATE_TIME:
        if (oDoc1.attribute(sAtr).isEmpty())
          oAtr1 = null;
View Full Code Here

      case DATE_TIME:
        if (oDoc1.attribute(sAtr).isEmpty())
          oAtr1 = null;
        else
          oAtr1 = oObj1.getDate(sAtr);
        if (oDoc2.attribute(sAtr).isEmpty())
          oAtr2 = null;
        else
          oAtr2 = oObj2.getDate(sAtr);
        break;
      case NUMBER:
View Full Code Here

      case NUMBER:
        if (oDoc1.attribute(sAtr).isEmpty())
          oAtr1 = null;
        else
          oAtr1 = oDoc1.attribute(sAtr).toBigDecimal();
        if (oDoc2.attribute(sAtr).isEmpty())
          oAtr2 = null;
        else
          oAtr2 = oDoc2.attribute(sAtr).toBigDecimal();
        break;
    }
View Full Code Here

        else
          oAtr1 = oDoc1.attribute(sAtr).toBigDecimal();
        if (oDoc2.attribute(sAtr).isEmpty())
          oAtr2 = null;
        else
          oAtr2 = oDoc2.attribute(sAtr).toBigDecimal();
        break;
    }
    if (oAtr1==null && oAtr2==null)
      return 0;
    else if (oAtr1==null)
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);
    return oScr;
View Full Code Here

        }
        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("");
        Item oThi = oThl.item();
View Full Code Here

        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("");
        Item oThi = oThl.item();
        String sItemName = "th"+oDoc.id()+".jpg";
        oThi.setName(sItemName);
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.