Package io.goobi.viewer.managedbeans
Class UploadBean
java.lang.Object
io.goobi.viewer.managedbeans.UploadBean
- All Implemented Interfaces:
Serializable
JSF backing bean for handling file uploads in the viewer, including record and media uploads.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates new Goobi workflow process via REST and uploads the images.Getter for the fieldcurrentUploadJob.Getter for the fieldlazyModelUploadJobs.voidinit()Initializes all campaigns as lazily loaded list.voidSetscurrentUploadJobto a fresh instance.voidsetBreadcrumbBean(UserBean userBean) Required setter for ManagedProperty injection.voidsetCurrentUploadJob(UploadJob currentUploadJob) Setter for the fieldcurrentUploadJob.
-
Constructor Details
-
UploadBean
public UploadBean()
-
-
Method Details
-
setBreadcrumbBean
Required setter for ManagedProperty injection.- Parameters:
userBean- the UserBean instance to inject for testing
-
init
Initializes all campaigns as lazily loaded list. -
getLazyModelUploadJobs
Getter for the fieldlazyModelUploadJobs.- Returns:
- the lazy-loading table data provider for upload jobs
-
getCurrentUploadJob
Getter for the fieldcurrentUploadJob.- Returns:
- the currently selected or newly created upload job
-
setCurrentUploadJob
Setter for the fieldcurrentUploadJob.- Parameters:
currentUploadJob- the upload job to set as currently active
-
newUploadJobAction
public void newUploadJobAction()SetscurrentUploadJobto a fresh instance. -
createProcessAction
Creates new Goobi workflow process via REST and uploads the images.- Returns:
- Navigation target
-