public class AccessRightObject extends Object
Constructor and Description |
---|
AccessRightObject()
Default constructor
|
AccessRightObject(Collection readableAttributeNames,
Collection writableAttributeNames)
This constructor establishes collections of readable attribute names and
writeable attribute names.
|
Modifier and Type | Method and Description |
---|---|
Collection |
getReadableAttributeNames()
Get all the readable attribute names.
|
Collection |
getWritableAttributeNames()
Get all the writable attribute names.
|
void |
grantReadPermission(Collection attributeNames)
Grant read permission to attributes.
|
void |
grantWritePermission(Collection attributeNames)
Grant write permission to attributes.
|
boolean |
isReadable(String attributeName)
Check if an attribute is readable.
|
boolean |
isWritable(String attributeName)
Check if an attribute is writable.
|
void |
revokeReadPermission(Collection attributeNames)
Revoke read permission on attributes.
|
void |
revokeWritePermission(Collection attributeNames)
Revoke write permission on attributes.
|
public AccessRightObject()
public AccessRightObject(Collection readableAttributeNames, Collection writableAttributeNames)
readableAttributeNames
- Collection of readable attribute nameswritableAttributeNames
- Collection of writable attribute namespublic void grantReadPermission(Collection attributeNames)
attributeNames
- A collection of attribute names to which read permission will
be granted.public void grantWritePermission(Collection attributeNames)
attributeNames
- A collection of attribute names to which write permission will
be granted.public void revokeReadPermission(Collection attributeNames)
attributeNames
- A collection of attribute names on which read permission will
be revoked.public void revokeWritePermission(Collection attributeNames)
attributeNames
- A collection of attribute names on which write permission will
be revoked.public Collection getReadableAttributeNames()
public Collection getWritableAttributeNames()
public boolean isReadable(String attributeName)
attributeName
- The attribute to be checkedboolean;
true if this attribute is readable, false
otherwisepublic boolean isWritable(String attributeName)
attributeName
- The attribute to be checked.boolean;
true if this attribute is writable, false
otherwiseCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.