Package org.glassfish.deployment.admin
Class UndeployCommand
- java.lang.Object
-
- org.glassfish.api.deployment.OpsParams
-
- org.glassfish.api.deployment.UndeployCommandParameters
-
- org.glassfish.deployment.admin.UndeployCommand
-
- All Implemented Interfaces:
AdminCommand,AdminCommandSecurity.AccessCheckProvider,AdminCommandSecurity.Preauthorization,CommandParameters,DeploymentTargetResolver
@Service(name="undeploy") @PerLookup @ExecuteOn({DAS,INSTANCE}) @TargetType({DOMAIN,DAS,STANDALONE_INSTANCE,CLUSTER,DEPLOYMENT_GROUP}) public class UndeployCommand extends UndeployCommandParameters implements AdminCommand, DeploymentTargetResolver, AdminCommandSecurity.Preauthorization, AdminCommandSecurity.AccessCheckProvider
Undeploys applications.- Author:
- dochez
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.api.deployment.OpsParams
OpsParams.Command, OpsParams.Origin
-
-
Field Summary
-
Fields inherited from class org.glassfish.api.deployment.UndeployCommandParameters
_ignoreCascade, _type, cascade, droptables, isredeploy, keepreposdir, keepstate, name, properties, target
-
Fields inherited from class org.glassfish.api.deployment.OpsParams
_classicstyle, command, origin
-
-
Constructor Summary
Constructors Constructor Description UndeployCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(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 valuesCollection<? extends AccessRequired.AccessCheck>getAccessChecks()Returns theAccessChecks 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 orAccessRequiredannotations.StringgetTarget(ParameterMap parameters)booleanpreAuthorization(AdminCommandContext context)-
Methods inherited from class org.glassfish.api.deployment.UndeployCommandParameters
getProperties, isRedeploy, libraries, name
-
Methods inherited from class org.glassfish.api.deployment.OpsParams
getCommand, getOrigin
-
-
-
-
Method Detail
-
preAuthorization
public boolean preAuthorization(AdminCommandContext context)
- Specified by:
preAuthorizationin interfaceAdminCommandSecurity.Preauthorization
-
getAccessChecks
public Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
Description copied from interface:AdminCommandSecurity.AccessCheckProviderReturns theAccessChecks 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 orAccessRequiredannotations.- Specified by:
getAccessChecksin interfaceAdminCommandSecurity.AccessCheckProvider- Returns:
- the
AccessChecks
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommandExecutes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Specified by:
executein interfaceAdminCommand- Parameters:
context- information
-
getTarget
public String getTarget(ParameterMap parameters)
- Specified by:
getTargetin interfaceDeploymentTargetResolver
-
-