public interface RMPermission
RMPermission
instance represents an access control entry (ACE)
associated with a repository object that grants or denies specific access rights
to a particular user or group.Modifier and Type | Method and Description |
---|---|
int |
getAccessMask()
Returns the integer bit mask defining the rights associated with this
RMPermission . |
RMAccessType |
getAccessType()
Returns the
RMAccessType of this RMPermission . |
java.lang.String |
getAuthenticatedUsersDesignation()
If supported by a particular domain type, returns
the special logical group name that refers to all authenticated users.
|
java.lang.String |
getCreatorOwnerNameDesignation()
If supported by a particular domain type, returns the
principal name that refers to the user who initially creates a
repository object.
|
java.lang.String |
getGranteeName()
Returns the name of the user or group to which this
RMPermission applies. |
RMGranteeType |
getGranteeType()
Indicates whether the
getGranteeName return value represents a user, a group or unknown. |
java.lang.Integer |
getInheritableDepth()
Returns the inheritable depth level for this
RMPermission . |
RMPermissionSource |
getPermissionSource()
Returns a
RMPermissionSource value indicating
the source of this permission. |
void |
setAccessMask(int accessMask)
Defines the specific rights either allowed or denied by this
RMPermission instance. |
void |
setAccessMask(RMAccessLevel accessLevel)
Defines the specific rights either allowed or denied by this
RMPermission instance. |
void |
setAccessMask(RMAccessRight... accessRights)
Defines the specific rights either allowed or denied by this
RMPermission instance. |
void |
setAccessType(RMAccessType accessType)
Defines the
RMAccessType value that determines
whether this an an "allow" or "deny" RMPermisson . |
void |
setGranteeName(java.lang.String granteeName)
Defines the name of the user or group that this
RMPermission applies to. |
void |
setInheritableDepth(java.lang.Integer inheritableDepth)
Defines the inheritable depth level for this
RMPermission . |
void setAccessType(RMAccessType accessType)
RMAccessType
value that determines
whether this an an "allow" or "deny" RMPermisson
.accessType
- an RMAccessType
value.
This entry cannot be null
.RMAccessType getAccessType()
RMAccessType
of this RMPermission
.RMAccessType
value.void setAccessMask(int accessMask)
RMPermission
instance.
This method allows a more customized access mask definition than do the other
two setAccessMask
methods.accessMask
- an integer whose bit positions represent differing access rights.void setAccessMask(RMAccessLevel accessLevel)
RMPermission
instance.
This is a convenience alternative version of setAccessMask(int)
that
supports use of RMAccessLevel
enumeration members directly.accessLevel
- a member of the RMAccessLevel
enumeration.
This entry cannot be null
.void setAccessMask(RMAccessRight... accessRights)
RMPermission
instance.
This is an alternative version of setAccessMask(int)
that
supports use of a variable number of RMAccessRight
enumeration members
that are combined to form the actual access bit mask.accessRights
- one or more RMAccessRight
enumeration member arguments.
This entry cannot be null
.int getAccessMask()
RMPermission
.void setGranteeName(java.lang.String granteeName)
RMPermission
applies to.granteeName
- the String
name of the grantee. This entry cannot be null
.java.lang.String getGranteeName()
RMPermission
applies.String
value.RMGranteeType getGranteeType()
getGranteeName
return value represents a user, a group or unknown.RMGranteeType
instance.void setInheritableDepth(java.lang.Integer inheritableDepth)
RMPermission
.
Example values:
inheritableDepth
- an Integer
value. This entry can be null
.java.lang.Integer getInheritableDepth()
RMPermission
.Integer
value. This entry can be null
.RMPermissionSource getPermissionSource()
RMPermissionSource
value indicating
the source of this permission.RMPermissionSource
value.java.lang.String getAuthenticatedUsersDesignation()
String
value or null
if not supported by domain.java.lang.String getCreatorOwnerNameDesignation()
String
value or null
if not supported by domain.© Copyright IBM Corp. 2010, 2013. All Rights Reserved.