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 booleanbooleancom.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.The file namegetId()The context ID of the state.The status of the uploadingTheSetof the file names that weren't successfully uploadedTheListof the uploadedAssetinthashCode()voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetFileName(String fileName) The file namevoidThe context ID of the state.voidsetStatus(FileUploadStatuses status) The status of the uploadingvoidsetUnsuccessfulUploadFileNames(Set<String> unsuccessfulUploadFileNames) TheSetof the file names that weren't successfully uploadedvoidsetUploadedAsset(List<Asset> uploadedAsset) TheListof the uploadedAssettoString()
-
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
TheListof the uploadedAsset -
getUnsuccessfulUploadFileNames
TheSetof the file names that weren't successfully uploaded -
getContextState
public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()A subset ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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
TheListof the uploadedAsset -
setUnsuccessfulUploadFileNames
TheSetof the file names that weren't successfully uploaded -
setContextState
public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-