Package org.glassfish.deployment.admin
Class DisableCommand
- java.lang.Object
-
- org.glassfish.api.deployment.OpsParams
-
- org.glassfish.api.deployment.UndeployCommandParameters
-
- org.glassfish.deployment.admin.DisableCommand
-
- All Implemented Interfaces:
AdminCommand,AdminCommandSecurity.AccessCheckProvider,AdminCommandSecurity.Preauthorization,CommandParameters,DeploymentTargetResolver
@Service(name="disable") @ExecuteOn({DAS,INSTANCE}) @PerLookup @TargetType({DOMAIN,DAS,STANDALONE_INSTANCE,CLUSTER,CLUSTERED_INSTANCE,DEPLOYMENT_GROUP}) public class DisableCommand extends UndeployCommandParameters implements AdminCommand, DeploymentTargetResolver, AdminCommandSecurity.Preauthorization, AdminCommandSecurity.AccessCheckProvider
Disable command
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.api.deployment.OpsParams
OpsParams.Command, OpsParams.Origin
-
-
Field Summary
Fields Modifier and Type Field Description Booleanisundeployprotected Serverserver-
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 DisableCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(AdminCommandContext context)Entry point from the framework into the command executionCollection<? 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)
Entry point from the framework into the command execution- Specified by:
executein interfaceAdminCommand- Parameters:
context- context for the command.
-
getTarget
public String getTarget(ParameterMap parameters)
- Specified by:
getTargetin interfaceDeploymentTargetResolver
-
-