Class UploadBean

java.lang.Object
io.goobi.viewer.managedbeans.UploadBean
All Implemented Interfaces:
Serializable

@Named @ViewScoped public class UploadBean extends Object implements Serializable
JSF backing bean for handling file uploads in the viewer, including record and media uploads.
See Also:
  • Constructor Details

    • UploadBean

      public UploadBean()
  • Method Details

    • setBreadcrumbBean

      public void setBreadcrumbBean(UserBean userBean)
      Required setter for ManagedProperty injection.
      Parameters:
      userBean - the UserBean instance to inject for testing
    • init

      @PostConstruct public void init()
      Initializes all campaigns as lazily loaded list.
    • getLazyModelUploadJobs

      public TableDataProvider<UploadJob> getLazyModelUploadJobs()
      Getter for the field lazyModelUploadJobs.
      Returns:
      the lazy-loading table data provider for upload jobs
    • getCurrentUploadJob

      public UploadJob getCurrentUploadJob()
      Getter for the field currentUploadJob.
      Returns:
      the currently selected or newly created upload job
    • setCurrentUploadJob

      public void setCurrentUploadJob(UploadJob currentUploadJob)
      Setter for the field currentUploadJob.
      Parameters:
      currentUploadJob - the upload job to set as currently active
    • newUploadJobAction

      public void newUploadJobAction()
      Sets currentUploadJob to a fresh instance.
    • createProcessAction

      public String createProcessAction()
      Creates new Goobi workflow process via REST and uploads the images.
      Returns:
      Navigation target