Class DefaultResourceActions.MoveImpl
java.lang.Object
com.inductiveautomation.ignition.gateway.config.actions.DefaultResourceActions.MoveImpl
- All Implemented Interfaces:
ResourceAction,ResourceAction.Move
- Direct Known Subclasses:
DefaultResourceActions.Move,DefaultResourceActions.ValidatingMove
- Enclosing class:
- DefaultResourceActions
public static sealed class DefaultResourceActions.MoveImpl
extends Object
implements ResourceAction.Move
permits DefaultResourceActions.Move, DefaultResourceActions.ValidatingMove<R>
Not for direct use
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordUsed internally by the Move implementation for validation.Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.gateway.config.actions.ResourceAction
ResourceAction.ContextObject, ResourceAction.Copy, ResourceAction.Create, ResourceAction.CreateRequest, ResourceAction.Delete, ResourceAction.DeleteRequest, ResourceAction.ListResources, ResourceAction.Modify, ResourceAction.ModifyRequest, ResourceAction.Move, ResourceAction.Read, ResourceAction.Rename, ResourceAction.ValidationFailure -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StructuralModificationResponsemove(ConfigurationManager manager, ResourceType resourceType, @Nullable String fromName, @Nullable String toName, @Nullable String fromCollection, @Nullable String toCollection, ImmutableBytes signature, ResourceAction.ContextObject contextObject) Moves a resource from one location to another.protected Optional<ResourceAction.ValidationFailure>
-
Constructor Details
-
MoveImpl
public MoveImpl()
-
-
Method Details
-
move
@NotNull public @NotNull StructuralModificationResponse move(ConfigurationManager manager, ResourceType resourceType, @Nullable @Nullable String fromName, @Nullable @Nullable String toName, @Nullable @Nullable String fromCollection, @Nullable @Nullable String toCollection, ImmutableBytes signature, ResourceAction.ContextObject contextObject) Description copied from interface:ResourceAction.MoveMoves a resource from one location to another.- Specified by:
movein interfaceResourceAction.Move- Parameters:
manager- The configuration manager to use for moving the resource.resourceType- The type of the resource to move.fromName- The name of the resource to move from.toName- The name of the resource to move to.fromCollection- The collection in which the source resource resides, if applicable.toCollection- The collection in which the destination resource will reside, if applicable.signature- The signature of the resource being moved.contextObject- The context object to associated with the change.- Returns:
- A response indicating the result of the move operation.
-
validateResources
protected Optional<ResourceAction.ValidationFailure> validateResources(DefaultResourceActions.MoveImpl.MoveContext resources)
-