jtopenlite.com.ibm.jtopenlite.components.ListUsers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400-jdk9 Show documentation
Show all versions of jt400-jdk9 Show documentation
The Open Source version of the IBM Toolbox for Java
///////////////////////////////////////////////////////////////////////////////
//
// 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