com.ibm.as400.access
Class UserGroup

java.lang.Object
  extended bycom.ibm.as400.access.User
      extended bycom.ibm.as400.access.UserGroup
All Implemented Interfaces:
Serializable

public class UserGroup
extends User

The UserGroup class represents a user profile that is a group profile.

See Also:
User, UserList, Serialized Form

Field Summary
 
Fields inherited from class com.ibm.as400.access.User
NONE, SPECIAL_AUTHORITY_ALL_OBJECT, SPECIAL_AUTHORITY_AUDIT, SPECIAL_AUTHORITY_IO_SYSTEM_CONFIGURATION, SPECIAL_AUTHORITY_JOB_CONTROL, SPECIAL_AUTHORITY_SAVE_SYSTEM, SPECIAL_AUTHORITY_SECURITY_ADMINISTRATOR, SPECIAL_AUTHORITY_SERVICE, SPECIAL_AUTHORITY_SPOOL_CONTROL
 
Constructor Summary
UserGroup(AS400 system, String name)
          Constructs a UserGroup object.
 
Method Summary
 Enumeration getMembers()
          Returns the list of users that are members of this group.
 
Methods inherited from class com.ibm.as400.access.User
addPropertyChangeListener, addVetoableChangeListener, exists, getAccountingCode, getAssistanceLevel, getAttentionKeyHandlingProgram, getCCSID, getCHRIDControl, getCountryID, getCurrentLibraryName, getDaysUntilPasswordExpire, getDescription, getDirectoryEntry, getDisplaySignOnInformation, getGroupAuthority, getGroupAuthorityType, getGroupID, getGroupIDNumber, getGroupProfileName, getHighestSchedulingPriority, getHomeDirectory, getIASPNames, getIASPStorageAllowed, getIASPStorageUsed, getInitialMenu, getInitialProgram, getJobDescription, getKeyboardBuffering, getLanguageID, getLimitCapabilities, getLimitDeviceSessions, getLocaleJobAttributes, getLocalePathName, getMaximumStorageAllowed, getMessageQueue, getMessageQueueDeliveryMethod, getMessageQueueSeverity, getName, getObjectAuditingValue, getOutputQueue, getOwner, getPasswordExpirationInterval, getPasswordExpireDate, getPasswordLastChangedDate, getPreviousSignedOnDate, getPrintDevice, getSignedOnAttemptsNotValid, getSortSequenceTable, getSpecialAuthority, getSpecialEnvironment, getStatus, getStorageUsed, getSupplementalGroups, getSupplementalGroupsNumber, getSystem, getUserActionAuditLevel, getUserClassName, getUserID, getUserIDNumber, getUserOptions, getUserProfileName, hasSpecialAuthority, isGroupHasMember, isLocalPasswordManagement, isNoPassword, isPasswordSetExpire, isWithDigitalCertificates, loadUserInformation, removePropertyChangeListener, removeVetoableChangeListener, setAccountingCode, setAssistanceLevel, setAttentionKeyHandlingProgram, setCCSID, setCCSID, setCHRIDControl, setCountryID, setCurrentLibraryName, setDescription, setDisplaySignOnInformation, setGroupAuthority, setGroupAuthorityType, setGroupID, setGroupID, setGroupProfileName, setHighestSchedulingPriority, setHomeDirectory, setInitialMenu, setInitialProgram, setJobDescription, setKeyboardBuffering, setLanguageID, setLimitCapabilities, setLimitDeviceSessions, setLocaleJobAttributes, setLocalePathName, setLocalPasswordManagement, setMaximumStorageAllowed, setMaximumStorageAllowed, setMessageQueue, setMessageQueueDeliveryMethod, setMessageQueueSeverity, setName, setObjectAuditingValue, setOutputQueue, setOwner, setPasswordExpirationInterval, setPasswordExpirationInterval, setPasswordSetExpire, setPrintDevice, setSortSequenceTable, setSpecialAuthority, setSpecialEnvironment, setStatus, setSupplementalGroups, setSystem, setUserActionAuditLevel, setUserClassName, setUserID, setUserOptions, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserGroup

public UserGroup(AS400 system,
                 String name)
          throws AS400SecurityException,
                 ErrorCompletingRequestException,
                 InterruptedException,
                 IOException,
                 ObjectDoesNotExistException
Constructs a UserGroup object. Note that this constructor no longer throws any of the declared exceptions, but they remain for compatibility.

Parameters:
system - The system object representing the server on which the group profile exists.
name - The group profile name.
Throws:
AS400SecurityException - If a security or authority error occurs.
ErrorCompletingRequestException - If an error occurs before the request is completed.
InterruptedException - If this thread is interrupted.
IOException - If an error occurs while communicating with the server.
ObjectDoesNotExistException - If the object does not exist on the server.
Method Detail

getMembers

public Enumeration getMembers()
                       throws AS400SecurityException,
                              ErrorCompletingRequestException,
                              InterruptedException,
                              IOException,
                              ObjectDoesNotExistException,
                              RequestNotSupportedException
Returns the list of users that are members of this group.

Returns:
An Enumeration of User objects.
Throws:
AS400SecurityException - If a security or authority error occurs.
ErrorCompletingRequestException - If an error occurs before the request is completed.
InterruptedException - If this thread is interrupted.
IOException - If an error occurs while communicating with the server.
ObjectDoesNotExistException - If the object does not exist on the server.
RequestNotSupportedException - If the requested function is not supported because the server is not at the correct level.