public class ApplyEnvValueActionsTask extends SessionedTask<java.lang.Integer>
Constructor and Description |
---|
ApplyEnvValueActionsTask(java.util.Set<Ref> owners, java.util.Set<OwnerQuery> ownerQueries, java.util.List<EnvValueAction> actions)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
_execute()
Subclasses implement this method
|
static int |
applyEnvValueActions(ConfigService configService, java.lang.String session, java.util.Set<Ref> owners, java.util.Set<OwnerQuery> ownerQueries, java.util.List<EnvValueAction> actions)
Convenience method that creates an instance of this task and executes it
|
void |
setValidate(boolean validate) |
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransaction
public ApplyEnvValueActionsTask(java.util.Set<Ref> owners, java.util.Set<OwnerQuery> ownerQueries, java.util.List<EnvValueAction> actions)
query
- the env value query to executereplacement
- the replacement env valuepublic void setValidate(boolean validate)
public static int applyEnvValueActions(ConfigService configService, java.lang.String session, java.util.Set<Ref> owners, java.util.Set<OwnerQuery> ownerQueries, java.util.List<EnvValueAction> actions) throws ValidationException, UpdateException
configService
- the config service instancesession
- the session in which to execute this taskowners
- the set of ownersownerQueries
- the set of owner queriesactions
- the env value actionsValidationException
- 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>
ValidationException
UpdateException