Class FileAccessPermission

java.lang.Object
org.aesh.readline.util.FileAccessPermission

public class FileAccessPermission extends Object
FileAccessPermission defines file access permission like readable, writable. readable and writable will be true by default.
Author:
Lin Gao invalid input: '<'lgao@redhat.com>
  • Constructor Details

    • FileAccessPermission

      public FileAccessPermission()
      Default constructor
  • Method Details

    • isExecutable

      public boolean isExecutable()
      Returns:
      the executable
    • setExecutable

      public void setExecutable(boolean executable)
      Parameters:
      executable - the executable to set
    • isExecutableOwnerOnly

      public boolean isExecutableOwnerOnly()
      Returns:
      the executableOwnerOnly
    • setExecutableOwnerOnly

      public void setExecutableOwnerOnly(boolean executableOwnerOnly)
      Parameters:
      executableOwnerOnly - the executableOwnerOnly to set
    • isReadable

      public boolean isReadable()
      Returns:
      the readable
    • setReadable

      public void setReadable(boolean readable)
      Parameters:
      readable - the readable to set
    • isReadableOwnerOnly

      public boolean isReadableOwnerOnly()
      Returns:
      the readableOwnerOnly
    • setReadableOwnerOnly

      public void setReadableOwnerOnly(boolean readableOwnerOnly)
      Parameters:
      readableOwnerOnly - the readableOwnerOnly to set
    • isWritable

      public boolean isWritable()
      Returns:
      the writable
    • setWritable

      public void setWritable(boolean writable)
      Parameters:
      writable - the writable to set
    • isWritableOwnerOnly

      public boolean isWritableOwnerOnly()
      Returns:
      the writableOwnerOnly
    • setWritableOwnerOnly

      public void setWritableOwnerOnly(boolean writableOwnerOnly)
      Parameters:
      writableOwnerOnly - the writableOwnerOnly to set