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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Getter for the fielddescription
.getEmail()
List<javax.servlet.http.Part>
getFiles()
getId()
Getter for the fieldid
.Getter for the fieldmessage
.getPi()
Getter for the fieldpi
.Getter for the fieldstatus
.getTitle()
boolean
boolean
isOnline()
static javax.ws.rs.core.Response
postJobRequest
(String url, AbstractTaskManagerRequest body) void
setConsent
(boolean consent) void
setCreatorId
(Long creatorId) void
setDateCreated
(LocalDateTime dateCreated) void
setDescription
(String description) Setter for the fielddescription
.void
void
void
Setter for the fieldid
.void
setMessage
(String message) Setter for the fieldmessage
.void
Setter for the fieldpi
.void
setProcessId
(Integer processId) void
Setter for the fieldstatus
.void
toString()
boolean
void
uploadFile
(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 javax.ws.rs.core.Response postJobRequest(String url, AbstractTaskManagerRequest body) throws IOException - Throws:
IOException
-
createProcess
- Throws:
UploadException
-
uploadFiles
- Throws:
IOException
HTTPException
-
uploadFile
- Parameters:
file
-- Throws:
IOException
-
updateStatus
- Returns:
- true if status changed; false otherwise
- Throws:
PresentationException
IndexUnreachableException
-
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
-