Class FileUploadState

java.lang.Object
com.broadleafcommerce.asset.domain.FileUploadState
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class FileUploadState extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware

A FileUploadState encapsulates the state of file that was uploaded asynchronously

Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • FileUploadState

      public FileUploadState()
  • Method Details

    • getId

      public String getId()
      The context ID of the state.
    • getFileName

      public String getFileName()
      The file name
    • getStatus

      public FileUploadStatuses getStatus()
      The status of the uploading
      See Also:
    • getUploadedAsset

      public List<Asset> getUploadedAsset()
      The List of the uploaded Asset
    • getUnsuccessfulUploadFileNames

      public Set<String> getUnsuccessfulUploadFileNames()
      The Set of the file names that weren't successfully uploaded
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
      The context ID of the state.
    • setFileName

      public void setFileName(String fileName)
      The file name
    • setStatus

      public void setStatus(FileUploadStatuses status)
      The status of the uploading
      See Also:
    • setUploadedAsset

      public void setUploadedAsset(List<Asset> uploadedAsset)
      The List of the uploaded Asset
    • setUnsuccessfulUploadFileNames

      public void setUnsuccessfulUploadFileNames(Set<String> unsuccessfulUploadFileNames)
      The Set of the file names that weren't successfully uploaded
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object