Uses of Class
com.broadleafcommerce.data.tracking.core.context.ContextInfo
Packages that use ContextInfo
Package
Description
-
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core
Methods in com.broadleafcommerce.data.tracking.core with parameters of type ContextInfoModifier and TypeMethodDescriptionTrackableRepository.archive(D entity, ContextInfo contextInfo) Archive a record so that it is no longer considered active and is filtered out of results.booleanTrackableRsqlFilterExecutor.exists(cz.jirutka.rsql.parser.ast.Node filters, ContextInfo contextInfo) Checks whether the data store contains elements that match the givenNode.booleanTrackableRepository.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 RSQLNodeto 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 RSQLNodeto 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 RSQLNodeto 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 RSQLNodeto 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 aBasicAuditableidentified 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
Methods in com.broadleafcommerce.data.tracking.core.cache with parameters of type ContextInfoModifier and TypeMethodDescriptionprotected voidDataTrackingKeyGen.ApplicationKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected voidDataTrackingKeyGen.ApplicationWithLocaleKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected voidDataTrackingKeyGen.CatalogKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected voidDataTrackingKeyGen.CatalogWithLocaleKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected voidDataTrackingKeyGen.TenantKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) protected voidDataTrackingKeyGen.TenantWithLocaleKeyGenerator.addContextInfoDataToKey(ContextInfo contextInfo, com.fasterxml.jackson.databind.node.ObjectNode key) voidSandboxVisibleCacheEnabledContextInfoCustomizer.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
Methods in com.broadleafcommerce.data.tracking.core.cache.marketplace.vendor with parameters of type ContextInfoModifier and TypeMethodDescriptionvoidCatalogVendorAwareCacheKeyEnhancer.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.voidDefaultVendorAwareCacheKeyEnhancer.enhanceCacheKeyWithVendorConsiderations(com.fasterxml.jackson.databind.node.ObjectNode cacheKey, ContextInfo contextInfo) voidVendorAwareCacheKeyEnhancer.enhanceCacheKeyWithVendorConsiderations(com.fasterxml.jackson.databind.node.ObjectNode cacheKey, ContextInfo contextInfo) Typically, implementations of this method should load the current policy requirements and leverageVendorAwareTrackablePolicyUtilsto 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
Methods in com.broadleafcommerce.data.tracking.core.context that return ContextInfoModifier and TypeMethodDescriptionContextInfoWebRequestResolver.resolveContextInfo(@NonNull org.springframework.web.context.request.NativeWebRequest req, @NonNull ContextRequest contextRequest, @NonNull OperationType operationType, org.springframework.core.MethodParameter methodParameter) Builds aContextInfowith the givencontextRequestandoperationType, 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 aContextInfoand itsContextRequestfrom the given web request.ContextInfo.withOperationType(ContextInfo info, OperationType type) Creates a new ContextInfo and sets the operation type.Methods in com.broadleafcommerce.data.tracking.core.context with parameters of type ContextInfoModifier and TypeMethodDescriptionprotected voidContextInfoWebRequestResolver.applyCustomizers(@NonNull ContextInfo contextInfo, org.springframework.core.MethodParameter methodParameter, @NonNull org.springframework.web.context.request.NativeWebRequest webRequest) protected voidContextInfoWebRequestResolver.applyPreviewBehaviorIfPossible(org.springframework.web.context.request.NativeWebRequest req, ContextInfo response) ContextInfo.QueryInfluencer.buildFilter(Class<?> entityBeingRead, PolicyInformation currentPolicyRequirements, ContextInfo contextInfo) Produce aNodefilter string that theNarrowExecutorcan parse and add as a predicate for the query it is currently processing.voidContextInfoCustomizer.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 inContextInfoinstance.static <P> PContextUtility.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> PContextUtility.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> PContextUtility.forceDoWithActiveCheck(Supplier<P> function, ContextInfo contextInfo) Force active date checking to be enabled during this flow.static <P> PContextUtility.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.Constructors in com.broadleafcommerce.data.tracking.core.context with parameters of type ContextInfoModifierConstructorDescriptionContextInfo(ContextInfo contextInfo) Create a copy of an existing ContextInfo, including a copy of itsContextRequest. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.filtering
Methods in com.broadleafcommerce.data.tracking.core.filtering that return ContextInfoModifier and TypeMethodDescriptionNarrowExecutor.QueryInfo.getContextInfo()The request context information (sandbox, application, catalog)Methods in com.broadleafcommerce.data.tracking.core.filtering with parameters of type ContextInfoModifier and TypeMethodDescriptionvoidActiveDateFilteringEnabledContextInfoCustomizer.customize(ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) voidActiveFlagFilteringEnabledContextInfoCustomizer.customize(ContextInfo contextInfo, String routeKey, org.springframework.core.MethodParameter endpoint, org.springframework.web.context.request.NativeWebRequest webRequest) Constructors in com.broadleafcommerce.data.tracking.core.filtering with parameters of type ContextInfoModifierConstructorDescriptionQueryInfo(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
Methods in com.broadleafcommerce.data.tracking.core.mapping with parameters of type ContextInfoModifier 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 aChangeDetailinstance that represents the value of soon-to-be dirty field before the mutating change is applied.ContextStateBuilder.buildContextState(Trackable domain, ContextInfo contextInfo) BuildsContextState informationfor aContextStateAware business instancecorresponding to the givenTrackable domain instancethat can be inspected for additional metadata around the entity in relation to the context of the requester.<P> voidDefaultTrackableDomainMapperMemberSupport.buildContextState(Trackable domain, P business, ContextInfo contextInfo, org.modelmapper.ModelMapper fromMeMapper) <P> voidTrackableDomainMapperMemberSupport.buildContextState(Trackable domain, P business, ContextInfo contextInfo, org.modelmapper.ModelMapper fromMeMapper) Add inContextStateinformation 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) voidDefaultTrackableDomainMapperMemberSupport.buildTracking(ContextInfo contextInfo, Trackable domainInstance, List<ChangeDetail> details) voidTrackableDomainMapperMemberSupport.buildTracking(ContextInfo contextInfo, Trackable domainInstance, List<ChangeDetail> details) Compile theTrackinginformation for a new change<P> PDefaultDomainMapperManager.convertFromPersistentDomain(Object domain, ContextInfo contextInfo) default <P> PDomainMapperManager.convertFromPersistentDomain(Object domain, ContextInfo contextInfo) Similar toDomainMapperManager.fromRepositoryDomain(Object, Class, ContextInfo), but doesn't require the caller to know the business domain type.<D> DBasicAuditDomainMapperMember.deleteMap(D repositoryDomain, ContextInfo contextInfo) <D> DDefaultDomainMapperManager.deleteMap(D repositoryDomain, ContextInfo contextInfo) default <D> DDomainMapper.deleteMap(D repositoryDomain, ContextInfo contextInfo) In cases where deletion actually results in a modified state to persist (e.g.<D> DModelMapperDomainMapperMember.deleteMap(D repositoryDomain, ContextInfo contextInfo) protected booleanContextStateBuilder.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 booleanAlwaysMutableContextStateBuilder.determineContextStateMutability(Trackable domain, ContextInfo contextInfo) protected booleanContextStateBuilder.determineContextStateMutability(Trackable domain, ContextInfo contextInfo) Determines whether the domain is mutable given the requesting context.protected booleanContextStateBuilder.determinePolicyContextStateMutability(Trackable domain, ContextInfo contextInfo) Determines whether the domain is mutable given the requesting context based on permissions and policy validation.static <P> PEntityUtils.divert(ContextInfo contextInfo, OperationType type, Function<ContextInfo, P> op) Divert a call to the functionopwith the given context info and operation type.<D> DBasicAuditDomainMapperMember.fromBusinessDomain(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) <D> DChangeContainerOverridableDomainMapperMember.fromBusinessDomain(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) <D> DCreateSetupDomainMapperMember.fromBusinessDomain(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) Autogenerates a ULID context ID for the repository domain if the context is a create operation.<D> DDefaultDomainMapperManager.fromBusinessDomain(Object businessDomain, Class<D> repositoryDomainType, ContextInfo contextInfo) default <D> DDomainMapperManager.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> DDomainMapperMember.fromBusinessDomain(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) Map and return a populated repository domain instance, based on information provided in a business domain.<D> DModelMapperDomainMapperMember.fromBusinessDomain(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) <D> DUpdateValidationDomainMapperMember.fromBusinessDomain(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) Validates the identifier value state for a mutation request.<P> PDefaultDomainMapperManager.fromRepositoryDomain(BusinessTypeAware repositoryDomain, ContextInfo contextInfo) <P> PDefaultDomainMapperManager.fromRepositoryDomain(Object repositoryDomain, Class<P> businessDomainType, ContextInfo contextInfo) <P> PDomainMapperManager.fromRepositoryDomain(BusinessTypeAware repositoryDomain, ContextInfo contextInfo) Map and return a populated business domain instance, based on information provided in a repository domain instance.default <P> PDomainMapperManager.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> PDomainMapperMember.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> PModelMapperDomainMapperMember.fromRepositoryDomain(Object repositoryDomain, P businessDomain, ContextInfo contextInfo) <P> PDefaultDomainMapperManager.fromRepositoryDomainByExample(Object repositoryDomain, P example, ContextInfo contextInfo) default <P> PDomainMapperManager.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 booleanEntityUtils.isCreate(Object entity, ContextInfo contextInfo) booleanDefaultTrackableDomainMapperMemberSupport.isMappingResetRequired(Trackable domainInstance, ContextInfo contextInfo) booleanTrackableDomainMapperMemberSupport.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 compileChangeDetailinstances to include in theTrackingstate.<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 voidModelMapperMappable.postFromMe(ContextInfo contextInfo, Object businessDomain) Lifecycle method that is executed after mapping occurs from a repository entity to a business domain.default voidModelMapperMappable.postToMe(ContextInfo contextInfo, Object businessDomain) Lifecycle method that is executed after mapping occurs from a business domain to a repository entity.default voidModelMapperMappable.preFromMe(ContextInfo contextInfo, Object businessDomain) This is a lifecycle method and allows for any logic to be executed prior to the mapping occuring.default voidModelMapperMappable.preToMe(ContextInfo contextInfo, Object businessDomain) This is a lifecycle method and allows for any logic to be executed prior to the mapping occuring.<P> PDefaultDomainMapperManager.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> PDomainMapperManager.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 booleanCreateSetupDomainMapperMember.shouldContextIdBeGenerated(IdAware.Id id, String contextId, ContextInfo contextInfo) Determines whether the context ID should be generated by the system for the givenrepositoryDomainentity.<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.Method parameters in com.broadleafcommerce.data.tracking.core.mapping with type arguments of type ContextInfoModifier and TypeMethodDescriptionstatic <P> PEntityUtils.divert(ContextInfo contextInfo, OperationType type, Function<ContextInfo, P> op) Divert a call to the functionopwith the given context info and operation type. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.mapping.money
Methods in com.broadleafcommerce.data.tracking.core.mapping.money with parameters of type ContextInfoModifier and TypeMethodDescriptiondefault booleanCurrencyContextProvider.canHandle(Object source, ContextInfo contextInfo) Whether or not this can handle the resolution for the given source.<P> PMonetaryMapperMember.fromRepositoryDomain(Object repositoryDomain, P businessDomain, ContextInfo contextInfo) Deprecated.com.broadleafcommerce.money.CurrencyContextCompositeCurrencyContextProvider.getContext(Object source, ContextInfo contextInfo) com.broadleafcommerce.money.CurrencyContextCurrencyContextProvider.getContext(T source, ContextInfo contextInfo) Get the currency from a source objectstatic javax.money.CurrencyUnitCurrentCurrencyUtils.resolveCurrentCurrency(ContextInfo contextInfo) Returns theCurrencyUnitthat matches thegetDefaultCurrency().static javax.money.CurrencyUnitCurrentCurrencyUtils.resolveCurrentCurrency(Object currencySupplier, ContextInfo contextInfo) Returns theCurrencyUnitthat most closely matches the parameters provided. -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.mapping.validation
Methods in com.broadleafcommerce.data.tracking.core.mapping.validation with parameters of type ContextInfoModifier and TypeMethodDescriptionbooleanEntityValidator.supports(Class<?> serviceClass, ContextInfo context) Whether or not this validator supports validating the given service classbooleanEntityValidatorManager.supports(Class<?> clazz, ContextInfo context) default voidEntityValidator.validate(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) Default validation that handles create, replace and update.voidEntityValidatorManager.validate(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) default voidEntityValidator.validateForCreate(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) Validate a new repositoryInstance being added based on its businessInstance representationvoidEntityValidatorManager.validateForCreate(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) default voidEntityValidator.validateForReplace(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) Validate a replacement for the repositoryInstance.voidEntityValidatorManager.validateForReplace(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) default voidEntityValidator.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.voidEntityValidatorManager.validateForUpdate(Object updatedBusinessInstance, org.springframework.validation.Errors errors, ContextInfo context) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.mapping.validation.rules
Methods in com.broadleafcommerce.data.tracking.core.mapping.validation.rules with parameters of type ContextInfoModifier and TypeMethodDescriptionbooleanRuleValidatorManager.supports(Class<?> serviceClass, ContextInfo context) voidRuleValidatorManager.validate(Object businessInstance, org.springframework.validation.Errors errors, ContextInfo context) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.marketplace.service
Methods in com.broadleafcommerce.data.tracking.core.marketplace.service with parameters of type ContextInfoModifier and TypeMethodDescriptionlongCommonMarketplaceApplicationCatalogService.countByApplication(String application, ContextInfo contextInfo) longDefaultCommonMarketplaceApplicationCatalogService.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
Methods in com.broadleafcommerce.data.tracking.core.marketplace.vendor.visibility with parameters of type ContextInfoModifier 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 aNodefilter 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 apersistedDomainEntityTypeBeingReadthat is being read in a query, return aNodefilter 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).booleanDefaultVendorVisibilityManager.isEntityMutableByVendorRestrictions(@NonNull Object persistedDomainEntity, @NonNull Set<String> restrictedVendorRefs, ContextInfo contextInfo) booleanVendorVisibilityHandler.isEntityMutableByVendorRestrictions(Object persistedDomainEntity, Set<String> restrictedVendorRefs, ContextInfo contextInfo) Given apersistedDomainEntity, report whether that entity is mutable by the given vendor restrictions.booleanVendorVisibilityManager.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
Methods in com.broadleafcommerce.data.tracking.core.marketplace.vendor.visibility.catalog with parameters of type ContextInfoModifier and TypeMethodDescriptionCatalogDiscriminatedEntityVendorVisibilityHandler.createVendorNarrowingFilter(@NonNull Set<String> restrictedVendorRefs, ContextInfo contextInfo) Builds a filter ontracking.catalog.contextIdthat serves as an "upper bound" to possible catalogs the results can come from.CatalogDiscriminatedEntityVendorVisibilityHandler.getAssociatedVendorRef(Object persistedDomainEntity, ContextInfo contextInfo) booleanCatalogDiscriminatedEntityVendorVisibilityHandler.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
Methods in com.broadleafcommerce.data.tracking.core.marketplace.vendor.visibility.narrowing with parameters of type ContextInfoModifier and TypeMethodDescriptionvoidVendorNarrowingContextInfoCustomizer.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
Methods in com.broadleafcommerce.data.tracking.core.messaging.search with parameters of type ContextInfoModifier and TypeMethodDescriptionbooleanSingleIndexRequestMessageFactory.indexActive(TrackableBehaviorUtil util, Object entity, ContextInfo context) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.messaging.search.mapping
Methods in com.broadleafcommerce.data.tracking.core.messaging.search.mapping with parameters of type ContextInfoModifier and TypeMethodDescription<D> DSingleIndexRequestNotificationStateMapperMember.deleteMap(D repositoryDomain, ContextInfo contextInfo) <D> DSingleIndexRequestNotificationStateMapperMember.fromBusinessDomain(Object businessDomain, D repositoryDomain, ContextInfo contextInfo) protected booleanSingleIndexRequestNotificationStateMapperMember.isSupported(Object repositoryDomain, ContextInfo contextInfo) protected <D> DSingleIndexRequestNotificationStateMapperMember.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.policy
Methods in com.broadleafcommerce.data.tracking.core.policy with parameters of type ContextInfoModifier and TypeMethodDescriptionprotected OperationTypeDefaultPolicyAspectProcessor.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 PolicyResponsePolicyUtils.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
Methods in com.broadleafcommerce.data.tracking.core.policy.trackable with parameters of type ContextInfoModifier and TypeMethodDescriptionprotected PolicyResponseDefaultTrackablePolicyUtils.invalidPolicyResponse(PolicyResponse response, String reason, ContextInfo contextInfo) protected booleanDefaultTrackablePolicyUtils.isContextVisible(ContextInfo contextInfo) booleanDefaultTrackablePolicyUtils.isMutationPossibleForContext(ContextInfo contextInfo) booleanTrackablePolicyUtils.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 booleanDefaultTrackablePolicyUtils.isSandboxVisible(ContextInfo contextInfo) TrackableEntityPolicyEvaluator.validate(Map<Integer, Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType) protected booleanDefaultTrackablePolicyUtils.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 theContextInfoparameter for valid tenant user membership and valid catalog visibility based on the currentAuthenticationand requested tenant information in the contextInfo.TrackablePolicyUtils.validateContext(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType) Review theContextInfoparameter for valid tenant user membership and valid catalog visibility based on the currentAuthenticationand 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 PolicyResponseDefaultTrackablePolicyUtils.validateEntityOperation(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType) protected PolicyResponseDefaultTrackablePolicyUtils.validateEntityUpdate(Trackable entity, @NonNull ContextInfo contextInfo) Check update validity for a given entity instanceprotected PolicyResponseDefaultTrackablePolicyUtils.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 PolicyResponseDefaultTrackablePolicyUtils.validateOperation(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) protected PolicyResponseDefaultTrackablePolicyUtils.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 PolicyResponseTrackableEntityPolicyEvaluator.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
Methods in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor with parameters of type ContextInfoModifier and TypeMethodDescriptionprotected OperationTypeVendorAwareTrackablePolicyUtils.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 booleanVendorAwareTrackablePolicyUtils.isCatalogVisibleByVendorRestrictions(@NonNull ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType requiredOperationType) Reports whether the catalog referenced in thecontextInfois 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 thecontextInfois visible by the current authentication's vendor restrictions.protected PolicyResponseVendorAwareTrackablePolicyUtils.validateEntityMutableByCurrentVendorRestrictions(Trackable entity, ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType) Checks whether the givenentitybeing mutated is actually mutable given the current authentication's vendor privileges and provided policy requirements.protected PolicyResponseVendorAwareTrackablePolicyUtils.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
Methods in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor.support with parameters of type ContextInfoModifier 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
Methods in com.broadleafcommerce.data.tracking.core.service that return ContextInfoModifier and TypeMethodDescriptionMutationNotifyEvent.getContext()NotificationInitializeEvent.getContext()Methods in com.broadleafcommerce.data.tracking.core.service with parameters of type ContextInfoModifier and TypeMethodDescriptionprotected <P> TrackableCrudEntityHelper.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 PBaseCrudEntityService.convertFromPersistentDomain(Trackable domain, ContextInfo contextInfo) <P> PCrudEntityHelper.convertFromPersistentDomain(Trackable domain, ContextInfo contextInfo) Convenience method to use theCrudEntityHelper.mapperto convert a persistent domain instance to its business equivalent.protected TrackableBaseCrudEntityService.convertToPersistentDomain(P businessInstance, Class<Trackable> persistentType, ContextInfo contextInfo) <P> TrackableCrudEntityHelper.convertToPersistentDomain(P businessInstance, Class<Trackable> persistentType, ContextInfo context) Convenience method to use theCrudEntityHelper.mapperto convert a business domain instance to its persistent equivalent.BaseCrudEntityService.create(P businessInstance, ContextInfo context) <P> PCrudEntityHelper.create(P businessInstance, ContextInfo context, TrackableRepository<Trackable> repository) Create an instance of an entity based on a business instance containing relevant 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.voidBaseCrudEntityService.delete(String id, ContextInfo context) voidCrudEntityHelper.delete(String id, ContextInfo context, TrackableRepository<Trackable> repository) Perform a delete operation on the entity identified by the context id.voidCrudEntityService.delete(String id, ContextInfo context) Perform a delete operation on the entity identified by the context id.voidChangeNotifier.notify(Trackable domain, ContextInfo context, com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository) Notify the async message fabric of the changevoidCrudEntityHelper.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, SlimPropagationTracking slimPropagationTracking) PropagationIntegrator.prepare(Trackable domain, ContextInfo contextInfo, OperationType operationType, SlimPropagationTracking slimPropagationTracking) Prepare aTrackableentity for propagation, if applicable.voidCrudEntityHelper.propagateIfApplicable(Trackable updated, ContextInfo context, @NonNull OperationType operationType, @NonNull TrackableRepository<Trackable> repository, String propagationId, SlimPropagationTracking slimPropagationTracking) voidPropagationIntegrator.propagateIfApplicable(Trackable domain, ContextInfo context, OperationType operationType, TrackableRepository<Trackable> repository, String propagationId, SlimPropagationTracking slimPropagationTracking) 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> PCrudEntityHelper.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> PCrudEntityHelper.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> PCrudEntityHelper.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> PCrudEntityHelper.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> voidCrudEntityHelper.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> voidCrudEntityHelper.validateAllForCreateAndThrowIfError(Iterable<P> businessInstances, ContextInfo contextInfo) protected <P> voidCrudEntityHelper.validateAllForReplace(List<Update<P>> businessInstancesToValidate, ContextInfo contextInfo, List<Update<P>> valid, List<BulkPersistenceResponse.PersistenceFailure<P>> failed) Validates the business instance within eachUpdatefor replacement.protected <P> voidCrudEntityHelper.validateAllForReplaceAndThrowIfError(Iterable<P> businessInstances, ContextInfo contextInfo) protected <P> voidCrudEntityHelper.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> voidCrudEntityHelper.validateAllForUpdateAndThrowIfError(Iterable<P> businessInstances, ContextInfo contextInfo) Constructors in com.broadleafcommerce.data.tracking.core.service with parameters of type ContextInfoModifierConstructorDescriptionMutationNotifyEvent(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
Methods in com.broadleafcommerce.data.tracking.core.service.scheduledjob that return ContextInfoModifier and TypeMethodDescriptionDefaultScheduledJobContextService.buildContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType) Creates theContextInfofor the specified scheduled job with the specified change operation andScheduledJobRef.getTenantId().ScheduledJobContextService.buildContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType) Creates theContextInfofor the specified scheduled job with the specified change operation.default ContextInfoScheduledJobContextService.buildCreateContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Creates theContextInfofor the specified scheduled job withOperationType.CREATEchange operation.default ContextInfoScheduledJobContextService.buildDeleteContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Creates theContextInfofor the specified scheduled job withOperationType.DELETEchange operation.default ContextInfoScheduledJobContextService.buildReadContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Creates theContextInfofor the specified scheduled job withOperationType.READchange operation.default ContextInfoScheduledJobContextService.buildUpdateContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef) Creates theContextInfofor the specified scheduled job withOperationType.UPDATEchange operation.protected ContextInfoDefaultScheduledJobContextService.createContextInfo(OperationType operationType) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.sort
Methods in com.broadleafcommerce.data.tracking.core.sort with parameters of type ContextInfoModifier and TypeMethodDescriptionprotected voidDecimalSplitSortPositionStrategy.updateAfterPositionSort(SortPositionRequest sortPositionRequest, ContextInfo context, TrackableRepository<Trackable> repository, Sortable toUpdate, Sortable sortTransfer) Update when theSortPositionRequest.getPositionAfterContextId()value is available.protected voidDecimalSplitSortPositionStrategy.updateBeforePositionSort(SortPositionRequest sortPositionRequest, ContextInfo context, TrackableRepository<Trackable> repository, Sortable toUpdate, Sortable sortTransfer) Update when theSortPositionRequest.getPositionBeforeContextId()value is available.protected voidDecimalSplitSortPositionStrategy.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, PropagationHelperUtility propagationHelperUtility) default PSortPositionStrategy.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, PropagationHelperUtility propagationHelperUtility) Apply a sort field value change -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.tenant.repository
Methods in com.broadleafcommerce.data.tracking.core.tenant.repository with parameters of type ContextInfoModifier and TypeMethodDescriptionlongCommonMarketplaceApplicationCatalogRepository.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
Methods in com.broadleafcommerce.data.tracking.core.tenant.service with parameters of type ContextInfoModifier 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 givenvendorRefsviaCatalog.getVendorRef().DefaultCommonCatalogService.readByVendorRefs(@NonNull Set<String> vendorRefs, ContextInfo contextInfo) -
Uses of ContextInfo in com.broadleafcommerce.data.tracking.core.web
Methods in com.broadleafcommerce.data.tracking.core.web with parameters of type ContextInfoModifier and TypeMethodDescriptionProjectionReferencedApi.create(jakarta.servlet.http.HttpServletRequest request, ContextInfo context, P req) voidProjectionReferencedApi.delete(jakarta.servlet.http.HttpServletRequest request, ContextInfo context, String id) org.springframework.data.domain.Page<P>ProjectionReferencedApi.readAll(jakarta.servlet.http.HttpServletRequest request, ContextInfo context, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) ProjectionReferencedApi.readById(jakarta.servlet.http.HttpServletRequest request, ContextInfo context, String id) ProjectionReferencedApi.replace(jakarta.servlet.http.HttpServletRequest request, ContextInfo context, String id, P req) ProjectionReferencedApi.update(jakarta.servlet.http.HttpServletRequest request, ContextInfo context, String id, P req)
SortPositionStrategy.updateSort(SortPositionRequest, ContextInfo, DomainMapperManager, TrackableRepository, ChangeNotifier, PropagationIntegrator, PropagationHelperUtility)instead to allow for instant propagation handling.