Package com.iplanet.ums
Class AccessRightObject
- java.lang.Object
-
- com.iplanet.ums.AccessRightObject
-
public class AccessRightObject extends Object
Represents the attribute access rights associated with a user or role.
-
-
Constructor Summary
Constructors Constructor Description AccessRightObject()
Default constructorAccessRightObject(Collection readableAttributeNames, Collection writableAttributeNames)
This constructor establishes collections of readable attribute names and writeable attribute names.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
AccessRightObject
public AccessRightObject()
Default constructor
-
AccessRightObject
public AccessRightObject(Collection readableAttributeNames, Collection writableAttributeNames)
This constructor establishes collections of readable attribute names and writeable attribute names.- Parameters:
readableAttributeNames
- Collection of readable attribute nameswritableAttributeNames
- Collection of writable attribute names
-
-
Method Detail
-
grantReadPermission
public void grantReadPermission(Collection attributeNames)
Grant read permission to attributes.- Parameters:
attributeNames
- A collection of attribute names to which read permission will be granted.
-
grantWritePermission
public void grantWritePermission(Collection attributeNames)
Grant write permission to attributes.- Parameters:
attributeNames
- A collection of attribute names to which write permission will be granted.
-
revokeReadPermission
public void revokeReadPermission(Collection attributeNames)
Revoke read permission on attributes.- Parameters:
attributeNames
- A collection of attribute names on which read permission will be revoked.
-
revokeWritePermission
public void revokeWritePermission(Collection attributeNames)
Revoke write permission on attributes.- Parameters:
attributeNames
- A collection of attribute names on which write permission will be revoked.
-
getReadableAttributeNames
public Collection getReadableAttributeNames()
Get all the readable attribute names.- Returns:
- Collection of all the readable attribute names
-
getWritableAttributeNames
public Collection getWritableAttributeNames()
Get all the writable attribute names.- Returns:
- Collection of all the writable attribute names
-
isReadable
public boolean isReadable(String attributeName)
Check if an attribute is readable.- Parameters:
attributeName
- The attribute to be checked- Returns:
boolean;
true if this attribute is readable, false otherwise
-
isWritable
public boolean isWritable(String attributeName)
Check if an attribute is writable.- Parameters:
attributeName
- The attribute to be checked.- Returns:
boolean;
true if this attribute is writable, false otherwise
-
-