Class GetActiveConfigCommand
- java.lang.Object
-
- com.sun.enterprise.config.modularity.command.AbstractConfigModularityCommand
-
- com.sun.enterprise.config.modularity.command.GetActiveConfigCommand
-
- All Implemented Interfaces:
AdminCommand,AdminCommandSecurity.AccessCheckProvider,AdminCommandSecurity.Preauthorization
@TargetType({DAS,CLUSTER,CONFIG,STANDALONE_INSTANCE,DOMAIN}) @ExecuteOn(ALL) @Service(name="get-active-module-config") @PerLookup public final class GetActiveConfigCommand extends AbstractConfigModularityCommand implements AdminCommand, AdminCommandSecurity.Preauthorization, AdminCommandSecurity.AccessCheckProvider
Get the current active configuration of a service and print it out for the user's review.- Author:
- Masoud Kalali
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.config.modularity.command.AbstractConfigModularityCommand
LINE_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description GetActiveConfigCommand()
-
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.booleanpreAuthorization(AdminCommandContext context)-
Methods inherited from class com.sun.enterprise.config.modularity.command.AbstractConfigModularityCommand
getAccessChecksForConfigBean, getAccessChecksForDefaultValue, getAccessChecksForLocation, getConfigForName, replaceExpressionsWithValues
-
-
-
-
Method Detail
-
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
-
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
-
preAuthorization
public boolean preAuthorization(AdminCommandContext context)
- Specified by:
preAuthorizationin interfaceAdminCommandSecurity.Preauthorization
-
-