All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.RootPermission

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

public class RootPermission
extends UserPermission

The RootPermission class represents the permissions for the specified user of an object contained in the root directory structure.

An object on the root directory structure can set the data authority or the object authority. The data authority can be set to one of the following values: *none, *RWX, RW, *RX, *WX, *R, *W, *X, *Exclude, or *Auth. Use getDataAuthority() to display the current values and the setDataAuthority() to set the data authority to one of the valid values. Use commit() from the Permission class to send the changes to the AS/400.

The object authority can be set to one or more of the following values: alter, existence, management, or reference. Use the appropriate set methods (setAlter(), setExistence(), setManagement(), or setReference()) to turn the value on or off. After all the values are set, use the commit() method from the Permissions class to send the changes to the AS/400.

For more information, refer the AS/400 Advance Series Security BasicManual (SC41-5301-00).


Constructor Index

 o RootPermission(String)
Constructs a RootPermission object.

Method Index

 o getDataAuthority()
Returns the data authority of the user.
 o isAlter()
Indicates if the user has the object authority of alter.
 o isExistence()
Indicates if the user has the object authority of existence.
 o isManagement()
Indicates if the user has the object authority of management.
 o isReference()
Indicates if the user has the object authority of reference.
 o setAlter(boolean)
Sets the alter object authority.
 o setDataAuthority(String)
Sets the data authority of the user.
 o setExistence(boolean)
Sets the existence object authority.
 o setManagement(boolean)
Sets the management object authority.
 o setReference(boolean)
Sets the reference object authority.

Constructors

 o RootPermission
 public RootPermission(String userProfileName)
Constructs a RootPermission object. This is the permission of the specified user.

Parameters:
userProfileName - The name of the user profile.

Methods

 o getDataAuthority
 public String getDataAuthority()
Returns the data authority of the user.

Returns:
The data authority of the user. The possible values are:
  • *RWX The user has object operational, read, add, update, delete, and execute authorities to the object.
  • *RW The user has object operational, read, add, delete authorities to the object.
  • *RX The user has object operational, read, and execute authorities to the object.
  • *WX The user has object operational, add, update, delete, and execute authorities to the object.
  • *R The user has object operational and read authorities to the object.
  • *W The user has object operational, add, update, delete authorities to the object.
  • *X The user has object operational and execute authorities to the object.
  • *EXCLUDE The user cannot access the object.
  • *AUTL The public authorities to the object comes from the public authority on the authorization list that secures the object. The value can be returned only if there an authorization list that secures the object and the authorized user is *PUBLIC.
  • *NONE The user has no authority to the object.
    See Also:
    setDataAuthority
  •  o isAlter
     public boolean isAlter()
    
    Indicates if the user has the object authority of alter.

    Returns:
    true if the user has the object authority of alter; false otherwise.
     o isExistence
     public boolean isExistence()
    
    Indicates if the user has the object authority of existence.

    Returns:
    true if the user has the object authority of existence; false otherwise.
     o isManagement
     public boolean isManagement()
    
    Indicates if the user has the object authority of management.

    Returns:
    true if the user has the object authority of management; false otherwise.
     o isReference
     public boolean isReference()
    
    Indicates if the user has the object authority of reference.

    Returns:
    true if the user has the object authority of reference; false otherwise.
     o setAlter
     public synchronized void setAlter(boolean authority)
    
    Sets the alter object authority.

    Parameters:
    authority - true to set the object authority of alter on; false to set the object authority of alter off.
    See Also:
    isAlter
     o setDataAuthority
     public synchronized void setDataAuthority(String authority)
    
    Sets the data authority of the user.

    Parameters:
    dataAuthority - The data authority of the user.

    Valid values are:

    • *RWX The user has object operational, read, add, update, delete, and execute authorities to the object.
    • *RW The user has object operational, read, add, delete authorities to the object.
    • *RX The user has object operational, read, and execute authorities to the object.
    • *WX The user has object operational, add, update, delete, and execute authorities to the object.
    • *R The user has object operational and read authorities to the object.
    • *W The user has object operational, add, update, delete authorities to the object.
    • *X The user has object operational and execute authorities to the object.
    • *EXCLUDE The user cannot access the object.
    • *AUTL The public authorities to the object comes from the public authority on the authorization list that secures the object. The value can be returned only if there an authorization list that secures the object and the authorized user is *PUBLIC.
  • *NONE The user has no authority to the object.
  •  o setExistence
     public synchronized void setExistence(boolean authority)
    
    Sets the existence object authority.

    Parameters:
    authority - true to set the object authority of existence on; false to set the object authority of existence off.
    See Also:
    isExistence
     o setManagement
     public synchronized void setManagement(boolean authority)
    
    Sets the management object authority.

    Parameters:
    authority - true to set the object authority of management on; false to set the object authority of management off.
    See Also:
    isManagement
     o setReference
     public synchronized void setReference(boolean authority)
    
    Sets the reference object authority.

    Parameters:
    authority - true to set the object authority of reference on; false to set the object authority of reference off.
    See Also:
    isReference

    All Packages  Class Hierarchy  This Package  Previous  Next  Index