public abstract class NeedsAppDefinitionCmd<T> extends Object implements Command<T>, Serializable
Command
implementations that want to verify the provided app is always active (ie. not suspended).Modifier and Type | Field and Description |
---|---|
protected String |
appDefinitionId |
Constructor and Description |
---|
NeedsAppDefinitionCmd(String appDefinitionId) |
Modifier and Type | Method and Description |
---|---|
T |
execute(CommandContext commandContext) |
protected abstract T |
execute(CommandContext commandContext,
AppDefinition appDefinition)
Subclasses must implement in this method their normal command logic.
|
protected String appDefinitionId
public NeedsAppDefinitionCmd(String appDefinitionId)
public T execute(CommandContext commandContext)
protected abstract T execute(CommandContext commandContext, AppDefinition appDefinition)