|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.ca.directory.jxplorer.broker.Broker
|
+--com.ca.directory.jxplorer.broker.SchemaBroker
This wraps the schema searching functionality of a JNDIBroker, and makes it work as a DataSource so that a SmartTree object can use it to browse the schema.
| Field Summary |
| Fields inherited from class com.ca.directory.jxplorer.broker.Broker |
current, id, listeners, requestQueue |
| Constructor Summary | |
SchemaBroker(JNDIBroker jb)
|
|
| Method Summary | |
protected javax.naming.directory.Attributes |
addAttributeInfo(javax.naming.directory.Attributes attdefs)
Takes a DXAttributes set representing attribute schema defs, and translates the oids into human friendly strings... |
protected javax.naming.directory.Attributes |
addClassInfo(javax.naming.directory.Attributes classdefs)
Takes a DXAttributes set representing class schema defs, and translates the oids into human friendly strings... |
protected DataQuery |
doCopyQuery(DataQuery request)
Operation is not allowed - sets an exception in the request |
DataQuery |
doExistsQuery(DataQuery request)
Operation is not allowed - sets an exception in the request |
protected DataQuery |
doGetAllOCsQuery(DataQuery request)
Operation is not allowed - sets an exception in the request |
protected DataQuery |
doGetRecOCsQuery(DataQuery request)
Operation is not allowed - sets an exception in the request |
protected DataQuery |
doModifyQuery(DataQuery request)
Operation is not allowed - sets an exception in the request |
protected DataQuery |
doSearchQuery(DataQuery request)
Operation is not allowed - sets an exception in the request |
DataQuery |
getAttributeDefinition(java.lang.String attributeoid)
Convenience Class; makes a unthreadedGetEntry request for the passed value, appending 'AttributeDefinition' to the dn. |
java.lang.String |
getAttributeDescription(java.lang.String attributeoid)
Convenience Class; makes a request for the passed value, appending 'AttributeDefinition' to the dn. |
DataQuery |
getClassDefinition(java.lang.String className)
Convenience Class; makes a request for the passed value, appending 'ClassDefinition' to the dn. |
javax.naming.directory.DirContext |
getDirContext()
Chains request to jndiBroker to satisfy broker interface |
javax.naming.directory.DirContext |
getSchema()
Chains request to jndiBroker to satisfy broker interface |
DataQuery |
getSyntaxDefinition(java.lang.String syntaxName)
Convenience Class; makes a request for the passed syntax definition. |
java.lang.String |
getSyntaxDescription(java.lang.String syntaxName)
Convenience Class; makes a request for the passed value, appending 'SyntaxDefinition' to the dn. |
boolean |
isActive()
The schema Broker is always active (even if there is no connection) because it will fall back on hard-coded default values if necessary. |
static boolean |
isAttributeBinary(java.lang.String attID)
|
boolean |
isModifiable()
Whether the schema is modifiable - usually false. |
protected void |
loadSyntaxHash()
|
void |
registerDirectoryConnection(JNDIBroker broker)
|
void |
setRaw(boolean rawData)
The schema broker usually processes the schema data into easy-to-display form for users, breaking the different parts of the schema into different entries, translating oids etc. |
boolean |
unthreadedCopy(DN oldNodeDN,
DN newNodeDN)
Not Implemented. |
boolean |
unthreadedExists(DN checkMe)
Not Implemented. |
java.util.Vector |
unthreadedGetAllOCs()
Not Implemented. |
java.util.Vector |
unthreadedGetRecOCs(DN dn)
Not Implemented. |
DXNamingEnumeration |
unthreadedList(DN searchbase)
returns the next level of a directory tree, returning a Enumeration of the results |
boolean |
unthreadedModify(DXEntry oldEntry,
DXEntry newEntry)
Not Implemented. |
DXEntry |
unthreadedReadEntry(DN entryDN,
java.lang.String[] returnAttributes)
Reads a 'virtual' schema entry. |
DXNamingEnumeration |
unthreadedSearch(DN dn,
java.lang.String filter,
int search_level,
java.lang.String[] returnAttributes)
Not Implemented. |
| Methods inherited from class com.ca.directory.jxplorer.broker.Broker |
addDataListener, clearException, copyTree, doEntryQuery, doExtendedQuery, doListQuery, exists, extendedRequest, finish, getBroker, getChildren, getCurrent, getEntry, getException, getObjectClasses, getRecommendedObjectClasses, getRequestQueue, hasRequests, modifyEntry, pop, processQueue, processRequest, push, registerStopMonitor, removeDataListener, removeQuery, run, search |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaBroker(JNDIBroker jb)
| Method Detail |
public void registerDirectoryConnection(JNDIBroker broker)
public void setRaw(boolean rawData)
protected javax.naming.directory.Attributes addAttributeInfo(javax.naming.directory.Attributes attdefs)
protected javax.naming.directory.Attributes addClassInfo(javax.naming.directory.Attributes classdefs)
public DataQuery getAttributeDefinition(java.lang.String attributeoid)
public java.lang.String getAttributeDescription(java.lang.String attributeoid)
public DataQuery getSyntaxDefinition(java.lang.String syntaxName)
syntaxName - the name of the syntax to get info for
public java.lang.String getSyntaxDescription(java.lang.String syntaxName)
syntaxName - the name of the syntax to get info for
public DataQuery getClassDefinition(java.lang.String className)
className - the name of the class to get info for
protected void loadSyntaxHash()
public static boolean isAttributeBinary(java.lang.String attID)
public DataQuery doExistsQuery(DataQuery request)
doExistsQuery in class Brokerprotected DataQuery doSearchQuery(DataQuery request)
doSearchQuery in class Brokerprotected DataQuery doModifyQuery(DataQuery request)
doModifyQuery in class Brokerprotected DataQuery doCopyQuery(DataQuery request)
doCopyQuery in class Brokerprotected DataQuery doGetAllOCsQuery(DataQuery request)
doGetAllOCsQuery in class Brokerprotected DataQuery doGetRecOCsQuery(DataQuery request)
doGetRecOCsQuery in class Brokerpublic DXNamingEnumeration unthreadedList(DN searchbase)
unthreadedList in class Broker
public DXNamingEnumeration unthreadedSearch(DN dn,
java.lang.String filter,
int search_level,
java.lang.String[] returnAttributes)
unthreadedSearch in class Brokerfilter - the non-null filter to use for the searchsearch_level - whether to search the base object, the next level or the whole subtree.returnAttributes - a vector of string names of attributes to return in the search. (Currently inoperative)
public boolean unthreadedCopy(DN oldNodeDN,
DN newNodeDN)
unthreadedCopy in class BrokeroldNodeDN - the original DN of the sub tree root
to be copied (may be a single entry).newNodeDN - the target DN for the tree to be moved to.
public boolean unthreadedExists(DN checkMe)
unthreadedExists in class Brokerpublic java.util.Vector unthreadedGetAllOCs()
unthreadedGetAllOCs in class Broker
public DXEntry unthreadedReadEntry(DN entryDN,
java.lang.String[] returnAttributes)
unthreadedReadEntry in class BrokerreturnAttributes - a vector of string names of attributes to return in the search.
(null means 'return all entries', a zero length array means 'return no attributes'.)
public boolean unthreadedModify(DXEntry oldEntry,
DXEntry newEntry)
unthreadedModify in class Brokerpublic java.util.Vector unthreadedGetRecOCs(DN dn)
unthreadedGetRecOCs in class Brokerdn - the dn of the parent to determine likely
child object classes for
public javax.naming.directory.DirContext getDirContext()
getDirContext in interface DataSourcegetDirContext in class Brokerpublic boolean isModifiable()
isModifiable in interface DataSourceisModifiable in class Brokerpublic boolean isActive()
isActive in interface DataSourceisActive in class Brokerpublic javax.naming.directory.DirContext getSchema()
getSchema in interface DataSourcegetSchema in class Broker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||