com.ibm.as400.access

Class DirectoryEntryList

  • java.lang.Object
    • com.ibm.as400.access.DirectoryEntryList


  • public class DirectoryEntryList
    extends java.lang.Object
    Retrieves a list of system distribution directory entries.

    By default, all entries are returned as if by calling addSelection(DirectoryEntryList.USER_PROFILE, "*").

     AS400 system = new AS400();
     DirectoryEntryList list = new DirectoryEntryList(system);
     // Retrieves all of the entries that map to user profiles that begin with the letter 'B'.
     list.addSelection(DirectoryEntryList.USER_PROFILE, "B*");
     DirectoryEntry[] entries = list.getEntries();
     

    Here is an example of using selection IDs:

     AS400 system = new AS400();
     DirectoryEntryList list = new DirectoryEntryList(system);
     list.addSelection(DirectoryEntryList.LAST_NAME, "SMITH");
     list.addSelection(DirectoryEntryList.FIRST_NAME, "C*");
     list.setKey(DirectoryEntryList.FIRST_NAME); // Set the primary sort to be the first name field.
     DirectoryEntry[] entries = list.getEntries();
     
    See Also:
    DirectoryEntry, User
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String ADDRESS1
      Constant used to filter the list of directory entries by mailing address.
      static java.lang.String ADDRESS2
      Constant used to filter the list of directory entries by mailing address.
      static java.lang.String ADDRESS3
      Constant used to filter the list of directory entries by mailing address.
      static java.lang.String ADDRESS4
      Constant used to filter the list of directory entries by mailing address.
      static java.lang.String BUILDING
      Constant used to filter the list of directory entries by building.
      static java.lang.String COMPANY
      Constant used to filter the list of directory entries by company.
      static java.lang.String DEPARTMENT
      Constant used to filter the list of directory entries by department.
      static java.lang.String FAX
      Constant used to filter the list of directory entries by fax number.
      static java.lang.String FIRST_NAME
      Constant used to filter the list of directory entries by first name.
      static java.lang.String FIRST_OR_PREFERRED_NAME
      Constant used to filter the list of directory entries by first or preferred name.
      static java.lang.String FULL_NAME
      Constant used to filter the list of directory entries by full name.
      static java.lang.String JOB_TITLE
      Constant used to filter the list of directory entries by job title.
      static java.lang.String LAST_NAME
      Constant used to filter the list of directory entries by last name.
      static java.lang.String LOCATION
      Constant used to filter the list of directory entries by location.
      static java.lang.String MIDDLE_NAME
      Constant used to filter the list of directory entries by middle name.
      static java.lang.String NETWORK_USER_ID
      Constant used to filter the list of directory entries by network user ID.
      static java.lang.String OFFICE
      Constant used to filter the list of directory entries by office.
      static java.lang.String PREFERRED_NAME
      Constant used to filter the list of directory entries by preferred name.
      static java.lang.String SYSTEM_GROUP
      Constant used to filter the list of directory entries by system group.
      static java.lang.String SYSTEM_NAME
      Constant used to filter the list of directory entries by system name.
      static java.lang.String TELEPHONE1
      Constant used to filter the list of directory entries by telephone number.
      static java.lang.String TELEPHONE2
      Constant used to filter the list of directory entries by telephone number.
      static java.lang.String TEXT
      Constant used to filter the list of directory entries by text description.
      static java.lang.String USER_ADDRESS
      Constant used to filter the list of directory entries by directory entry user address.
      static java.lang.String USER_DESCRIPTION
      Constant used to filter the list of directory entries by user description.
      static java.lang.String USER_ID
      Constant used to filter the list of directory entries by directory entry user ID.
      static java.lang.String USER_PROFILE
      Constant used to filter the list of directory entries by user profile name.
    • Constructor Summary

      Constructors 
      Constructor and Description
      DirectoryEntryList(AS400 system)
      Constructs a DirectoryEntryList.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addSelection(java.lang.String selectionID, java.lang.String value)
      Adds a value used to filter the list of directory entries returned by getEntries().
      void clearSelection()
      Removes all selection IDs and values that were previously added by addSelection().
      DirectoryEntry[] getEntries()
      Retrieves the directory entry information from the system.
      java.lang.String getKey()
      Returns the primary selection ID used when searching the system distribution directory.
      AS400 getSystem()
      Returns the system.
      void setKey(java.lang.String selectionID)
      Sets the primary selection ID used when searching the system distribution directory.
      void setSystem(AS400 system)
      Sets the system.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait