Administering extended attributes for a protected object

The extended attributes for a protected object can be created, set, queried, and deleted.

Protected objects without explicitly defined extended attributes inherit the first found set of extended attributes, which are defined at the parent object within the inheritance chain. The found set of extended attributes replaces the empty set of defined attributes. These inherited attributes are called effective extended attributes.

Table 1 describes the methods for administering extended attributes and effective extended attributes for a protected object.

Table 1. Administering protected object attributes
FunctionsMethods Description
ivadmin_protobj_attrdelkey()

PDProtObject.deleteAttribute
PDProtObject object.deleteAttribute

Deletes the specified extended attribute (name and values) from the specified protected object.
ivadmin_protobj_attrdelval()

PDProtObject.deleteAttributeValue
PDProtObject object.deleteAttributeValue

Deletes the specified value from the specified extended attribute key in the specified protected object.
ivadmin_protobj_effattrget()

PDProtObject.getEffectiveAttributeValues

Displays a list of the values for the effective extended attribute that is associated with the specified protected object.
ivadmin_protobj_effattrlist()

PDProtObject.getEffectiveAttributeNames

Displays a list of all the effective extended attributes that are associated with the specified protected object.
PDProtObject.getEffectiveAttributeObjectId Displays the name of the protected object that has the extended attributes defined. When no extended attributes are defined, NULL is returned.
ivadmin_protobj_attrget()PDProtObject object.getAttributeValues Returns the values that are associated with the specified extended attribute for the specified protected object.
ivadmin_protobj_attrlist()PDProtObject object.getAttributeNames Lists all the extended attributes that are associated with the specified protected object.
ivadmin_protobj_attrput()

PDProtObject.setAttributeValue
PDProtObject object.setAttributeValue

Creates an extended attribute with the specified name and value, if it does not exist, and adds the attribute to the specified protected object. If the attribute specified exists, the specified value is added to the existing attribute.

For detailed reference information about these methods, see the Javadoc HTML documentation.