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 *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 system.
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 system.
GROUPINDICATOR_GROUP, GROUPINDICATOR_SPECIALVALUE, GROUPINDICATOR_USER
Constructor and Description |
---|
RootPermission(java.lang.String userProfileName)
Constructs a RootPermission object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getGroupIndicator, getUserID, isAuthorizationListManagement, isFromAuthorizationList, setAuthorizationListManagement, setFromAuthorizationList
public RootPermission(java.lang.String userProfileName)
userProfileName
- The name of the user profile.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)
authority
- 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()