Class UploadJob

java.lang.Object
io.goobi.viewer.model.job.upload.UploadJob
All Implemented Interfaces:
Serializable

@Entity public class UploadJob extends Object implements Serializable

Abstract DownloadJob class.

See Also:
  • Field Details Link icon

    • status Link icon

      protected JobStatus status
    • message Link icon

      protected String message
      Error messages, etc.
    • processId Link icon

      protected Integer processId
      Assigned Goobi workflow process ID.
    • pi Link icon

      protected String pi
    • title Link icon

      protected String title
      Title field.
    • description Link icon

      protected String description
      Description field.
  • Constructor Details Link icon

    • UploadJob Link icon

      public UploadJob()
  • Method Details Link icon

    • postJobRequest Link icon

      public static jakarta.ws.rs.core.Response postJobRequest(String url, AbstractTaskManagerRequest body) throws IOException
      Throws:
      IOException
    • createProcess Link icon

      public void createProcess() throws UploadException
      Throws:
      UploadException
    • uploadFiles Link icon

      public void uploadFiles() throws IOException
      Throws:
      IOException
    • uploadFile Link icon

      public void uploadFile(File file) throws IOException
      Parameters:
      file -
      Throws:
      IOException
    • updateStatus Link icon

      public boolean updateStatus() throws IndexUnreachableException, PresentationException
      Returns:
      true if status changed; false otherwise
      Throws:
      PresentationException
      IndexUnreachableException
    • isOnline Link icon

      public boolean isOnline()
      Returns:
      true if status is READY; false otherwise
    • getRecordUrl Link icon

      public String getRecordUrl()
      Returns:
      PI resolver URL for pi
    • getId Link icon

      public Long getId()

      Getter for the field id.

      Returns:
      the id
    • setId Link icon

      public void setId(Long id)

      Setter for the field id.

      Parameters:
      id - the id to set
    • getDateCreated Link icon

      public LocalDateTime getDateCreated()
      Returns:
      the dateCreated
    • setDateCreated Link icon

      public void setDateCreated(LocalDateTime dateCreated)
      Parameters:
      dateCreated - the dateCreated to set
    • getCreatorId Link icon

      public Long getCreatorId()
      Returns:
      the creatorId
    • setCreatorId Link icon

      public void setCreatorId(Long creatorId)
      Parameters:
      creatorId - the creatorId to set
    • getEmail Link icon

      public String getEmail()
      Returns:
      the email
    • setEmail Link icon

      public void setEmail(String email)
      Parameters:
      email - the email to set
    • getStatus Link icon

      public JobStatus getStatus()

      Getter for the field status.

      Returns:
      the status
    • setStatus Link icon

      public void setStatus(JobStatus status)

      Setter for the field status.

      Parameters:
      status - the status to set
    • getMessage Link icon

      public String getMessage()

      Getter for the field message.

      Returns:
      the message
    • setMessage Link icon

      public void setMessage(String message)

      Setter for the field message.

      Parameters:
      message - the message to set
    • getPi Link icon

      public String getPi()

      Getter for the field pi.

      Returns:
      the pi
    • setPi Link icon

      public void setPi(String pi)

      Setter for the field pi.

      Parameters:
      pi - the pi to set
    • getProcessId Link icon

      public Integer getProcessId()
      Returns:
      the processId
    • setProcessId Link icon

      public void setProcessId(Integer processId)
      Parameters:
      processId - the processId to set
    • getTitle Link icon

      public String getTitle()
      Returns:
      the title
    • setTitle Link icon

      public void setTitle(String title)
      Parameters:
      title - the title to set
    • getDescription Link icon

      public String getDescription()

      Getter for the field description.

      Returns:
      the description
    • setDescription Link icon

      public void setDescription(String description)

      Setter for the field description.

      Parameters:
      description - the description to set
    • isConsent Link icon

      public boolean isConsent()
      Returns:
      the consent
    • setConsent Link icon

      public void setConsent(boolean consent)
      Parameters:
      consent - the consent to set
    • getFiles Link icon

      public List<jakarta.servlet.http.Part> getFiles()
      Returns:
      the files
    • setFiles Link icon

      public void setFiles(List<jakarta.servlet.http.Part> files)
      Parameters:
      files - the files to set
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object