|
ldapsdk
0.0.1
|
This class is used to store every kind of LDAP Entry. More...
#include <LDAPEntry.h>
Public Member Functions | |
| LDAPEntry (const LDAPEntry &entry) | |
| Copy-constructor. More... | |
| LDAPEntry (const std::string &dn=std::string(), const LDAPAttributeList *attrs=0) | |
| Constructs a new entry (also used as standard constructor). More... | |
| LDAPEntry (const LDAPAsynConnection *ld, LDAPMessage *msg) | |
| Used internally only. More... | |
| ~LDAPEntry () | |
| Destructor. More... | |
| LDAPEntry & | operator= (const LDAPEntry &from) |
| Assignment operator. More... | |
| void | setDN (const std::string &dn) |
| Sets the DN-attribute. More... | |
| void | setAttributes (LDAPAttributeList *attrs) |
| Sets the attributes of the entry. More... | |
| const LDAPAttribute * | getAttributeByName (const std::string &name) const |
| Get an Attribute by its AttributeType (simple wrapper around LDAPAttributeList::getAttributeByName() ) More... | |
| void | addAttribute (const LDAPAttribute &attr) |
| Adds one Attribute to the List of Attributes (simple wrapper around LDAPAttributeList::addAttribute() ). More... | |
| void | delAttribute (const std::string &type) |
| Deletes all values of an Attribute from the list of Attributes (simple wrapper around LDAPAttributeList::delAttribute() ). More... | |
| void | replaceAttribute (const LDAPAttribute &attr) |
| Replace an Attribute in the List of Attributes (simple wrapper around LDAPAttributeList::replaceAttribute() ). More... | |
| const std::string & | getDN () const |
| const LDAPAttributeList * | getAttributes () const |
Friends | |
| std::ostream & | operator<< (std::ostream &s, const LDAPEntry &le) |
| This method can be used to dump the data of a LDAPResult-Object. More... | |
This class is used to store every kind of LDAP Entry.
| LDAPEntry::LDAPEntry | ( | const LDAPEntry & | entry | ) |
Copy-constructor.
References DEBUG, and LDAP_DEBUG_CONSTRUCT.
| LDAPEntry::LDAPEntry | ( | const std::string & | dn = std::string(), |
| const LDAPAttributeList * | attrs = 0 |
||
| ) |
Constructs a new entry (also used as standard constructor).
| dn | The Distinguished Name for the new entry. |
| attrs | The attributes for the new entry. |
| LDAPEntry::LDAPEntry | ( | const LDAPAsynConnection * | ld, |
| LDAPMessage * | msg | ||
| ) |
Used internally only.
The constructor is used internally to create a LDAPEntry from the C-API's data structurs.
References DEBUG, LDAPAsynConnection::getSessionHandle(), and LDAP_DEBUG_CONSTRUCT.
| LDAPEntry::~LDAPEntry | ( | ) |
Destructor.
References DEBUG, and LDAP_DEBUG_DESTROY.
| void LDAPEntry::addAttribute | ( | const LDAPAttribute & | attr | ) |
Adds one Attribute to the List of Attributes (simple wrapper around LDAPAttributeList::addAttribute() ).
| attr | The attribute to add to the list. |
| void LDAPEntry::delAttribute | ( | const std::string & | type | ) |
Deletes all values of an Attribute from the list of Attributes (simple wrapper around LDAPAttributeList::delAttribute() ).
| type | The attribute to delete. |
| const LDAPAttribute * LDAPEntry::getAttributeByName | ( | const std::string & | name | ) | const |
Get an Attribute by its AttributeType (simple wrapper around LDAPAttributeList::getAttributeByName() )
| name | The name of the Attribute to look for |
| const LDAPAttributeList * LDAPEntry::getAttributes | ( | ) | const |
References DEBUG, and LDAP_DEBUG_TRACE.
Referenced by LDAPAddRequest::sendRequest(), and LdifWriter::writeRecord().
| const string & LDAPEntry::getDN | ( | ) | const |
References DEBUG, and LDAP_DEBUG_TRACE.
Referenced by LDAPAddRequest::sendRequest(), and LdifWriter::writeRecord().
| void LDAPEntry::replaceAttribute | ( | const LDAPAttribute & | attr | ) |
Replace an Attribute in the List of Attributes (simple wrapper around LDAPAttributeList::replaceAttribute() ).
| attr | The attribute to add to the list. |
| void LDAPEntry::setAttributes | ( | LDAPAttributeList * | attrs | ) |
Sets the attributes of the entry.
| attr | A pointer to a std::list of the new attributes. |
References DEBUG, LDAP_DEBUG_PARAMETER, and LDAP_DEBUG_TRACE.
Referenced by LdifReader::getEntryRecord().
| void LDAPEntry::setDN | ( | const std::string & | dn | ) |
Sets the DN-attribute.
| dn | The new DN for the entry. |
References DEBUG, LDAP_DEBUG_PARAMETER, and LDAP_DEBUG_TRACE.
|
friend |
This method can be used to dump the data of a LDAPResult-Object.
It is only useful for debugging purposes at the moment
1.8.6