Class MultiFileUploadCollection

All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, Component, Ordered, ScriptEventSupport, ContentElement, LifecycleElement, org.springframework.core.Ordered

public class MultiFileUploadCollection extends ContentElementBase
A content element that will display the collection configured with a file upload button.

This is used to list objects that represent files. The file will be uploaded to the methodToCall specified and the response is expected to be the refreshed collection.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Constructor Details

    • MultiFileUploadCollection

      public MultiFileUploadCollection()
  • Method Details

    • performFinalize

      public void performFinalize(Object model, LifecycleElement parent)
      This finalize method adds template options to the templateOptions property based on settings in the parameters of this class The following finalization is done here:
      • progressiveRender and conditionalRefresh variables are processed if set
      • If any of the style properties were given, sets the style string on the style property
      • Set the skipInTabOrder flag for nested components
      The last phase before the view is rendered

      Here final preparations can be made based on the updated view state.

      Specified by:
      performFinalize in interface LifecycleElement
      Overrides:
      performFinalize in class ComponentBase
      Parameters:
      model - - top level object containing the data
      parent - - parent component
    • getCollection

      public CollectionGroup getCollection()
      The collection which holds the files uploaded
      Returns:
      the collection
    • setCollection

      public void setCollection(CollectionGroup collection)
      See Also:
    • getMethodToCall

      public String getMethodToCall()
      The methodToCall for uploading files, this methodToCall must return the refreshed collection
      Returns:
      the methodToCall for file uploads
    • setMethodToCall

      public void setMethodToCall(String methodToCall)
      See Also:
    • getUrl

      public UrlInfo getUrl()
      The url override for file uploads, this will be used instead of the methodToCall, if set, as the url to post the file upload to
      Returns:
      the file upload url configuration override
    • setUrl

      public void setUrl(UrlInfo url)
      See Also:
    • getAddFilesButtonText

      public String getAddFilesButtonText()
      The text to be used on the add files button
      Returns:
      the text of the add files button
    • setAddFilesButtonText

      public void setAddFilesButtonText(String addFilesButtonText)
      See Also:
    • getAcceptFileTypes

      public String getAcceptFileTypes()
      A regex used to allow or disallow a certain file types for this file upload component
      Returns:
      the regex for file upload verification
    • setAcceptFileTypes

      public void setAcceptFileTypes(String acceptFileTypes)
      See Also:
    • getMaxFileSize

      public Integer getMaxFileSize()
      The maximum file size to allow (in bytes) for a file upload
      Returns:
      maximum file size in bytes
    • setMaxFileSize

      public void setMaxFileSize(Integer maxFileSize)
      See Also:
    • getMinFileSize

      public Integer getMinFileSize()
      The minimum file size needed (in bytes) for a file to be uploaded
      Returns:
      minimum file size in bytes
    • setMinFileSize

      public void setMinFileSize(Integer minFileSize)
      See Also:
    • getPropertyPath

      public String getPropertyPath()
      The property path used for this component, which is the binding path of collection
      Returns:
      the property path