Class DefaultCategoryPrimaryAssetCollisionService<P extends CategoryAsset>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.catalog.service.asset.AbstractPrimaryAssetCollisionService<P>
com.broadleafcommerce.catalog.service.asset.DefaultCategoryPrimaryAssetCollisionService<P>
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
public class DefaultCategoryPrimaryAssetCollisionService<P extends CategoryAsset>
extends AbstractPrimaryAssetCollisionService<P>
The default implementation of the
AbstractPrimaryAssetCollisionService for the CategoryAsset- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCategoryPrimaryAssetCollisionService(com.broadleafcommerce.data.tracking.core.TrackableRepository<T> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected CategoryAssetService<P>readAllPrimaryAssetsByParentIdsExcludeAssetIds(Iterable<String> parentIds, Iterable<String> assetIdsToExclude, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads all the primary assets for the given parent IDs excluding given asset IDs.voidsetCategoryAssetService(CategoryAssetService<P> categoryAssetService) Methods inherited from class com.broadleafcommerce.catalog.service.asset.AbstractPrimaryAssetCollisionService
reconcilePrimaryAssetCollisions, reconcilePrimaryAssetCollisions, reconcilePrimaryAssetCollisions, reconcilePrimaryAssetCollisions, reconcilePrimaryAssetCollisions, reconcilePrimaryAssetCollisionsMethods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAllMethods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getRepository, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
DefaultCategoryPrimaryAssetCollisionService
public DefaultCategoryPrimaryAssetCollisionService(com.broadleafcommerce.data.tracking.core.TrackableRepository<T> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
-
-
Method Details
-
setCategoryAssetService
-
readAllPrimaryAssetsByParentIdsExcludeAssetIds
protected List<P> readAllPrimaryAssetsByParentIdsExcludeAssetIds(Iterable<String> parentIds, Iterable<String> assetIdsToExclude, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from class:AbstractPrimaryAssetCollisionServiceReads all the primary assets for the given parent IDs excluding given asset IDs.- Specified by:
readAllPrimaryAssetsByParentIdsExcludeAssetIdsin classAbstractPrimaryAssetCollisionService<P extends CategoryAsset>- Parameters:
parentIds- IDs of the parent entities for which to find primary assetsassetIdsToExclude- IDs of the assets to excludecontextInfo- context information around sandboxing and multitenant state- Returns:
- the primary assets for the given parent IDs excluding given asset IDs.
-
getCategoryAssetService
-