Class MoveRenameResourceChange

  • All Implemented Interfaces:
    IAdaptable

    public class MoveRenameResourceChange
    extends ResourceChange
    Change that moves and renames a resource.
    Since:
    3.10
    • Constructor Detail

      • MoveRenameResourceChange

        public MoveRenameResourceChange​(IResource source,
                                        IContainer target,
                                        String newName)
        Creates the change.
        Parameters:
        source - the resource to move
        target - the container the resource is moved to. An existing resource at the destination will be replaced.
        newName - new name of resource
      • MoveRenameResourceChange

        protected MoveRenameResourceChange​(IResource source,
                                           IContainer target,
                                           String newName,
                                           long stampToRestore,
                                           Change restoreSourceChange)
        Creates the change.
        Parameters:
        source - the resource to move
        target - the container the resource is moved to. An existing resource at the destination will be replaced.
        newName - the new name of the resource in the the target container
        stampToRestore - the stamp to restore on the moved resource
        restoreSourceChange - the change to restore a resource at the source or null if no resource needs to be resourced.