Node Director
Public Member Functions | Static Public Member Functions | List of all members
sfi.director.application.scripttask.ApplyDomainTemplate Class Reference

Given a domain builder record, slurps the matching template into the database. More...

Inheritance diagram for sfi.director.application.scripttask.ApplyDomainTemplate:
sfi.director.application.ScriptTask sfi.director.executor.GenericConnection sfi.director.util.Connection

Public Member Functions

JobNode create (EventEnvironment ev) throws DirectorException
 given an EventEnvironment create a Workflow (JobNode) doing whatever this ScriptTask is intended for
void setJob (RemoteJob job)
void exec () throws DirectorException

Static Public Member Functions

static Vector readTemplate (String templateName, Vector settings) throws DirectorException
 translate a "sfisettings" Vector into a settings DBObject and read a template using readTemlate( String, DBObject ).
static Vector readTemplate (String templateName, DBObject settings) throws DirectorException
 read a template, fill in the configuration from settings and return a Vector of DBObjects.
static Vector readTemplate (File templateFile, DBObject settings) throws DirectorException
 translate a "sfisettings" Vector into a settings DBObject and read a template using readTemlate( String, DBObject ).

Detailed Description

Given a domain builder record, slurps the matching template into the database.

Member Function Documentation

JobNode sfi.director.application.scripttask.ApplyDomainTemplate.create ( EventEnvironment  ev) throws DirectorException
void sfi.director.application.scripttask.ApplyDomainTemplate.exec ( ) throws DirectorException
static Vector sfi.director.application.scripttask.ApplyDomainTemplate.readTemplate ( String  templateName,
Vector  settings 
) throws DirectorException
static

translate a "sfisettings" Vector into a settings DBObject and read a template using readTemlate( String, DBObject ).

References sfi.director.repository.DBObject.addSetting().

Referenced by sfi.director.application.scripttask.ApplyDomainTemplate.exec(), sfi.director.application.scripttask.ApplyDomainTemplate.readTemplate(), and sfi.director.repository.LDIFTree.search().

static Vector sfi.director.application.scripttask.ApplyDomainTemplate.readTemplate ( String  templateName,
DBObject  settings 
) throws DirectorException
static

read a template, fill in the configuration from settings and return a Vector of DBObjects.

References sfi.director.util.Setup.fileSeparator, sfi.director.application.scripttask.ApplyDomainTemplate.readTemplate(), and sfi.director.util.Setup.rootDir.

static Vector sfi.director.application.scripttask.ApplyDomainTemplate.readTemplate ( File  templateFile,
DBObject  settings 
) throws DirectorException
static

translate a "sfisettings" Vector into a settings DBObject and read a template using readTemlate( String, DBObject ).

References sfi.director.util.Tools.expand(), and sfi.director.repository.DBObject.getValue().

void sfi.director.application.scripttask.ApplyDomainTemplate.setJob ( RemoteJob  job)

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