Class DefaultFileUploadStateService<P extends FileUploadState>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.asset.service.DefaultFileUploadStateService<P>
- All Implemented Interfaces:
FileUploadStateService<P>
,com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
@DataRouteByExample(Asset.class)
public class DefaultFileUploadStateService<P extends FileUploadState>
extends com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
implements FileUploadStateService<P>
- Author:
- Dima Myroniuk (dmyroniuk), Nathan Moore (nathandmoore)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFileUploadStateService
(FileUploadStateRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateBaseFileUploadState
(String fileName, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) findAllByFileName
(String fileName, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Finds theFileUploadStates
by name.protected FileUploadStateRepository<com.broadleafcommerce.data.tracking.core.Trackable>
protected com.broadleafcommerce.common.extension.TypeFactory
Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
DefaultFileUploadStateService
public DefaultFileUploadStateService(FileUploadStateRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.CrudEntityHelper helper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
createBaseFileUploadState
public P createBaseFileUploadState(String fileName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:FileUploadStateService
- Specified by:
createBaseFileUploadState
in interfaceFileUploadStateService<P extends FileUploadState>
- Parameters:
fileName
- the name of the filecontext
- context information surrounding sandboxing and multitenant state- Returns:
- the created
FileUploadState
-
findAllByFileName
public List<P> findAllByFileName(String fileName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Description copied from interface:FileUploadStateService
Finds theFileUploadStates
by name.- Specified by:
findAllByFileName
in interfaceFileUploadStateService<P extends FileUploadState>
- Parameters:
fileName
- The name of the file for which to find upload statescontext
- context information surrounding sandboxing and multitenant state- Returns:
- the
FileUploadStates
matching thefileName
.
-
getRepository
@NonNull protected FileUploadStateRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()- Overrides:
getRepository
in classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends FileUploadState>
-
getTypeFactory
@NonNull protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-