home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1999 April / DPPCPRO0499.ISO / April / Notes / 50b2wic.exe / DATA1.CAB / NotesProgramFilesJavaSupport / Notes.jar / lotus / domino / local / Document.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  15.4 KB  |  1,332 lines

  1. package lotus.domino.local;
  2.  
  3. import java.util.Enumeration;
  4. import java.util.Vector;
  5. import lotus.domino.DateTime;
  6. import lotus.domino.DocumentCollection;
  7. import lotus.domino.NotesException;
  8. import lotus.domino.View;
  9. import lotus.notes.JavaString;
  10.  
  11. public class Document extends NotesBase implements lotus.domino.Document {
  12.    private transient Database database;
  13.    private transient Vector itemlist;
  14.    private transient Vector eolist;
  15.  
  16.    private native int NappendItemValue(String var1, Object var2);
  17.  
  18.    private native boolean NcomputeWithForm(boolean var1, boolean var2);
  19.  
  20.    private native void NcopyAllItems(Document var1, boolean var2);
  21.  
  22.    private native int NcopyItem(Item var1, String var2);
  23.  
  24.    private native int NcopyToDatabase(Database var1);
  25.  
  26.    private native int NcreateRichTextItem(String var1);
  27.  
  28.    private native int NcreateReplyMessage(boolean var1);
  29.  
  30.    private native void Nencrypt();
  31.  
  32.    private native int NgetFirstItem(String var1);
  33.  
  34.    private native Vector NgetItemValue(String var1);
  35.  
  36.    private native String NgetItemValueString(String var1);
  37.  
  38.    private native int NgetItemValueInteger(String var1);
  39.  
  40.    private native double NgetItemValueDouble(String var1);
  41.  
  42.    private native boolean NhasItem(String var1);
  43.  
  44.    private native void NmakeResponse(Document var1);
  45.  
  46.    private native void NputInFolder(String var1, boolean var2);
  47.  
  48.    private native boolean Nremove(boolean var1);
  49.  
  50.    private native void NremoveFromFolder(String var1, boolean var2);
  51.  
  52.    private native void NremoveItem(String var1);
  53.  
  54.    private native boolean NrenderToRTItem(RichTextItem var1);
  55.  
  56.    private native int NreplaceItemValue(String var1, Object var2);
  57.  
  58.    private native boolean Nsave(boolean var1, boolean var2, boolean var3);
  59.  
  60.    private native void Nsend(boolean var1, Vector var2);
  61.  
  62.    private native void Nsign();
  63.  
  64.    private native int NgetAttachment(String var1);
  65.  
  66.    protected Document() throws NotesException {
  67.    }
  68.  
  69.    protected Document(Session var1, int var2) throws NotesException {
  70.       super(var2, 4);
  71.       this.itemlist = new Vector(3);
  72.       this.eolist = new Vector(3);
  73.       int var3 = ((NotesBase)this).PropGetAdt(1152);
  74.       this.database = var1.FindOrCreateDatabase(var3);
  75.    }
  76.  
  77.    protected Document(Database var1, int var2) throws NotesException {
  78.       super(var2, 4);
  79.       this.database = var1;
  80.       this.itemlist = new Vector(3);
  81.       this.eolist = new Vector(3);
  82.       var1.AddDocument(this);
  83.    }
  84.  
  85.    public void recycle() throws NotesException {
  86.       try {
  87.          this.database.RemoveDocument(this);
  88.          Vector var6 = this.itemlist;
  89.          synchronized(var6){}
  90.  
  91.          try {
  92.             Enumeration var3 = this.itemlist.elements();
  93.  
  94.             while(var3.hasMoreElements()) {
  95.                NotesBase var1 = (NotesBase)var3.nextElement();
  96.                super.RecycleObject(var1);
  97.             }
  98.          } catch (Throwable var62) {
  99.             throw var62;
  100.          }
  101.  
  102.          var6 = this.eolist;
  103.          synchronized(var6){}
  104.  
  105.          try {
  106.             Enumeration var65 = this.eolist.elements();
  107.  
  108.             while(var65.hasMoreElements()) {
  109.                NotesBase var2 = (NotesBase)var65.nextElement();
  110.                super.RecycleObject(var2);
  111.             }
  112.          } catch (Throwable var61) {
  113.             throw var61;
  114.          }
  115.       } catch (NotesException var63) {
  116.       } finally {
  117.          if (this.itemlist != null) {
  118.             Vector var67 = this.itemlist;
  119.             synchronized(var67){}
  120.  
  121.             try {
  122.                this.itemlist.removeAllElements();
  123.                this.itemlist = null;
  124.             } catch (Throwable var60) {
  125.                throw var60;
  126.             }
  127.          }
  128.  
  129.          if (this.eolist != null) {
  130.             Vector var68 = this.eolist;
  131.             synchronized(var68){}
  132.  
  133.             try {
  134.                this.eolist.removeAllElements();
  135.                this.eolist = null;
  136.             } catch (Throwable var59) {
  137.                throw var59;
  138.             }
  139.          }
  140.  
  141.          super.Recycle();
  142.       }
  143.  
  144.    }
  145.  
  146.    protected void InternalFinalize() throws NotesException {
  147.       try {
  148.          Vector var6 = this.itemlist;
  149.          synchronized(var6){}
  150.  
  151.          try {
  152.             Enumeration var3 = this.itemlist.elements();
  153.  
  154.             while(var3.hasMoreElements()) {
  155.                NotesBase var1 = (NotesBase)var3.nextElement();
  156.                super.DestroyObject(var1);
  157.             }
  158.          } catch (Throwable var62) {
  159.             throw var62;
  160.          }
  161.  
  162.          var6 = this.eolist;
  163.          synchronized(var6){}
  164.  
  165.          try {
  166.             Enumeration var65 = this.eolist.elements();
  167.  
  168.             while(var65.hasMoreElements()) {
  169.                NotesBase var2 = (NotesBase)var65.nextElement();
  170.                super.DestroyObject(var2);
  171.             }
  172.          } catch (Throwable var61) {
  173.             throw var61;
  174.          }
  175.       } catch (Exception var63) {
  176.       } finally {
  177.          if (this.itemlist != null) {
  178.             Vector var67 = this.itemlist;
  179.             synchronized(var67){}
  180.  
  181.             try {
  182.                this.itemlist.removeAllElements();
  183.                this.itemlist = null;
  184.             } catch (Throwable var60) {
  185.                throw var60;
  186.             }
  187.          }
  188.  
  189.          if (this.eolist != null) {
  190.             Vector var68 = this.eolist;
  191.             synchronized(var68){}
  192.  
  193.             try {
  194.                this.eolist.removeAllElements();
  195.                this.eolist = null;
  196.             } catch (Throwable var59) {
  197.                throw var59;
  198.             }
  199.          }
  200.  
  201.          super.finalize();
  202.       }
  203.  
  204.    }
  205.  
  206.    public void finalize() throws NotesException {
  207.       this.database.RemoveDocument(this);
  208.       this.InternalFinalize();
  209.    }
  210.  
  211.    protected void AddItem(Object var1) throws NotesException {
  212.       ((NotesBase)this).CheckObject();
  213.       Vector var2 = this.itemlist;
  214.       synchronized(var2){}
  215.  
  216.       try {
  217.          this.itemlist.addElement(var1);
  218.       } catch (Throwable var4) {
  219.          throw var4;
  220.       }
  221.  
  222.    }
  223.  
  224.    protected void RemoveItem(Object var1) throws NotesException {
  225.       if (this.itemlist != null) {
  226.          Vector var2 = this.itemlist;
  227.          synchronized(var2){}
  228.  
  229.          try {
  230.             this.itemlist.removeElement(var1);
  231.          } catch (Throwable var4) {
  232.             throw var4;
  233.          }
  234.  
  235.       }
  236.    }
  237.  
  238.    protected Item FindOrCreateItem(int var1) throws NotesException {
  239.       ((NotesBase)this).CheckObject();
  240.       if (var1 == 0) {
  241.          return null;
  242.       } else {
  243.          Vector var3 = this.itemlist;
  244.          synchronized(var3){}
  245.  
  246.          try {
  247.             Enumeration var5 = this.itemlist.elements();
  248.  
  249.             while(var5.hasMoreElements()) {
  250.                Item var6 = (Item)var5.nextElement();
  251.                if (((NotesBase)var6).isEqual(var1)) {
  252.                   Item var2 = var6;
  253.                   return var2;
  254.                }
  255.             }
  256.          } catch (Throwable var8) {
  257.             throw var8;
  258.          }
  259.  
  260.          int var9 = ((NotesBase)this).ObjectClass(var1);
  261.          if (var9 == 5) {
  262.             return new Item(this, var1);
  263.          } else if (var9 == 6) {
  264.             return new RichTextItem(this, var1);
  265.          } else {
  266.             throw new NotesException(4409, JavaString.resource.getString("not_rich_text"));
  267.          }
  268.       }
  269.    }
  270.  
  271.    protected RichTextItem FindOrCreateRTItem(int var1) throws NotesException {
  272.       ((NotesBase)this).CheckObject();
  273.       if (var1 == 0) {
  274.          return null;
  275.       } else {
  276.          Vector var3 = this.itemlist;
  277.          synchronized(var3){}
  278.  
  279.          RichTextItem var2;
  280.          try {
  281.             Enumeration var5 = this.itemlist.elements();
  282.  
  283.             Item var6;
  284.             do {
  285.                if (!var5.hasMoreElements()) {
  286.                   return new RichTextItem(this, var1);
  287.                }
  288.  
  289.                var6 = (Item)var5.nextElement();
  290.             } while(!((NotesBase)var6).isEqual(var1));
  291.  
  292.             var2 = (RichTextItem)var6;
  293.          } catch (Throwable var8) {
  294.             throw var8;
  295.          }
  296.  
  297.          return var2;
  298.       }
  299.    }
  300.  
  301.    protected void AddEmbedded(Object var1) throws NotesException {
  302.       ((NotesBase)this).CheckObject();
  303.       Vector var2 = this.eolist;
  304.       synchronized(var2){}
  305.  
  306.       try {
  307.          this.eolist.addElement(var1);
  308.       } catch (Throwable var4) {
  309.          throw var4;
  310.       }
  311.  
  312.    }
  313.  
  314.    protected void RemoveEmbedded(Object var1) throws NotesException {
  315.       if (this.eolist != null) {
  316.          Vector var2 = this.eolist;
  317.          synchronized(var2){}
  318.  
  319.          try {
  320.             this.eolist.removeElement(var1);
  321.          } catch (Throwable var4) {
  322.             throw var4;
  323.          }
  324.  
  325.       }
  326.    }
  327.  
  328.    protected EmbeddedObject FindOrCreateEmbedded(int var1) throws NotesException {
  329.       ((NotesBase)this).CheckObject();
  330.       if (var1 == 0) {
  331.          return null;
  332.       } else {
  333.          Vector var3 = this.eolist;
  334.          synchronized(var3){}
  335.  
  336.          EmbeddedObject var2;
  337.          try {
  338.             Enumeration var5 = this.eolist.elements();
  339.  
  340.             EmbeddedObject var6;
  341.             do {
  342.                if (!var5.hasMoreElements()) {
  343.                   return new EmbeddedObject(this, var1);
  344.                }
  345.  
  346.                var6 = (EmbeddedObject)var5.nextElement();
  347.             } while(!((NotesBase)var6).isEqual(var1));
  348.  
  349.             var2 = var6;
  350.          } catch (Throwable var8) {
  351.             throw var8;
  352.          }
  353.  
  354.          return var2;
  355.       }
  356.    }
  357.  
  358.    public lotus.domino.Item appendItemValue(String var1, Object var2) throws NotesException {
  359.       ((NotesBase)this).CheckObject();
  360.       synchronized(this){}
  361.  
  362.       Item var3;
  363.       try {
  364.          var3 = this.FindOrCreateItem(this.NappendItemValue(var1, var2));
  365.       } catch (Throwable var7) {
  366.          throw var7;
  367.       }
  368.  
  369.       return var3;
  370.    }
  371.  
  372.    public lotus.domino.Item appendItemValue(String var1) throws NotesException {
  373.       return this.appendItemValue(var1, (Object)null);
  374.    }
  375.  
  376.    public lotus.domino.Item appendItemValue(String var1, int var2) throws NotesException {
  377.       return this.appendItemValue(var1, new Integer(var2));
  378.    }
  379.  
  380.    public lotus.domino.Item appendItemValue(String var1, double var2) throws NotesException {
  381.       return this.appendItemValue(var1, new Double(var2));
  382.    }
  383.  
  384.    public boolean computeWithForm(boolean var1, boolean var2) throws NotesException {
  385.       ((NotesBase)this).CheckObject();
  386.       synchronized(this){}
  387.  
  388.       boolean var3;
  389.       try {
  390.          var3 = this.NcomputeWithForm(var1, var2);
  391.       } catch (Throwable var7) {
  392.          throw var7;
  393.       }
  394.  
  395.       return var3;
  396.    }
  397.  
  398.    public void copyAllItems(lotus.domino.Document var1, boolean var2) throws NotesException {
  399.       ((NotesBase)this).CheckObject();
  400.       synchronized(this){}
  401.  
  402.       try {
  403.          this.NcopyAllItems((Document)var1, var2);
  404.       } catch (Throwable var5) {
  405.          throw var5;
  406.       }
  407.  
  408.    }
  409.  
  410.    public lotus.domino.Item copyItem(lotus.domino.Item var1, String var2) throws NotesException {
  411.       ((NotesBase)this).CheckObject();
  412.       synchronized(this){}
  413.  
  414.       Item var3;
  415.       try {
  416.          if (var1 == null) {
  417.             throw new NotesException(4444, JavaString.resource.getString("missing_item_object"));
  418.          }
  419.  
  420.          var3 = this.FindOrCreateItem(this.NcopyItem((Item)var1, var2));
  421.       } catch (Throwable var7) {
  422.          throw var7;
  423.       }
  424.  
  425.       return var3;
  426.    }
  427.  
  428.    public lotus.domino.Item copyItem(lotus.domino.Item var1) throws NotesException {
  429.       return this.copyItem((Item)var1, (String)null);
  430.    }
  431.  
  432.    public lotus.domino.Document copyToDatabase(lotus.domino.Database var1) throws NotesException {
  433.       ((NotesBase)this).CheckObject();
  434.       synchronized(this){}
  435.  
  436.       Document var2;
  437.       try {
  438.          if (var1 == null) {
  439.             throw new NotesException(4405, JavaString.resource.getString("missing_db_object"));
  440.          }
  441.  
  442.          var2 = ((Database)var1).FindOrCreateDocument(this.NcopyToDatabase((Database)var1));
  443.       } catch (Throwable var6) {
  444.          throw var6;
  445.       }
  446.  
  447.       return var2;
  448.    }
  449.  
  450.    public lotus.domino.RichTextItem createRichTextItem(String var1) throws NotesException {
  451.       ((NotesBase)this).CheckObject();
  452.       synchronized(this){}
  453.  
  454.       RichTextItem var2;
  455.       try {
  456.          var2 = this.FindOrCreateRTItem(this.NcreateRichTextItem(var1));
  457.       } catch (Throwable var6) {
  458.          throw var6;
  459.       }
  460.  
  461.       return var2;
  462.    }
  463.  
  464.    public lotus.domino.Document createReplyMessage(boolean var1) throws NotesException {
  465.       ((NotesBase)this).CheckObject();
  466.       synchronized(this){}
  467.  
  468.       Document var2;
  469.       try {
  470.          var2 = this.database.FindOrCreateDocument(this.NcreateReplyMessage(var1));
  471.       } catch (Throwable var6) {
  472.          throw var6;
  473.       }
  474.  
  475.       return var2;
  476.    }
  477.  
  478.    public void encrypt() throws NotesException {
  479.       ((NotesBase)this).CheckObject();
  480.       synchronized(this){}
  481.  
  482.       try {
  483.          this.Nencrypt();
  484.       } catch (Throwable var3) {
  485.          throw var3;
  486.       }
  487.  
  488.    }
  489.  
  490.    public lotus.domino.Item getFirstItem(String var1) throws NotesException {
  491.       ((NotesBase)this).CheckObject();
  492.       synchronized(this){}
  493.  
  494.       Item var2;
  495.       try {
  496.          var2 = this.FindOrCreateItem(this.NgetFirstItem(var1));
  497.       } catch (Throwable var6) {
  498.          throw var6;
  499.       }
  500.  
  501.       return var2;
  502.    }
  503.  
  504.    public Vector getItemValue(String var1) throws NotesException {
  505.       ((NotesBase)this).CheckObject();
  506.       synchronized(this){}
  507.  
  508.       Vector var2;
  509.       try {
  510.          var2 = this.NgetItemValue(var1);
  511.       } catch (Throwable var6) {
  512.          throw var6;
  513.       }
  514.  
  515.       return var2;
  516.    }
  517.  
  518.    public String getItemValueString(String var1) throws NotesException {
  519.       ((NotesBase)this).CheckObject();
  520.       synchronized(this){}
  521.  
  522.       String var2;
  523.       try {
  524.          var2 = this.NgetItemValueString(var1);
  525.       } catch (Throwable var6) {
  526.          throw var6;
  527.       }
  528.  
  529.       return var2;
  530.    }
  531.  
  532.    public int getItemValueInteger(String var1) throws NotesException {
  533.       ((NotesBase)this).CheckObject();
  534.       synchronized(this){}
  535.  
  536.       int var2;
  537.       try {
  538.          var2 = this.NgetItemValueInteger(var1);
  539.       } catch (Throwable var6) {
  540.          throw var6;
  541.       }
  542.  
  543.       return var2;
  544.    }
  545.  
  546.    public double getItemValueDouble(String var1) throws NotesException {
  547.       ((NotesBase)this).CheckObject();
  548.       synchronized(this){}
  549.  
  550.       double var2;
  551.       try {
  552.          var2 = this.NgetItemValueDouble(var1);
  553.       } catch (Throwable var7) {
  554.          throw var7;
  555.       }
  556.  
  557.       return var2;
  558.    }
  559.  
  560.    public boolean hasItem(String var1) throws NotesException {
  561.       ((NotesBase)this).CheckObject();
  562.       synchronized(this){}
  563.  
  564.       boolean var2;
  565.       try {
  566.          var2 = this.NhasItem(var1);
  567.       } catch (Throwable var6) {
  568.          throw var6;
  569.       }
  570.  
  571.       return var2;
  572.    }
  573.  
  574.    public void makeResponse(lotus.domino.Document var1) throws NotesException {
  575.       ((NotesBase)this).CheckObject();
  576.       synchronized(this){}
  577.  
  578.       try {
  579.          if (var1 == null) {
  580.             throw new NotesException(4187, JavaString.resource.getString("parent_document_is_required_to_make_a_response_document"));
  581.          }
  582.  
  583.          this.NmakeResponse((Document)var1);
  584.       } catch (Throwable var4) {
  585.          throw var4;
  586.       }
  587.  
  588.    }
  589.  
  590.    public void putInFolder(String var1) throws NotesException {
  591.       ((NotesBase)this).CheckObject();
  592.       synchronized(this){}
  593.  
  594.       try {
  595.          this.NputInFolder(var1, true);
  596.       } catch (Throwable var4) {
  597.          throw var4;
  598.       }
  599.  
  600.    }
  601.  
  602.    public void putInFolder(String var1, boolean var2) throws NotesException {
  603.       ((NotesBase)this).CheckObject();
  604.       synchronized(this){}
  605.  
  606.       try {
  607.          this.NputInFolder(var1, var2);
  608.       } catch (Throwable var5) {
  609.          throw var5;
  610.       }
  611.  
  612.    }
  613.  
  614.    public boolean remove(boolean var1) throws NotesException {
  615.       ((NotesBase)this).CheckObject();
  616.       synchronized(this){}
  617.  
  618.       boolean var2;
  619.       try {
  620.          boolean var5 = this.Nremove(var1);
  621.          this.database.RemoveDocument(this);
  622.          this.finalize();
  623.          var2 = var5;
  624.       } catch (Throwable var7) {
  625.          throw var7;
  626.       }
  627.  
  628.       return var2;
  629.    }
  630.  
  631.    public void removeFromFolder(String var1) throws NotesException {
  632.       ((NotesBase)this).CheckObject();
  633.       synchronized(this){}
  634.  
  635.       try {
  636.          this.NremoveFromFolder(var1, true);
  637.       } catch (Throwable var4) {
  638.          throw var4;
  639.       }
  640.  
  641.    }
  642.  
  643.    public void removeFromFolder(String var1, boolean var2) throws NotesException {
  644.       ((NotesBase)this).CheckObject();
  645.       synchronized(this){}
  646.  
  647.       try {
  648.          this.NremoveFromFolder(var1, var2);
  649.       } catch (Throwable var5) {
  650.          throw var5;
  651.       }
  652.  
  653.    }
  654.  
  655.    public void removeItem(String var1) throws NotesException {
  656.       ((NotesBase)this).CheckObject();
  657.       synchronized(this){}
  658.  
  659.       try {
  660.          this.NremoveItem(var1);
  661.       } catch (Throwable var4) {
  662.          throw var4;
  663.       }
  664.  
  665.    }
  666.  
  667.    public boolean renderToRTItem(lotus.domino.RichTextItem var1) throws NotesException {
  668.       ((NotesBase)this).CheckObject();
  669.       synchronized(this){}
  670.  
  671.       boolean var2;
  672.       try {
  673.          var2 = this.NrenderToRTItem((RichTextItem)var1);
  674.       } catch (Throwable var6) {
  675.          throw var6;
  676.       }
  677.  
  678.       return var2;
  679.    }
  680.  
  681.    public lotus.domino.Item replaceItemValue(String var1, Object var2) throws NotesException {
  682.       ((NotesBase)this).CheckObject();
  683.       synchronized(this){}
  684.  
  685.       Item var3;
  686.       try {
  687.          var3 = this.FindOrCreateItem(this.NreplaceItemValue(var1, var2));
  688.       } catch (Throwable var7) {
  689.          throw var7;
  690.       }
  691.  
  692.       return var3;
  693.    }
  694.  
  695.    public boolean save(boolean var1, boolean var2, boolean var3) throws NotesException {
  696.       ((NotesBase)this).CheckObject();
  697.       synchronized(this){}
  698.  
  699.       boolean var4;
  700.       try {
  701.          var4 = this.Nsave(var1, var2, var3);
  702.       } catch (Throwable var8) {
  703.          throw var8;
  704.       }
  705.  
  706.       return var4;
  707.    }
  708.  
  709.    public boolean save(boolean var1, boolean var2) throws NotesException {
  710.       return this.save(var1, var2, false);
  711.    }
  712.  
  713.    public boolean save(boolean var1) throws NotesException {
  714.       return this.save(var1, false, false);
  715.    }
  716.  
  717.    public boolean save() throws NotesException {
  718.       return this.save(false, false, false);
  719.    }
  720.  
  721.    public void send(boolean var1, Vector var2) throws NotesException {
  722.       ((NotesBase)this).CheckObject();
  723.       synchronized(this){}
  724.  
  725.       try {
  726.          this.Nsend(var1, var2);
  727.       } catch (Throwable var5) {
  728.          throw var5;
  729.       }
  730.  
  731.    }
  732.  
  733.    public void send(Vector var1) throws NotesException {
  734.       this.send(false, var1);
  735.    }
  736.  
  737.    public void send(boolean var1, String var2) throws NotesException {
  738.       Vector var3 = new Vector(1);
  739.       var3.addElement(var2);
  740.       this.send(var1, var3);
  741.    }
  742.  
  743.    public void send(String var1) throws NotesException {
  744.       Vector var2 = new Vector(1);
  745.       var2.addElement(var1);
  746.       this.send(false, var2);
  747.    }
  748.  
  749.    public void sign() throws NotesException {
  750.       ((NotesBase)this).CheckObject();
  751.       synchronized(this){}
  752.  
  753.       try {
  754.          this.Nsign();
  755.       } catch (Throwable var3) {
  756.          throw var3;
  757.       }
  758.  
  759.    }
  760.  
  761.    public lotus.domino.EmbeddedObject getAttachment(String var1) throws NotesException {
  762.       ((NotesBase)this).CheckObject();
  763.       synchronized(this){}
  764.  
  765.       EmbeddedObject var2;
  766.       try {
  767.          var2 = this.FindOrCreateEmbedded(this.NgetAttachment(var1));
  768.       } catch (Throwable var6) {
  769.          throw var6;
  770.       }
  771.  
  772.       return var2;
  773.    }
  774.  
  775.    public String getNoteID() throws NotesException {
  776.       ((NotesBase)this).CheckObject();
  777.       synchronized(this){}
  778.  
  779.       String var1;
  780.       try {
  781.          var1 = ((NotesBase)this).PropGetString(1148);
  782.       } catch (Throwable var5) {
  783.          throw var5;
  784.       }
  785.  
  786.       return var1;
  787.    }
  788.  
  789.    public int getLNoteID() throws NotesException {
  790.       ((NotesBase)this).CheckObject();
  791.       synchronized(this){}
  792.  
  793.       int var1;
  794.       try {
  795.          var1 = Integer.parseInt(((NotesBase)this).PropGetString(1148), 16);
  796.       } catch (Throwable var5) {
  797.          throw var5;
  798.       }
  799.  
  800.       return var1;
  801.    }
  802.  
  803.    public String getParentDocumentUNID() throws NotesException {
  804.       ((NotesBase)this).CheckObject();
  805.       synchronized(this){}
  806.  
  807.       String var1;
  808.       try {
  809.          var1 = ((NotesBase)this).PropGetString(1154);
  810.       } catch (Throwable var5) {
  811.          throw var5;
  812.       }
  813.  
  814.       return var1;
  815.    }
  816.  
  817.    public String getSigner() throws NotesException {
  818.       ((NotesBase)this).CheckObject();
  819.       synchronized(this){}
  820.  
  821.       String var1;
  822.       try {
  823.          var1 = ((NotesBase)this).PropGetString(1158);
  824.       } catch (Throwable var5) {
  825.          throw var5;
  826.       }
  827.  
  828.       return var1;
  829.    }
  830.  
  831.    public String getUniversalID() throws NotesException {
  832.       ((NotesBase)this).CheckObject();
  833.       synchronized(this){}
  834.  
  835.       String var1;
  836.       try {
  837.          var1 = ((NotesBase)this).PropGetString(1149);
  838.       } catch (Throwable var5) {
  839.          throw var5;
  840.       }
  841.  
  842.       return var1;
  843.    }
  844.  
  845.    public String toString() {
  846.       String var1;
  847.       try {
  848.          var1 = this.getUniversalID();
  849.       } catch (Exception var2) {
  850.          var1 = null;
  851.       }
  852.  
  853.       return var1;
  854.    }
  855.  
  856.    public void setUniversalID(String var1) throws NotesException {
  857.       ((NotesBase)this).CheckObject();
  858.       synchronized(this){}
  859.  
  860.       try {
  861.          ((NotesBase)this).PropSetString(1149, var1);
  862.       } catch (Throwable var4) {
  863.          throw var4;
  864.       }
  865.  
  866.    }
  867.  
  868.    public String getVerifier() throws NotesException {
  869.       ((NotesBase)this).CheckObject();
  870.       synchronized(this){}
  871.  
  872.       String var1;
  873.       try {
  874.          var1 = ((NotesBase)this).PropGetString(1159);
  875.       } catch (Throwable var5) {
  876.          throw var5;
  877.       }
  878.  
  879.       return var1;
  880.    }
  881.  
  882.    public boolean isEncryptOnSend() throws NotesException {
  883.       ((NotesBase)this).CheckObject();
  884.       synchronized(this){}
  885.  
  886.       boolean var1;
  887.       try {
  888.          var1 = ((NotesBase)this).PropGetBool(1155);
  889.       } catch (Throwable var5) {
  890.          throw var5;
  891.       }
  892.  
  893.       return var1;
  894.    }
  895.  
  896.    public void setEncryptOnSend(boolean var1) throws NotesException {
  897.       ((NotesBase)this).CheckObject();
  898.       synchronized(this){}
  899.  
  900.       try {
  901.          ((NotesBase)this).PropSetBool(1155, var1);
  902.       } catch (Throwable var4) {
  903.          throw var4;
  904.       }
  905.  
  906.    }
  907.  
  908.    public boolean hasEmbedded() throws NotesException {
  909.       ((NotesBase)this).CheckObject();
  910.       synchronized(this){}
  911.  
  912.       boolean var1;
  913.       try {
  914.          var1 = ((NotesBase)this).PropGetBool(1151);
  915.       } catch (Throwable var5) {
  916.          throw var5;
  917.       }
  918.  
  919.       return var1;
  920.    }
  921.  
  922.    public boolean isNewNote() throws NotesException {
  923.       ((NotesBase)this).CheckObject();
  924.       synchronized(this){}
  925.  
  926.       boolean var1;
  927.       try {
  928.          var1 = ((NotesBase)this).PropGetBool(1146);
  929.       } catch (Throwable var5) {
  930.          throw var5;
  931.       }
  932.  
  933.       return var1;
  934.    }
  935.  
  936.    public boolean isResponse() throws NotesException {
  937.       ((NotesBase)this).CheckObject();
  938.       synchronized(this){}
  939.  
  940.       boolean var1;
  941.       try {
  942.          var1 = ((NotesBase)this).PropGetBool(1144);
  943.       } catch (Throwable var5) {
  944.          throw var5;
  945.       }
  946.  
  947.       return var1;
  948.    }
  949.  
  950.    public boolean isSigned() throws NotesException {
  951.       ((NotesBase)this).CheckObject();
  952.       synchronized(this){}
  953.  
  954.       boolean var1;
  955.       try {
  956.          var1 = ((NotesBase)this).PropGetBool(1140);
  957.       } catch (Throwable var5) {
  958.          throw var5;
  959.       }
  960.  
  961.       return var1;
  962.    }
  963.  
  964.    public boolean isSaveMessageOnSend() throws NotesException {
  965.       ((NotesBase)this).CheckObject();
  966.       synchronized(this){}
  967.  
  968.       boolean var1;
  969.       try {
  970.          var1 = ((NotesBase)this).PropGetBool(1157);
  971.       } catch (Throwable var5) {
  972.          throw var5;
  973.       }
  974.  
  975.       return var1;
  976.    }
  977.  
  978.    public void setSaveMessageOnSend(boolean var1) throws NotesException {
  979.       ((NotesBase)this).CheckObject();
  980.       synchronized(this){}
  981.  
  982.       try {
  983.          ((NotesBase)this).PropSetBool(1157, var1);
  984.       } catch (Throwable var4) {
  985.          throw var4;
  986.       }
  987.  
  988.    }
  989.  
  990.    public boolean isSentByAgent() throws NotesException {
  991.       ((NotesBase)this).CheckObject();
  992.       synchronized(this){}
  993.  
  994.       boolean var1;
  995.       try {
  996.          var1 = ((NotesBase)this).PropGetBool(1162);
  997.       } catch (Throwable var5) {
  998.          throw var5;
  999.       }
  1000.  
  1001.       return var1;
  1002.    }
  1003.  
  1004.    public boolean isSignOnSend() throws NotesException {
  1005.       ((NotesBase)this).CheckObject();
  1006.       synchronized(this){}
  1007.  
  1008.       boolean var1;
  1009.       try {
  1010.          var1 = ((NotesBase)this).PropGetBool(1156);
  1011.       } catch (Throwable var5) {
  1012.          throw var5;
  1013.       }
  1014.  
  1015.       return var1;
  1016.    }
  1017.  
  1018.    public void setSignOnSend(boolean var1) throws NotesException {
  1019.       ((NotesBase)this).CheckObject();
  1020.       synchronized(this){}
  1021.  
  1022.       try {
  1023.          ((NotesBase)this).PropSetBool(1156, var1);
  1024.       } catch (Throwable var4) {
  1025.          throw var4;
  1026.       }
  1027.  
  1028.    }
  1029.  
  1030.    public Vector getAuthors() throws NotesException {
  1031.       return this.getStringArrayProperty(1147);
  1032.    }
  1033.  
  1034.    public Vector getColumnValues() throws NotesException {
  1035.       ((NotesBase)this).CheckObject();
  1036.       synchronized(this){}
  1037.  
  1038.       Vector var1;
  1039.       try {
  1040.          var1 = ((NotesBase)this).PropGetVector(1164);
  1041.       } catch (Throwable var5) {
  1042.          throw var5;
  1043.       }
  1044.  
  1045.       return var1;
  1046.    }
  1047.  
  1048.    public Vector getEmbeddedObjects() throws NotesException {
  1049.       ((NotesBase)this).CheckObject();
  1050.       synchronized(this){}
  1051.  
  1052.       Vector var1;
  1053.       try {
  1054.          int[] var4 = ((NotesBase)this).PropGetObjArray(2950);
  1055.          if (var4.length != 0) {
  1056.             Vector var7 = new Vector(var4.length);
  1057.  
  1058.             for(int var6 = 0; var6 < var4.length; ++var6) {
  1059.                EmbeddedObject var5 = this.FindOrCreateEmbedded(var4[var6]);
  1060.                var7.addElement(var5);
  1061.             }
  1062.  
  1063.             var1 = var7;
  1064.             return var1;
  1065.          }
  1066.  
  1067.          var1 = null;
  1068.       } catch (Throwable var9) {
  1069.          throw var9;
  1070.       }
  1071.  
  1072.       return var1;
  1073.    }
  1074.  
  1075.    public Vector getEncryptionKeys() throws NotesException {
  1076.       Vector var1 = new Vector();
  1077.       ((NotesBase)this).CheckObject();
  1078.       synchronized(this){}
  1079.  
  1080.       try {
  1081.          String[] var4 = ((NotesBase)this).PropGetStringArray(1161);
  1082.          if (var4 != null && var4.length > 0) {
  1083.             for(int var5 = 0; var5 < var4.length; ++var5) {
  1084.                var1.addElement(var4[var5]);
  1085.             }
  1086.          }
  1087.       } catch (Throwable var7) {
  1088.          throw var7;
  1089.       }
  1090.  
  1091.       return var1;
  1092.    }
  1093.  
  1094.    public void setEncryptionKeys(Vector var1) throws NotesException {
  1095.       ((NotesBase)this).CheckObject();
  1096.       synchronized(this){}
  1097.  
  1098.       try {
  1099.          ((NotesBase)this).PropSetVector(1161, var1);
  1100.       } catch (Throwable var4) {
  1101.          throw var4;
  1102.       }
  1103.  
  1104.    }
  1105.  
  1106.    public Vector getItems() throws NotesException {
  1107.       ((NotesBase)this).CheckObject();
  1108.       synchronized(this){}
  1109.  
  1110.       Vector var1;
  1111.       try {
  1112.          int[] var4 = ((NotesBase)this).PropGetObjArray(1150);
  1113.          if (var4.length != 0) {
  1114.             Vector var7 = new Vector(var4.length);
  1115.  
  1116.             for(int var6 = 0; var6 < var4.length; ++var6) {
  1117.                Item var5 = this.FindOrCreateItem(var4[var6]);
  1118.                var7.addElement(var5);
  1119.             }
  1120.  
  1121.             var1 = var7;
  1122.             return var1;
  1123.          }
  1124.  
  1125.          var1 = null;
  1126.       } catch (Throwable var9) {
  1127.          throw var9;
  1128.       }
  1129.  
  1130.       return var1;
  1131.    }
  1132.  
  1133.    public DateTime getCreated() throws NotesException {
  1134.       ((NotesBase)this).CheckObject();
  1135.       synchronized(this){}
  1136.  
  1137.       lotus.domino.local.DateTime var1;
  1138.       try {
  1139.          var1 = ((Session)this.database.getParent()).FindOrCreateDateTime(((NotesBase)this).PropGetDate(1143));
  1140.       } catch (Throwable var5) {
  1141.          throw var5;
  1142.       }
  1143.  
  1144.       return var1;
  1145.    }
  1146.  
  1147.    public DateTime getLastAccessed() throws NotesException {
  1148.       ((NotesBase)this).CheckObject();
  1149.       synchronized(this){}
  1150.  
  1151.       lotus.domino.local.DateTime var1;
  1152.       try {
  1153.          var1 = ((Session)this.database.getParent()).FindOrCreateDateTime(((NotesBase)this).PropGetDate(1142));
  1154.       } catch (Throwable var5) {
  1155.          throw var5;
  1156.       }
  1157.  
  1158.       return var1;
  1159.    }
  1160.  
  1161.    public DateTime getLastModified() throws NotesException {
  1162.       ((NotesBase)this).CheckObject();
  1163.       synchronized(this){}
  1164.  
  1165.       lotus.domino.local.DateTime var1;
  1166.       try {
  1167.          var1 = ((Session)this.database.getParent()).FindOrCreateDateTime(((NotesBase)this).PropGetDate(1141));
  1168.       } catch (Throwable var5) {
  1169.          throw var5;
  1170.       }
  1171.  
  1172.       return var1;
  1173.    }
  1174.  
  1175.    public lotus.domino.Database getParentDatabase() throws NotesException {
  1176.       ((NotesBase)this).CheckObject();
  1177.       return this.database;
  1178.    }
  1179.  
  1180.    public int getFTSearchScore() throws NotesException {
  1181.       ((NotesBase)this).CheckObject();
  1182.       synchronized(this){}
  1183.  
  1184.       int var1;
  1185.       try {
  1186.          var1 = ((NotesBase)this).PropGetInt(1145);
  1187.       } catch (Throwable var5) {
  1188.          throw var5;
  1189.       }
  1190.  
  1191.       return var1;
  1192.    }
  1193.  
  1194.    public int getSize() throws NotesException {
  1195.       ((NotesBase)this).CheckObject();
  1196.       synchronized(this){}
  1197.  
  1198.       int var1;
  1199.       try {
  1200.          var1 = ((NotesBase)this).PropGetInt(1163);
  1201.       } catch (Throwable var5) {
  1202.          throw var5;
  1203.       }
  1204.  
  1205.       return var1;
  1206.    }
  1207.  
  1208.    public View getParentView() throws NotesException {
  1209.       ((NotesBase)this).CheckObject();
  1210.       synchronized(this){}
  1211.  
  1212.       View var1;
  1213.       try {
  1214.          int var4 = ((NotesBase)this).PropGetAdt(1153);
  1215.          if (var4 == 0) {
  1216.             var1 = null;
  1217.             return var1;
  1218.          }
  1219.  
  1220.          var1 = this.database.FindOrCreateView(var4);
  1221.       } catch (Throwable var6) {
  1222.          throw var6;
  1223.       }
  1224.  
  1225.       return var1;
  1226.    }
  1227.  
  1228.    public DocumentCollection getResponses() throws NotesException {
  1229.       ((NotesBase)this).CheckObject();
  1230.       synchronized(this){}
  1231.  
  1232.       lotus.domino.local.DocumentCollection var1;
  1233.       try {
  1234.          var1 = this.database.FindOrCreateDocCollection(((NotesBase)this).PropGetAdt(1160));
  1235.       } catch (Throwable var5) {
  1236.          throw var5;
  1237.       }
  1238.  
  1239.       return var1;
  1240.    }
  1241.  
  1242.    public boolean isProfile() throws NotesException {
  1243.       ((NotesBase)this).CheckObject();
  1244.       synchronized(this){}
  1245.  
  1246.       boolean var1;
  1247.       try {
  1248.          var1 = ((NotesBase)this).PropGetBool(2952);
  1249.       } catch (Throwable var5) {
  1250.          throw var5;
  1251.       }
  1252.  
  1253.       return var1;
  1254.    }
  1255.  
  1256.    public String getNameOfProfile() throws NotesException {
  1257.       ((NotesBase)this).CheckObject();
  1258.       synchronized(this){}
  1259.  
  1260.       String var1;
  1261.       try {
  1262.          var1 = ((NotesBase)this).PropGetString(2953);
  1263.       } catch (Throwable var5) {
  1264.          throw var5;
  1265.       }
  1266.  
  1267.       return var1;
  1268.    }
  1269.  
  1270.    public String getKey() throws NotesException {
  1271.       ((NotesBase)this).CheckObject();
  1272.       synchronized(this){}
  1273.  
  1274.       String var1;
  1275.       try {
  1276.          var1 = ((NotesBase)this).PropGetString(2954);
  1277.       } catch (Throwable var5) {
  1278.          throw var5;
  1279.       }
  1280.  
  1281.       return var1;
  1282.    }
  1283.  
  1284.    public Vector getFolderReferences() throws NotesException {
  1285.       return this.getStringArrayProperty(2957);
  1286.    }
  1287.  
  1288.    protected Vector getStringArrayProperty(int var1) throws NotesException {
  1289.       ((NotesBase)this).CheckObject();
  1290.       synchronized(this){}
  1291.  
  1292.       Vector var3;
  1293.       try {
  1294.          String[] var6 = ((NotesBase)this).PropGetStringArray(var1);
  1295.          Vector var2;
  1296.          if (var6 != null && var6.length > 0) {
  1297.             var2 = new Vector(var6.length, 1);
  1298.  
  1299.             for(int var7 = 0; var7 < var6.length; ++var7) {
  1300.                var2.addElement(var6[var7]);
  1301.             }
  1302.          } else {
  1303.             var2 = new Vector(1);
  1304.          }
  1305.  
  1306.          var3 = var2;
  1307.       } catch (Throwable var9) {
  1308.          throw var9;
  1309.       }
  1310.  
  1311.       return var3;
  1312.    }
  1313.  
  1314.    public boolean isValid() throws NotesException {
  1315.       synchronized(this){}
  1316.  
  1317.       boolean var1;
  1318.       try {
  1319.          if (!super.isdeleted) {
  1320.             var1 = ((NotesBase)this).PropGetBool(2959);
  1321.             return var1;
  1322.          }
  1323.  
  1324.          var1 = false;
  1325.       } catch (Throwable var5) {
  1326.          throw var5;
  1327.       }
  1328.  
  1329.       return var1;
  1330.    }
  1331. }
  1332.