Node Director
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | List of all members
sfi.director.application.FrontendInterface Class Reference

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 ()

Detailed Description

Implements communication protocol for frontends.

Constructor & Destructor Documentation

sfi.director.application.FrontendInterface.FrontendInterface ( InputStream  inchannel,
OutputStream  outchannel,
FrontendCallback  sessionControl 
)

Member Function Documentation

static void sfi.director.application.FrontendInterface.addPending ( FrontendCredentials  creds)
static

add a "Credentials" object to the list of pending authentications

Referenced by sfi.director.application.FrontendCredentials.askUser().

static Hashtable sfi.director.application.FrontendInterface.ensureShortcuts ( )
staticprotected
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().

DBConnection sfi.director.application.FrontendInterface.findDB ( DBObject  command) throws IOException
protected
FrontendEditor sfi.director.application.FrontendInterface.findEditor ( DBObject  command) throws IOException
protected
void sfi.director.application.FrontendInterface.flush ( ) throws IOException
protected
void sfi.director.application.FrontendInterface.log ( String  text) throws IOException
protected
String sfi.director.application.FrontendInterface.receive_data ( ) throws IOException
protected
String sfi.director.application.FrontendInterface.receive_data ( String  description) throws IOException
protected
static void sfi.director.application.FrontendInterface.removePending ( FrontendCredentials  creds)
static

remove a "Credentials" object from the list of pending authentications

Referenced by sfi.director.application.FrontendCredentials.askUser().

void sfi.director.application.FrontendInterface.send_data ( String  data) throws IOException
protected
void sfi.director.application.FrontendInterface.send_file ( String  data,
String  description 
) throws IOException
protected
void sfi.director.application.FrontendInterface.send_file ( String  data) throws IOException
protected
void sfi.director.application.FrontendInterface.send_search ( Enumeration  search,
String  description 
) throws IOException
protected
void sfi.director.application.FrontendInterface.sendEditorErrors ( FrontendEditor  editor) throws IOException
protected
static void sfi.director.application.FrontendInterface.setupDone ( )
static

this method is called by setup_frinterface as soon as setup is complete

static Vector sfi.director.application.FrontendInterface.startSession ( String  domain,
String  mode 
) throws Exception
static
void sfi.director.application.FrontendInterface.talk ( boolean  sessionStartMode) throws IOException
void sfi.director.application.FrontendInterface.writeLine ( String  line) throws IOException
protected

Member Data Documentation

String sfi.director.application.FrontendInterface.sessionLinkid = null
static
String sfi.director.application.FrontendInterface.sessionPassword = null
static

The documentation for this class was generated from the following file: