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 / View.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-11-15  |  14.3 KB  |  1,056 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.ViewEntryCollection;
  9. import lotus.notes.JavaString;
  10.  
  11. public class View extends NotesBase implements lotus.domino.View {
  12.    protected transient Database database;
  13.    private transient Vector columns;
  14.  
  15.    private native void Nclear();
  16.  
  17.    private native int NFTSearch(String var1, int var2);
  18.  
  19.    private native int NgetChild(Document var1);
  20.  
  21.    private native int NgetDocumentByKey(Vector var1, boolean var2);
  22.  
  23.    private native int NgetAllDocumentsByKey(Vector var1, boolean var2);
  24.  
  25.    private native int NgetFirstDocument();
  26.  
  27.    private native int NgetLastDocument();
  28.  
  29.    private native int NgetNextDocument(Document var1);
  30.  
  31.    private native int NgetNextSibling(Document var1);
  32.  
  33.    private native int NgetNthDocument(int var1);
  34.  
  35.    private native int NgetParentDocument(Document var1);
  36.  
  37.    private native int NgetPrevDocument(Document var1);
  38.  
  39.    private native int NgetPrevSibling(Document var1);
  40.  
  41.    private native void Nrefresh();
  42.  
  43.    private native void Nremove();
  44.  
  45.    protected native int NgetOneViewEntry(CollectionPos var1, int var2, int var3, int var4, int var5, int var6);
  46.  
  47.    private native int NgetEntryByKey(Vector var1, boolean var2);
  48.  
  49.    private native int NgetAllEntriesByKey(Vector var1, boolean var2);
  50.  
  51.    private native int NgetAllEntries();
  52.  
  53.    protected View() throws NotesException {
  54.    }
  55.  
  56.    protected View(Database var1, int var2) throws NotesException {
  57.       super(var2, 3);
  58.       if (var1 == null) {
  59.          throw new NotesException(4405, JavaString.resource.getString("missing_db_object"));
  60.       } else {
  61.          this.database = var1;
  62.          this.columns = new Vector(3);
  63.          var1.AddView(this);
  64.       }
  65.    }
  66.  
  67.    protected void InternalFinalize() throws NotesException {
  68.       try {
  69.          Enumeration var3 = this.columns.elements();
  70.  
  71.          while(var3.hasMoreElements()) {
  72.             ViewColumn var4 = (ViewColumn)var3.nextElement();
  73.             super.DestroyObject(var4);
  74.          }
  75.       } catch (Exception var7) {
  76.       } finally {
  77.          this.columns.removeAllElements();
  78.          super.finalize();
  79.       }
  80.  
  81.    }
  82.  
  83.    public void finalize() throws NotesException {
  84.       this.database.RemoveView(this);
  85.       this.InternalFinalize();
  86.    }
  87.  
  88.    protected void AddColumn(ViewColumn var1) throws NotesException {
  89.       ((NotesBase)this).CheckObject();
  90.       Vector var2 = this.columns;
  91.       synchronized(var2){}
  92.  
  93.       try {
  94.          this.columns.addElement(var1);
  95.       } catch (Throwable var4) {
  96.          throw var4;
  97.       }
  98.  
  99.    }
  100.  
  101.    protected void RemoveColumn(ViewColumn var1) throws NotesException {
  102.       Vector var2 = this.columns;
  103.       synchronized(var2){}
  104.  
  105.       try {
  106.          this.columns.removeElement(var1);
  107.       } catch (Throwable var4) {
  108.          throw var4;
  109.       }
  110.  
  111.    }
  112.  
  113.    protected ViewColumn FindOrCreateColumn(int var1) throws NotesException {
  114.       ((NotesBase)this).CheckObject();
  115.       if (var1 == 0) {
  116.          return null;
  117.       } else {
  118.          Vector var4 = this.columns;
  119.          synchronized(var4){}
  120.  
  121.          ViewColumn var3;
  122.          try {
  123.             Enumeration var6 = this.columns.elements();
  124.  
  125.             ViewColumn var2;
  126.             do {
  127.                if (!var6.hasMoreElements()) {
  128.                   var3 = new ViewColumn(this, var1);
  129.                   return var3;
  130.                }
  131.  
  132.                var2 = (ViewColumn)var6.nextElement();
  133.             } while(!((NotesBase)var2).isEqual(var1));
  134.  
  135.             var3 = var2;
  136.          } catch (Throwable var8) {
  137.             throw var8;
  138.          }
  139.  
  140.          return var3;
  141.       }
  142.    }
  143.  
  144.    private ViewNavigator makeViewNavigator(byte var1, boolean var2, int var3, Object var4) throws NotesException {
  145.       int var5 = 30;
  146.       boolean var6 = true;
  147.       if (((NotesBase)this).PropGetBool(1927) || ((NotesBase)this).PropGetBool(1920)) {
  148.          var6 = false;
  149.       }
  150.  
  151.       if (var1 != 0) {
  152.          if (var4 == null) {
  153.             if (var1 != 4) {
  154.                throw new NotesException(4447, JavaString.resource.getString("missing_viewentry_or_document_object"));
  155.             }
  156.  
  157.             var1 = 5;
  158.          } else if (var4 instanceof ViewEntry && !((ViewEntry)var4).isValid() || var4 instanceof Document && !((Document)var4).isValid()) {
  159.             throw new NotesException(4376, "object_deleted");
  160.          }
  161.       }
  162.  
  163.       if (var1 != 0 && var4 instanceof ViewEntry && ((ViewEntry)var4).getParentView() != this) {
  164.          throw new NotesException(4450, JavaString.resource.getString("cannot_construct_viewnavigator_from_category_entry_from_a_different_view"));
  165.       } else {
  166.          if (var2) {
  167.             if (var3 < 0 || var3 > 30) {
  168.                throw new NotesException(4392, JavaString.resource.getString("invalid_maximum_navigation_level"));
  169.             }
  170.  
  171.             var5 = var3;
  172.          }
  173.  
  174.          ViewNavigator var7 = new ViewNavigator(this, var1, var6, var4, var5);
  175.          return var7;
  176.       }
  177.    }
  178.  
  179.    public void recycle() throws NotesException {
  180.       try {
  181.          this.database.RemoveView(this);
  182.          Enumeration var3 = this.columns.elements();
  183.  
  184.          while(var3.hasMoreElements()) {
  185.             ViewColumn var4 = (ViewColumn)var3.nextElement();
  186.             super.RecycleObject(var4);
  187.          }
  188.       } catch (NotesException var7) {
  189.       } finally {
  190.          this.columns.removeAllElements();
  191.          super.Recycle();
  192.       }
  193.  
  194.    }
  195.  
  196.    public void clear() throws NotesException {
  197.       ((NotesBase)this).CheckObject();
  198.       synchronized(this){}
  199.  
  200.       try {
  201.          this.Nclear();
  202.       } catch (Throwable var3) {
  203.          throw var3;
  204.       }
  205.  
  206.    }
  207.  
  208.    public int FTSearch(String var1, int var2) throws NotesException {
  209.       ((NotesBase)this).CheckObject();
  210.       synchronized(this){}
  211.  
  212.       int var3;
  213.       try {
  214.          var3 = this.NFTSearch(var1, var2);
  215.       } catch (Throwable var7) {
  216.          throw var7;
  217.       }
  218.  
  219.       return var3;
  220.    }
  221.  
  222.    public int FTSearch(String var1) throws NotesException {
  223.       return this.FTSearch(var1, 0);
  224.    }
  225.  
  226.    public lotus.domino.Document getChild(lotus.domino.Document var1) throws NotesException {
  227.       ((NotesBase)this).CheckObject();
  228.       synchronized(this){}
  229.  
  230.       Document var2;
  231.       try {
  232.          if (var1 == null) {
  233.             throw new NotesException(4406, JavaString.resource.getString("missing_document_object"));
  234.          }
  235.  
  236.          var2 = this.database.FindOrCreateDocument(this.NgetChild((Document)var1));
  237.       } catch (Throwable var6) {
  238.          throw var6;
  239.       }
  240.  
  241.       return var2;
  242.    }
  243.  
  244.    public lotus.domino.Document getDocumentByKey(Vector var1) throws NotesException {
  245.       return this.getDocumentByKey(var1, false);
  246.    }
  247.  
  248.    public lotus.domino.Document getDocumentByKey(Vector var1, boolean var2) throws NotesException {
  249.       ((NotesBase)this).CheckObject();
  250.       synchronized(this){}
  251.  
  252.       Document var3;
  253.       try {
  254.          var3 = this.database.FindOrCreateDocument(this.NgetDocumentByKey(var1, var2));
  255.       } catch (Throwable var7) {
  256.          throw var7;
  257.       }
  258.  
  259.       return var3;
  260.    }
  261.  
  262.    public lotus.domino.Document getDocumentByKey(Object var1) throws NotesException {
  263.       Vector var2 = new Vector(1);
  264.       var2.addElement(var1);
  265.       return this.getDocumentByKey(var2, false);
  266.    }
  267.  
  268.    public lotus.domino.Document getDocumentByKey(Object var1, boolean var2) throws NotesException {
  269.       Vector var3 = new Vector(1);
  270.       var3.addElement(var1);
  271.       return this.getDocumentByKey(var3, var2);
  272.    }
  273.  
  274.    public DocumentCollection getAllDocumentsByKey(Vector var1) throws NotesException {
  275.       return this.getAllDocumentsByKey(var1, false);
  276.    }
  277.  
  278.    public DocumentCollection getAllDocumentsByKey(Vector var1, boolean var2) throws NotesException {
  279.       ((NotesBase)this).CheckObject();
  280.       synchronized(this){}
  281.  
  282.       lotus.domino.local.DocumentCollection var3;
  283.       try {
  284.          var3 = this.database.FindOrCreateDocCollection(this.NgetAllDocumentsByKey(var1, var2));
  285.       } catch (Throwable var7) {
  286.          throw var7;
  287.       }
  288.  
  289.       return var3;
  290.    }
  291.  
  292.    public DocumentCollection getAllDocumentsByKey(Object var1) throws NotesException {
  293.       Vector var2 = new Vector(1);
  294.       var2.addElement(var1);
  295.       return this.getAllDocumentsByKey(var2, false);
  296.    }
  297.  
  298.    public DocumentCollection getAllDocumentsByKey(Object var1, boolean var2) throws NotesException {
  299.       Vector var3 = new Vector(1);
  300.       var3.addElement(var1);
  301.       return this.getAllDocumentsByKey(var3, var2);
  302.    }
  303.  
  304.    public lotus.domino.ViewEntry getEntryByKey(Vector var1) throws NotesException {
  305.       return this.getEntryByKey(var1, false);
  306.    }
  307.  
  308.    public lotus.domino.ViewEntry getEntryByKey(Vector var1, boolean var2) throws NotesException {
  309.       ((NotesBase)this).CheckObject();
  310.       synchronized(this){}
  311.  
  312.       ViewEntry var3;
  313.       try {
  314.          var3 = new ViewEntry(this, this.NgetEntryByKey(var1, var2), (CollectionPos)null);
  315.       } catch (Throwable var7) {
  316.          throw var7;
  317.       }
  318.  
  319.       return var3;
  320.    }
  321.  
  322.    public lotus.domino.ViewEntry getEntryByKey(Object var1) throws NotesException {
  323.       Vector var2 = new Vector(1);
  324.       var2.addElement(var1);
  325.       return this.getEntryByKey(var2, false);
  326.    }
  327.  
  328.    public lotus.domino.ViewEntry getEntryByKey(Object var1, boolean var2) throws NotesException {
  329.       Vector var3 = new Vector(1);
  330.       var3.addElement(var1);
  331.       return this.getEntryByKey(var3, var2);
  332.    }
  333.  
  334.    public ViewEntryCollection getAllEntriesByKey(Vector var1) throws NotesException {
  335.       return this.getAllEntriesByKey(var1, false);
  336.    }
  337.  
  338.    public ViewEntryCollection getAllEntriesByKey(Vector var1, boolean var2) throws NotesException {
  339.       ((NotesBase)this).CheckObject();
  340.       synchronized(this){}
  341.  
  342.       lotus.domino.local.ViewEntryCollection var3;
  343.       try {
  344.          var3 = new lotus.domino.local.ViewEntryCollection(this, this.NgetAllEntriesByKey(var1, var2));
  345.       } catch (Throwable var7) {
  346.          throw var7;
  347.       }
  348.  
  349.       return var3;
  350.    }
  351.  
  352.    public ViewEntryCollection getAllEntriesByKey(Object var1) throws NotesException {
  353.       Vector var2 = new Vector(1);
  354.       var2.addElement(var1);
  355.       return this.getAllEntriesByKey(var2, false);
  356.    }
  357.  
  358.    public ViewEntryCollection getAllEntriesByKey(Object var1, boolean var2) throws NotesException {
  359.       Vector var3 = new Vector(1);
  360.       var3.addElement(var1);
  361.       return this.getAllEntriesByKey(var3, var2);
  362.    }
  363.  
  364.    public ViewEntryCollection getAllEntries() throws NotesException {
  365.       ((NotesBase)this).CheckObject();
  366.       synchronized(this){}
  367.  
  368.       lotus.domino.local.ViewEntryCollection var1;
  369.       try {
  370.          var1 = new lotus.domino.local.ViewEntryCollection(this, this.NgetAllEntries());
  371.       } catch (Throwable var5) {
  372.          throw var5;
  373.       }
  374.  
  375.       return var1;
  376.    }
  377.  
  378.    public lotus.domino.Document getFirstDocument() throws NotesException {
  379.       ((NotesBase)this).CheckObject();
  380.       synchronized(this){}
  381.  
  382.       Document var1;
  383.       try {
  384.          var1 = this.database.FindOrCreateDocument(this.NgetFirstDocument());
  385.       } catch (Throwable var5) {
  386.          throw var5;
  387.       }
  388.  
  389.       return var1;
  390.    }
  391.  
  392.    public lotus.domino.Document getLastDocument() throws NotesException {
  393.       ((NotesBase)this).CheckObject();
  394.       synchronized(this){}
  395.  
  396.       Document var1;
  397.       try {
  398.          var1 = this.database.FindOrCreateDocument(this.NgetLastDocument());
  399.       } catch (Throwable var5) {
  400.          throw var5;
  401.       }
  402.  
  403.       return var1;
  404.    }
  405.  
  406.    public lotus.domino.Document getNextDocument(lotus.domino.Document var1) throws NotesException {
  407.       ((NotesBase)this).CheckObject();
  408.       synchronized(this){}
  409.  
  410.       Document var2;
  411.       try {
  412.          if (var1 == null) {
  413.             throw new NotesException(4406, JavaString.resource.getString("missing_document_object"));
  414.          }
  415.  
  416.          var2 = this.database.FindOrCreateDocument(this.NgetNextDocument((Document)var1));
  417.       } catch (Throwable var6) {
  418.          throw var6;
  419.       }
  420.  
  421.       return var2;
  422.    }
  423.  
  424.    public lotus.domino.Document getNextSibling(lotus.domino.Document var1) throws NotesException {
  425.       ((NotesBase)this).CheckObject();
  426.       synchronized(this){}
  427.  
  428.       Document var2;
  429.       try {
  430.          if (var1 == null) {
  431.             throw new NotesException(4406, JavaString.resource.getString("missing_document_object"));
  432.          }
  433.  
  434.          var2 = this.database.FindOrCreateDocument(this.NgetNextSibling((Document)var1));
  435.       } catch (Throwable var6) {
  436.          throw var6;
  437.       }
  438.  
  439.       return var2;
  440.    }
  441.  
  442.    public lotus.domino.Document getNthDocument(int var1) throws NotesException {
  443.       ((NotesBase)this).CheckObject();
  444.       synchronized(this){}
  445.  
  446.       Document var2;
  447.       try {
  448.          var2 = this.database.FindOrCreateDocument(this.NgetNthDocument(var1));
  449.       } catch (Throwable var6) {
  450.          throw var6;
  451.       }
  452.  
  453.       return var2;
  454.    }
  455.  
  456.    public lotus.domino.Document getParentDocument(lotus.domino.Document var1) throws NotesException {
  457.       ((NotesBase)this).CheckObject();
  458.       synchronized(this){}
  459.  
  460.       Document var2;
  461.       try {
  462.          if (var1 == null) {
  463.             throw new NotesException(4406, JavaString.resource.getString("missing_document_object"));
  464.          }
  465.  
  466.          var2 = this.database.FindOrCreateDocument(this.NgetParentDocument((Document)var1));
  467.       } catch (Throwable var6) {
  468.          throw var6;
  469.       }
  470.  
  471.       return var2;
  472.    }
  473.  
  474.    public lotus.domino.Document getPrevDocument(lotus.domino.Document var1) throws NotesException {
  475.       ((NotesBase)this).CheckObject();
  476.       synchronized(this){}
  477.  
  478.       Document var2;
  479.       try {
  480.          if (var1 == null) {
  481.             throw new NotesException(4406, JavaString.resource.getString("missing_document_object"));
  482.          }
  483.  
  484.          var2 = this.database.FindOrCreateDocument(this.NgetPrevDocument((Document)var1));
  485.       } catch (Throwable var6) {
  486.          throw var6;
  487.       }
  488.  
  489.       return var2;
  490.    }
  491.  
  492.    public lotus.domino.Document getPrevSibling(lotus.domino.Document var1) throws NotesException {
  493.       ((NotesBase)this).CheckObject();
  494.       synchronized(this){}
  495.  
  496.       Document var2;
  497.       try {
  498.          if (var1 == null) {
  499.             throw new NotesException(4406, JavaString.resource.getString("missing_document_object"));
  500.          }
  501.  
  502.          var2 = this.database.FindOrCreateDocument(this.NgetPrevSibling((Document)var1));
  503.       } catch (Throwable var6) {
  504.          throw var6;
  505.       }
  506.  
  507.       return var2;
  508.    }
  509.  
  510.    public void refresh() throws NotesException {
  511.       ((NotesBase)this).CheckObject();
  512.       synchronized(this){}
  513.  
  514.       try {
  515.          this.Nrefresh();
  516.       } catch (Throwable var3) {
  517.          throw var3;
  518.       }
  519.  
  520.    }
  521.  
  522.    public void remove() throws NotesException {
  523.       ((NotesBase)this).CheckObject();
  524.       synchronized(this){}
  525.  
  526.       try {
  527.          this.Nremove();
  528.          this.database.RemoveView(this);
  529.          super.cpp_object = 0;
  530.          this.finalize();
  531.       } catch (Throwable var3) {
  532.          throw var3;
  533.       }
  534.  
  535.    }
  536.  
  537.    public DateTime getCreated() throws NotesException {
  538.       ((NotesBase)this).CheckObject();
  539.       synchronized(this){}
  540.  
  541.       lotus.domino.local.DateTime var1;
  542.       try {
  543.          var1 = ((Session)this.database.getParent()).FindOrCreateDateTime(((NotesBase)this).PropGetDate(1282));
  544.       } catch (Throwable var5) {
  545.          throw var5;
  546.       }
  547.  
  548.       return var1;
  549.    }
  550.  
  551.    public DateTime getLastModified() throws NotesException {
  552.       ((NotesBase)this).CheckObject();
  553.       synchronized(this){}
  554.  
  555.       lotus.domino.local.DateTime var1;
  556.       try {
  557.          var1 = ((Session)this.database.getParent()).FindOrCreateDateTime(((NotesBase)this).PropGetDate(1281));
  558.       } catch (Throwable var5) {
  559.          throw var5;
  560.       }
  561.  
  562.       return var1;
  563.    }
  564.  
  565.    public String getName() throws NotesException {
  566.       ((NotesBase)this).CheckObject();
  567.       synchronized(this){}
  568.  
  569.       String var1;
  570.       try {
  571.          var1 = ((NotesBase)this).PropGetString(1280);
  572.       } catch (Throwable var5) {
  573.          throw var5;
  574.       }
  575.  
  576.       return var1;
  577.    }
  578.  
  579.    public String toString() {
  580.       String var1;
  581.       try {
  582.          var1 = this.getName();
  583.       } catch (Exception var2) {
  584.          var1 = null;
  585.       }
  586.  
  587.       return var1;
  588.    }
  589.  
  590.    public String getUniversalID() throws NotesException {
  591.       ((NotesBase)this).CheckObject();
  592.       synchronized(this){}
  593.  
  594.       String var1;
  595.       try {
  596.          var1 = ((NotesBase)this).PropGetString(1283);
  597.       } catch (Throwable var5) {
  598.          throw var5;
  599.       }
  600.  
  601.       return var1;
  602.    }
  603.  
  604.    public lotus.domino.Database getParent() throws NotesException {
  605.       ((NotesBase)this).CheckObject();
  606.       return this.database;
  607.    }
  608.  
  609.    public boolean isDefaultView() throws NotesException {
  610.       ((NotesBase)this).CheckObject();
  611.       synchronized(this){}
  612.  
  613.       boolean var1;
  614.       try {
  615.          var1 = ((NotesBase)this).PropGetBool(1285);
  616.       } catch (Throwable var5) {
  617.          throw var5;
  618.       }
  619.  
  620.       return var1;
  621.    }
  622.  
  623.    public boolean isFolder() throws NotesException {
  624.       ((NotesBase)this).CheckObject();
  625.       synchronized(this){}
  626.  
  627.       boolean var1;
  628.       try {
  629.          var1 = ((NotesBase)this).PropGetBool(1287);
  630.       } catch (Throwable var5) {
  631.          throw var5;
  632.       }
  633.  
  634.       return var1;
  635.    }
  636.  
  637.    public Vector getColumns() throws NotesException {
  638.       ((NotesBase)this).CheckObject();
  639.       synchronized(this){}
  640.  
  641.       Vector var1;
  642.       try {
  643.          int[] var4 = ((NotesBase)this).PropGetObjArray(1286);
  644.          if (var4.length != 0) {
  645.             Vector var7 = new Vector(var4.length);
  646.  
  647.             for(int var6 = 0; var6 < var4.length; ++var6) {
  648.                ViewColumn var5 = this.FindOrCreateColumn(var4[var6]);
  649.                var7.addElement(var5);
  650.             }
  651.  
  652.             var1 = var7;
  653.             return var1;
  654.          }
  655.  
  656.          var1 = null;
  657.       } catch (Throwable var9) {
  658.          throw var9;
  659.       }
  660.  
  661.       return var1;
  662.    }
  663.  
  664.    public Vector getReaders() throws NotesException {
  665.       ((NotesBase)this).CheckObject();
  666.       synchronized(this){}
  667.  
  668.       Vector var2;
  669.       try {
  670.          String[] var5 = ((NotesBase)this).PropGetStringArray(1302);
  671.          Vector var1;
  672.          if (var5 != null && var5.length > 0) {
  673.             var1 = new Vector(var5.length, 1);
  674.  
  675.             for(int var6 = 0; var6 < var5.length; ++var6) {
  676.                var1.addElement(var5[var6]);
  677.             }
  678.          } else {
  679.             var1 = new Vector(1);
  680.          }
  681.  
  682.          var2 = var1;
  683.       } catch (Throwable var8) {
  684.          throw var8;
  685.       }
  686.  
  687.       return var2;
  688.    }
  689.  
  690.    public void setReaders(Vector var1) throws NotesException {
  691.       ((NotesBase)this).CheckObject();
  692.       synchronized(this){}
  693.  
  694.       try {
  695.          ((NotesBase)this).PropSetVector(1302, var1);
  696.       } catch (Throwable var4) {
  697.          throw var4;
  698.       }
  699.  
  700.    }
  701.  
  702.    public boolean isAutoUpdate() throws NotesException {
  703.       ((NotesBase)this).CheckObject();
  704.       synchronized(this){}
  705.  
  706.       boolean var1;
  707.       try {
  708.          var1 = ((NotesBase)this).PropGetBool(1303);
  709.       } catch (Throwable var5) {
  710.          throw var5;
  711.       }
  712.  
  713.       return var1;
  714.    }
  715.  
  716.    public void setAutoUpdate(boolean var1) throws NotesException {
  717.       ((NotesBase)this).CheckObject();
  718.       synchronized(this){}
  719.  
  720.       try {
  721.          ((NotesBase)this).PropSetBool(1303, var1);
  722.       } catch (Throwable var4) {
  723.          throw var4;
  724.       }
  725.  
  726.    }
  727.  
  728.    public Vector getAliases() throws NotesException {
  729.       ((NotesBase)this).CheckObject();
  730.       synchronized(this){}
  731.  
  732.       Vector var2;
  733.       try {
  734.          String[] var5 = ((NotesBase)this).PropGetStringArray(1304);
  735.          Vector var1;
  736.          if (var5 != null && var5.length > 0) {
  737.             var1 = new Vector(var5.length, 1);
  738.  
  739.             for(int var6 = 0; var6 < var5.length; ++var6) {
  740.                var1.addElement(var5[var6]);
  741.             }
  742.          } else {
  743.             var1 = new Vector(1);
  744.          }
  745.  
  746.          var2 = var1;
  747.       } catch (Throwable var8) {
  748.          throw var8;
  749.       }
  750.  
  751.       return var2;
  752.    }
  753.  
  754.    public boolean isCalendar() throws NotesException {
  755.       ((NotesBase)this).CheckObject();
  756.       synchronized(this){}
  757.  
  758.       boolean var1;
  759.       try {
  760.          var1 = ((NotesBase)this).PropGetBool(1305);
  761.       } catch (Throwable var5) {
  762.          throw var5;
  763.       }
  764.  
  765.       return var1;
  766.    }
  767.  
  768.    public boolean isProtectReaders() throws NotesException {
  769.       ((NotesBase)this).CheckObject();
  770.       synchronized(this){}
  771.  
  772.       boolean var1;
  773.       try {
  774.          var1 = ((NotesBase)this).PropGetBool(1309);
  775.       } catch (Throwable var5) {
  776.          throw var5;
  777.       }
  778.  
  779.       return var1;
  780.    }
  781.  
  782.    public void setProtectReaders(boolean var1) throws NotesException {
  783.       ((NotesBase)this).CheckObject();
  784.       synchronized(this){}
  785.  
  786.       try {
  787.          ((NotesBase)this).PropSetBool(1309, var1);
  788.       } catch (Throwable var4) {
  789.          throw var4;
  790.       }
  791.  
  792.    }
  793.  
  794.    public boolean isModified() throws NotesException {
  795.       ((NotesBase)this).CheckObject();
  796.       synchronized(this){}
  797.  
  798.       boolean var1;
  799.       try {
  800.          var1 = ((NotesBase)this).PropGetBool(1925);
  801.       } catch (Throwable var5) {
  802.          throw var5;
  803.       }
  804.  
  805.       return var1;
  806.    }
  807.  
  808.    public boolean isCategorized() throws NotesException {
  809.       ((NotesBase)this).CheckObject();
  810.       synchronized(this){}
  811.  
  812.       boolean var1;
  813.       try {
  814.          var1 = ((NotesBase)this).PropGetBool(1927);
  815.       } catch (Throwable var5) {
  816.          throw var5;
  817.       }
  818.  
  819.       return var1;
  820.    }
  821.  
  822.    public boolean isPrivate() throws NotesException {
  823.       ((NotesBase)this).CheckObject();
  824.       synchronized(this){}
  825.  
  826.       boolean var1;
  827.       try {
  828.          var1 = ((NotesBase)this).PropGetBool(1310);
  829.       } catch (Throwable var5) {
  830.          throw var5;
  831.       }
  832.  
  833.       return var1;
  834.    }
  835.  
  836.    public boolean isConflict() throws NotesException {
  837.       ((NotesBase)this).CheckObject();
  838.       synchronized(this){}
  839.  
  840.       boolean var1;
  841.       try {
  842.          var1 = ((NotesBase)this).PropGetBool(1921);
  843.       } catch (Throwable var5) {
  844.          throw var5;
  845.       }
  846.  
  847.       return var1;
  848.    }
  849.  
  850.    public boolean isHierarchical() throws NotesException {
  851.       ((NotesBase)this).CheckObject();
  852.       synchronized(this){}
  853.  
  854.       boolean var1;
  855.       try {
  856.          var1 = ((NotesBase)this).PropGetBool(1920);
  857.       } catch (Throwable var5) {
  858.          throw var5;
  859.       }
  860.  
  861.       return var1;
  862.    }
  863.  
  864.    public int getColumnCount() throws NotesException {
  865.       ((NotesBase)this).CheckObject();
  866.       synchronized(this){}
  867.  
  868.       int var1;
  869.       try {
  870.          var1 = ((NotesBase)this).PropGetInt(1928);
  871.       } catch (Throwable var5) {
  872.          throw var5;
  873.       }
  874.  
  875.       return var1;
  876.    }
  877.  
  878.    public int getBackgroundColor() throws NotesException {
  879.       ((NotesBase)this).CheckObject();
  880.       synchronized(this){}
  881.  
  882.       int var1;
  883.       try {
  884.          var1 = ((NotesBase)this).PropGetInt(1926);
  885.       } catch (Throwable var5) {
  886.          throw var5;
  887.       }
  888.  
  889.       return var1;
  890.    }
  891.  
  892.    public int getRowLines() throws NotesException {
  893.       ((NotesBase)this).CheckObject();
  894.       synchronized(this){}
  895.  
  896.       int var1;
  897.       try {
  898.          var1 = ((NotesBase)this).PropGetInt(1922);
  899.       } catch (Throwable var5) {
  900.          throw var5;
  901.       }
  902.  
  903.       return var1;
  904.    }
  905.  
  906.    public int getHeaderLines() throws NotesException {
  907.       ((NotesBase)this).CheckObject();
  908.       synchronized(this){}
  909.  
  910.       int var1;
  911.       try {
  912.          var1 = ((NotesBase)this).PropGetInt(1923);
  913.       } catch (Throwable var5) {
  914.          throw var5;
  915.       }
  916.  
  917.       return var1;
  918.    }
  919.  
  920.    public int getSpacing() throws NotesException {
  921.       ((NotesBase)this).CheckObject();
  922.       synchronized(this){}
  923.  
  924.       int var1;
  925.       try {
  926.          var1 = ((NotesBase)this).PropGetInt(1924);
  927.       } catch (Throwable var5) {
  928.          throw var5;
  929.       }
  930.  
  931.       return var1;
  932.    }
  933.  
  934.    public int getTopLevelEntryCount() throws NotesException {
  935.       ((NotesBase)this).CheckObject();
  936.       synchronized(this){}
  937.  
  938.       int var1;
  939.       try {
  940.          var1 = ((NotesBase)this).PropGetInt(1929);
  941.       } catch (Throwable var5) {
  942.          throw var5;
  943.       }
  944.  
  945.       return var1;
  946.    }
  947.  
  948.    public lotus.domino.ViewColumn getColumn(int var1) throws NotesException {
  949.       ((NotesBase)this).CheckObject();
  950.       synchronized(this){}
  951.  
  952.       lotus.domino.ViewColumn var2;
  953.       try {
  954.          int[] var5 = ((NotesBase)this).PropGetObjArray(1286);
  955.          if (var5.length != 0) {
  956.             if (var1 >= 1 && var1 <= var5.length) {
  957.                ViewColumn var6 = this.FindOrCreateColumn(var5[var1 - 1]);
  958.                var2 = var6;
  959.                return var2;
  960.             }
  961.  
  962.             throw new NotesException(4396, JavaString.resource.getString("invalid_view_column_number"));
  963.          }
  964.  
  965.          var2 = null;
  966.       } catch (Throwable var8) {
  967.          throw var8;
  968.       }
  969.  
  970.       return var2;
  971.    }
  972.  
  973.    public Vector getColumnNames() throws NotesException {
  974.       ((NotesBase)this).CheckObject();
  975.       synchronized(this){}
  976.  
  977.       Vector var2;
  978.       try {
  979.          int var5 = ((NotesBase)this).PropGetInt(1928);
  980.          Vector var1 = new Vector(var5);
  981.          int[] var6 = ((NotesBase)this).PropGetObjArray(1286);
  982.          if (var6.length != 0) {
  983.             for(int var7 = 0; var7 < var5; ++var7) {
  984.                ViewColumn var8 = this.FindOrCreateColumn(var6[var7]);
  985.                var1.addElement(var8.getTitle());
  986.             }
  987.  
  988.             var2 = var1;
  989.             return var2;
  990.          }
  991.  
  992.          var2 = var1;
  993.       } catch (Throwable var10) {
  994.          throw var10;
  995.       }
  996.  
  997.       return var2;
  998.    }
  999.  
  1000.    public lotus.domino.ViewNavigator createViewNav() throws NotesException {
  1001.       ((NotesBase)this).CheckObject();
  1002.       return this.makeViewNavigator((byte)0, false, 0, (Object)null);
  1003.    }
  1004.  
  1005.    public lotus.domino.ViewNavigator createViewNav(int var1) throws NotesException {
  1006.       return this.createViewNav();
  1007.    }
  1008.  
  1009.    public lotus.domino.ViewNavigator createViewNavMaxLevel(int var1) throws NotesException {
  1010.       ((NotesBase)this).CheckObject();
  1011.       return this.makeViewNavigator((byte)0, true, var1, (Object)null);
  1012.    }
  1013.  
  1014.    public lotus.domino.ViewNavigator createViewNavMaxLevel(int var1, int var2) throws NotesException {
  1015.       return this.createViewNavMaxLevel(var1);
  1016.    }
  1017.  
  1018.    public lotus.domino.ViewNavigator createViewNavFrom(Object var1) throws NotesException {
  1019.       ((NotesBase)this).CheckObject();
  1020.       return this.makeViewNavigator((byte)3, false, 0, var1);
  1021.    }
  1022.  
  1023.    public lotus.domino.ViewNavigator createViewNavFrom(Object var1, int var2) throws NotesException {
  1024.       return this.createViewNavFrom(var1);
  1025.    }
  1026.  
  1027.    public lotus.domino.ViewNavigator createViewNavFromChildren(Object var1) throws NotesException {
  1028.       ((NotesBase)this).CheckObject();
  1029.       return this.makeViewNavigator((byte)1, false, 0, var1);
  1030.    }
  1031.  
  1032.    public lotus.domino.ViewNavigator createViewNavFromChildren(Object var1, int var2) throws NotesException {
  1033.       return this.createViewNavFromChildren(var1);
  1034.    }
  1035.  
  1036.    public lotus.domino.ViewNavigator createViewNavFromDescendants(Object var1) throws NotesException {
  1037.       ((NotesBase)this).CheckObject();
  1038.       return this.makeViewNavigator((byte)2, false, 0, var1);
  1039.    }
  1040.  
  1041.    public lotus.domino.ViewNavigator createViewNavFromDescendants(Object var1, int var2) throws NotesException {
  1042.       return this.createViewNavFromDescendants(var1);
  1043.    }
  1044.  
  1045.    public lotus.domino.ViewNavigator createViewNavFromCategory(String var1) throws NotesException {
  1046.       ((NotesBase)this).CheckObject();
  1047.       Vector var2 = new Vector(1);
  1048.       var2.addElement(var1);
  1049.       return this.makeViewNavigator((byte)4, false, 0, this.getDocumentByKey(var2, true));
  1050.    }
  1051.  
  1052.    public lotus.domino.ViewNavigator createViewNavFromCategory(String var1, int var2) throws NotesException {
  1053.       return this.createViewNavFromCategory(var1);
  1054.    }
  1055. }
  1056.