public class CupRmArgumentTranslator extends CupArgumentTranslator
Modifier and Type | Field and Description |
---|---|
protected String |
FLAG_RECURSIVE
String representing the recursive flag.
|
FLAG_CLASS, FLAG_ID, FLAG_PATH, FLAG_SYSTEMACL, FLAG_USER, FLAG_VALUEDEFAULT, PARAMETER_FLAGKEY, PARAMETER_FLAGVALUE, PARAMETER_POSITIONAL
CMDKEY
Constructor and Description |
---|
CupRmArgumentTranslator() |
Modifier and Type | Method and Description |
---|---|
protected int[] |
getPotentialArgs()
Gets the argument type a particular flag is expecting.
|
protected String[] |
getPotentialFlags()
Gets the potentails flags that the
object might be expecting.
|
protected void |
handleFlag(String flagKey,
String flagValue,
CommandContext state,
Hashtable tstate)
Handles a flags and arguments in the command line.
|
protected void |
initialize(CommandContext state,
Object invoker,
Hashtable tstate)
Initialize the argument translator.
|
protected void |
postParse(CommandContext state,
Object invoker,
Hashtable tstate)
Sets up the DeleteLibraryObjectContext with parameters required
|
protected FolderDefinition |
resolveDefinition(CommandContext state,
Object invoker,
Hashtable tstate,
LibraryObject lo)
Creates a FolderDefinition if we need to one to be used with RM command.
|
handlePositional, resolveObject
parse, translate
protected final String FLAG_RECURSIVE
protected void initialize(CommandContext state, Object invoker, Hashtable tstate) throws IfsException
initialize
in class CupArgumentTranslator
state
- instance of CommandContextinvoker
- invoker of this command; usually CupServerChanneltstate
- hashtable used to store flagsIfsException
- if the operation failsprotected void postParse(CommandContext state, Object invoker, Hashtable tstate) throws IfsException
postParse
in class CommandlineArgumentTranslator
state
- instance of CommandContextinvoker
- invoker of this command; usually CupServerChanneltstate
- hashtable used to store flagsIfsException
- if the operation failsprotected String[] getPotentialFlags()
getPotentialFlags
in class CupArgumentTranslator
protected int[] getPotentialArgs()
getPotentialArgs
in class CupArgumentTranslator
protected void handleFlag(String flagKey, String flagValue, CommandContext state, Hashtable tstate) throws IfsException
handleFlag
in class CupArgumentTranslator
flagKey
- key used to identify the flag in the command lineflagValue
- value of the flagstate
- instance of CommandContext objecttstate
- hashtable which stores parametersIfsException
- if the operation failsprotected FolderDefinition resolveDefinition(CommandContext state, Object invoker, Hashtable tstate, LibraryObject lo) throws IfsException
state
- instance of CommandContextinvoker
- invoker of this command; usually CupServerChanneltstate
- hashtable used to store flagslo
- LibraryObject being deletedIfsException
- if the operation failsCopyright © 2023. All rights reserved.