Class DefaultResourceActions.RenameImpl
java.lang.Object
com.inductiveautomation.ignition.gateway.config.actions.DefaultResourceActions.RenameImpl
- All Implemented Interfaces:
ResourceAction,ResourceAction.Rename
- Direct Known Subclasses:
DefaultResourceActions.Rename,DefaultResourceActions.ValidatingRename
- Enclosing class:
- DefaultResourceActions
public static sealed class DefaultResourceActions.RenameImpl
extends Object
implements ResourceAction.Rename
permits DefaultResourceActions.Rename, DefaultResourceActions.ValidatingRename<R>
Not for direct use
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordUsed internally by the Rename 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 StructuralModificationResponserename(ConfigurationManager manager, ResourceType resourceType, String name, String newName, ReferenceHandling referenceHandling, @Nullable String collection, ResourceAction.ContextObject contextObject) Renames a named resource.protected Optional<ResourceAction.ValidationFailure>
-
Constructor Details
-
RenameImpl
public RenameImpl()
-
-
Method Details
-
rename
@NotNull public @NotNull StructuralModificationResponse rename(ConfigurationManager manager, ResourceType resourceType, String name, String newName, ReferenceHandling referenceHandling, @Nullable @Nullable String collection, ResourceAction.ContextObject contextObject) Description copied from interface:ResourceAction.RenameRenames a named resource.- Specified by:
renamein interfaceResourceAction.Rename- Parameters:
manager- The configuration manager to use for renaming the resource.resourceType- The type of the resource to rename.name- The current name of the resource.newName- The new name for the resource.referenceHandling- How to handle references to the renamed resource.collection- The collection in which the resource resides, if applicable.contextObject- The context object to associated with the change.- Returns:
- A response indicating the result of the rename operation.
-
validateResources
protected Optional<ResourceAction.ValidationFailure> validateResources(DefaultResourceActions.RenameImpl.RenameContext resources)
-