Record Class PendingExportService.PendingExport

java.lang.Object
java.lang.Record
com.axelor.rpc.PendingExportService.PendingExport
Record Components:
filePath - the absolute path to the export file
fileName - the name of the export file, or null
download - whether the client downloads the file, instead of previewing it
userId - the id of the user who created the export, or null
Enclosing class:
PendingExportService

public static record PendingExportService.PendingExport(String filePath, @Nullable String fileName, boolean download, @Nullable Long userId) extends Record
Represents a pending export file.
  • Constructor Details

    • PendingExport

      public PendingExport(String filePath, @Nullable String fileName, boolean download, @Nullable Long userId)
      Creates an instance of a PendingExport record class.
      Parameters:
      filePath - the value for the filePath record component
      fileName - the value for the fileName record component
      download - the value for the download record component
      userId - the value for the userId record component
  • Method Details

    • path

      public Path path()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • filePath

      public String filePath()
      Returns the value of the filePath record component.
      Returns:
      the value of the filePath record component
    • fileName

      @Nullable public String fileName()
      Returns the value of the fileName record component.
      Returns:
      the value of the fileName record component
    • download

      public boolean download()
      Returns the value of the download record component.
      Returns:
      the value of the download record component
    • userId

      @Nullable public Long userId()
      Returns the value of the userId record component.
      Returns:
      the value of the userId record component