Interface StorageLocationMappingService<P extends StorageLocationMapping>
- Type Parameters:
P
-StorageLocationMapping
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService<P>
- All Known Implementing Classes:
DefaultStorageLocationMappingService
public interface StorageLocationMappingService<P extends StorageLocationMapping>
extends com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService<P>
CRUD Service API for
StorageLocationMapping
. Supported by
StorageLocationMappingRepository
.- Since:
- Asset Service 2.0.3, Release Train 2.1.4, Release Train 2.2.0
-
Method Summary
Modifier and TypeMethodDescriptionlong
deleteByStorageProviderTypeAndOriginalLocationIn
(String storageProviderType, Collection<String> originalLocations) Deletes the mapping records matching the specified filters.findByStorageProviderTypeAndOriginalLocationIn
(String storageProviderType, Collection<String> originalLocations) Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.MappableCrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByIds, readById, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlMappableCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
findByStorageProviderTypeAndOriginalLocationIn
List<P> findByStorageProviderTypeAndOriginalLocationIn(String storageProviderType, Collection<String> originalLocations) - Parameters:
storageProviderType
- theStorageLocationMapping.getStorageProviderType()
value identifying the storage provider to find the mappings fororiginalLocations
- theoriginal locations
to find the mapping records for- Returns:
- the mapping records matching the provided input
-
deleteByStorageProviderTypeAndOriginalLocationIn
long deleteByStorageProviderTypeAndOriginalLocationIn(String storageProviderType, Collection<String> originalLocations) Deletes the mapping records matching the specified filters.- Parameters:
storageProviderType
- theStorageLocationMapping.getStorageProviderType()
value identifying the storage provider to find the mappings fororiginalLocations
- theoriginal locations
to find the mapping records for- Returns:
- the number of records deleted by the operation
-