Uses of Class
com.broadleafcommerce.data.tracking.core.context.ContextInfo
Package
Description
-
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core
Modifier and TypeMethodDescriptionTrackableRepository.archive
(D entity, ContextInfo contextInfo) Archive a record so that it is no longer considered active and is filtered out of results.boolean
TrackableRsqlFilterExecutor.exists
(cz.jirutka.rsql.parser.ast.Node filters, ContextInfo contextInfo) Checks whether the data store contains elements that match the givenNode
.boolean
TrackableRepository.existsByContextId
(String contextId, ContextInfo contextInfo) Retrieve whether or not an active instance of the item exists for the given context id after any narrowing context is applied.TrackableRepository.findAll
(ContextInfo contextInfo) Retrieve all domain instances.TrackableRepository.findAll
(ContextInfo contextInfo, Class<D> type) Retrieve all domain instances.org.springframework.data.domain.Page<D>
TrackableRepository.findAll
(org.springframework.data.domain.Pageable pageable, ContextInfo contextInfo) Retrieve all domain instances, a page at a time.org.springframework.data.domain.Page<D>
TrackableRepository.findAll
(org.springframework.data.domain.Pageable pageable, ContextInfo contextInfo, Class<D> type) Retrieve all domain instances, a page at a time.TrackableRepository.findAll
(org.springframework.data.domain.Sort sort, ContextInfo contextInfo) Retrieve all domain instances using a sort.TrackableRepository.findAll
(org.springframework.data.domain.Sort sort, ContextInfo contextInfo, Class<D> type) Retrieve all domain instances using a sort.TrackableRsqlFilterExecutor.findAll
(cz.jirutka.rsql.parser.ast.Node filters, ContextInfo contextInfo) Retrieve all domain instances using an RSQLNode
to restrict results.org.springframework.data.domain.Page<D>
TrackableRsqlFilterExecutor.findAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, ContextInfo contextInfo) Retrieve all domain instances using an RSQLNode
to restrict results.TrackableRsqlFilterExecutor.findAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, ContextInfo contextInfo) Retrieve all domain instances using an RSQLNode
to restrict results.org.springframework.data.domain.Page<D>
TrackableRsqlFilterExecutor.findAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, org.springframework.data.domain.Pageable pageable, ContextInfo contextInfo) Retrieve all domain instances using an RSQLNode
to restrict results.TrackableRepository.findAllByContextId
(Iterable<String> contextIds, ContextInfo contextInfo) Retrieve all domain instances based on a list of context ids (seeTrackable.getContextId()
).TrackableRepository.findByContextId
(String contextId, ContextInfo contextInfo) Retrieve a domain instance based on the context id (seeTrackable.getContextId()
).TrackableRepository.findByContextIdAndCatalog
(String contextId, String catalogId, ContextInfo contextInfo) Retrieve a domain instance based on the context id (seeTrackable.getContextId()
).TrackableRepository.findMaxSortMember
(Sortable example, String maxSort, ContextInfo contextInfo) Given an example member from a sort group, find the first member from that group whose sort value is less than maxSort.TrackableRepository.findMinSortMember
(Sortable example, String minSort, ContextInfo contextInfo) Given an example member from a sort group, find the first member from that group whose sort value is greater than minSort.TrackableRepository.save
(D entity, ContextInfo contextInfo) Insert (if not exists) or update the domain instance in the datastore.TrackableRepository.saveAll
(Iterable<D> entities, ContextInfo contextInfo) Insert (if not exists) or update all the domain instances in the datastore.<D extends Trackable>
DBasicAuditUtility.touch
(ContextInfo contextInfo, String contextId, Class<D> repositoryEntityType, Trackable example) Set the update portion of aBasicAuditable
identified by the type and contextId, and then persist that change.<D extends Trackable>
DDefaultBasicAuditUtility.touch
(ContextInfo contextInfo, String contextId, Class<D> repositoryEntityType, Trackable example) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.cache
Modifier and TypeMethodDescriptionprotected void
DataTrackingKeyGen.ApplicationKeyGenerator.addContextInfoDataToKey
(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected void
DataTrackingKeyGen.ApplicationWithLocaleKeyGenerator.addContextInfoDataToKey
(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected void
DataTrackingKeyGen.CatalogKeyGenerator.addContextInfoDataToKey
(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected void
DataTrackingKeyGen.CatalogWithLocaleKeyGenerator.addContextInfoDataToKey
(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected void
DataTrackingKeyGen.TenantKeyGenerator.addContextInfoDataToKey
(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected void
DataTrackingKeyGen.TenantWithLocaleKeyGenerator.addContextInfoDataToKey
(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) void
SandboxVisibleCacheEnabledContextInfoCustomizer.customize
(ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.cache.marketplace.vendor
Modifier and TypeMethodDescriptionvoid
CatalogVendorAwareCacheKeyEnhancer.enhanceCacheKeyWithVendorConsiderations
(com.fasterxml.jackson.databind.node.ObjectNode cacheKey, ContextInfo contextInfo) This method is specifically intended to determine vendor-privileges available for the vendor which theContextRequest.getCatalog()
isrelated to
.void
DefaultVendorAwareCacheKeyEnhancer.enhanceCacheKeyWithVendorConsiderations
(com.fasterxml.jackson.databind.node.ObjectNode cacheKey, ContextInfo contextInfo) void
VendorAwareCacheKeyEnhancer.enhanceCacheKeyWithVendorConsiderations
(com.fasterxml.jackson.databind.node.ObjectNode cacheKey, ContextInfo contextInfo) Typically, implementations of this method should load the current policy requirements and leverageVendorAwareTrackablePolicyUtils
to determine relevant restrictions/restricted-privileges available to the current authentication, and add those details to the provided cache key node. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.context
Modifier and TypeMethodDescriptionContextInfoWebRequestResolver.resolveContextInfo
(@NonNull org.springframework.web.context.request.NativeWebRequest req, @NonNull ContextRequest contextRequest, @NonNull OperationType operationType, org.springframework.core.MethodParameter methodParameter) Builds aContextInfo
with the givencontextRequest
andoperationType
, with additional fields populated from data gathered inreq
.ContextInfoWebRequestResolver.resolveContextInfo
(@NonNull org.springframework.web.context.request.NativeWebRequest req, @NonNull OperationType operationType, org.springframework.core.MethodParameter methodParameter) A convenience method that builds both aContextInfo
and itsContextRequest
from the given web request.ContextInfo.withOperationType
(ContextInfo info, OperationType type) Creates a new ContextInfo and sets the operation type.Modifier and TypeMethodDescriptionprotected void
ContextInfoWebRequestResolver.applyCustomizers
(@NonNull ContextInfo contextInfo, org.springframework.core.MethodParameter methodParameter, @NonNull org.springframework.web.context.request.NativeWebRequest webRequest) protected void
ContextInfoWebRequestResolver.applyPreviewBehaviorIfPossible
(org.springframework.web.context.request.NativeWebRequest req, ContextInfo response) ContextInfo.QueryInfluencer.buildFilter
(Class<?> entityBeingRead, PolicyInformation currentPolicyRequirements, ContextInfo contextInfo) Produce aNode
filter string that theNarrowExecutor
can parse and add as a predicate for the query it is currently processing.void
ContextInfoCustomizer.customize
(ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) Customize any of the settings on the passed inContextInfo
instance.static <P> P
ContextUtility.doWithActiveCheck
(Supplier<P> function, ContextInfo contextInfo) Similar toContextUtility.forceDoWithActiveCheck(Supplier, ContextInfo)
, except the state is not forced, nor is it immutable for the duration of the call.static <P> P
ContextUtility.doWithoutActiveCheck
(Supplier<P> function, ContextInfo contextInfo) Similar toContextUtility.forceDoWithoutActiveCheck(Supplier, ContextInfo)
, except the state is not forced, nor is it immutable for the duration of the call.static <P> P
ContextUtility.forceDoWithActiveCheck
(Supplier<P> function, ContextInfo contextInfo) Force active date checking to be enabled during this flow.static <P> P
ContextUtility.forceDoWithoutActiveCheck
(Supplier<P> function, ContextInfo contextInfo) Force active date checking to be disabled during this flow.ContextInfo.withOperationType
(ContextInfo info, OperationType type) Creates a new ContextInfo and sets the operation type.ModifierConstructorDescriptionContextInfo
(ContextInfo contextInfo) Create a copy of an existing ContextInfo, including a copy of itsContextRequest
. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.filtering
Modifier and TypeMethodDescriptionNarrowExecutor.QueryInfo.getContextInfo()
The request context information (sandbox, application, catalog)Modifier and TypeMethodDescriptionvoid
ActiveDateFilteringEnabledContextInfoCustomizer.customize
(ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) ModifierConstructorDescriptionQueryInfo
(QueryContainer queryContainer, boolean isLimiting, boolean isCountQuery, boolean isExistsQuery, boolean isDeleteQuery, boolean isCollectionQuery, boolean isPageQuery, boolean isStreamQuery, ContextInfo contextInfo, Class<?> typeToRead, boolean isExplicitType) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.mapping
Modifier and TypeMethodDescriptionDefaultTrackableDomainMapperMemberSupport.buildChangeDetailBefore
(ContextInfo contextInfo, Trackable repositoryDomain, String propertyName, PropertyTypeInfo propertyTypeInfo, String businessPropertyName) TrackableDomainMapperMemberSupport.buildChangeDetailBefore
(ContextInfo contextInfo, Trackable repositoryDomain, String propertyName, PropertyTypeInfo propertyTypeInfo, String businessPropertyName) Construct aChangeDetail
instance that represents the value of soon-to-be dirty field before the mutating change is applied.ContextStateBuilder.buildContextState
(Trackable domain, ContextInfo contextInfo) BuildsContextState information
for aContextStateAware business instance
corresponding to the givenTrackable domain instance
that can be inspected for additional metadata around the entity in relation to the context of the requester.<P> void
DefaultTrackableDomainMapperMemberSupport.buildContextState
(Trackable domain, P business, ContextInfo contextInfo, org.modelmapper.ModelMapper fromMeMapper) <P> void
TrackableDomainMapperMemberSupport.buildContextState
(Trackable domain, P business, ContextInfo contextInfo, org.modelmapper.ModelMapper fromMeMapper) Add inContextState
information to the business domain that can be inspected for additional metadata around the entity in relation to the context of the requester.protected <D extends Trackable>
List<ChangeDetail>ModelMapperDomainMapperMember.buildDetailsBefore
(D repositoryDomain, ContextInfo contextInfo, org.modelmapper.TypeMap<?, ?> repositoryTypeMap) void
DefaultTrackableDomainMapperMemberSupport.buildTracking
(ContextInfo contextInfo, Trackable domainInstance, List<ChangeDetail> details) void
TrackableDomainMapperMemberSupport.buildTracking
(ContextInfo contextInfo, Trackable domainInstance, List<ChangeDetail> details) Compile theTracking
information for a new change<P> P
DefaultDomainMapperManager.convertFromPersistentDomain
(Object domain, ContextInfo contextInfo) default <P> P
DomainMapperManager.convertFromPersistentDomain
(Object domain, ContextInfo contextInfo) Similar toDomainMapperManager.fromRepositoryDomain(Object, Class, ContextInfo)
, but doesn't require the caller to know the business domain type.<D> D
BasicAuditDomainMapperMember.deleteMap
(D repositoryDomain, ContextInfo contextInfo) <D> D
DefaultDomainMapperManager.deleteMap
(D repositoryDomain, ContextInfo contextInfo) default <D> D
DomainMapper.deleteMap
(D repositoryDomain, ContextInfo contextInfo) In cases where deletion actually results in a modified state to persist (e.g.<D> D
ModelMapperDomainMapperMember.deleteMap
(D repositoryDomain, ContextInfo contextInfo) protected boolean
ContextStateBuilder.determineApplicationContextStateMutability
(Trackable domain, ContextInfo contextInfo) Determines whether the domain is mutable given the requesting context based on the application and tenancy state of the domain and context.protected boolean
AlwaysMutableContextStateBuilder.determineContextStateMutability
(Trackable domain, ContextInfo contextInfo) protected boolean
ContextStateBuilder.determineContextStateMutability
(Trackable domain, ContextInfo contextInfo) Determines whether the domain is mutable given the requesting context.protected boolean
ContextStateBuilder.determinePolicyContextStateMutability
(Trackable domain, ContextInfo contextInfo) Determines whether the domain is mutable given the requesting context based on permissions and policy validation.static <P> P
EntityUtils.divert
(ContextInfo contextInfo, OperationType type, Function<ContextInfo, P> op) Divert a call to the functionop
with the given context info and operation type.<D> D
BasicAuditDomainMapperMember.fromBusinessDomain
(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) <D> D
ChangeContainerOverridableDomainMapperMember.fromBusinessDomain
(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) <D> D
CreateSetupDomainMapperMember.fromBusinessDomain
(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) Autogenerates a ULID context ID for the repository domain if the context is a create operation.<D> D
DefaultDomainMapperManager.fromBusinessDomain
(Object businessDomain, Class<D> repositoryDomainType, ContextInfo contextInfo) default <D> D
DomainMapperManager.fromBusinessDomain
(Object businessDomain, Class<D> repositoryDomainType, ContextInfo contextInfo) Map and return a populated repository domain class instance, based on information provided in a business domain instance.default <D> D
DomainMapperMember.fromBusinessDomain
(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) Map and return a populated repository domain instance, based on information provided in a business domain.<D> D
ModelMapperDomainMapperMember.fromBusinessDomain
(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) <D> D
UpdateValidationDomainMapperMember.fromBusinessDomain
(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) Validates the identifier value state for a mutation request.<P> P
DefaultDomainMapperManager.fromRepositoryDomain
(BusinessTypeAware repositoryDomain, ContextInfo contextInfo) <P> P
DefaultDomainMapperManager.fromRepositoryDomain
(Object repositoryDomain, Class<P> businessDomainType, ContextInfo contextInfo) <P> P
DomainMapperManager.fromRepositoryDomain
(BusinessTypeAware repositoryDomain, ContextInfo contextInfo) Map and return a populated business domain instance, based on information provided in a repository domain instance.default <P> P
DomainMapperManager.fromRepositoryDomain
(Object repositoryDomain, Class<P> businessDomainType, ContextInfo contextInfo) Map and return a populated business domain instance, based on information provided in a repository domain instance.default <P> P
DomainMapperMember.fromRepositoryDomain
(Object repositoryDomain, P businessDomain, ContextInfo contextInfo) Map and return a populated business domain instance, based on information provided in a repository domain instance.<P> P
ModelMapperDomainMapperMember.fromRepositoryDomain
(Object repositoryDomain, P businessDomain, ContextInfo contextInfo) <P> P
DefaultDomainMapperManager.fromRepositoryDomainByExample
(Object repositoryDomain, P example, ContextInfo contextInfo) default <P> P
DomainMapperManager.fromRepositoryDomainByExample
(Object repositoryDomain, P example, ContextInfo contextInfo) Map and return a populated business domain instance, based on information provided in a repository domain instance.DefaultTrackableDomainMapperMemberSupport.handleDelete
(Trackable repositoryDomain, ContextInfo contextInfo) TrackableDomainMapperMemberSupport.handleDelete
(Trackable repositoryDomain, ContextInfo contextInfo) Perform a mapping operation that will either create a special delete sandbox state for a domain instance, or will archive an instance.static boolean
EntityUtils.isCreate
(Object entity, ContextInfo contextInfo) boolean
DefaultTrackableDomainMapperMemberSupport.isMappingResetRequired
(Trackable domainInstance, ContextInfo contextInfo) boolean
TrackableDomainMapperMemberSupport.isMappingResetRequired
(Trackable domainInstance, ContextInfo contextInfo) Whether or not the id will be reset during modify or delete mapping.protected <D,
P> D ModelMapperDomainMapperMember.mapToRepositoryDomain
(D repositoryDomain, P businessDomain, ContextInfo contextInfo, org.modelmapper.ModelMapper mapper) protected <D extends Trackable,
P>
booleanModelMapperDomainMapperMember.mapWithTracking
(D repositoryDomain, P modifications, ContextInfo contextInfo, org.modelmapper.ModelMapper mapper) During the mapping operation for properties between the payload and the domain, this will examine the before and after state and compileChangeDetail
instances to include in theTracking
state.<D,
P> D BasicAuditDomainMapperMember.modifyMap
(D repositoryDomain, P businessDomain, ContextInfo contextInfo, boolean allowNull) <D,
P> D ChangeContainerOverridableDomainMapperMember.modifyMap
(D repositoryDomain, P businessDomain, ContextInfo contextInfo, boolean allowNull) <D,
P> D DefaultDomainMapperManager.modifyMap
(D repositoryDomain, P businessDomain, ContextInfo contextInfo, boolean allowNull) default <D,
P> D DomainMapper.modifyMap
(D repositoryDomain, P businessDomain, ContextInfo contextInfo, boolean allowNull) Perform a mapping operation from business domain instance to persistence specific instance, presumably modifying the state of the persistence specific instance.<D,
P> D ModelMapperDomainMapperMember.modifyMap
(D repositoryDomain, P businessDomain, ContextInfo contextInfo, boolean allowNull) <D,
P> D UpdateValidationDomainMapperMember.modifyMap
(D repositoryDomain, P businessDomain, ContextInfo contextInfo, boolean allowNull) Validates the identifier value state for a mutation request.default void
ModelMapperMappable.postFromMe
(ContextInfo contextInfo, Object businessDomain) Lifecycle method that is executed after mapping occurs from a repository entity to a business domain.default void
ModelMapperMappable.postToMe
(ContextInfo contextInfo, Object businessDomain) Lifecycle method that is executed after mapping occurs from a business domain to a repository entity.default void
ModelMapperMappable.preFromMe
(ContextInfo contextInfo, Object businessDomain) This is a lifecycle method and allows for any logic to be executed prior to the mapping occuring.default void
ModelMapperMappable.preToMe
(ContextInfo contextInfo, Object businessDomain) This is a lifecycle method and allows for any logic to be executed prior to the mapping occuring.<P> P
DefaultDomainMapperManager.process
(Object repositoryDomain, ContextInfo contextInfo) <P> List<P>
DefaultDomainMapperManager.process
(List<?> repositoryDomain, ContextInfo contextInfo) <P> Stream<P>
DefaultDomainMapperManager.process
(Stream<?> repositoryDomain, ContextInfo contextInfo) <P> org.springframework.data.domain.Page<P>
DefaultDomainMapperManager.process
(org.springframework.data.domain.Page<?> repositoryDomain, ContextInfo contextInfo) <P> P
DomainMapperManager.process
(Object repositoryDomain, ContextInfo contextInfo) Execute both theDomainMapperMember.fromRepositoryDomain(Object, Object, ContextInfo)
pipeline andPostMapper.transform(Object, Object, ContextInfo)
pipeline in a single call.<P> List<P>
DomainMapperManager.process
(List<?> repositoryDomain, ContextInfo contextInfo) Execute both theDomainMapperMember.fromRepositoryDomain(Object, Object, ContextInfo)
pipeline andPostMapper.transform(List, List, ContextInfo)
pipeline in a single call.<P> Stream<P>
DomainMapperManager.process
(Stream<?> repositoryDomain, ContextInfo contextInfo) Execute both theDomainMapperMember.fromRepositoryDomain(Object, Object, ContextInfo)
pipeline andPostMapper.transform(List, List, ContextInfo)
pipeline in a single call.<P> org.springframework.data.domain.Page<P>
DomainMapperManager.process
(org.springframework.data.domain.Page<?> repositoryDomain, ContextInfo contextInfo) Execute both theDomainMapperMember.fromRepositoryDomain(Object, Object, ContextInfo)
pipeline andPostMapper.transform(List, List, ContextInfo)
pipeline in a single call.protected <D extends Trackable>
booleanModelMapperDomainMapperMember.shouldBuildChangeDetails
(D repositoryDomain, ContextInfo contextInfo) Determine if dirty change details should be built for this domain.protected boolean
CreateSetupDomainMapperMember.shouldContextIdBeGenerated
(IdAware.Id id, String contextId, ContextInfo contextInfo) Determines whether the context ID should be generated by the system for the givenrepositoryDomain
entity.<P,
D> void DefaultDomainMapperManager.transform
(List<P> projections, List<D> entities, ContextInfo contextInfo) default <P,
D> void PostMapper.transform
(List<P> projections, List<D> entities, ContextInfo contextInfo) Perform any required modifications to the list of projections.default <P,
D> void PostMapper.transform
(P projection, D entity, ContextInfo contextInfo) Perform any required modifications to the list of projections.Modifier and TypeMethodDescriptionstatic <P> P
EntityUtils.divert
(ContextInfo contextInfo, OperationType type, Function<ContextInfo, P> op) Divert a call to the functionop
with the given context info and operation type. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.mapping.money
Modifier and TypeMethodDescriptiondefault boolean
CurrencyContextProvider.canHandle
(Object source, ContextInfo contextInfo) Whether or not this can handle the resolution for the given source.<P> P
MonetaryMapperMember.fromRepositoryDomain
(Object repositoryDomain, P businessDomain, ContextInfo contextInfo) Deprecated.com.broadleafcommerce.money.CurrencyContext
CompositeCurrencyContextProvider.getContext
(Object source, ContextInfo contextInfo) com.broadleafcommerce.money.CurrencyContext
CurrencyContextProvider.getContext
(T source, ContextInfo contextInfo) Get the currency from a source objectstatic javax.money.CurrencyUnit
CurrentCurrencyUtils.resolveCurrentCurrency
(ContextInfo contextInfo) Returns theCurrencyUnit
that matches thegetDefaultCurrency()
.static javax.money.CurrencyUnit
CurrentCurrencyUtils.resolveCurrentCurrency
(Object currencySupplier, ContextInfo contextInfo) Returns theCurrencyUnit
that most closely matches the parameters provided. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.mapping.validation
Modifier and TypeMethodDescriptionboolean
EntityValidator.supports
(Class<?> serviceClass, ContextInfo context) Whether or not this validator supports validating the given service classboolean
EntityValidatorManager.supports
(Class<?> clazz, ContextInfo context) default void
EntityValidator.validate
(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) Default validation that handles create, replace and update.void
EntityValidatorManager.validate
(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) default void
EntityValidator.validateForCreate
(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) Validate a new repositoryInstance being added based on its businessInstance representationvoid
EntityValidatorManager.validateForCreate
(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) default void
EntityValidator.validateForReplace
(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) Validate a replacement for the repositoryInstance.void
EntityValidatorManager.validateForReplace
(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) default void
EntityValidator.validateForUpdate
(Object updatedBusinessInstance, org.springframework.validation.Errors errors, ContextInfo context) Validate an update to a repositoryInstance based upon the business representation of the result of applying the update.void
EntityValidatorManager.validateForUpdate
(Object updatedBusinessInstance, org.springframework.validation.Errors errors, ContextInfo context) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.mapping.validation.rules
Modifier and TypeMethodDescriptionboolean
RuleValidatorManager.supports
(Class<?> serviceClass, ContextInfo context) void
RuleValidatorManager.validate
(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.marketplace.service
Modifier and TypeMethodDescriptionlong
CommonMarketplaceApplicationCatalogService.countByApplication
(String application, ContextInfo contextInfo) long
DefaultCommonMarketplaceApplicationCatalogService.countByApplication
(String application, ContextInfo contextInfo) CommonMarketplaceApplicationCatalogService.findByApplicationAndCatalog
(String application, String catalog, ContextInfo contextInfo) DefaultCommonMarketplaceApplicationCatalogService.findByApplicationAndCatalog
(String application, String catalog, ContextInfo contextInfo) CommonMarketplaceApplicationCatalogService.findByCatalogIn
(Collection<String> catalogs, ContextInfo contextInfo) DefaultCommonMarketplaceApplicationCatalogService.findByCatalogIn
(Collection<String> catalogs, ContextInfo contextInfo) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.marketplace.vendor.visibility
Modifier and TypeMethodDescriptionDefaultVendorVisibilityManager.createVendorNarrowingFilter
(@NonNull Class<?> persistedDomainEntityTypeBeingRead, @NonNull Set<String> restrictedVendorRefs, ContextInfo contextInfo) VendorVisibilityHandler.createVendorNarrowingFilter
(Set<String> restrictedVendorRefs, ContextInfo contextInfo) For the persisted domain entity type(s) supported by this handler, build aNode
filter string that can be used in queries for those entities that restricts results to only include data from therestrictedVendorRefs
.VendorVisibilityManager.createVendorNarrowingFilter
(Class<?> persistedDomainEntityTypeBeingRead, Set<String> restrictedVendorRefs, ContextInfo contextInfo) Given apersistedDomainEntityTypeBeingRead
that is being read in a query, return aNode
filter string for it that restricts results to only include data from therestrictedVendorRefs
.DefaultVendorVisibilityManager.getAssociatedVendorRef
(Object persistedDomainEntity, ContextInfo contextInfo) VendorVisibilityHandler.getAssociatedVendorRef
(Object persistedDomainEntity, ContextInfo contextInfo) Given apersistedDomainEntity
, determine what vendor it is associated to (if any).VendorVisibilityManager.getAssociatedVendorRef
(Object persistedDomainEntity, ContextInfo contextInfo) Given apersistedDomainEntity
, determine what vendor it is associated to (if any).boolean
DefaultVendorVisibilityManager.isEntityMutableByVendorRestrictions
(@NonNull Object persistedDomainEntity, @NonNull Set<String> restrictedVendorRefs, ContextInfo contextInfo) boolean
VendorVisibilityHandler.isEntityMutableByVendorRestrictions
(Object persistedDomainEntity, Set<String> restrictedVendorRefs, ContextInfo contextInfo) Given apersistedDomainEntity
, report whether that entity is mutable by the given vendor restrictions.boolean
VendorVisibilityManager.isEntityMutableByVendorRestrictions
(Object persistedDomainEntity, Set<String> restrictedVendorRefs, ContextInfo contextInfo) Given apersistedDomainEntity
, report whether that entity is mutable by the given vendor restrictions. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.marketplace.vendor.visibility.catalog
Modifier and TypeMethodDescriptionCatalogDiscriminatedEntityVendorVisibilityHandler.createVendorNarrowingFilter
(@NonNull Set<String> restrictedVendorRefs, ContextInfo contextInfo) Builds a filter ontracking.catalog.contextId
that serves as an "upper bound" to possible catalogs the results can come from.CatalogDiscriminatedEntityVendorVisibilityHandler.getAssociatedVendorRef
(Object persistedDomainEntity, ContextInfo contextInfo) boolean
CatalogDiscriminatedEntityVendorVisibilityHandler.isEntityMutableByVendorRestrictions
(@NonNull Object persistedDomainEntity, @NonNull Set<String> restrictedVendorRefs, ContextInfo contextInfo) This method always returns true. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.marketplace.vendor.visibility.narrowing
Modifier and TypeMethodDescriptionvoid
VendorNarrowingContextInfoCustomizer.customize
(ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.messaging.search
Modifier and TypeMethodDescriptionboolean
SingleIndexRequestMessageFactory.indexActive
(TrackableBehaviorUtil util, Object entity, ContextInfo context) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.messaging.search.mapping
Modifier and TypeMethodDescription<D> D
SingleIndexRequestNotificationStateMapperMember.deleteMap
(D repositoryDomain, ContextInfo contextInfo) <D> D
SingleIndexRequestNotificationStateMapperMember.fromBusinessDomain
(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) protected boolean
SingleIndexRequestNotificationStateMapperMember.isSupported
(Object repositoryDomain, ContextInfo contextInfo) protected <D> D
SingleIndexRequestNotificationStateMapperMember.mapInternal
(D repositoryDomain, ContextInfo contextInfo) <D,
P> D SingleIndexRequestNotificationStateMapperMember.modifyMap
(D repositoryDomain, P businessDomain, ContextInfo contextInfo, boolean allowNull) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.monitor
Modifier and TypeMethodDescriptionvoid
SpanContextInfoCustomizer.customize
(ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.policy
Modifier and TypeMethodDescriptionprotected OperationType
DefaultPolicyAspectProcessor.narrowType
(PolicyInformation policy, ContextInfo contextInfo) Figure out the OperationType to use, given the policy and contextInfo.PolicyEvaluator.validate
(Map<Integer, Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType) Validate security context required to execute a method annotated withPolicy
.default PolicyResponse
PolicyUtils.validatePermissions
(String[] permissions, ContextInfo contextInfo) Determine if the current security context (e.g.PolicyResponse.with
(String reason, Map<String, Object> authenticationDetails, ContextInfo contextInfo) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.policy.trackable
Modifier and TypeMethodDescriptionprotected PolicyResponse
DefaultTrackablePolicyUtils.invalidPolicyResponse
(PolicyResponse response, String reason, ContextInfo contextInfo) protected boolean
DefaultTrackablePolicyUtils.isContextVisible
(ContextInfo contextInfo) boolean
DefaultTrackablePolicyUtils.isMutationPossibleForContext
(ContextInfo contextInfo) boolean
TrackablePolicyUtils.isMutationPossibleForContext
(ContextInfo contextInfo) Return whether or not the currently identified user has the necessary assigned tenant relationships to make a mutating operation possible given the requested application, and/or catalog, and/or lack thereof.protected boolean
DefaultTrackablePolicyUtils.isSandboxVisible
(ContextInfo contextInfo) TrackableEntityPolicyEvaluator.validate
(Map<Integer, Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType) protected boolean
DefaultTrackablePolicyUtils.validateCatalogInsert
(@NonNull ContextInfo contextInfo) If a catalog discriminated entity, validate that the current user is capable of inserting an entity via the application and catalog requested in the context.DefaultTrackablePolicyUtils.validateContext
(ContextInfo contextInfo) DefaultTrackablePolicyUtils.validateContext
(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType) TrackablePolicyUtils.validateContext
(ContextInfo contextInfo) Review theContextInfo
parameter for valid tenant user membership and valid catalog visibility based on the currentAuthentication
and requested tenant information in the contextInfo.TrackablePolicyUtils.validateContext
(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType) Review theContextInfo
parameter for valid tenant user membership and valid catalog visibility based on the currentAuthentication
and requested tenant information in the contextInfo.DefaultTrackablePolicyUtils.validateDelete
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) TrackablePolicyUtils.validateDelete
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate that before deleting (if the catalog discrimination is in play) that the item's catalog is both visible to the current application, and mutable.protected PolicyResponse
DefaultTrackablePolicyUtils.validateEntityOperation
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType) protected PolicyResponse
DefaultTrackablePolicyUtils.validateEntityUpdate
(Trackable entity, @NonNull ContextInfo contextInfo) Check update validity for a given entity instanceprotected PolicyResponse
DefaultTrackablePolicyUtils.validateGlobalMutateToInheritedCatalog
(Trackable entity, ContextInfo contextInfo) DefaultTrackablePolicyUtils.validateInsert
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) TrackablePolicyUtils.validateInsert
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate that before inserting (if catalog discrimination is in play and the current entity is catalog discriminatable) that the current catalog target for insertion is mutable.protected PolicyResponse
DefaultTrackablePolicyUtils.validateOperation
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) protected PolicyResponse
DefaultTrackablePolicyUtils.validateOperation
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType) DefaultTrackablePolicyUtils.validateOther
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) TrackablePolicyUtils.validateOther
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate that before misc operation, the required permission is availableDefaultTrackablePolicyUtils.validatePermission
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) DefaultTrackablePolicyUtils.validatePermission
(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo) TrackablePolicyUtils.validatePermission
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate the permission against the granted authorities of the currentAuthentication
.TrackablePolicyUtils.validatePermission
(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo) Validate the permission against the granted authorities of the currentAuthentication
.DefaultTrackablePolicyUtils.validateRead
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) TrackablePolicyUtils.validateRead
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate that before reading, the required permission is available.protected PolicyResponse
TrackableEntityPolicyEvaluator.validateRequestedOperation
(Map<Integer, Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType, TrackablePolicyUtils trackablePolicyUtils) DefaultTrackablePolicyUtils.validateUpdate
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) TrackablePolicyUtils.validateUpdate
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate that before updating (if the catalog discrimination is in play) that the item's catalog is both visible to the current application, and mutable. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor
Modifier and TypeMethodDescriptionprotected OperationType
VendorAwareTrackablePolicyUtils.determineRequiredOperationType
(PolicyInformation policy, ContextInfo contextInfo) This is copied fromDefaultPolicyAspectProcessor.narrowType(PolicyInformation, ContextInfo)
.VendorAwareTrackablePolicyUtils.filterToVendorRestrictionsMatchingPolicyRequirements
(@NonNull Set<String> restrictedVendorRefs, @NonNull Map<String, Set<String>> vendorRefsByRestrictedAuthority, @NonNull PolicyInformation policyRequirements, ContextInfo contextInfo) An authentication may have restrictions, but it's possible not all of them have the authorities required by a resource.VendorAwareTrackablePolicyUtils.getVendorPrivileges
(@NonNull org.springframework.security.core.Authentication authentication, ContextInfo contextInfo) Obtains the summary of vendor privileges from the given authentication and context.protected boolean
VendorAwareTrackablePolicyUtils.isCatalogVisibleByVendorRestrictions
(@NonNull ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType requiredOperationType) Reports whether the catalog referenced in thecontextInfo
is visible by the vendor restrictions in the current authentication.VendorAwareTrackablePolicyUtils.validateContext
(ContextInfo contextInfo) VendorAwareTrackablePolicyUtils.validateContext
(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType) Performs similar validation toDefaultTrackablePolicyUtils.validateContext(ContextInfo, String[], PermissionMatchingStrategy, OperationType)
, but also considers whether the catalog in thecontextInfo
is visible by the current authentication's vendor restrictions.protected PolicyResponse
VendorAwareTrackablePolicyUtils.validateEntityMutableByCurrentVendorRestrictions
(Trackable entity, ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType) Checks whether the givenentity
being mutated is actually mutable given the current authentication's vendor privileges and provided policy requirements.protected PolicyResponse
VendorAwareTrackablePolicyUtils.validateEntityOperation
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType) This is the method used byDefaultTrackablePolicyUtils.validateUpdate(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
andDefaultTrackablePolicyUtils.validateDelete(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
to validate an entity can be updated/deleted by the current authentication, so it is overridden here to add consideration for vendor restrictions.VendorAwareTrackablePolicyUtils.validateInsert
(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) OverridesDefaultTrackablePolicyUtils.validateInsert(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
to add behavior that checks whether the entity can be inserted by the current authentication's vendor restrictions.VendorAwareTrackablePolicyUtils.validatePermission
(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo) OverridesDefaultTrackablePolicyUtils.validatePermission(String[], PermissionMatchingStrategy, OperationType, ContextInfo)
to give special consideration to vendor restrictions and vendor-restricted authorities.VendorAwareTrackablePolicyUtils.validatePermissions
(String[] permissions, ContextInfo contextInfo) Overridden fromPolicyUtils.validatePermissions(String[], ContextInfo)
to give special consideration to vendor restrictions and vendor-restricted authorities. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor.support
Modifier and TypeMethodDescriptionAuthenticationVendorPrivilegesUtility.getVendorPrivileges
(@NonNull org.springframework.security.core.Authentication authentication, org.springframework.core.convert.converter.Converter<org.springframework.security.core.Authentication, Map<String, Object>> authenticationAttributesConverter, ContextInfo contextInfo) Extracts the summary of vendor privileges from the given authentication and configurations inAuthenticationVendorPrivilegesUtility.vendorAuthenticationPrivilegeProperties
. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.service
Modifier and TypeMethodDescriptionMutationNotifyEvent.getContext()
NotificationInitializeEvent.getContext()
Modifier and TypeMethodDescriptionprotected <P> Trackable
CrudEntityHelper.applyReplace
(String entityToReplaceId, P replacement, Map<String, Trackable> foundEntitiesByContextId, List<BulkPersistenceResponse.PersistenceFailure<P>> failures, ContextInfo contextInfo) protected <P> org.springframework.data.util.Pair<P,
Trackable> CrudEntityHelper.applyUpdate
(String entityToUpdateId, P change, Map<String, Trackable> foundEntitiesByContextId, List<BulkPersistenceResponse.PersistenceFailure<P>> failures, ContextInfo contextInfo) protected P
BaseCrudEntityService.convertFromPersistentDomain
(Trackable domain, ContextInfo contextInfo) <P> P
CrudEntityHelper.convertFromPersistentDomain
(Trackable domain, ContextInfo contextInfo) Convenience method to use theCrudEntityHelper.mapper
to convert a persistent domain instance to its business equivalent.protected Trackable
BaseCrudEntityService.convertToPersistentDomain
(P businessInstance, Class<Trackable> persistentType, ContextInfo contextInfo) <P> Trackable
CrudEntityHelper.convertToPersistentDomain
(P businessInstance, Class<Trackable> persistentType, ContextInfo context) Convenience method to use theCrudEntityHelper.mapper
to convert a business domain instance to its persistent equivalent.BaseCrudEntityService.create
(P businessInstance, ContextInfo context) <P> P
CrudEntityHelper.create
(P businessInstance, ContextInfo context, TrackableRepository<Trackable> repository) Create an instance of an entity based on a business instance containing relavant property values.CrudEntityService.create
(P businessInstance, ContextInfo context) Create an instance of an entity based on a business instance containing relavant property values.BaseCrudEntityService.createAll
(List<P> businessInstances, ContextInfo context) <P> List<P>
CrudEntityHelper.createAll
(List<P> businessInstances, ContextInfo context, TrackableRepository<Trackable> repository) CrudEntityService.createAll
(List<P> businessInstances, ContextInfo context) Create multiple narrowed instances of an entity at once based on the business instances containing relevant property values.BaseCrudEntityService.createAllAllowingPartialSuccess
(List<P> businessInstances, ContextInfo context) <P> BulkPersistenceResponse<P>
CrudEntityHelper.createAllAllowingPartialSuccess
(List<P> businessInstances, ContextInfo context, TrackableRepository<Trackable> repository) CrudEntityService.createAllAllowingPartialSuccess
(List<P> businessInstances, ContextInfo context) Creates multiple narrowed instances of an entity at once based on the business instances containing relevant property values.void
BaseCrudEntityService.delete
(String id, ContextInfo context) void
CrudEntityHelper.delete
(String id, ContextInfo context, TrackableRepository<Trackable> repository) Perform a delete operation on the entity identified by the context id.void
CrudEntityService.delete
(String id, ContextInfo context) Perform a delete operation on the entity identified by the context id.void
ChangeNotifier.notify
(Trackable domain, ContextInfo context, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository) Notify the async message fabric of the changevoid
CrudEntityHelper.notify
(Trackable domain, ContextInfo context, @NonNull com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository) Notify the system of the change.CrudEntityHelper.prepare
(Trackable updated, ContextInfo context, @NonNull OperationType operationType) PropagationIntegrator.prepare
(Trackable domain, ContextInfo context, OperationType operationType) Prepare aTrackable
entity for propagation, if applicable.void
CrudEntityHelper.propagateIfApplicable
(Trackable updated, ContextInfo context, @NonNull OperationType operationType, @NonNull TrackableRepository<Trackable> repository, String propagationId) void
PropagationIntegrator.propagateIfApplicable
(Trackable domain, ContextInfo context, OperationType operationType, TrackableRepository<Trackable> repository, String propagationId) Initiate a catalog propagation for the change.BaseCrudEntityService.readAll
(ContextInfo context) org.springframework.data.domain.Page<P>
BaseCrudEntityService.readAll
(org.springframework.data.domain.Pageable pageable, ContextInfo context) BaseCrudEntityService.readAll
(org.springframework.data.domain.Sort sort, ContextInfo context) BaseRsqlCrudEntityService.readAll
(cz.jirutka.rsql.parser.ast.Node filters, ContextInfo context) org.springframework.data.domain.Page<P>
BaseRsqlCrudEntityService.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, ContextInfo context) BaseRsqlCrudEntityService.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, ContextInfo context) org.springframework.data.domain.Page<P>
BaseRsqlCrudEntityService.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, org.springframework.data.domain.Pageable pageable, ContextInfo context) <P> List<P>
CrudEntityHelper.readAll
(ContextInfo context, TrackableRepository<Trackable> repository) Read a list of narrowed instances in the form of the business instance.<P> org.springframework.data.domain.Page<P>
CrudEntityHelper.readAll
(org.springframework.data.domain.Pageable pageable, ContextInfo context, TrackableRepository<Trackable> repository) Read a page of narrowed instances in the form of the business instance.<P> List<P>
CrudEntityHelper.readAll
(org.springframework.data.domain.Sort sort, ContextInfo context, TrackableRepository<Trackable> repository) Read a list of narrowed instances in the form of the business instance.CrudEntityService.readAll
(ContextInfo context) Read a list of narrowed instances in the form of the business instance.org.springframework.data.domain.Page<P>
CrudEntityService.readAll
(org.springframework.data.domain.Pageable pageable, ContextInfo context) Read a page of narrowed instances in the form of the business instance.CrudEntityService.readAll
(org.springframework.data.domain.Sort sort, ContextInfo context) Read a list of narrowed instances in the form of the business instance.<P,
R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>>
List<P>RsqlCrudEntityHelper.readAll
(cz.jirutka.rsql.parser.ast.Node filters, ContextInfo context, R repository) Retrieve all domain instances using a structured query string to drive the query criteria.<P,
R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>>
org.springframework.data.domain.Page<P>RsqlCrudEntityHelper.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, ContextInfo context, R repository) Retrieve all domain instances using a structured query string to drive the query criteria.<P,
R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>>
List<P>RsqlCrudEntityHelper.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, ContextInfo context, R repository) Retrieve all domain instances using a structured query string to drive the query criteria.<P,
R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>>
org.springframework.data.domain.Page<P>RsqlCrudEntityHelper.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, org.springframework.data.domain.Pageable pageable, ContextInfo context, R repository) Retrieve all domain instances using a structured query string to drive the query criteria.RsqlCrudEntityService.readAll
(cz.jirutka.rsql.parser.ast.Node filters, ContextInfo context) Retrieve all domain instances using a structured query string to drive the query criteria.org.springframework.data.domain.Page<P>
RsqlCrudEntityService.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, ContextInfo context) Retrieve all domain instances using a structured query string to drive the query criteria.RsqlCrudEntityService.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, ContextInfo context) Retrieve all domain instances using a structured query string to drive the query criteria.org.springframework.data.domain.Page<P>
RsqlCrudEntityService.readAll
(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Sort sort, org.springframework.data.domain.Pageable pageable, ContextInfo context) Retrieve all domain instances using a structured query string to drive the query criteria.BaseCrudEntityService.readAllByContextId
(Iterable<String> ids, ContextInfo context) <P> Iterable<P>
CrudEntityHelper.readAllByContextId
(Iterable<String> ids, ContextInfo context, TrackableRepository<Trackable> repository) Retrieve all business instances based on a list of context ids.CrudEntityService.readAllByContextId
(Iterable<String> ids, ContextInfo context) Retrieve all business instances based on a list of context ids.BaseCrudEntityService.readByContextId
(String id, ContextInfo context) <P> P
CrudEntityHelper.readByContextId
(String id, ContextInfo context, TrackableRepository<Trackable> repository) Read a single instance of an entity in the form of a business domain.CrudEntityService.readByContextId
(String id, ContextInfo context) Read a single instance of an entity in the form of a business domain.BaseCrudEntityService.replace
(String id, P businessInstance, ContextInfo context) <P> P
CrudEntityHelper.replace
(String id, P businessInstance, ContextInfo context, TrackableRepository<Trackable> repository) Replace a single, narrowed instance of an entity based on a business instance containing relavant property values.CrudEntityService.replace
(String id, P businessInstance, ContextInfo context) Replace a single, narrowed instance of an entity based on a business instance containing relevant property values.BaseCrudEntityService.replaceAll
(List<Update<P>> replacements, ContextInfo context) <P> List<P>
CrudEntityHelper.replaceAll
(List<Update<P>> replacements, ContextInfo context, TrackableRepository<Trackable> repository) CrudEntityService.replaceAll
(List<Update<P>> replacements, ContextInfo context) Replace multiple narrowed instances of an entity at once based on the business instance containing relevant property values.BaseCrudEntityService.replaceAllAllowingPartialSuccess
(List<Update<P>> replacements, ContextInfo context) <P> BulkPersistenceResponse<P>
CrudEntityHelper.replaceAllAllowingPartialSuccess
(List<Update<P>> replacements, ContextInfo context, TrackableRepository<Trackable> repository) CrudEntityService.replaceAllAllowingPartialSuccess
(List<Update<P>> replacements, ContextInfo context) Replace multiple narrowed instances of an entity at once based on the business instances containing relevant property values.BaseCrudEntityService.update
(String id, P businessInstance, ContextInfo context) <P> P
CrudEntityHelper.update
(String id, P businessInstance, ContextInfo context, TrackableRepository<Trackable> repository) Update a single, narrowed instance of an entity based on a business instance containing relevant property values.CrudEntityService.update
(String id, P businessInstance, ContextInfo context) Update a single, narrowed instance of an entity based on a business instance containing relevant property values.BaseCrudEntityService.updateAll
(List<Update<P>> updates, ContextInfo context) <P> List<P>
CrudEntityHelper.updateAll
(List<Update<P>> updates, ContextInfo context, TrackableRepository<Trackable> repository) CrudEntityService.updateAll
(List<Update<P>> updates, ContextInfo context) A bulk operation that updates all of the items managed by the backing repository in the form of the business entity containing property values.BaseCrudEntityService.updateAllAllowingPartialSuccess
(List<Update<P>> updates, ContextInfo context) <P> BulkPersistenceResponse<P>
CrudEntityHelper.updateAllAllowingPartialSuccess
(List<Update<P>> updates, ContextInfo context, TrackableRepository<Trackable> repository) CrudEntityService.updateAllAllowingPartialSuccess
(List<Update<P>> updates, ContextInfo context) Updates all of the items managed by the backing repository in the form of the business instances containing property values.BaseCrudEntityService.updateSort
(SortPositionRequest sortPositionRequest, ContextInfo context) <P> P
CrudEntityHelper.updateSort
(SortPositionRequest sortPositionRequest, ContextInfo context, TrackableRepository<Trackable> repository, SortPositionStrategy<P> sortPositionStrategy) Apply a sort field value changeCrudEntityService.updateSort
(SortPositionRequest sortPositionRequest, ContextInfo context) Apply a sort field value changeprotected <P> void
CrudEntityHelper.validateAllForCreate
(List<P> businessInstancesToValidate, ContextInfo contextInfo, List<P> valid, List<BulkPersistenceResponse.PersistenceFailure<P>> failed) Validates each of the given business instances for creation.protected <P> void
CrudEntityHelper.validateAllForCreateAndThrowIfError
(Iterable<P> businessInstances, ContextInfo contextInfo) protected <P> void
CrudEntityHelper.validateAllForReplace
(List<Update<P>> businessInstancesToValidate, ContextInfo contextInfo, List<Update<P>> valid, List<BulkPersistenceResponse.PersistenceFailure<P>> failed) Validates the business instance within eachUpdate
for replacement.protected <P> void
CrudEntityHelper.validateAllForReplaceAndThrowIfError
(Iterable<P> businessInstances, ContextInfo contextInfo) protected <P> void
CrudEntityHelper.validateAllForUpdate
(List<org.springframework.data.util.Pair<P, Trackable>> businessInstancesToValidate, ContextInfo contextInfo, List<org.springframework.data.util.Pair<P, Trackable>> valid, List<BulkPersistenceResponse.PersistenceFailure<P>> failed) Validates the business instance within each pair for update.protected <P> void
CrudEntityHelper.validateAllForUpdateAndThrowIfError
(Iterable<P> businessInstances, ContextInfo contextInfo) ModifierConstructorDescriptionMutationNotifyEvent
(Object source, Trackable domain, ContextInfo context, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository) NotificationInitializeEvent
(Object source, Trackable domain, ContextInfo context, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.service.scheduledjob
Modifier and TypeMethodDescriptionDefaultScheduledJobContextService.buildContextInfo
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType) Creates theContextInfo
for the specified scheduled job with the specified change operation andScheduledJobRef.getTenantId()
.ScheduledJobContextService.buildContextInfo
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType) Creates theContextInfo
for the specified scheduled job with the specified change operation.default ContextInfo
ScheduledJobContextService.buildCreateContextInfo
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Creates theContextInfo
for the specified scheduled job withOperationType.CREATE
change operation.default ContextInfo
ScheduledJobContextService.buildDeleteContextInfo
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Creates theContextInfo
for the specified scheduled job withOperationType.DELETE
change operation.default ContextInfo
ScheduledJobContextService.buildReadContextInfo
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Creates theContextInfo
for the specified scheduled job withOperationType.READ
change operation.default ContextInfo
ScheduledJobContextService.buildUpdateContextInfo
(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Creates theContextInfo
for the specified scheduled job withOperationType.UPDATE
change operation.protected ContextInfo
DefaultScheduledJobContextService.createContextInfo
(OperationType operationType) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.sort
Modifier and TypeMethodDescriptionprotected void
DecimalSplitSortPositionStrategy.updateAfterPositionSort
(SortPositionRequest sortPositionRequest, ContextInfo context, TrackableRepository<Trackable> repository, Sortable toUpdate, Sortable sortTransfer) Update when theSortPositionRequest.getPositionAfterContextId()
value is available.protected void
DecimalSplitSortPositionStrategy.updateBeforePositionSort
(SortPositionRequest sortPositionRequest, ContextInfo context, TrackableRepository<Trackable> repository, Sortable toUpdate, Sortable sortTransfer) Update when theSortPositionRequest.getPositionBeforeContextId()
value is available.protected void
DecimalSplitSortPositionStrategy.updateFirstPositionSort
(ContextInfo context, TrackableRepository<Trackable> repository, Sortable domain, Sortable sortTransfer) Update when theSortPositionRequest.getPositionAfterContextId()
is missing, which indicates that the request is to move the entity to the first position in the sorting group.DecimalSplitSortPositionStrategy.updateSort
(SortPositionRequest sortPositionRequest, ContextInfo context, DomainMapperManager mapper, TrackableRepository<Trackable> repository, ChangeNotifier notifier, PropagationIntegrator propagationIntegrator) default P
SortPositionStrategy.updateSort
(SortPositionRequest sortPositionRequest, ContextInfo context, DomainMapperManager mapper, TrackableRepository<Trackable> repository, ChangeNotifier notifier) Deprecated.SortPositionStrategy.updateSort
(SortPositionRequest sortPositionRequest, ContextInfo context, DomainMapperManager mapper, TrackableRepository<Trackable> repository, ChangeNotifier notifier, PropagationIntegrator propagationIntegrator) Apply a sort field value change -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.tenant.repository
Modifier and TypeMethodDescriptionlong
CommonMarketplaceApplicationCatalogRepository.countByApplication
(String application, ContextInfo contextInfo) CommonMarketplaceApplicationCatalogRepository.findByApplicationAndCatalog
(String application, String catalog, ContextInfo contextInfo) CommonMarketplaceApplicationCatalogRepository.findByCatalogIn
(Collection<String> catalogs, ContextInfo contextInfo) CommonCatalogRepository.findByVendorRefIn
(Collection<String> vendorRefs, ContextInfo contextInfo) Finds all catalogs directly associated to the givenvendorRefs
. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.tenant.service
Modifier and TypeMethodDescriptionDefaultCommonApplicationService.readByContextId
(String id, ContextInfo context) DefaultCommonCatalogService.readByContextId
(String contextId, ContextInfo context) CommonCatalogService.readByVendorRefs
(Set<String> vendorRefs, ContextInfo contextInfo) Finds all catalogs associated to the givenvendorRefs
viaCatalog.getVendorRef()
.DefaultCommonCatalogService.readByVendorRefs
(@NonNull Set<String> vendorRefs, ContextInfo contextInfo) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.web
Modifier and TypeMethodDescriptionProjectionReferencedApi.create
(javax.servlet.http.HttpServletRequest request, ContextInfo context, P req) void
ProjectionReferencedApi.delete
(javax.servlet.http.HttpServletRequest request, ContextInfo context, String id) org.springframework.data.domain.Page<P>
ProjectionReferencedApi.readAll
(javax.servlet.http.HttpServletRequest request, ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) ProjectionReferencedApi.readById
(javax.servlet.http.HttpServletRequest request, ContextInfo context, String id) ProjectionReferencedApi.replace
(javax.servlet.http.HttpServletRequest request, ContextInfo context, String id, P req) ProjectionReferencedApi.update
(javax.servlet.http.HttpServletRequest request, ContextInfo context, String id, P req)
SortPositionStrategy.updateSort(SortPositionRequest, ContextInfo, DomainMapperManager, TrackableRepository, ChangeNotifier, PropagationIntegrator)
instead to allow for instant propagation handling.