|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.directory.MultiValueAttributes
org.pf.directory.DirectoryObject
org.pf.directory.ldap.LDAPDirEntry
public class LDAPDirEntry
Represents an object from a LDAP directory
| Field Summary | |
|---|---|
static java.lang.String |
ATTRNAME_CREATE_TIMESTAMP
|
static java.lang.String |
ATTRNAME_CREATORS_NAME
|
static java.lang.String |
ATTRNAME_MODIFIERS_NAME
|
static java.lang.String |
ATTRNAME_MODIFY_TIMESTAMP
|
static java.lang.String |
ATTRNAME_NAMING_CONTEXTS
|
static java.lang.String |
ATTRNAME_SUBSCHEMA_SUBENTRY
|
| Constructor Summary | |
|---|---|
LDAPDirEntry(DistinguishedName dn)
Initialize the new instance with its distinguished name. |
|
LDAPDirEntry(LDAPDirEntry dirObject)
Initialize the new instance with the given entry data. |
|
LDAPDirEntry(java.lang.String dn)
Initialize the new instance with its dn. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCreateTimestamp()
Returns the creation timestamp of this object |
DistinguishedName |
getDistinguishedName()
Returns the distinguished name of this object |
java.lang.String |
getDN()
Returns the distinguished name of this object. |
java.lang.String |
getModifyTimestamp()
Returns the modification timestamp of this object |
boolean |
isContainer()
Returns true if this entry is a container object that can contain other entries as children. |
void |
setAttribute(java.lang.String attrName,
java.lang.String attrValue)
Sets the attribute with the given name to the given value. |
void |
setCreateTimestamp(java.lang.String timestamp)
Sets the creation timestamp of this object to the given value. |
void |
setModifyTimestamp(java.lang.String timestamp)
Sets the modification timestamp of this object to the given value. |
java.lang.String |
toString()
Returns a string representation of this object |
void |
updateFrom(MultiValueAttributes attributes)
Add the given attributes to this LDAP entry |
void |
updateModifyTimestamp()
Sets the modification timestamp to the current date/time |
void |
updateTimestamps()
Sets the creation and modification timestamps to the current date/time |
| Methods inherited from class org.pf.directory.DirectoryObject |
|---|
equals, getID, hashCode, matches |
| Methods inherited from class org.pf.directory.MultiValueAttributes |
|---|
addAttribute, addValue, addValue, getAttribute, getAttributeAsString, getAttributeAsStringArray, getAttributeNames, getAttributeValue, getCopyOfAttributes, getMetaData, getValue, getValues, hasAttribute, isEmpty, removeAttribute, removeValue, setMetaData, size |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRNAME_CREATE_TIMESTAMP
public static final java.lang.String ATTRNAME_MODIFY_TIMESTAMP
public static final java.lang.String ATTRNAME_CREATORS_NAME
public static final java.lang.String ATTRNAME_MODIFIERS_NAME
public static final java.lang.String ATTRNAME_SUBSCHEMA_SUBENTRY
public static final java.lang.String ATTRNAME_NAMING_CONTEXTS
| Constructor Detail |
|---|
public LDAPDirEntry(java.lang.String dn)
dn - The distinguished name of the new object.public LDAPDirEntry(DistinguishedName dn)
dn - The distinguished name of the new object.public LDAPDirEntry(LDAPDirEntry dirObject)
| Method Detail |
|---|
public DistinguishedName getDistinguishedName()
public java.lang.String getCreateTimestamp()
public java.lang.String getModifyTimestamp()
public void setCreateTimestamp(java.lang.String timestamp)
timestamp - A valid LDAP timestamp string of format "yyyyMMddHHmmssZ"public void setModifyTimestamp(java.lang.String timestamp)
timestamp - A valid LDAP timestamp string of format "yyyyMMddHHmmssZ"public void updateTimestamps()
public void updateModifyTimestamp()
public void setAttribute(java.lang.String attrName,
java.lang.String attrValue)
attrName - The name of the attribute to setattrValue - The value to setpublic java.lang.String getDN()
public boolean isContainer()
Here it always returns false. Subclasses must override this method to return true if appropriate.
public void updateFrom(MultiValueAttributes attributes)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||