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 Type
    Method
    Description
    createBaseFileUploadState(String fileName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Creates the FileUploadState with the fileName and the status FileUploadStatuses.SUCCESSFUL
    findAllByFileName(String fileName, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds the FileUploadStates 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 the FileUploadStates by name.
      Parameters:
      fileName - The name of the file for which to find upload states
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the FileUploadStates matching the fileName.
    • createBaseFileUploadState

      P createBaseFileUploadState(String fileName, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Creates the FileUploadState with the fileName and the status FileUploadStatuses.SUCCESSFUL
      Parameters:
      fileName - the name of the file
      contextInfo - context information surrounding sandboxing and multitenant state
      Returns:
      the created FileUploadState