LDAPObjClass Class Reference

Represents the Object Class (from LDAP schema). More...

#include <LDAPObjClass.h>

List of all members.

Public Member Functions

 LDAPObjClass ()
 Constructs an empty object.
 LDAPObjClass (const LDAPObjClass &oc)
 Copy constructor.
 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.
virtual ~LDAPObjClass ()
 Destructor.
string getDesc () const
 Returns object class description.
string getOid () const
 Returns object class oid.
string getName () const
 Returns object class name (first one if there are more of them).
int getKind () const
 Returns object class kind: 0=ABSTRACT, 1=STRUCTURAL, 2=AUXILIARY.
StringList getNames () const
 Returns all object class names.
StringList getMust () const
 Returns list of required attributes.
StringList getMay () const
 Returns list of allowed (and not required) attributes.
StringList getSup () const
 Returns list of the OIDs of the superior ObjectClasses.
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)

Private Attributes

StringList names
StringList must
StringList may
StringList sup
string desc
string oid
int kind


Detailed Description

Represents the Object Class (from LDAP schema).

Constructor & Destructor Documentation

LDAPObjClass::LDAPObjClass (  ) 

Constructs an empty object.

References DEBUG, desc, LDAP_DEBUG_CONSTRUCT, may, must, names, oid, and sup.

LDAPObjClass::LDAPObjClass ( const LDAPObjClass oc  ) 

Copy constructor.

References DEBUG, desc, kind, LDAP_DEBUG_CONSTRUCT, may, must, names, oid, and sup.

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.

Parameters:
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().

LDAPObjClass::~LDAPObjClass (  )  [virtual]

Destructor.

References DEBUG, and LDAP_DEBUG_DESTROY.


Member Function Documentation

string LDAPObjClass::getDesc (  )  const

Returns object class description.

References desc.

int LDAPObjClass::getKind (  )  const

Returns object class kind: 0=ABSTRACT, 1=STRUCTURAL, 2=AUXILIARY.

References kind.

StringList LDAPObjClass::getMay (  )  const

Returns list of allowed (and not required) attributes.

References may.

StringList LDAPObjClass::getMust (  )  const

Returns list of required attributes.

References must.

string LDAPObjClass::getName (  )  const

Returns object class name (first one if there are more of them).

References StringList::begin(), StringList::empty(), and names.

StringList LDAPObjClass::getNames (  )  const

Returns all object class names.

References names.

Referenced by LDAPSchema::setObjectClasses().

string LDAPObjClass::getOid (  )  const

Returns object class oid.

References oid.

StringList LDAPObjClass::getSup (  )  const

Returns list of the OIDs of the superior ObjectClasses.

References sup.

void LDAPObjClass::setDesc ( char *  oc_desc  ) 

References desc.

Referenced by LDAPObjClass().

void LDAPObjClass::setKind ( int  oc_kind  ) 

References kind.

Referenced by LDAPObjClass().

void LDAPObjClass::setMay ( char **  oc_may  ) 

References may.

Referenced by LDAPObjClass().

void LDAPObjClass::setMust ( char **  oc_must  ) 

References must.

Referenced by LDAPObjClass().

void LDAPObjClass::setNames ( char **  oc_names  ) 

References names.

Referenced by LDAPObjClass().

void LDAPObjClass::setOid ( char *  oc_oid  ) 

References oid.

Referenced by LDAPObjClass().

void LDAPObjClass::setSup ( char **  oc_sup  ) 

References sup.

Referenced by LDAPObjClass().


Member Data Documentation

string LDAPObjClass::desc [private]

Referenced by getDesc(), LDAPObjClass(), and setDesc().

int LDAPObjClass::kind [private]

Referenced by getKind(), LDAPObjClass(), and setKind().

Referenced by getMay(), LDAPObjClass(), and setMay().

Referenced by getMust(), LDAPObjClass(), and setMust().

string LDAPObjClass::oid [private]

Referenced by getOid(), LDAPObjClass(), and setOid().

Referenced by getSup(), LDAPObjClass(), and setSup().


The documentation for this class was generated from the following files:

doxygen