Class DefaultResourceActions.ValidatingModify<R>

java.lang.Object
com.inductiveautomation.ignition.gateway.config.actions.DefaultResourceActions.ValidatingModify<R>
Type Parameters:
R - This must be the config class object used for this ResourceTypeMeta
All Implemented Interfaces:
ResourceAction, ResourceAction.Modify
Enclosing class:
DefaultResourceActions

public static final class DefaultResourceActions.ValidatingModify<R> extends Object
Performs the default Modify operation but allows for validation of the resource prior to the resource being committed to the configuration system to be persisted. This means that a DefaultResourceActions.ModifyResources is provided to the supplied validator which contains a DecodedResource instance of the resource which does incur some overhead since this resource has to be decoded. It is expected that these validations are also fairly light-weight as this occurs during user interaction from the Web API or the Rest API.