Interface ResourceAction.Rename

All Superinterfaces:
ResourceAction
All Known Implementing Classes:
DefaultResourceActions.Rename
Enclosing interface:
ResourceAction
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static non-sealed interface ResourceAction.Rename extends ResourceAction
  • Method Details

    • rename

      @NotNull @NotNull StructuralModificationResponse rename(ConfigurationManager manager, ResourceType resourceType, String name, String newName, ReferenceHandling referenceHandling, @Nullable @Nullable String collection, ResourceAction.ContextObject contextObject)
      Renames a named resource.
      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.