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)
 Constructs new object and fills the data structure by parsing the argument.
virtual ~LDAPObjClass ()
 Destructor.
string getDesc ()
 Returns object class description.
string getOid ()
 Returns object class oid.
string getName ()
 Returns object class name (first one if there are more of them).
int getKind ()
 Returns object class kind: 0=ABSTRACT, 1=STRUCTURAL, 2=AUXILIARY.
StringList getNames ()
 Returns all object class names.
StringList getMust ()
 Returns list of required attributes.
StringList getMay ()
 Returns list of allowed (and not required) attributes.
StringList getSup ()
 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.

LDAPObjClass::LDAPObjClass ( const LDAPObjClass oc  ) 

Copy constructor.

LDAPObjClass::LDAPObjClass ( string  oc_item  ) 

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 ))"

LDAPObjClass::~LDAPObjClass (  )  [virtual]

Destructor.


Member Function Documentation

string LDAPObjClass::getDesc (  ) 

Returns object class description.

string LDAPObjClass::getOid (  ) 

Returns object class oid.

string LDAPObjClass::getName (  ) 

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

int LDAPObjClass::getKind (  ) 

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

StringList LDAPObjClass::getNames (  ) 

Returns all object class names.

StringList LDAPObjClass::getMust (  ) 

Returns list of required attributes.

StringList LDAPObjClass::getMay (  ) 

Returns list of allowed (and not required) attributes.

StringList LDAPObjClass::getSup (  ) 

Returns list of the OIDs of the superior ObjectClasses.

void LDAPObjClass::setNames ( char **  oc_names  ) 

void LDAPObjClass::setMay ( char **  oc_may  ) 

void LDAPObjClass::setMust ( char **  oc_must  ) 

void LDAPObjClass::setDesc ( char *  oc_desc  ) 

void LDAPObjClass::setOid ( char *  oc_oid  ) 

void LDAPObjClass::setKind ( int  oc_kind  ) 

void LDAPObjClass::setSup ( char **  oc_sup  ) 


Member Data Documentation

StringList LDAPObjClass::names [private]

StringList LDAPObjClass::must [private]

StringList LDAPObjClass::may [private]

StringList LDAPObjClass::sup [private]

string LDAPObjClass::desc [private]

string LDAPObjClass::oid [private]

int LDAPObjClass::kind [private]


The documentation for this class was generated from the following files:
Generated on Sat Sep 22 10:21:53 2007 for ldapsdk by  doxygen 1.5.3