All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jtopenlite.com.ibm.jtopenlite.components.ListUsers Maven / Gradle / Ivy

There is a newer version: 11.1
Show newest version
///////////////////////////////////////////////////////////////////////////////
//
// JTOpenLite
//
// Filename:  ListUsers.java
//
// The source code contained herein is licensed under the IBM Public License
// Version 1.0, which has been approved by the Open Source Initiative.
// Copyright (C) 2011-2012 International Business Machines Corporation and
// others.  All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////

package com.ibm.jtopenlite.components;

import com.ibm.jtopenlite.ddm.*;
import java.io.*;

/**
 * Represents the information returned by the WRKUSRPRF command.
**/
public class ListUsers
{
  private final ListUsersImpl impl_ = new ListUsersImpl();

  public ListUsers()
  {
  }

  /**
   * Returns an array of users, the way WRKUSRPRF does.
   * @param conn The connection to use.
  **/
  public UserInfo[] getUsers(final DDMConnection conn) throws IOException
  {
    impl_.setUserInfoListener(impl_);
    return impl_.getUsers(conn);
  }

  public void getUsers(final DDMConnection conn, final UserInfoListener listener) throws IOException
  {
    impl_.setUserInfoListener(listener);
    impl_.getUsers(conn);
  }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy