All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.UserPermission

java.lang.Object
   |
   +----com.ibm.as400.access.UserPermission

public class UserPermission
extends Object
implements Cloneable, Serializable
The UserPermission class represents the authority of a specific user.


Variable Index

 o GROUPINDICATOR_GROUP
Constant indicating that this user profile is a group.
 o GROUPINDICATOR_SPECIALVALUE
Constant indicating that this user is neither a user nor a group.
 o GROUPINDICATOR_USER
Constant indicating that this user profile is a user.

Method Index

 o getGroupIndicator()
Returns the value indicating if the user profile is a group profile.
 o getUserID()
Returns the user profile name for this permission.
 o isAuthorizationListManagement()
Indicates whether the user has the authority of authorization list management.
 o isFromAuthorizationList()
Indicates whether the user permissoin is from authorization list.
 o setAuthorizationListManagement(boolean)
Sets the authority of authorization list management.
 o setFromAuthorizationList(boolean)
Sets the permission of user as coming from an authorization list.

Variables

 o GROUPINDICATOR_SPECIALVALUE
 public static final int GROUPINDICATOR_SPECIALVALUE
Constant indicating that this user is neither a user nor a group. It may be a *PUBLIC, *NTWIRF, or * NTWEFF.

 o GROUPINDICATOR_USER
 public static final int GROUPINDICATOR_USER
Constant indicating that this user profile is a user.

 o GROUPINDICATOR_GROUP
 public static final int GROUPINDICATOR_GROUP
Constant indicating that this user profile is a group.

Methods

 o getGroupIndicator
 public int getGroupIndicator()
Returns the value indicating if the user profile is a group profile.

Returns:
The value indicating if the user profile is a group profile.
 o getUserID
 public String getUserID()
Returns the user profile name for this permission.

Returns:
The user profile name for this permission.
 o isFromAuthorizationList
 public boolean isFromAuthorizationList()
Indicates whether the user permissoin is from authorization list.

Returns:
true if the user is from authorization list; false otherwise.
 o isAuthorizationListManagement
 public boolean isAuthorizationListManagement()
Indicates whether the user has the authority of authorization list management. It is valid only for the object which is an authorization list.

Returns:
true if the user has the authority of authorization list management; false otherwise.
 o setAuthorizationListManagement
 public synchronized void setAuthorizationListManagement(boolean autListMgt)
Sets the authority of authorization list management. It is valid only for the object which is an authorizaiton list.

Parameters:
autListMgt - true if the user has the authority of authorization list management; false otherwise.
 o setFromAuthorizationList
 public synchronized void setFromAuthorizationList(boolean fromAutList)
Sets the permission of user as coming from an authorization list. This is valid only if the user is *PUBLIC and the authorization list exists. If set to true, all of the other authorities will be set to false. If any of the other authorities are set to true, this value is automatically set to false.

Parameters:
fromAutList - true if the user is from the authorization list; false otherwise.

All Packages  Class Hierarchy  This Package  Previous  Next  Index