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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.The file namegetId()
The context ID of the state.The status of the uploadingTheSet
of the file names that weren't successfully uploadedTheList
of the uploadedAsset
int
hashCode()
void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
setFileName
(String fileName) The file namevoid
The context ID of the state.void
setStatus
(FileUploadStatuses status) The status of the uploadingvoid
setUnsuccessfulUploadFileNames
(Set<String> unsuccessfulUploadFileNames) TheSet
of the file names that weren't successfully uploadedvoid
setUploadedAsset
(List<Asset> uploadedAsset) TheList
of the uploadedAsset
toString()
-
Constructor Details
-
FileUploadState
public FileUploadState()
-
-
Method Details
-
getId
The context ID of the state. -
getFileName
The file name -
getStatus
The status of the uploading- See Also:
-
getUploadedAsset
TheList
of the uploadedAsset
-
getUnsuccessfulUploadFileNames
TheSet
of the file names that weren't successfully uploaded -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
The context ID of the state. -
setFileName
The file name -
setStatus
The status of the uploading- See Also:
-
setUploadedAsset
TheList
of the uploadedAsset
-
setUnsuccessfulUploadFileNames
TheSet
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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-