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

    • status

      protected JobStatus status
    • message

      protected String message
      Error messages, etc.
    • processId

      protected Integer processId
      Assigned Goobi workflow process ID.
    • pi

      protected String pi
    • title

      protected String title
      Title field.
    • description

      protected String description
      Description field.
  • Constructor Details

    • UploadJob

      public UploadJob()
  • Method Details

    • postJobRequest

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

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

      public void uploadFiles() throws IOException, HTTPException
      Throws:
      IOException
      HTTPException
    • uploadFile

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

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

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

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

      public Long getId()

      Getter for the field id.

      Returns:
      the id
    • setId

      public void setId(Long id)

      Setter for the field id.

      Parameters:
      id - the id to set
    • getDateCreated

      public LocalDateTime getDateCreated()
      Returns:
      the dateCreated
    • setDateCreated

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

      public Long getCreatorId()
      Returns:
      the creatorId
    • setCreatorId

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

      public String getEmail()
      Returns:
      the email
    • setEmail

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

      public JobStatus getStatus()

      Getter for the field status.

      Returns:
      the status
    • setStatus

      public void setStatus(JobStatus status)

      Setter for the field status.

      Parameters:
      status - the status to set
    • getMessage

      public String getMessage()

      Getter for the field message.

      Returns:
      the message
    • setMessage

      public void setMessage(String message)

      Setter for the field message.

      Parameters:
      message - the message to set
    • getPi

      public String getPi()

      Getter for the field pi.

      Returns:
      the pi
    • setPi

      public void setPi(String pi)

      Setter for the field pi.

      Parameters:
      pi - the pi to set
    • getProcessId

      public Integer getProcessId()
      Returns:
      the processId
    • setProcessId

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

      public String getTitle()
      Returns:
      the title
    • setTitle

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

      public String getDescription()

      Getter for the field description.

      Returns:
      the description
    • setDescription

      public void setDescription(String description)

      Setter for the field description.

      Parameters:
      description - the description to set
    • isConsent

      public boolean isConsent()
      Returns:
      the consent
    • setConsent

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

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

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

      public String toString()
      Overrides:
      toString in class Object