Interface ApplicationRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- Type Parameters:
D
- General domain type that derives fromTrackable
- 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:
JpaApplicationRepository<D>
@NoRepositoryBean
public interface ApplicationRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.data.tracking.core.TrackableRsqlFilterExecutor<D>
Repository agnostic interface. Generally extended by another interface that is declared against a
specific repository domain type.
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>
findAllByDeactivated
(boolean deactivated, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageInfo, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findByContextIdAndDeactivated
(String contextId, boolean isDeactivated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the application by itsApplication.getId()
andApplication.isDeactivated()
.findByIdentifierValueAndDeactivated
(String identifierValue, boolean isDeactivated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the application by itsApplication.getIdentifierValue()
andApplication.isDeactivated()
.findByIdentifierValueAndIdentifierTypeAndDeactivated
(String identifierValue, String identifierType, boolean isDeactivated, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the application by itsApplication.getIdentifierValue()
andApplication.getIdentifierValue()
.findByToken
(String applicationToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the application by it'sApplication.getToken()
.org.springframework.data.domain.Page<D>
readAllByContextIdIn
(Collection<String> applicationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<D>
readAllByContextIdInAndDeactivated
(Collection<String> applicationId, boolean deactivated, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) 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
-
findByToken
Optional<D> findByToken(String applicationToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the application by it'sApplication.getToken()
.- Parameters:
applicationToken
- the application tokencontextInfo
- the context info- Returns:
- the application
-
findByIdentifierValueAndIdentifierTypeAndDeactivated
Optional<D> findByIdentifierValueAndIdentifierTypeAndDeactivated(String identifierValue, String identifierType, boolean isDeactivated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the application by itsApplication.getIdentifierValue()
andApplication.getIdentifierValue()
.- Parameters:
identifierValue
- theApplication.getIdentifierValue()
identifierType
- theApplication.getIdentifierType()
isDeactivated
- whether the application isApplication.isDeactivated()
deactivated}.contextInfo
- context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.- Returns:
- the application with the matching
Application.getIdentifierValue()
-
findAllByDeactivated
org.springframework.data.domain.Page<D> findAllByDeactivated(boolean deactivated, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageInfo, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Parameters:
deactivated
- Whether to find deactived or active applicationsfilters
- additional filters to apply in the query, can be nullpageInfo
- the requested page of results from the databasecontextInfo
- context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.- Returns:
- all
Applications
whereApplication.isDeactivated()
matches the paramdeactivated
-
findByIdentifierValueAndDeactivated
Optional<D> findByIdentifierValueAndDeactivated(String identifierValue, boolean isDeactivated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the application by itsApplication.getIdentifierValue()
andApplication.isDeactivated()
.- Parameters:
identifierValue
- theApplication.getIdentifierValue()
isDeactivated
- whether the application isApplication.isDeactivated()
deactivated}.contextInfo
- context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.- Returns:
- the application with the matching
Application.getIdentifierValue()
-
findByContextIdAndDeactivated
Optional<D> findByContextIdAndDeactivated(String contextId, boolean isDeactivated, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Read the application by itsApplication.getId()
andApplication.isDeactivated()
.- Parameters:
contextId
- theApplication.getId()
isDeactivated
- whether the application isApplication.isDeactivated()
deactivated}.contextInfo
- context information related to multitenancy. Often used to validate visibility and mutability of persistence operations for a catalog.- Returns:
- the application with the matching
Application.getIdentifierValue()
-
readAllByContextIdIn
org.springframework.data.domain.Page<D> readAllByContextIdIn(Collection<String> applicationId, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readAllByContextIdInAndDeactivated
org.springframework.data.domain.Page<D> readAllByContextIdInAndDeactivated(Collection<String> applicationId, boolean deactivated, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-