Class DefaultResourceActions.ValidatingCopy<R>

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

public static final class DefaultResourceActions.ValidatingCopy<R> extends DefaultResourceActions.CopyImpl
Performs the default Copy 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.CopyResource is provided to the supplied validator which contains a Decoded instance of the resource which does incur some overhead since this resource has to be encoded. 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.