Package io.goobi.viewer.model.job.upload
Class UploadJob
java.lang.Object
io.goobi.viewer.model.job.upload.UploadJob
- All Implemented Interfaces:
Serializable
Abstract DownloadJob class.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidGetter for the fielddescription.getEmail()List<jakarta.servlet.http.Part> getFiles()getId()Getter for the fieldid.Getter for the fieldmessage.getPi()Getter for the fieldpi.Getter for the fieldstatus.getTitle()booleanbooleanisOnline()static jakarta.ws.rs.core.ResponsepostJobRequest(String url, AbstractTaskManagerRequest body) voidsetConsent(boolean consent) voidsetCreatorId(Long creatorId) voidsetDateCreated(LocalDateTime dateCreated) voidsetDescription(String description) Setter for the fielddescription.voidvoidvoidSetter for the fieldid.voidsetMessage(String message) Setter for the fieldmessage.voidSetter for the fieldpi.voidsetProcessId(Integer processId) voidSetter for the fieldstatus.voidtoString()booleanvoiduploadFile(File file) void
-
Field Details
-
status
-
message
Error messages, etc. -
processId
Assigned Goobi workflow process ID. -
pi
-
title
Title field. -
description
Description field.
-
-
Constructor Details
-
UploadJob
public UploadJob()
-
-
Method Details
-
postJobRequest
public static jakarta.ws.rs.core.Response postJobRequest(String url, AbstractTaskManagerRequest body) throws IOException - Throws:
IOException
-
createProcess
- Throws:
UploadException
-
uploadFiles
- Throws:
IOException
-
uploadFile
- Parameters:
file-- Throws:
IOException
-
updateStatus
- Returns:
- true if status changed; false otherwise
- Throws:
PresentationExceptionIndexUnreachableException
-
isOnline
public boolean isOnline()- Returns:
- true if status is READY; false otherwise
-
getRecordUrl
- Returns:
- PI resolver URL for pi
-
getId
Getter for the field
id.- Returns:
- the id
-
setId
Setter for the field
id.- Parameters:
id- the id to set
-
getDateCreated
- Returns:
- the dateCreated
-
setDateCreated
- Parameters:
dateCreated- the dateCreated to set
-
getCreatorId
- Returns:
- the creatorId
-
setCreatorId
- Parameters:
creatorId- the creatorId to set
-
getEmail
- Returns:
- the email
-
setEmail
- Parameters:
email- the email to set
-
getStatus
Getter for the field
status.- Returns:
- the status
-
setStatus
Setter for the field
status.- Parameters:
status- the status to set
-
getMessage
Getter for the field
message.- Returns:
- the message
-
setMessage
Setter for the field
message.- Parameters:
message- the message to set
-
getPi
Getter for the field
pi.- Returns:
- the pi
-
setPi
Setter for the field
pi.- Parameters:
pi- the pi to set
-
getProcessId
- Returns:
- the processId
-
setProcessId
- Parameters:
processId- the processId to set
-
getTitle
- Returns:
- the title
-
setTitle
- Parameters:
title- the title to set
-
getDescription
Getter for the field
description.- Returns:
- the description
-
setDescription
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
- Returns:
- the files
-
setFiles
- Parameters:
files- the files to set
-
toString
-