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 Details

    • DefaultCategoryPrimaryAssetCollisionService

      public DefaultCategoryPrimaryAssetCollisionService(com.broadleafcommerce.data.tracking.core.TrackableRepository<T> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
  • Method Details

    • setCategoryAssetService

      @Autowired @Lazy public void setCategoryAssetService(CategoryAssetService<P> categoryAssetService)
    • readAllPrimaryAssetsByParentIdsExcludeAssetIds

      protected List<P> readAllPrimaryAssetsByParentIdsExcludeAssetIds(Iterable<String> parentIds, Iterable<String> assetIdsToExclude, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from class: AbstractPrimaryAssetCollisionService
      Reads all the primary assets for the given parent IDs excluding given asset IDs.
      Specified by:
      readAllPrimaryAssetsByParentIdsExcludeAssetIds in class AbstractPrimaryAssetCollisionService<P extends CategoryAsset>
      Parameters:
      parentIds - IDs of the parent entities for which to find primary assets
      assetIdsToExclude - IDs of the assets to exclude
      contextInfo - context information around sandboxing and multitenant state
      Returns:
      the primary assets for the given parent IDs excluding given asset IDs.
    • getCategoryAssetService

      protected CategoryAssetService<P> getCategoryAssetService()