Interface OptionTemplateService<P extends OptionTemplate>

All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
All Known Implementing Classes:
DefaultOptionTemplateService

public interface OptionTemplateService<P extends OptionTemplate> extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Base service API for ProductOptions. Backed by a OptionTemplateRepository.
Author:
Nathan Moore (nathanmoore).
  • Method Summary

    Modifier and Type
    Method
    Description
     
    readAllByCategoryIdsIn(Collection<String> categoryIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all option templates by category IDs in the supplied collection.
    readAllByIds(Collection<String> optionTemplateIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all option templates with IDs in the supplied collection.
    org.springframework.data.domain.Page<P>
    readAllByName(String name, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     
    readById(String optionTemplateId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
     

    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

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService

    readAll, readAll, readAll, readAll
  • Method Details

    • readAllByName

      org.springframework.data.domain.Page<P> readAllByName(String name, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readAllByIds

      List<P> readAllByIds(Collection<String> optionTemplateIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all option templates with IDs in the supplied collection.
      Parameters:
      optionTemplateIds - the option template IDs to search for
      contextInfo - the context to perform the operation in
      Returns:
      the option templates that matched with the IDs in the given collection
    • readAllByCategoryIdsIn

      List<P> readAllByCategoryIdsIn(Collection<String> categoryIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all option templates by category IDs in the supplied collection.
      Parameters:
      categoryIds - the category IDs to use to search for option template/s
      contextInfo - the context to perform the operation in
      Returns:
      the option templates that matched with the category IDs in the given collection
    • readById

      P readById(String optionTemplateId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getRepositoryDomain

      String getRepositoryDomain()