Node Director
|
Temporarily add system root user to the people database and remove it after a few secs. More...
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 DBObject | sysRoot () throws DirectorException |
Temporarily add system root user to the people database and remove it after a few secs.
JobNode sfi.director.application.scripttask.EmulateRoot.create | ( | EventEnvironment | ev | ) | throws DirectorException |
given an EventEnvironment create a Workflow (JobNode) doing whatever this ScriptTask is intended for
DirectorException | class refuses to be responsible for this event |
ev | the environment of the event that lead to calling create() |
Implements sfi.director.application.ScriptTask.
References sfi.director.jobs.RemoteJob.commit(), sfi.director.jobs.Job.commit(), sfi.director.util.Tools.debug(), sfi.director.util.Setup.localjobqueue, sfi.director.util.Setup.masterhost, sfi.director.jobs.RemoteJob.setHost(), sfi.director.jobs.JobNode.setJob(), and sfi.director.jobs.RemoteJob.setMethod().
void sfi.director.application.scripttask.EmulateRoot.exec | ( | ) | throws DirectorException |
Implements sfi.director.executor.GenericConnection.
References sfi.director.repository.DBConnection.append(), sfi.director.util.MyProperties.getPropertyBoolean(), sfi.director.util.Setup.peopledb, sfi.director.util.Setup.properties, sfi.director.repository.DBConnection.remove(), sfi.director.repository.DBObject.setDN(), and sfi.director.application.scripttask.EmulateRoot.sysRoot().
void sfi.director.application.scripttask.EmulateRoot.setJob | ( | RemoteJob | job | ) |
Implements sfi.director.executor.GenericConnection.
|
static |
References sfi.director.repository.DBObject.addUniqueAttributeIgnoreCase(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.DBObject.getAttributes(), sfi.director.repository.DBManager.getConnection(), sfi.director.repository.DBConnection.search(), sfi.director.repository.DBObject.setDN(), and sfi.director.repository.DBConnection.unwrap().
Referenced by sfi.director.application.scripttask.EmulateRoot.exec().