Class Uid
- java.lang.Object
-
- org.identityconnectors.framework.common.objects.Attribute
-
- org.identityconnectors.framework.common.objects.Uid
-
public final class Uid extends Attribute
A single-valued attribute that represents the unique identifier of an object within the name-space of the target resource. If possible, this unique identifier also should be immutable.When an application creates an object on a target resource, the
createoperation returns as its result theUidof the created object. An application also can use thesearchoperation to discover theUidvalue for an existing object. An application must use theUidvalue to identify the object in any subsequent call toget,deleteorupdatethat object. See the documentation forNamefor comparison.Ideally, the value of
Uidwould be a Globally Unique IDentifier (GUID). However, not every target resource provides a globally unique and immutable identifier for each of its objects. For some connector implementations, therefore, theUidvalue is only locally unique and may change when an object is modified. For instance, an LDAP directory service that lacks GUID might use Distinguished Name (DN) as theUidfor each object. A connector that represents each object as a row in a database table might use the value of the primary key as theUidof an object. The fact that changing an object might change itsUidis the reason thatupdatereturnsUid.Uidby definition must be a single-valued attribute. Its value must always convert to a string, regardless of the underlying type of the native identifier on the target. The string value of any native id must be canonical.Uid is never allowed to appear in the
Schema, nor may Uid appear in the attribute set of acreateoperation. This is because Uid is not a true attribute of an object, but rather a reference to that object. Uid extendsAttributeonly so that Uid can be searchable and compatible with the filter translators.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetRevision()Return the string representation of the revision value of thejava.lang.StringgetUidValue()Obtain a string representation of the value of this attribute, which value uniquely identifies aobjecton the target resource.
-
-
-
Method Detail
-
getUidValue
public java.lang.String getUidValue()
Obtain a string representation of the value of this attribute, which value uniquely identifies aobjecton the target resource.- Returns:
- value that uniquely identifies an object.
-
getRevision
public java.lang.String getRevision()
Return the string representation of the revision value of theThe revision number specifies a given version ot the
objectidentified by thegetUidValue()- Returns:
- null if the connector does not support the MVCC and does not set this value otherwise return the revision number of the object.
-
-