|
||||||||||
| 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.OfflineBroker
This sets up a 'virtual broker' that reads info in, and allows the user to operate on it, without any server being involved. The data is usually (always?) read from an ldif file.
| Field Summary |
| Fields inherited from class com.ca.directory.jxplorer.broker.Broker |
current, id, listeners, requestQueue |
| Constructor Summary | |
OfflineBroker(java.awt.Component graphicsDisplay)
Constructor for Offline Broker does nothing except initialise the big hashtable that is at the core of the class. |
|
| Method Summary | |
protected boolean |
addNode(DXEntry entry)
Make a new entry with the provided DN. |
DXNamingEnumeration |
children(DN nodeDN)
gets the children of a particular DN as an enumeration |
void |
clear()
Empties the core Hashtable in preparation for a new ldif file to be read in. |
boolean |
deleteTree(DN nodeDN)
deletes an entry with the given DN. |
DataQuery |
doGetAllOCsQuery(DataQuery request)
Method for the Broker interface - chains to getObjectClasses(). |
DataQuery |
doGetRecOCsQuery(DataQuery request)
Method for the Broker interface - chains to getRecommendedObjectClasses. |
DataQuery |
doListQuery(DataQuery request)
Method for the Broker interface - chains to children(). |
DataQuery |
doSearchQuery(DataQuery request)
Method for the Broker interface - chains to search(). |
javax.naming.directory.DirContext |
getDirContext()
We don't actually have an underlying DirContext, so return null... |
javax.naming.directory.DirContext |
getSchema()
Returns the context for the schema. |
boolean |
isActive()
whether the data source is currently on-line. |
boolean |
isModifiable()
Checks whether the current data source is modifiable. |
boolean |
move(DN oldNodeDN,
DN newNodeDN)
Moves a DN to a new DN, including all subordinate entries. |
java.util.Vector |
objectClasses()
Gets a list of all known schema object classes. |
java.util.Vector |
recommendedObjectClasses(DN dn)
Gets a list of the object classes most likely to be used for the next Level of the DN... |
boolean |
unthreadedCopy(DN oldNodeDN,
DN newNodeDN)
Copies a DN representing a subtree to a new subtree, including copying all subordinate entries. |
boolean |
unthreadedExists(DN nodeDN)
Checks the existence of a particular DN, without (necessarily) reading any attributes. |
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)
Update an entry with the designated DN. |
DXEntry |
unthreadedReadEntry(DN entryDN,
java.lang.String[] returnAttributes)
Reads an entry with all its attributes from the directory. |
DXNamingEnumeration |
unthreadedSearch(DN dn,
java.lang.String filter,
int search_level,
java.lang.String[] returnAttributes)
Not Implemented. |
boolean |
updateNode(DXEntry oldSet,
DXEntry newSet)
Update an entry with the designated DN. |
| Methods inherited from class com.ca.directory.jxplorer.broker.Broker |
addDataListener, clearException, copyTree, doCopyQuery, doEntryQuery, doExistsQuery, doExtendedQuery, doModifyQuery, 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 OfflineBroker(java.awt.Component graphicsDisplay)
| Method Detail |
public void clear()
public DXNamingEnumeration children(DN nodeDN)
nodeDN - the DN to retrieve children forpublic boolean isActive()
isActive in interface DataSourceisActive in class Brokerpublic java.util.Vector objectClasses()
public java.util.Vector recommendedObjectClasses(DN dn)
dn - the dn of the parent to determine likely
child object classes for
public javax.naming.directory.DirContext getSchema()
getSchema in interface DataSourcegetSchema in class Brokerprotected boolean addNode(DXEntry entry)
public boolean updateNode(DXEntry oldSet,
DXEntry newSet)
public boolean deleteTree(DN nodeDN)
nodeDN - the DN of the tree root to delete (may be a single entry).
public boolean move(DN oldNodeDN,
DN newNodeDN)
oldNodeDN - the original DN of the sub tree root (may be a single
entry).newNodeDN - the target DN for the tree to be moved to.
public boolean isModifiable()
isModifiable in interface DataSourceisModifiable in class Brokerpublic javax.naming.directory.DirContext getDirContext()
getDirContext in interface DataSourcegetDirContext in class Brokerpublic DataQuery doListQuery(DataQuery request)
doListQuery in class Brokerpublic DataQuery doSearchQuery(DataQuery request)
doSearchQuery in class Brokerpublic DataQuery doGetAllOCsQuery(DataQuery request)
doGetAllOCsQuery in class Brokerpublic 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 nodeDN)
unthreadedExists in class BrokernodeDN - the DN to check.
public 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||