com.ibm.as400.access
Class UserGroup

java.lang.Object
  extended by com.ibm.as400.access.User
      extended by com.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
Modifier and Type Field and Description
 
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
Constructor and Description
UserGroup(AS400 system, String name)
          Constructs a UserGroup object.
 
Method Summary
Modifier and Type Method and Description
 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, getObjectsOwned, getOutputQueue, getOwner, getPasswordChangeBlock, getPasswordExpirationInterval, getPasswordExpireDate, getPasswordLastChangedDate, getPreviousSignedOnDate, getPrintDevice, getSignedOnAttemptsNotValid, getSortSequenceTable, getSpecialAuthority, getSpecialEnvironment, getStatus, getStorageUsed, getSupplementalGroups, getSupplementalGroupsNumber, getSystem, getUserActionAuditLevel, getUserClassName, getUserExpirationAction, getUserExpirationDate, getUserExpirationInterval, getUserID, getUserIDNumber, getUserOptions, getUserProfileName, hasSpecialAuthority, isGroupHasMember, isLocalPasswordManagement, isNoPassword, isPasswordSetExpire, isUserEntitlementRequired, 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, setPasswordChangeBlock, setPasswordExpirationInterval, setPasswordExpirationInterval, setPasswordSetExpire, setPrintDevice, setSortSequenceTable, setSpecialAuthority, setSpecialEnvironment, setStatus, setSupplementalGroups, setSystem, setUserActionAuditLevel, setUserClassName, setUserExpirationDate, setUserExpirationInterval, 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 system 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 system.
ObjectDoesNotExistException - If the object does not exist on the system.
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 system.
ObjectDoesNotExistException - If the object does not exist on the system.
RequestNotSupportedException - If the requested function is not supported because the system is not at the correct level.