Node Director
|
Implements the 'create' director command raising events on directory objects. More...
Public Member Functions | |
String | usage () |
return a one-line usage string | |
String | help () |
return a more verbose usage string (aka. | |
String[] | getOptDefinitions () |
return option definitions as used by Tools.getOpt() | |
synchronized void | run (Hashtable optvals) throws DirectorException |
run the command with the (pre-parsed) options optargs | |
DN | getBase () |
void | prettyPrint (DBObject dbo, DBConnection db) |
synchronized void | edit (int mode) throws DirectorException |
Public Member Functions inherited from sfi.director.cli.CLICommand | |
void | setOptions (Hashtable opts) |
sets options from a hash as returned by Tools.getOpts(). | |
Options | getOptions () |
Hashtable | getOptionsHash () |
Static Public Member Functions | |
static DN | getBase (Vector darg) |
static DN | getBase (String dir) |
Static Public Attributes | |
final static int | MOD_CREATE = 0 |
final static int | MOD_EDIT = 1 |
final static int | MOD_EVENT = 2 |
final static int | MOD_DELETE = 3 |
final static int | MOD_LISTEVENT = 4 |
final static int | MOD_LIST = 5 |
Implements the 'create' director command raising events on directory objects.
synchronized void sfi.director.cli.create.edit | ( | int | mode | ) | throws DirectorException |
References sfi.director.application.objevents.Workflow.doEvent(), sfi.director.util.Tools.exit(), sfi.director.application.objevents.EventEnvironment.findObjectEvents(), sfi.director.application.objevents.Workflow.flush(), sfi.director.repository.config.DirectoryAccess.get(), sfi.director.repository.DBObject.getAttribute(), sfi.director.cli.create.getBase(), sfi.director.util.ObjectRegistry.getByClass(), sfi.director.util.ObjectRegistry.getByDisplayname(), sfi.director.repository.config.DirectoryAccess.getConfig(), sfi.director.repository.config.DirectoryAccess.getDBConnection(), sfi.director.repository.config.Directory.getDirectory(), sfi.director.repository.DBObject.getDN(), sfi.director.repository.DBObject.getEValue(), sfi.director.application.objevents.Workflow.getId(), sfi.director.repository.DN.getRaw(), sfi.director.repository.DBObject.getValue(), sfi.director.util.Tools.log(), sfi.director.cli.create.MOD_CREATE, sfi.director.cli.create.MOD_DELETE, sfi.director.cli.create.MOD_EDIT, sfi.director.cli.create.MOD_EVENT, sfi.director.cli.create.MOD_LIST, sfi.director.cli.create.MOD_LISTEVENT, sfi.director.util.Logger.NOTICE, sfi.director.cli.create.prettyPrint(), sfi.director.util.Setup.program_cmdline, sfi.director.repository.DBConnection.remove(), sfi.director.repository.config.DirectoryAccess.search(), sfi.director.repository.DBConnection.SEARCH_BASEDN, sfi.director.util.Options.setOption(), sfi.director.cli.sfidirector.trackJob(), sfi.director.repository.DBConnection.unwrap(), sfi.director.util.Logger.WARNING, and sfi.director.application.objevents.EventEnvironment.WF_REMOVE.
Referenced by sfi.director.cli.list.run(), sfi.director.cli.listevents.run(), sfi.director.cli.delete.run(), sfi.director.cli.event.run(), sfi.director.cli.modify.run(), and sfi.director.cli.create.run().
DN sfi.director.cli.create.getBase | ( | ) |
Referenced by sfi.director.cli.create.edit(), sfi.director.cli.create.getBase(), and sfi.director.cli.copy.run().
|
static |
References sfi.director.cli.create.getBase().
|
static |
References sfi.director.util.Tools.split().
|
virtual |
return option definitions as used by Tools.getOpt()
Implements sfi.director.cli.CLICommand.
Reimplemented in sfi.director.cli.schema, sfi.director.cli.modify, sfi.director.cli.event, sfi.director.cli.delete, sfi.director.cli.listevents, sfi.director.cli.list, sfi.director.cli.init, sfi.director.cli.listconfig, sfi.director.cli.keyinit, sfi.director.cli.docu, and sfi.director.cli.listdirectories.
|
virtual |
return a more verbose usage string (aka.
help)
Implements sfi.director.cli.CLICommand.
Reimplemented in sfi.director.cli.schema, sfi.director.cli.modify, sfi.director.cli.event, sfi.director.cli.delete, sfi.director.cli.list, sfi.director.cli.listevents, sfi.director.cli.listconfig, sfi.director.cli.init, sfi.director.cli.docu, sfi.director.cli.keyinit, and sfi.director.cli.listdirectories.
void sfi.director.cli.create.prettyPrint | ( | DBObject | dbo, |
DBConnection | db | ||
) |
References com.graeff.dbedit.EditUi.fancyPrint(), sfi.director.repository.DBObject.getAttribute(), sfi.director.util.ObjectRegistry.getByClass(), sfi.director.repository.DBObject.getDN(), sfi.director.application.DaemonObjectEdit.getInterface(), sfi.director.util.Tools.split(), and sfi.director.repository.DBObject.toLDIF().
Referenced by sfi.director.cli.create.edit().
|
virtual |
run the command with the (pre-parsed) options optargs
Implements sfi.director.cli.CLICommand.
Reimplemented in sfi.director.cli.schema, sfi.director.cli.modify, sfi.director.cli.event, sfi.director.cli.delete, sfi.director.cli.listevents, sfi.director.cli.list, sfi.director.cli.listconfig, sfi.director.cli.init, sfi.director.cli.keyinit, sfi.director.cli.docu, and sfi.director.cli.listdirectories.
References sfi.director.cli.create.edit(), and sfi.director.cli.create.MOD_CREATE.
|
virtual |
return a one-line usage string
Implements sfi.director.cli.CLICommand.
Reimplemented in sfi.director.cli.schema, sfi.director.cli.modify, sfi.director.cli.event, sfi.director.cli.listevents, sfi.director.cli.delete, sfi.director.cli.list, sfi.director.cli.listconfig, sfi.director.cli.init, sfi.director.cli.docu, sfi.director.cli.keyinit, and sfi.director.cli.listdirectories.
|
static |
Referenced by sfi.director.cli.create.edit(), and sfi.director.cli.create.run().
|
static |
Referenced by sfi.director.cli.create.edit(), and sfi.director.cli.delete.run().
|
static |
Referenced by sfi.director.cli.create.edit(), and sfi.director.cli.modify.run().
|
static |
Referenced by sfi.director.cli.create.edit(), and sfi.director.cli.event.run().
|
static |
Referenced by sfi.director.cli.create.edit(), and sfi.director.cli.list.run().
|
static |
Referenced by sfi.director.cli.create.edit(), and sfi.director.cli.listevents.run().