Class MoveResourceChange

    • Constructor Detail

      • MoveResourceChange

        public MoveResourceChange​(IResource source,
                                  IContainer target)
        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.
      • MoveResourceChange

        protected MoveResourceChange​(IResource source,
                                     IContainer target,
                                     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.
        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.
    • Method Detail

      • setDescriptor

        public void setDescriptor​(ChangeDescriptor descriptor)
        Sets the change descriptor to be returned by Change.getDescriptor().
        Parameters:
        descriptor - the change descriptor
      • getName

        public java.lang.String getName()
        Description copied from class: Change
        Returns the human readable name of this change. The name MUST not be null.
        Specified by:
        getName in class Change
        Returns:
        the human readable name of this change