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 TypeMethodDescriptionfindAllByContextIdIn
(Iterable<String> contextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all of the tags with matchingcontextIds
.findAllByPosition
(String position, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all of the tags with matchingposition
.findAllByType
(String type, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all of the tags with matchingtype
.findAllByTypeAndPosition
(String type, String position, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Finds all of the tags with matchingtype
andposition
.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 tagcontextInfo
- 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 matchingcontextIds
.- Parameters:
contextIds
- The contextIds to matchcontextInfo
- 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 matchingposition
.- Parameters:
position
- The position to matchcontextInfo
- 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 matchingtype
.- Parameters:
type
- The position to matchcontextInfo
- 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 matchingtype
andposition
.- Parameters:
type
- The position to matchposition
- The position to matchcontextInfo
- Request context information around sandbox and multitenant state- Returns:
- All of the tags with matching
type
andposition
.
-