filenet.vw.api

Class VWSecurityList

  • java.lang.Object
    • filenet.vw.api.VWSecurityList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean hasNext()
      Indicates whether another element can be fetched from this VWSecurityList instance.
      java.lang.Object next()
      Retrieves the subsequent element for the current VWSecurityList instance. Invoke this method repeatedly to retrieve a series of objects that should be cast to a String type.
      void resetFetch()
      Resets the last element fetched for this VWSecurityList object to the beginning of the query series.
      java.lang.String toString()
      Gets the in-memory security list.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • resetFetch

        public void resetFetch()
        Resets the last element fetched for this VWSecurityList object to the beginning of the query series.
        Since:
        VWWS3.10
      • next

        public java.lang.Object next()
                              throws VWException
        Retrieves the subsequent element for the current VWSecurityList instance. Invoke this method repeatedly to retrieve a series of objects that should be cast to a String type. Returns null when no more objects can be returned.

        After a set of items in the current retrieval buffer is exhausted, additional items are retrieved into a buffer from the Process Engine. Buffer block size is specified in units of the number of records, and the effective buffer block is the lesser of the number specified with the VWSecurityList instance creating call and the number imposed by the Process Engine's current server limit. You can modify the buffer size (and retrieval performance) by changing the input buffer size in the VWSecurityList instance creating call.

        Returns:
        An object that represents an item of the fetch type specified by the creating call or null (indicating there are no more objects in the series).
        Note
        The returned object should be cast to a String type.
        Throws:
        VWException
        Since:
        VWWS3.10
        See Also:
        VWSession.fetchUsers(int, boolean), VWSession.fetchUserGroups(int), VWSecurityList.hasNext()
      • hasNext

        public boolean hasNext()
                        throws VWException
        Indicates whether another element can be fetched from this VWSecurityList instance.
        Returns:
        true if there are more elements that can be fetched.
        Note
        This method requires a buffer size greater than 1 to operate properly.
        Throws:
        VWException
        See Also:
        VWSecurityList.next()
      • toString

        public java.lang.String toString()
        Gets the in-memory security list. The number of elements held in memory is determined by the buffer size, and the in-memory list will be empty until the next() method has been called.
        Overrides:
        toString in class java.lang.Object
        Returns:
        A string containing user/group names as a comma delimited string. If no more security items remain in the in-memory buffer, the method returns null.
        Since:
        VWWS3.10

© Copyright IBM Corporation 2002, 2019. All rights reserved.