Class PanelDataCollectionNodeAttachmentUploadFile

java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocall.basic.ui.container.Panel
overit.geocallapp.wfm.core.ux.datacollection.sheet.node.attachment.PanelDataCollectionNodeAttachmentUploadFile
All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

public class PanelDataCollectionNodeAttachmentUploadFile extends Panel
Panel used to upload a file to a data collection node.
Since:
12.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • PanelDataCollectionNodeAttachmentUploadFile

      public PanelDataCollectionNodeAttachmentUploadFile()
  • Method Details

    • show

      public void show(Serializable obj)
      Description copied from class: Panel
      It shows (make visible with the pop-up effect) the panel
      Overrides:
      show in class Panel
      Parameters:
      obj - serializable object saved as a global variable of the panel
    • onUploadAttachment

      public boolean onUploadAttachment(HashGetter eventData)
      UI event handler to upload an attachment.
      Parameters:
      eventData - the HashGetter event data
      Returns:
      true to break the responsibility chain, false otherwise.
    • validateUpload

      protected void validateUpload(UpFile file, DataCollectionNode node) throws DAValidateException
      Validates the uploaded file against node-specific constraints.
      Parameters:
      file - the file to validate
      node - the data collection node containing validation rules
      Throws:
      DAValidateException - the DA validate exception
    • updateFileName

      protected void updateFileName(UpFile file, DataCollectionNode node)
      Updates the file name based on the node's naming convention.
      Parameters:
      file - the file to update
      node - the data collection node containing the naming convention
    • getPostUploadFunction

      public Function<String,Boolean> getPostUploadFunction()
      Returns the post upload function.
      Returns:
      the post upload function
    • setPostUploadFunction

      public void setPostUploadFunction(Function<String,Boolean> postUploadFunction)
      Set post upload function.
      Parameters:
      postUploadFunction - the post upload function