Class OpenFileOperation

java.lang.Object
org.alfresco.filesys.repo.rules.operations.OpenFileOperation
All Implemented Interfaces:
Operation

public class OpenFileOperation extends Object implements Operation
Open File Operation.

Open a file with the given name.

  • Constructor Details

    • OpenFileOperation

      public OpenFileOperation(String name, OpenFileMode mode, boolean truncate, NodeRef rootNode, String path)
      Parameters:
      name - the name of the file to open
      mode - if true open the file in read/write
      truncate - boolean
      rootNode - root node
      path - the full path/name to open
  • Method Details

    • getName

      public String getName()
    • getPath

      public String getPath()
    • getRootNodeRef

      public NodeRef getRootNodeRef()
    • getMode

      public OpenFileMode getMode()
    • isTruncate

      public boolean isTruncate()
    • toString

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object