public enum DeploymentCommand extends Enum<DeploymentCommand>
| Enum Constant and Description |
|---|
ADD_TO_GROUP |
ENABLE_DISABLE |
REMOVE_FROM_DOMAIN |
REMOVE_FROM_GROUP |
REMOVE_FROM_STANDALONE |
UPDATE_CONTENT |
| Modifier and Type | Method and Description |
|---|---|
void |
displayFailureMessage(DeployCommandExecutor executor,
DeploymentRecord record,
Throwable t) |
void |
displaySuccessMessage(DeployCommandExecutor executor,
DeploymentRecord record) |
void |
execute(DeployCommandExecutor executor,
DeploymentRecord record)
Throw up an "Are you sure" dialog and then select the correct method
on the executor.
|
String |
getLabel(DeploymentRecord record) |
static DeploymentCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DeploymentCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeploymentCommand ENABLE_DISABLE
public static final DeploymentCommand REMOVE_FROM_GROUP
public static final DeploymentCommand ADD_TO_GROUP
public static final DeploymentCommand UPDATE_CONTENT
public static final DeploymentCommand REMOVE_FROM_DOMAIN
public static final DeploymentCommand REMOVE_FROM_STANDALONE
public static DeploymentCommand[] values()
for (DeploymentCommand c : DeploymentCommand.values()) System.out.println(c);
public static DeploymentCommand valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void execute(DeployCommandExecutor executor, DeploymentRecord record)
executor - An implementation that can execute the command on the back end.record - The deployment to be manipulated.public void displaySuccessMessage(DeployCommandExecutor executor, DeploymentRecord record)
public void displayFailureMessage(DeployCommandExecutor executor, DeploymentRecord record, Throwable t)
public String getLabel(DeploymentRecord record)
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.