Node Director
|
Implements communication protocol for frontends. More...
Public Member Functions | |
FrontendInterface (InputStream inchannel, OutputStream outchannel, FrontendCallback sessionControl) | |
void | talk (boolean sessionStartMode) throws IOException |
boolean | executeCommand (DBObject command) throws IOException |
Static Public Member Functions | |
static Vector | startSession (String domain, String mode) throws Exception |
static void | addPending (FrontendCredentials creds) |
add a "Credentials" object to the list of pending authentications | |
static void | removePending (FrontendCredentials creds) |
remove a "Credentials" object from the list of pending authentications | |
static void | setupDone () |
this method is called by setup_frinterface as soon as setup is complete |
Static Public Attributes | |
static String | sessionPassword = null |
static String | sessionLinkid = null |
Protected Member Functions | |
void | flush () throws IOException |
void | writeLine (String line) throws IOException |
void | log (String text) throws IOException |
void | sendEditorErrors (FrontendEditor editor) throws IOException |
FrontendEditor | findEditor (DBObject command) throws IOException |
DBConnection | findDB (DBObject command) throws IOException |
String | receive_data () throws IOException |
String | receive_data (String description) throws IOException |
void | send_data (String data) throws IOException |
void | send_file (String data, String description) throws IOException |
void | send_file (String data) throws IOException |
void | send_search (Enumeration search, String description) throws IOException |
Static Protected Member Functions | |
static Hashtable | ensureShortcuts () |
Implements communication protocol for frontends.
sfi.director.application.FrontendInterface.FrontendInterface | ( | InputStream | inchannel, |
OutputStream | outchannel, | ||
FrontendCallback | sessionControl | ||
) |
|
static |
add a "Credentials" object to the list of pending authentications
Referenced by sfi.director.application.FrontendCredentials.askUser().
|
staticprotected |
References sfi.director.util.Setup.appsdb, sfi.director.util.Setup.authdb, sfi.director.util.Setup.classesdb, sfi.director.util.Setup.cmdqueuedb, sfi.director.util.Setup.dsrulesdb, sfi.director.util.Setup.hostsdb, sfi.director.util.Setup.jobqueuedb, sfi.director.util.Setup.localLockdb, sfi.director.util.Setup.lockdb, sfi.director.util.Setup.peopledb, sfi.director.util.Setup.servicesdb, and sfi.director.util.Setup.topdb.
Referenced by sfi.director.application.FrontendInterface.executeCommand(), sfi.director.application.FrontendInterface.findDB(), and sfi.director.application.FrontendHTTPServer.findDB().
boolean sfi.director.application.FrontendInterface.executeCommand | ( | DBObject | command | ) | throws IOException |
References sfi.director.application.FrontendCallback.abort(), sfi.director.application.objevents.EventEnvironment.add(), sfi.director.repository.DN.append(), sfi.director.repository.DBConnection.append(), sfi.director.application.DaemonObjectEdit.checkData(), com.graeff.dbedit.EditDaemon.clearErrors(), sfi.director.repository.DBObject.clone(), sfi.director.application.objevents.EventEnvironment.createWorkflow(), sfi.director.application.FrontendCallback.dispose(), sfi.director.application.FrontendEditor.dispose(), sfi.director.application.FrontendInterface.ensureShortcuts(), sfi.director.util.Logger.ERR, com.graeff.dbedit.EditDaemon.error(), sfi.director.util.Tools.executeLocalqueue(), com.graeff.dbedit.EditUi.fields(), sfi.director.util.Tools.fieldToDBObject(), sfi.director.application.FrontendInterface.findDB(), sfi.director.application.FrontendInterface.findEditor(), sfi.director.application.objevents.EventEnvironment.findObjectEvents(), sfi.director.repository.DN.get(), sfi.director.application.FrontendSearchResults.get(), sfi.director.repository.DBConnection.get(), com.graeff.dbedit.Field.getAttribute(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.DBObject.getAttributes(), sfi.director.application.FrontendEditor.getBase(), sfi.director.util.ObjectRegistry.getByClass(), sfi.director.util.ObjectRegistry.getByName(), com.graeff.dbedit.EditUi.getData(), sfi.director.application.FrontendEditor.getDB(), sfi.director.repository.DBAccessor.getDBObject(), sfi.director.application.DaemonObjectEdit.getDBObject(), sfi.director.repository.DBObject.getDN(), sfi.director.application.FrontendEditor.getEditor(), sfi.director.util.Credentials.getEntity(), sfi.director.application.FrontendSearchResults.getId(), sfi.director.application.FrontendEditor.getId(), sfi.director.jobs.Job.getId(), sfi.director.application.DaemonObjectEdit.getInterface(), sfi.director.util.Logger.getLogger(), sfi.director.util.ObjectRegistry.getNewFromContext(), sfi.director.application.FrontendSearchResults.getNext(), sfi.director.util.Options.getOption(), sfi.director.util.MyProperties.getProperty(), sfi.director.repository.SchemaEnforcer.getSchemaEnforcer(), sfi.director.application.FrontendSearchResults.getSearch(), sfi.director.application.FrontendSearchResults.getSearchIds(), sfi.director.application.FrontendCallback.getTimeout(), sfi.director.util.Setup.localjobqueue, sfi.director.util.Tools.log(), sfi.director.util.Setup.logger, sfi.director.util.Setup.masterhost, sfi.director.util.Logger.NOTICE, sfi.director.util.Setup.properties, sfi.director.application.FrontendInterface.receive_data(), sfi.director.repository.SchemaEnforcer.reduce(), sfi.director.application.FrontendCallback.remember(), sfi.director.repository.DBConnection.remove(), sfi.director.repository.DBConnection.replace(), sfi.director.repository.DBConnection.search(), sfi.director.repository.DBConnection.SEARCH_BASEDN, sfi.director.repository.DBConnection.SEARCH_NOSUB, sfi.director.repository.DBConnection.SEARCH_SCHEMA, sfi.director.repository.DBConnection.SEARCH_SORT, sfi.director.application.FrontendInterface.send_data(), sfi.director.application.FrontendInterface.send_file(), sfi.director.application.FrontendInterface.send_search(), sfi.director.application.FrontendInterface.sendEditorErrors(), sfi.director.application.FrontendInterface.sessionPassword, sfi.director.application.FrontendEditor.setBase(), sfi.director.application.FrontendCredentials.setCredentials(), sfi.director.application.FrontendEditor.setDB(), sfi.director.util.Options.setOption(), sfi.director.application.objevents.EventEnvironment.setOptions(), sfi.director.application.FrontendCallback.setTimeout(), sfi.director.application.FrontendEditor.setTimeout(), sfi.director.application.FrontendSearchResults.setTimeout(), sfi.director.application.FrontendCallback.shutdown(), sfi.director.util.Tools.split(), sfi.director.application.FrontendInterface.startSession(), com.graeff.dbedit.EditUi.textinput(), sfi.director.util.Tools.toDBEditRecord(), sfi.director.util.ObjectRegistry.toDBObject(), sfi.director.repository.DBObject.toLDIF(), com.graeff.dbedit.Field.toString(), com.graeff.dbedit.Field.toVector(), sfi.director.repository.DBConnection.unwrap(), sfi.director.jobs.JobNode.WakeUp(), and sfi.director.application.FrontendInterface.writeLine().
Referenced by sfi.director.application.FrontendInterface.talk().
|
protected |
|
protected |
|
protected |
References sfi.director.application.FrontendCallback.heartbeat().
Referenced by sfi.director.application.FrontendInterface.writeLine().
|
protected |
|
protected |
Referenced by sfi.director.application.FrontendInterface.executeCommand().
|
protected |
|
static |
remove a "Credentials" object from the list of pending authentications
Referenced by sfi.director.application.FrontendCredentials.askUser().
|
protected |
References sfi.director.application.FrontendInterface.writeLine().
Referenced by sfi.director.application.FrontendInterface.executeCommand(), sfi.director.application.FrontendInterface.send_file(), sfi.director.application.FrontendInterface.send_search(), and sfi.director.application.FrontendInterface.sendEditorErrors().
|
protected |
|
protected |
|
protected |
|
protected |
References com.graeff.dbedit.Field.getAttribute(), com.graeff.dbedit.EditError.getField(), com.graeff.dbedit.EditError.getMessage(), sfi.director.application.FrontendInterface.send_data(), and sfi.director.application.FrontendInterface.writeLine().
Referenced by sfi.director.application.FrontendInterface.executeCommand().
|
static |
this method is called by setup_frinterface as soon as setup is complete
|
static |
void sfi.director.application.FrontendInterface.talk | ( | boolean | sessionStartMode | ) | throws IOException |
|
protected |
References sfi.director.application.FrontendInterface.flush().
Referenced by sfi.director.application.FrontendInterface.executeCommand(), sfi.director.application.FrontendInterface.findDB(), sfi.director.application.FrontendInterface.findEditor(), sfi.director.application.FrontendInterface.receive_data(), sfi.director.application.FrontendInterface.send_data(), sfi.director.application.FrontendInterface.send_file(), sfi.director.application.FrontendInterface.send_search(), sfi.director.application.FrontendInterface.sendEditorErrors(), and sfi.director.application.FrontendInterface.talk().
|
static |
|
static |