Interface FileUploadStateService<P extends FileUploadState>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
- All Known Implementing Classes:
DefaultFileUploadStateService
public interface FileUploadStateService<P extends FileUploadState>
extends com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
Base service API for FileUploadState
. Backed by a FileUploadStateRepository
.
- Author:
- Dima Myroniuk (dmyroniuk), Nathan Moore (nathandmoore)
-
Method Summary
Modifier and TypeMethodDescriptioncreateBaseFileUploadState
(String fileName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findAllByFileName
(String fileName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds theFileUploadStates
by name.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSort
-
Method Details
-
findAllByFileName
List<P> findAllByFileName(String fileName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds theFileUploadStates
by name.- Parameters:
fileName
- The name of the file for which to find upload statescontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the
FileUploadStates
matching thefileName
.
-
createBaseFileUploadState
P createBaseFileUploadState(String fileName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Parameters:
fileName
- the name of the filecontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- the created
FileUploadState
-