|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.access.UserPermission | +--com.ibm.as400.access.RootPermission
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 *AUTL. 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 server.
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 server.
For more information, refer the iSeries Advance Series Security Basic Manual (SC41-5301-00).
Fields inherited from class com.ibm.as400.access.UserPermission |
GROUPINDICATOR_GROUP, GROUPINDICATOR_SPECIALVALUE, GROUPINDICATOR_USER |
Constructor Summary | |
RootPermission(java.lang.String userProfileName)
Constructs a RootPermission object. |
Method Summary | |
java.lang.String |
getDataAuthority()
Returns the data authority of the user. |
boolean |
isAlter()
Indicates if the user has the object authority of alter. |
boolean |
isExistence()
Indicates if the user has the object authority of existence. |
boolean |
isManagement()
Indicates if the user has the object authority of management. |
boolean |
isReference()
Indicates if the user has the object authority of reference. |
void |
setAlter(boolean authority)
Sets the alter object authority. |
void |
setDataAuthority(java.lang.String authority)
Sets the data authority of the user. |
void |
setExistence(boolean authority)
Sets the existence object authority. |
void |
setManagement(boolean authority)
Sets the management object authority. |
void |
setReference(boolean authority)
Sets the reference object authority. |
Methods inherited from class com.ibm.as400.access.UserPermission |
getGroupIndicator, getUserID, isAuthorizationListManagement, isFromAuthorizationList, setAuthorizationListManagement, setFromAuthorizationList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RootPermission(java.lang.String userProfileName)
userProfileName
- The name of the user profile.Method Detail |
public java.lang.String getDataAuthority()
setDataAuthority(String)
public boolean isAlter()
public boolean isExistence()
public boolean isManagement()
public boolean isReference()
public void setAlter(boolean authority)
authority
- true to set the object authority of alter on;
false to set the object authority of alter off.isAlter()
public void setDataAuthority(java.lang.String authority)
dataAuthority
- The data authority of the user.
Valid values are:
public void setExistence(boolean authority)
authority
- true to set the object authority of existence on;
false to set the object authority of existence off.isExistence()
public void setManagement(boolean authority)
authority
- true to set the object authority of management on;
false to set the object authority of management off.isManagement()
public void setReference(boolean authority)
authority
- true to set the object authority of reference on;
false to set the object authority of reference off.isReference()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |