public abstract class AbstractListCommand extends Object implements AdminCommand
Modifier and Type | Field and Description |
---|---|
protected String[] |
displayHeaders |
protected boolean |
header |
boolean |
isTerse |
protected Logger |
logger |
protected String |
outputHeaderList |
protected String[] |
outputHeaders |
protected String |
target |
Constructor and Description |
---|
AbstractListCommand() |
Modifier and Type | Method and Description |
---|---|
void |
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties
where the keys are the parameter names and the values are the parameter values
|
protected abstract void |
executeCommand(AdminCommandContext context,
Properties extraProps) |
protected abstract String[] |
getAllHeaders() |
protected abstract String[] |
getDefaultHeaders() |
protected String[] |
getDisplayHeaders() |
protected static javax.batch.operations.JobOperator |
getJobOperatorFromBatchRuntime() |
protected String[] |
getOutputHeaders() |
protected boolean |
isHeaderRequired() |
protected boolean |
supportsLongFormat() |
@Inject protected Logger logger
public boolean isTerse
protected String outputHeaderList
protected boolean header
protected String target
protected String[] outputHeaders
protected String[] displayHeaders
public void execute(AdminCommandContext context)
AdminCommand
execute
in interface AdminCommand
context
- informationprotected static javax.batch.operations.JobOperator getJobOperatorFromBatchRuntime()
protected boolean isHeaderRequired()
protected boolean supportsLongFormat()
protected abstract void executeCommand(AdminCommandContext context, Properties extraProps) throws Exception
Exception
protected abstract String[] getAllHeaders()
protected abstract String[] getDefaultHeaders()
protected String[] getOutputHeaders()
protected String[] getDisplayHeaders()
Copyright © 2020. All rights reserved.