|
ldapsdk
0.0.1
|
Represents the Attribute Type (from LDAP schema) More...
#include <LDAPAttrType.h>
Public Member Functions | |
| LDAPAttrType () | |
| Constructor. More... | |
| LDAPAttrType (string at_item, int flags=LDAP_SCHEMA_ALLOW_NO_OID|LDAP_SCHEMA_ALLOW_QUOTED) | |
Constructs new object and fills the data structure by parsing the argument. More... | |
| virtual | ~LDAPAttrType () |
| Destructor. More... | |
| string | getDesc () const |
| Returns attribute description. More... | |
| string | getOid () const |
| Returns attribute oid. More... | |
| string | getName () const |
| Returns attribute name (first one if there are more of them) More... | |
| StringList | getNames () const |
| Returns all attribute names. More... | |
| bool | isSingle () const |
| Returns true if attribute type allows only single value. More... | |
| int | getUsage () const |
| Return the 'usage' value: (0=userApplications, 1=directoryOperation, 2=distributedOperation, 3=dSAOperation) More... | |
| std::string | getSuperiorOid () const |
| std::string | getEqualityOid () const |
| std::string | getOrderingOid () const |
| std::string | getSubstringOid () const |
| std::string | getSyntaxOid () const |
| void | setNames (char **at_names) |
| void | setDesc (const char *at_desc) |
| void | setOid (const char *at_oid) |
| void | setSingle (int at_single_value) |
| void | setUsage (int at_usage) |
| void | setSuperiorOid (const char *oid) |
| void | setEqualityOid (const char *oid) |
| void | setOrderingOid (const char *oid) |
| void | setSubstringOid (const char *oid) |
| void | setSyntaxOid (const char *oid) |
Represents the Attribute Type (from LDAP schema)
| LDAPAttrType::LDAPAttrType | ( | ) |
Constructor.
References DEBUG, and LDAP_DEBUG_CONSTRUCT.
| LDAPAttrType::LDAPAttrType | ( | string | at_item, |
| int | flags = LDAP_SCHEMA_ALLOW_NO_OID | LDAP_SCHEMA_ALLOW_QUOTED |
||
| ) |
Constructs new object and fills the data structure by parsing the argument.
| at_item | description of attribute type is string returned by the search command. It is in the form: "( SuSE.YaST.Attr:19 NAME ( 'skelDir' ) DESC '' EQUALITY caseExactIA5Match SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )" |
References DEBUG, LDAP_DEBUG_CONSTRUCT, setDesc(), setEqualityOid(), setNames(), setOid(), setOrderingOid(), setSingle(), setSubstringOid(), setSuperiorOid(), setSyntaxOid(), and setUsage().
|
virtual |
Destructor.
References DEBUG, and LDAP_DEBUG_DESTROY.
| string LDAPAttrType::getDesc | ( | ) | const |
Returns attribute description.
| std::string LDAPAttrType::getEqualityOid | ( | ) | const |
| string LDAPAttrType::getName | ( | ) | const |
Returns attribute name (first one if there are more of them)
References StringList::begin(), and StringList::empty().
| StringList LDAPAttrType::getNames | ( | ) | const |
Returns all attribute names.
Referenced by LDAPSchema::setAttributeTypes().
| string LDAPAttrType::getOid | ( | ) | const |
Returns attribute oid.
| std::string LDAPAttrType::getOrderingOid | ( | ) | const |
| std::string LDAPAttrType::getSubstringOid | ( | ) | const |
| std::string LDAPAttrType::getSuperiorOid | ( | ) | const |
| std::string LDAPAttrType::getSyntaxOid | ( | ) | const |
| int LDAPAttrType::getUsage | ( | ) | const |
Return the 'usage' value: (0=userApplications, 1=directoryOperation, 2=distributedOperation, 3=dSAOperation)
| bool LDAPAttrType::isSingle | ( | ) | const |
Returns true if attribute type allows only single value.
| void LDAPAttrType::setDesc | ( | const char * | at_desc | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setEqualityOid | ( | const char * | oid | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setNames | ( | char ** | at_names | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setOid | ( | const char * | at_oid | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setOrderingOid | ( | const char * | oid | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setSingle | ( | int | at_single_value | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setSubstringOid | ( | const char * | oid | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setSuperiorOid | ( | const char * | oid | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setSyntaxOid | ( | const char * | oid | ) |
Referenced by LDAPAttrType().
| void LDAPAttrType::setUsage | ( | int | at_usage | ) |
Referenced by LDAPAttrType().
1.8.14