Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

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.

int LDAPObjClass::getKind  ) 
 

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

StringList LDAPObjClass::getMay  ) 
 

Returns list of allowed (and not required) attributes.

StringList LDAPObjClass::getMust  ) 
 

Returns list of required attributes.

string LDAPObjClass::getName  ) 
 

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

StringList LDAPObjClass::getNames  ) 
 

Returns all object class names.

string LDAPObjClass::getOid  ) 
 

Returns object class oid.

StringList LDAPObjClass::getSup  ) 
 

Returns list of the OIDs of the superior ObjectClasses.

void LDAPObjClass::setDesc char *  oc_desc  ) 
 

void LDAPObjClass::setKind int  oc_kind  ) 
 

void LDAPObjClass::setMay char **  oc_may  ) 
 

void LDAPObjClass::setMust char **  oc_must  ) 
 

void LDAPObjClass::setNames char **  oc_names  ) 
 

void LDAPObjClass::setOid char *  oc_oid  ) 
 

void LDAPObjClass::setSup char **  oc_sup  ) 
 


Member Data Documentation

string LDAPObjClass::desc [private]
 

int LDAPObjClass::kind [private]
 

StringList LDAPObjClass::may [private]
 

StringList LDAPObjClass::must [private]
 

StringList LDAPObjClass::names [private]
 

string LDAPObjClass::oid [private]
 

StringList LDAPObjClass::sup [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Jun 30 21:49:02 2004 for ldapsdk by doxygen 1.3.6