|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface defines data sources used by the the browser. Usually this is an ldap data source, but may be any JNDI or program defined data source from which tree data can be read.
JNDIBroker.com.ca.directory.jxplorer| Method Summary | |
void |
addDataListener(DataListener l)
Used by thread-friendly application to register a listener that will be called whenever a DataQuery request has been completed (or equivalently, an error thrown). |
DataQuery |
copyTree(DN oldNodeDN,
DN newNodeDN)
Copies the entry, and any child entries, identified by DN oldNodeDn to newNodeDN. |
DataQuery |
exists(DN nodeDN)
Checks the existence of a particular entry by DN, without (necessarily) reading any attributes. |
DataQuery |
extendedRequest(DataQuery query)
General Bail out - this allows the passing of a generic DataQuery object. |
Broker |
getBroker()
As a way to directly access the directory broker, a DataSource MAY choose to publish the directory broker. |
DataQuery |
getChildren(DN nodeDN)
gets the children of a particular DN as an enumeration |
javax.naming.directory.DirContext |
getDirContext()
As a way to directly access the raw jndi directory context, a DataSource MAY choose to publish the directory connection. |
DataQuery |
getEntry(DN nodeDN)
gets the attribute types and values for a particular DN |
DataQuery |
getObjectClasses()
Gets a list of all known schema object classes. |
DataQuery |
getRecommendedObjectClasses(DN dn)
Gets a list of the object classes most likely to be used for the next Level of the DN... |
javax.naming.directory.DirContext |
getSchema()
Returns a schema context (for getting object classes etc.) |
boolean |
isActive()
whether the data source is currently on-line. |
boolean |
isModifiable()
Checks whether the current data source is modifiable. |
DataQuery |
modifyEntry(DXEntry oldEntry,
DXEntry newEntry)
This changes an old entry to a new entry. |
void |
removeDataListener(DataListener l)
Removes a data listener from the DataQuery. |
DataQuery |
search(DN nodeDN,
java.lang.String filter,
int searchLevel,
java.lang.String[] returnAttrs)
Executes a search request. |
| Method Detail |
public DataQuery getChildren(DN nodeDN)
nodeDN - the DN to retrieve children for
public DataQuery getEntry(DN nodeDN)
nodeDN - the DN to retrieve attribute data for
public DataQuery exists(DN nodeDN)
public DataQuery getObjectClasses()
public DataQuery getRecommendedObjectClasses(DN dn)
dn - the dn of the parent to determine likely
child object classes for
public javax.naming.directory.DirContext getSchema()
public boolean isActive()
public DataQuery modifyEntry(DXEntry oldEntry,
DXEntry newEntry)
oldEntry - the original entry (may be null if adding a new entry).newEntry - the new entry (may be null if deleting the entry).
public DataQuery copyTree(DN oldNodeDN,
DN newNodeDN)
oldNodeDN - the entry or subtree apexto copy fromnewNodeDN - the entry/subtree apex to copy to
public DataQuery search(DN nodeDN,
java.lang.String filter,
int searchLevel,
java.lang.String[] returnAttrs)
nodeDN - the root DN to start searching fromfilter - the ldap string filter for the searchreturnAttrs - an array of attributes that the search should return.
or the entire sub tree.public boolean isModifiable()
public javax.naming.directory.DirContext getDirContext()
public Broker getBroker()
public void addDataListener(DataListener l)
if this method is called on a DataQuery that has already been completed, it will be triggered immediately. This may cause listener code to be triggered before any code subsequent to the addDataListener() call.
l - the listener to be notified when the data
operation has been completed.public void removeDataListener(DataListener l)
l - the listener to be notified when the data is ready.public DataQuery extendedRequest(DataQuery query)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||