|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.netegrity.llsdk6.imsapi.collections.AttributeRightsCollection
public class AttributeRightsCollection
Contains AttributeRight
objects consisting of an attribute name and an associated permission request.
AttributeRightsCollection
is used as a parameter in many
provider methods that retrieve managed objects.
AttributeRightsCollection
parameter lets you specify the
attributes (and their associated access permissions) to include in the
retrieved managed object, as follows:
AttributeRight
object in the AttributeRightsCollection
.
null
in
AttributeRightsCollection
.
AttributeRightsCollection
.
AttributeRightsCollection
object also pass in a
TSContext
object for the current task. Identity Manager calculates an attribute's permission
based on this context information and on the attribute-level permissions defined on the server
for all relevant roles (roles that contain the current task and that apply to the
current administrator and operation). Identity Manager then determines the applicable permission
for each attribute as follows:AttributeRightsCollection
object as follows:
AttributeRightsCollection attributes = new AttributeRightsCollection(); // add the friendly name attribute AttributeRight right1 = new AttributeRight(User.PROPERTY_FRIENDLY_NAME, PermissionType.READONLY); attributes.addEntry(right1); // add the unique name attribute AttributeRight right2 = new AttributeRight(User.PROPERTY_UNIQUE_NAME, PermissionType.READONLY); attributes.addEntry(right2);
Constructor Summary | |
---|---|
AttributeRightsCollection()
Creates a new AttributeRightsCollection . |
Method Summary | |
---|---|
void |
addAll(AttributeRightsCollection attributeRightsCollection)
Adds another attribute rights collection to this one |
void |
addEntry(AttributeRight right)
Adds a new right to this collection. |
boolean |
fetchDefaultAttrs()
|
static AttributeRightsCollection |
getAllAtributeRightsCollection(java.util.Vector attrs)
|
static AttributeRightsCollection |
getAllAttributeRightsCollection(ImsDirectory dir,
ObjectType objectType)
Get a complete AttributeRightsCollection for specified object type in specified environment |
static AttributeRightsCollection |
getAllAttributeRightsCollection(ImsEnvironment env,
ObjectType objectType)
Get a complete AttributeRightsCollection for specified object type in specified environment |
static AttributeRightsCollection |
getAllAttributeRightsCollection(ImsManagedObjectDefinition managedObjectDefinition)
Get a complete AttributeRightsCollection for specified object defintion |
static AttributeRightsCollection |
getAttributeRightsCollection(ImsEnvironment env,
ObjectType objectType,
java.util.Enumeration attribs)
Get AttributeRightsCollection for the attributes in the enumeration |
static AttributeRightsCollection |
getAttributeRightsCollection(ImsManagedObjectDefinition managedObjectDefinition,
java.util.Enumeration attribs)
Get AttributeRightsCollection for the attributes in the enumeration. |
java.util.Enumeration |
getAttributes()
Retrieves the names of the attributes in the collection. |
java.util.Hashtable |
getCollection()
Retrieves the collection Hashtable. |
AttributeRight |
getEntry(java.lang.String attribute)
Retrieves an attribute right from the collection, specified by attribute name. |
java.util.Hashtable |
getPermissionCollection()
Returns the permissions for each attribute. |
void |
removeEntry(AttributeRight attribute)
Removes the passed-in attribute right object from the collection. |
void |
removeEntry(java.lang.String attributeName)
Removes an attribute right from the collection, specified by attribute name. |
void |
setAttributeRight(AttributeRight right)
Adds a new right to this collection. |
void |
setFetchDefaultAttrs(boolean fetchDefaultAttrs)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AttributeRightsCollection()
AttributeRightsCollection
.
Method Detail |
---|
public void addEntry(AttributeRight right)
right
- The attribute right to add.public void setAttributeRight(AttributeRight right)
right
- The attribute right to add.public void removeEntry(java.lang.String attributeName)
attributeName
- The name of the attribute right to remove.public void removeEntry(AttributeRight attribute)
attribute
- The attribute right object to remove.public AttributeRight getEntry(java.lang.String attribute)
null
is returned.
attribute
- The name of the attribute right to retrieve.
null
if the specified
attribute name isn't found in any attribute right.public java.util.Hashtable getCollection()
public java.util.Hashtable getPermissionCollection()
public java.util.Enumeration getAttributes()
public void addAll(AttributeRightsCollection attributeRightsCollection)
attributeRightsCollection
- the attribute rights collection to be added to this onepublic static AttributeRightsCollection getAllAttributeRightsCollection(ImsEnvironment env, ObjectType objectType) throws SmApiException
env
- objectType
-
SmApiException
public static AttributeRightsCollection getAllAttributeRightsCollection(ImsDirectory dir, ObjectType objectType) throws SmApiException
dir
- objectType
-
SmApiException
public static AttributeRightsCollection getAllAttributeRightsCollection(ImsManagedObjectDefinition managedObjectDefinition) throws SmApiException
managedObjectDefinition
-
SmApiException
public static AttributeRightsCollection getAllAtributeRightsCollection(java.util.Vector attrs)
public static AttributeRightsCollection getAttributeRightsCollection(ImsEnvironment env, ObjectType objectType, java.util.Enumeration attribs) throws SmApiException
attribs
-
SmApiException
public static AttributeRightsCollection getAttributeRightsCollection(ImsManagedObjectDefinition managedObjectDefinition, java.util.Enumeration attribs) throws SmApiException
managedObjectDefinition
- attribs
-
SmApiException
public java.lang.String toString()
toString
in class java.lang.Object
public boolean fetchDefaultAttrs()
public void setFetchDefaultAttrs(boolean fetchDefaultAttrs)
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |