@Service(name="disable") @ExecuteOn(value={DAS,INSTANCE}) @PerLookup @TargetType(value={DOMAIN,DAS,STANDALONE_INSTANCE,CLUSTER,CLUSTERED_INSTANCE,DEPLOYMENT_GROUP}) public class DisableCommand extends UndeployCommandParameters implements AdminCommand, DeploymentTargetResolver, AdminCommandSecurity.Preauthorization, AdminCommandSecurity.AccessCheckProvider
OpsParams.Command, OpsParams.Origin| Modifier and Type | Field and Description |
|---|---|
Boolean |
isundeploy |
protected Server |
server |
_ignoreCascade, _type, cascade, droptables, isredeploy, keepreposdir, keepstate, name, properties, target_classicstyle, command, origin| Constructor and Description |
|---|
DisableCommand() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(AdminCommandContext context)
Entry point from the framework into the command execution
|
Collection<? extends AccessRequired.AccessCheck> |
getAccessChecks()
Returns the
AccessChecks the command has computed at runtime
which should be included in the authorization, added to checks that
secure admin infers from the command's CRUD or RestEndpoint characteristics
or AccessRequired annotations. |
String |
getTarget(ParameterMap parameters) |
boolean |
preAuthorization(AdminCommandContext context) |
getProperties, isRedeploy, libraries, namegetCommand, getOriginpublic Boolean isundeploy
@Inject @Named(value="default-instance-name") protected Server server
public boolean preAuthorization(AdminCommandContext context)
preAuthorization in interface AdminCommandSecurity.Preauthorizationpublic Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
AdminCommandSecurity.AccessCheckProviderAccessChecks the command has computed at runtime
which should be included in the authorization, added to checks that
secure admin infers from the command's CRUD or RestEndpoint characteristics
or AccessRequired annotations.getAccessChecks in interface AdminCommandSecurity.AccessCheckProviderAccessCheckspublic void execute(AdminCommandContext context)
execute in interface AdminCommandcontext - context for the command.public String getTarget(ParameterMap parameters)
getTarget in interface DeploymentTargetResolverCopyright © 2019. All rights reserved.