Interface AdvancedTagRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>

All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository, org.springframework.data.repository.Repository<D,String>, com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
All Known Subinterfaces:
JpaAdvancedTagRepository<D>

@NoRepositoryBean public interface AdvancedTagRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Handles peristence operations for Tags.
Author:
Nathan Moore (nathandmoore)
  • Method Summary

    Modifier and Type
    Method
    Description
    findAllByContextIdIn(Iterable<String> contextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all of the tags with matching contextIds.
    findAllByPosition(String position, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all of the tags with matching position.
    findAllByType(String type, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all of the tags with matching type.
    findAllByTypeAndPosition(String type, String position, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds all of the tags with matching type and position.
    findByName(String name, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Finds the tag by name, which should be unique.

    Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository

    findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository

    archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil

    Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor

    exists, findAll, findAll, findAll, findAll
  • Method Details

    • findByName

      @Policy(operationTypes=READ) Optional<D> findByName(String name, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds the tag by name, which should be unique.
      Parameters:
      name - The name of the tag
      contextInfo - Request context information around sandbox and multitenant state
      Returns:
      The tag matching the name if any.
    • findAllByContextIdIn

      @Policy(operationTypes=READ) List<D> findAllByContextIdIn(Iterable<String> contextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all of the tags with matching contextIds.
      Parameters:
      contextIds - The contextIds to match
      contextInfo - Request context information around sandbox and multitenant state
      Returns:
      All of the tags with matching contextIds.
    • findAllByPosition

      @Policy(operationTypes=READ) List<D> findAllByPosition(String position, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all of the tags with matching position.
      Parameters:
      position - The position to match
      contextInfo - Request context information around sandbox and multitenant state
      Returns:
      All of the tags with matching position.
    • findAllByType

      @Policy(operationTypes=READ) List<D> findAllByType(String type, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all of the tags with matching type.
      Parameters:
      type - The position to match
      contextInfo - Request context information around sandbox and multitenant state
      Returns:
      All of the tags with matching type.
    • findAllByTypeAndPosition

      @Policy(operationTypes=READ) List<D> findAllByTypeAndPosition(String type, String position, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Finds all of the tags with matching type and position.
      Parameters:
      type - The position to match
      position - The position to match
      contextInfo - Request context information around sandbox and multitenant state
      Returns:
      All of the tags with matching type and position.