ldapsdk
0.0.1
|
Represents the Object Class (from LDAP schema) More...
#include <LDAPObjClass.h>
Public Member Functions | |
LDAPObjClass () | |
Constructs an empty object. More... | |
LDAPObjClass (const LDAPObjClass &oc) | |
Copy constructor. More... | |
LDAPObjClass (string oc_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 | ~LDAPObjClass () |
Destructor. More... | |
string | getDesc () const |
Returns object class description. More... | |
string | getOid () const |
Returns object class oid. More... | |
string | getName () const |
Returns object class name (first one if there are more of them) More... | |
int | getKind () const |
Returns object class kind: 0=ABSTRACT, 1=STRUCTURAL, 2=AUXILIARY. More... | |
StringList | getNames () const |
Returns all object class names. More... | |
StringList | getMust () const |
Returns list of required attributes. More... | |
StringList | getMay () const |
Returns list of allowed (and not required) attributes. More... | |
StringList | getSup () const |
Returns list of the OIDs of the superior ObjectClasses More... | |
void | setNames (char **oc_names) |
void | setMay (char **oc_may) |
void | setMust (char **oc_must) |
void | setDesc (char *oc_desc) |
void | setOid (char *oc_oid) |
void | setKind (int oc_kind) |
void | setSup (char **oc_sup) |
Represents the Object Class (from LDAP schema)
LDAPObjClass::LDAPObjClass | ( | ) |
Constructs an empty object.
References DEBUG, and LDAP_DEBUG_CONSTRUCT.
LDAPObjClass::LDAPObjClass | ( | const LDAPObjClass & | oc | ) |
Copy constructor.
References DEBUG, and LDAP_DEBUG_CONSTRUCT.
LDAPObjClass::LDAPObjClass | ( | string | oc_item, |
int | flags = LDAP_SCHEMA_ALLOW_NO_OID | LDAP_SCHEMA_ALLOW_QUOTED |
||
) |
Constructs new object and fills the data structure by parsing the argument.
oc_item | description of object class is string returned by the search command. It is in the form: "( SuSE.YaST.OC:5 NAME 'userTemplate' SUP objectTemplate STRUCTURAL DESC 'User object template' MUST ( cn ) MAY ( secondaryGroup ))" |
References DEBUG, LDAP_DEBUG_CONSTRUCT, setDesc(), setKind(), setMay(), setMust(), setNames(), setOid(), and setSup().
|
virtual |
Destructor.
References DEBUG, and LDAP_DEBUG_DESTROY.
string LDAPObjClass::getDesc | ( | ) | const |
Returns object class description.
int LDAPObjClass::getKind | ( | ) | const |
Returns object class kind: 0=ABSTRACT, 1=STRUCTURAL, 2=AUXILIARY.
StringList LDAPObjClass::getMay | ( | ) | const |
Returns list of allowed (and not required) attributes.
StringList LDAPObjClass::getMust | ( | ) | const |
Returns list of required attributes.
string LDAPObjClass::getName | ( | ) | const |
Returns object class name (first one if there are more of them)
References StringList::begin(), and StringList::empty().
StringList LDAPObjClass::getNames | ( | ) | const |
Returns all object class names.
Referenced by LDAPSchema::setObjectClasses().
string LDAPObjClass::getOid | ( | ) | const |
Returns object class oid.
StringList LDAPObjClass::getSup | ( | ) | const |
Returns list of the OIDs of the superior ObjectClasses
void LDAPObjClass::setDesc | ( | char * | oc_desc | ) |
Referenced by LDAPObjClass().
void LDAPObjClass::setKind | ( | int | oc_kind | ) |
Referenced by LDAPObjClass().
void LDAPObjClass::setMay | ( | char ** | oc_may | ) |
Referenced by LDAPObjClass().
void LDAPObjClass::setMust | ( | char ** | oc_must | ) |
Referenced by LDAPObjClass().
void LDAPObjClass::setNames | ( | char ** | oc_names | ) |
Referenced by LDAPObjClass().
void LDAPObjClass::setOid | ( | char * | oc_oid | ) |
Referenced by LDAPObjClass().
void LDAPObjClass::setSup | ( | char ** | oc_sup | ) |
Referenced by LDAPObjClass().