public class ReplaceEnvValuesTask extends SessionedTask<java.lang.Integer>
| Constructor and Description |
|---|
ReplaceEnvValuesTask(EnvValueQuery query, java.lang.String replacement)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Integer |
_execute()
Subclasses implement this method
|
static int |
replaceEnvValues(ConfigService configService, java.lang.String session, EnvValueQuery query, java.lang.String replacement)
Convenience method that creates an instance of this task and executes it
|
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransactionpublic ReplaceEnvValuesTask(EnvValueQuery query, java.lang.String replacement)
query - the env value query to executereplacement - the replacement env valuepublic static int replaceEnvValues(ConfigService configService, java.lang.String session, EnvValueQuery query, java.lang.String replacement) throws ValidationException, UpdateException
configService - the config service instancesession - the session in which to execute this taskquery - the env value query to executereplacement - the replacement value for the env valueValidationException - if a validation failure occursUpdateException - if env values cannot be replacedprotected java.lang.Integer _execute()
throws ValidationException,
UpdateException
SessionedTask_execute in class SessionedTask<java.lang.Integer>ValidationExceptionUpdateException