|
Oracle® Mail Java API Reference 10g Release 1 (10.1.1) B14492-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.mail.ldap.ESDSSchemaManager
This class queries, parses and caches the LDAP schema. This class is a singleton class, so there is exactly one instance of this class in a JVM. It provides the Schema Definition Methods. This caches schema based on the oid criteria specified in the oids.properties. It caches the standard defns and the ones specified in the properties file by default. At runtime if it gets a request for some definition that doesn't exist in cache, it throws an exception. If that's the case, the caller needs to add the criteria to the oids.properties file. Since all standard LDAP schema, and the Email/Um schema is cached by default this situation will not arise.
Method Summary | |
ESDSAttribMetaData |
getAttribMetaData(java.lang.String oid) Gets the metadata associated with an attribute definition. |
java.lang.String |
getAttributeMultiplicity(java.lang.String oid) Returns the multiplicity of the attribute. |
java.lang.String |
getAttributeSyntax(java.lang.String oid) Returns the syntax of the attribute. |
java.lang.String |
getAttributeType(java.lang.String oid) Returns the syntax type of the attribute. |
static ESDSSchemaManager |
getMgrInstance(ESDSContext context) Gets the unique instance of this class. |
static ESDSSchemaManager |
getMgrInstance(java.lang.String hostName, java.lang.String port) Deprecated. |
java.lang.String |
getName(java.lang.String oid) Gets the name of an attribute from a given OID. |
java.util.Vector |
getObjectClassMandatoryAttribs(java.lang.String oid) Returns the name of the mandatory attributes of the objectclass. |
java.util.Vector |
getObjectClassOptionalAttribs(java.lang.String oid) Returns the name of the optional attributes of the object. |
java.lang.String |
getOid(java.lang.String name) Gets the OID of an attribute. |
void |
printAllObjs() |
void |
setDebug(boolean debug) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ESDSSchemaManager getMgrInstance(ESDSContext context) throws ESDSException
ESDSContext
- an authenticated contextpublic static ESDSSchemaManager getMgrInstance(java.lang.String hostName, java.lang.String port)
public void setDebug(boolean debug)
public ESDSAttribMetaData getAttribMetaData(java.lang.String oid) throws ESDSException
oid
- of attributepublic java.lang.String getOid(java.lang.String name) throws ESDSException
name
- of attributepublic java.lang.String getName(java.lang.String oid) throws ESDSException
oid
- of attributepublic java.lang.String getAttributeSyntax(java.lang.String oid) throws ESDSException
oid
- The oid of the attributepublic void printAllObjs()
public java.lang.String getAttributeType(java.lang.String oid) throws ESDSException
oid
- The oid of the attributepublic java.lang.String getAttributeMultiplicity(java.lang.String oid) throws ESDSException
oid
- The oid of the attributepublic java.util.Vector getObjectClassMandatoryAttribs(java.lang.String oid) throws ESDSException
oid
- The oid of the objectclasspublic java.util.Vector getObjectClassOptionalAttribs(java.lang.String oid) throws ESDSException
oid
- The oid of the objectclass
|
Oracle® Mail Java API Reference 10g Release 1 (10.1.1) B14492-01 |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |