public class DirectoryEntry
extends java.lang.Object
implements java.io.Serializable, com.ibm.itim.util.xml.objectstream.Importable
| Constructor and Description |
|---|
DirectoryEntry(DistinguishedName dn,
AttributeValues attributes)
Constructs the object with full set of parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(AttributeValue attribute)
Adds the given attribute and value to the set of attributes for the
object.
|
void |
addAttributeValues(AttributeValue attribute)
Adds the given attribute and value to the set of attributes for the
object.
|
void |
clearChange(java.lang.String attributeName)
Clear all the changes made to the specific attribute.
|
void |
clearChanges()
Clear all changes made to this directory entry.
|
AttributeValue |
getAttribute(java.lang.String name)
Retrieves one attribute (with applied system semantics if needed) by
name from the object.
|
AttributeValues |
getAttributes()
Returns the attributes of the object without any system semantics.
|
AttributeChanges |
getChanges()
Returns the changes that have been made to the attributes of this object.
|
DistinguishedName |
getDistinguishedName()
Returns the distinguished name of the object.
|
java.util.Date |
getLastModified()
Returns the date the object was last modified.
|
java.util.Collection<java.lang.String> |
getObjectClasses()
Returns a collection of objectclasses that define this object.
|
AttributeValues |
getOldAttributes()
Returns the old attributes of the object without any system semantics.
|
AttributeValue |
removeAttribute(AttributeValue attribute)
Removes the attribute by attribute value object.
|
AttributeValue |
removeAttribute(java.lang.String attributeName)
Removes the attribute with the given name from the set of attributes
for the object.
|
void |
setAttribute(AttributeValue attribute)
Changes the specifified attribute (with applied system semantics if
needed).
|
void |
setAttributes(AttributeValues attributes)
Replaces the attributes of the object using system semantics.
|
void |
setDistinguishedName(DistinguishedName dn)
Sets the distinguished name of the object.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
public DirectoryEntry(DistinguishedName dn, AttributeValues attributes)
dn - DistinguishedName of a directory entry.attributes - AttributeValues holding attributes of entry.public DistinguishedName getDistinguishedName()
public void setDistinguishedName(DistinguishedName dn)
dn - DistinguishedName of the object.public AttributeValues getAttributes()
public AttributeValues getOldAttributes()
public void setAttributes(AttributeValues attributes)
attributes - Collection of AttributeValues.public AttributeValue getAttribute(java.lang.String name)
name - Name of the attribute to retrieve.public void addAttribute(AttributeValue attribute)
attribute - AttributeValue to add. Note: the attribute must be
compliant with the object's schema or an exception will be
thrown when updating the data store.public void addAttributeValues(AttributeValue attribute)
attribute - AttributeValue to add. Note: the attribute must be
compliant with the object's schema or an exception will be
thrown when updating the data store.public AttributeValue removeAttribute(java.lang.String attributeName)
attributeName - String name of the attribute to remove.public AttributeValue removeAttribute(AttributeValue attribute)
attribute - AttributeValue to be removed. Note: the attribute must be
compliant with the object's schema or an exception will be
thrown when updating the data store.public void setAttribute(AttributeValue attribute)
attribute - AttributeValue to change with.public AttributeChanges getChanges()
public java.util.Date getLastModified()
public void clearChanges()
public void clearChange(java.lang.String attributeName)
attributeName - The name of the attribute.public java.util.Collection<java.lang.String> getObjectClasses()
public java.lang.String toString()
toString in class java.lang.Object