Package com.sun.enterprise.v3.admin
Class CreateSystemProperties
- java.lang.Object
-
- com.sun.enterprise.v3.admin.CreateSystemProperties
-
- All Implemented Interfaces:
AdminCommand
,AdminCommandSecurity.AccessCheckProvider
,AdminCommandSecurity.Preauthorization
@Service(name="create-system-properties") @PerLookup @ExecuteOn({DAS,INSTANCE}) @TargetType({CLUSTER,CONFIG,DAS,DOMAIN,STANDALONE_INSTANCE,CLUSTERED_INSTANCE}) public class CreateSystemProperties extends Object implements AdminCommand, AdminCommandSecurity.Preauthorization, AdminCommandSecurity.AccessCheckProvider
Create System Properties Command Adds or updates one or more system properties of the domain, configuration, cluster, or server instance Usage: create-system-properties [--terse=false] [--echo=false] [--interactive=true] [--host localhost] [--port 4848|4849] [--secure|-s=true] [--user admin_user] [--passwordfile file_name] [--target target(Default server)] (name=value)[:name=value]*- Author:
- Jennifer Chou
-
-
Constructor Summary
Constructors Constructor Description CreateSystemProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties where the keys are the paramter names and the values the parameter valuesCollection<? extends AccessRequired.AccessCheck>
getAccessChecks()
Returns theAccessCheck
s 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 orAccessRequired
annotations.boolean
preAuthorization(AdminCommandContext context)
-
-
-
Method Detail
-
preAuthorization
public boolean preAuthorization(AdminCommandContext context)
- Specified by:
preAuthorization
in interfaceAdminCommandSecurity.Preauthorization
-
getAccessChecks
public Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
Description copied from interface:AdminCommandSecurity.AccessCheckProvider
Returns theAccessCheck
s 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 orAccessRequired
annotations.- Specified by:
getAccessChecks
in interfaceAdminCommandSecurity.AccessCheckProvider
- Returns:
- the
AccessCheck
s
-
execute
public void execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties where the keys are the paramter names and the values the parameter values- Specified by:
execute
in interfaceAdminCommand
- Parameters:
context
- information
-
-