Class RenameFileOperation

  • All Implemented Interfaces:
    Operation

    public class RenameFileOperation
    extends java.lang.Object
    implements Operation
    Rename a file within the same directory
    • Constructor Summary

      Constructors 
      Constructor Description
      RenameFileOperation​(java.lang.String from, java.lang.String to, java.lang.String fromPath, java.lang.String toPath, org.alfresco.service.cmr.repository.NodeRef rootNodeRef)  
    • Constructor Detail

      • RenameFileOperation

        public RenameFileOperation​(java.lang.String from,
                                   java.lang.String to,
                                   java.lang.String fromPath,
                                   java.lang.String toPath,
                                   org.alfresco.service.cmr.repository.NodeRef rootNodeRef)
        Parameters:
        from - name of file from
        to - name of file to
        fromPath - full path of from
        toPath - full path of to
        rootNodeRef -
    • Method Detail

      • getFrom

        public java.lang.String getFrom()
      • getTo

        public java.lang.String getTo()
      • getToPath

        public java.lang.String getToPath()
      • getFromPath

        public java.lang.String getFromPath()
      • getRootNodeRef

        public org.alfresco.service.cmr.repository.NodeRef getRootNodeRef()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object