com.ibm.as400.access

Class DirectoryEntryList



  • public class DirectoryEntryList
    extends 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 String ADDRESS1
      Constant used to filter the list of directory entries by mailing address.
      static String ADDRESS2
      Constant used to filter the list of directory entries by mailing address.
      static String ADDRESS3
      Constant used to filter the list of directory entries by mailing address.
      static String ADDRESS4
      Constant used to filter the list of directory entries by mailing address.
      static String BUILDING
      Constant used to filter the list of directory entries by building.
      static String COMPANY
      Constant used to filter the list of directory entries by company.
      static String DEPARTMENT
      Constant used to filter the list of directory entries by department.
      static String FAX
      Constant used to filter the list of directory entries by fax number.
      static String FIRST_NAME
      Constant used to filter the list of directory entries by first name.
      static String FIRST_OR_PREFERRED_NAME
      Constant used to filter the list of directory entries by first or preferred name.
      static String FULL_NAME
      Constant used to filter the list of directory entries by full name.
      static String JOB_TITLE
      Constant used to filter the list of directory entries by job title.
      static String LAST_NAME
      Constant used to filter the list of directory entries by last name.
      static String LOCATION
      Constant used to filter the list of directory entries by location.
      static String MIDDLE_NAME
      Constant used to filter the list of directory entries by middle name.
      static String NETWORK_USER_ID
      Constant used to filter the list of directory entries by network user ID.
      static String OFFICE
      Constant used to filter the list of directory entries by office.
      static String PREFERRED_NAME
      Constant used to filter the list of directory entries by preferred name.
      static String SYSTEM_GROUP
      Constant used to filter the list of directory entries by system group.
      static String SYSTEM_NAME
      Constant used to filter the list of directory entries by system name.
      static String TELEPHONE1
      Constant used to filter the list of directory entries by telephone number.
      static String TELEPHONE2
      Constant used to filter the list of directory entries by telephone number.
      static String TEXT
      Constant used to filter the list of directory entries by text description.
      static String USER_ADDRESS
      Constant used to filter the list of directory entries by directory entry user address.
      static String USER_DESCRIPTION
      Constant used to filter the list of directory entries by user description.
      static String USER_ID
      Constant used to filter the list of directory entries by directory entry user ID.
      static 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.