Class JpaCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
java.lang.Object
com.broadleafcommerce.sandbox.provider.jpa.repository.nontrackable.JpaCustomizedChangeSummaryGroupRepository<D>
- All Implemented Interfaces:
com.broadleafcommerce.common.extension.DomainTypeAware
,CustomizedChangeSummaryGroupRepository<D>
public class JpaCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
extends Object
implements CustomizedChangeSummaryGroupRepository<D>
- Author:
- Jeff Fischer
-
Constructor Summary
ConstructorsConstructorDescriptionJpaCustomizedChangeSummaryGroupRepository
(com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.RSQLVisitorHolder<?> rsqlVisitorHolder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
archiveChangeSummaryGroupsForSandbox
(String sandboxId) Archives the group ofChangeSummary
for the specified sandbox id.boolean
batchTransition
(PromoteBatchFlushContext flushContext) Given aPromoteBatchFlushContext
containingChangeSummaryGroup
transition information, update the state of the group, especially as it relates to transitionedChangeSummary
instances.boolean
batchTransition
(StateChangeOnlyBatchFlushContext flushContext) Given aStateChangeOnlyBatchFlushContext
containingChangeSummaryGroup
andChangeSummary
state change information, perform a batch update of the prescribed state.cleanupBatch
(String startingId, boolean archive, List<ChangeStatusType> detectStatuses, List<ChangeState> detectStates, ChangeStatusType targetStatus, ChangeState targetState, List<ChangeStatusType> summaryDetectStatuses, List<ChangeState> summaryDetectStates, Object source) Check a bag of ChangeSummaryGroup entities for completion state.findChangeSummaryGroupByIdsCount
(List<String> changeSummaryGroupIds, List<String> states, List<String> statuses, @NonNull String sandbox) Given a list ofChangeSummaryGroup
ids, find the count of groups that match the state requirements defined in the params.findChangeSummaryGroupsByIds
(List<String> changeSummaryGroupIds) Find allChangeSummaryGroup
instances matching primarily a list of ids.findChangeSummaryGroupsByIds
(List<String> changeSummaryGroupIds, @NonNull String sandbox, List<String> whereStates, List<String> whereStatuses) Find allChangeSummaryGroup
instances matching primarily a list of ids.findChangeSummaryGroupsByIds
(List<String> changeSummaryGroupIds, @NonNull String sandbox, List<String> whereStates, List<String> whereStatuses, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allChangeSummaryGroup
instances matching primarily a list of ids.findChangeSummaryGroupsBySandbox
(@NonNull String sandbox, @NonNull String state, List<String> status) Find allChangeSummaryGroup
instances matching primarily the sandbox.findChangeSummaryGroupsBySandbox
(@NonNull String sandbox, @NonNull String state, List<String> status, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Find allChangeSummaryGroup
instances matching primarily the sandbox.protected JpaVendorNarrowingQueryCustomizer
protected boolean
Whether or not vendor processing is enabled.readByIdAndArchivedNot
(String id, boolean archived, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) TakesChangeSummaryGroup.getArchived()
into account when retrieving a group with the given ID.org.springframework.data.domain.Page<D>
readPageByStateAndSandboxAndArchivedNot
(@NonNull String state, @NonNull String sandbox, Boolean archived, cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable) Retrieve a page of records filtered by state and sandboxorg.springframework.data.domain.Page<D>
readPageByStateAndSandboxAndArchivedNot
(@NonNull String state, @NonNull String sandbox, Boolean archived, cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve a page of records filtered by state and sandboxorg.springframework.data.domain.Page<D>
readPageByStateAndSandboxAndAuthorAndArchivedNot
(@NonNull String state, @NonNull String sandbox, @NonNull String author, Boolean archived, cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable) Retrieve a page of records filtered by state, sandbox, and authororg.springframework.data.domain.Page<D>
readPageByStateAndSandboxAndAuthorAndArchivedNot
(@NonNull String state, @NonNull String sandbox, @NonNull String author, Boolean archived, cz.jirutka.rsql.parser.ast.Node filters, @NonNull org.springframework.data.domain.Pageable pageable, boolean vendorNarrowing, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieve a page of records filtered by state, sandbox, and authorboolean
removeFromAffectedVendors
(String changeSummaryGroupId, String vendorRef) Atomically removes the givenvendorRef
fromChangeSummaryGroup.getAffectedVendorRefs()
of the givenchangeSummaryGroupId
if present.void
setEventPublisher
(org.springframework.context.ApplicationEventPublisher eventPublisher) void
setJdbcTemplate
(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) void
setProperties
(CompletionCleanupProperties properties) void
setVendorNarrowingQueryCustomizerProvider
(org.springframework.beans.factory.ObjectProvider<JpaVendorNarrowingQueryCustomizer> vendorNarrowingQueryCustomizerProvider) If vendor processing is enabled, this bean will be injected and and used for vendor narrowing.void
setVendorProcessingEnabled
(boolean vendorProcessingEnabled) Whether or not vendor processing is enabled.boolean
updateVals
(@NonNull String changeSummaryGroupId, List<String> whereStates, List<String> whereStatus, Map<String, Object> vals, boolean enforceArchive) Update the fields for a record matching the idvoid
updateVals
(@NonNull List<String> changeSummaryGroupIds, String whereState, List<String> whereStatus, @NonNull Map<String, Object> vals) Update the fields for multiple records matching the ids
-
Constructor Details
-
JpaCustomizedChangeSummaryGroupRepository
public JpaCustomizedChangeSummaryGroupRepository(com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.RSQLVisitorHolder<?> rsqlVisitorHolder)
-
-
Method Details
-
getDomainType
- Specified by:
getDomainType
in interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
readByIdAndArchivedNot
public Optional<D> readByIdAndArchivedNot(String id, boolean archived, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepository
TakesChangeSummaryGroup.getArchived()
into account when retrieving a group with the given ID.- Specified by:
readByIdAndArchivedNot
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
id
- ID of the group to retrievearchived
-ChangeSummaryGroup.getArchived()
value to not matchvendorNarrowing
- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo
- context information about sandboxing and multitenant state- Returns:
- A
ChangeSummaryGroup
matching the given ID and not matching the given archived status
-
updateVals
@Transactional("sandboxTransactionManager") public boolean updateVals(@NonNull @NonNull String changeSummaryGroupId, @Nullable List<String> whereStates, @Nullable List<String> whereStatus, Map<String, Object> vals, boolean enforceArchive) Description copied from interface:CustomizedChangeSummaryGroupRepository
Update the fields for a record matching the id- Specified by:
updateVals
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
changeSummaryGroupId
- The id requested to mutatewhereStates
- The list of validChangeState
values for whichChangeSummaryGroup.getState()
should matchwhereStatus
- The list ofChangeStatusType
values for whichChangeSummaryGroup.getStatus()
should match one or more of. Can be empty to indicate no filtrationvals
- Map of field to value changes to make to the ChangeSummaryGroup instanceenforceArchive
- Whether archive status should be checked before updating- Returns:
- Whether or not an update was performed. If no record found matching the id and state, will return false.
-
updateVals
@Transactional("sandboxTransactionManager") public void updateVals(@NonNull @NonNull List<String> changeSummaryGroupIds, @Nullable String whereState, @Nullable List<String> whereStatus, @NonNull @NonNull Map<String, Object> vals) Description copied from interface:CustomizedChangeSummaryGroupRepository
Update the fields for multiple records matching the ids- Specified by:
updateVals
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
changeSummaryGroupIds
- The ids requested to mutatewhereState
- The validChangeState
value for whichChangeSummaryGroup.getState()
should matchwhereStatus
- The list ofChangeStatusType
values for whichChangeSummaryGroup.getStatus()
should match one or more of. Can be empty to indicate no filtrationvals
- Map of field to value changes to make to the ChangeSummaryGroup instance
-
batchTransition
@Transactional("sandboxTransactionManager") public boolean batchTransition(PromoteBatchFlushContext flushContext) Description copied from interface:CustomizedChangeSummaryGroupRepository
Given aPromoteBatchFlushContext
containingChangeSummaryGroup
transition information, update the state of the group, especially as it relates to transitionedChangeSummary
instances.- Specified by:
batchTransition
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
flushContext
- Context object containing the change summary group transition information to commit
-
batchTransition
@Transactional("sandboxTransactionManager") public boolean batchTransition(StateChangeOnlyBatchFlushContext flushContext) Description copied from interface:CustomizedChangeSummaryGroupRepository
Given aStateChangeOnlyBatchFlushContext
containingChangeSummaryGroup
andChangeSummary
state change information, perform a batch update of the prescribed state. This does not involved changes to notification states and does not result in state related to sending messages.- Specified by:
batchTransition
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
flushContext
- Context containingChangeSummaryGroup
andChangeSummary
state change information- Returns:
- Whether or not the transition was performed
-
findChangeSummaryGroupsBySandbox
public Stream<D> findChangeSummaryGroupsBySandbox(@NonNull @NonNull String sandbox, @NonNull @NonNull String state, @Nullable List<String> status) Description copied from interface:CustomizedChangeSummaryGroupRepository
Find allChangeSummaryGroup
instances matching primarily the sandbox.- Specified by:
findChangeSummaryGroupsBySandbox
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
sandbox
- The sandbox for which theChangeSummaryGroup.getSandbox()
should matchstate
- TheChangeState
value for whichChangeSummaryGroup.getState()
should matchstatus
- The list ofChangeStatusType
values for whichChangeSummaryGroup.getStatus()
should match one or more of. Can be empty- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupsBySandbox
public Stream<D> findChangeSummaryGroupsBySandbox(@NonNull @NonNull String sandbox, @NonNull @NonNull String state, @Nullable List<String> status, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepository
Find allChangeSummaryGroup
instances matching primarily the sandbox.- Specified by:
findChangeSummaryGroupsBySandbox
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
sandbox
- The sandbox for which theChangeSummaryGroup.getSandbox()
should matchstate
- TheChangeState
value for whichChangeSummaryGroup.getState()
should matchstatus
- The list ofChangeStatusType
values for whichChangeSummaryGroup.getStatus()
should match one or more of. Can be emptyvendorNarrowing
- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo
- context information about sandboxing and multitenant state- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupsByIds
public Stream<D> findChangeSummaryGroupsByIds(List<String> changeSummaryGroupIds, @NonNull @NonNull String sandbox, List<String> whereStates, @Nullable List<String> whereStatuses) Description copied from interface:CustomizedChangeSummaryGroupRepository
Find allChangeSummaryGroup
instances matching primarily a list of ids.- Specified by:
findChangeSummaryGroupsByIds
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
changeSummaryGroupIds
- The list ofChangeSummaryGroup.getId()
values to matchsandbox
- The sandbox for which theChangeSummaryGroup.getSandbox()
should matchwhereStates
- TheChangeState
value for whichChangeSummaryGroup.getState()
should match. Cannot be emptywhereStatuses
- The list ofChangeStatusType
values for whichChangeSummaryGroup.getStatus()
should match one of more of. Can be empty to indiciate no filtration- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupsByIds
public Stream<D> findChangeSummaryGroupsByIds(List<String> changeSummaryGroupIds, @NonNull @NonNull String sandbox, List<String> whereStates, @Nullable List<String> whereStatuses, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepository
Find allChangeSummaryGroup
instances matching primarily a list of ids.- Specified by:
findChangeSummaryGroupsByIds
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
changeSummaryGroupIds
- The list ofChangeSummaryGroup.getId()
values to matchsandbox
- The sandbox for which theChangeSummaryGroup.getSandbox()
should matchwhereStates
- TheChangeState
value for whichChangeSummaryGroup.getState()
should match. Cannot be emptywhereStatuses
- The list ofChangeStatusType
values for whichChangeSummaryGroup.getStatus()
should match one of more of. Can be empty to indiciate no filtrationvendorNarrowing
- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo
- context information about sandboxing and multitenant state- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupsByIds
Description copied from interface:CustomizedChangeSummaryGroupRepository
Find allChangeSummaryGroup
instances matching primarily a list of ids.- Specified by:
findChangeSummaryGroupsByIds
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
changeSummaryGroupIds
- The list ofChangeSummaryGroup.getId()
values to match- Returns:
- A Stream that can be iterated, possibly containing a large number of records or an empty stream if no matches
-
findChangeSummaryGroupByIdsCount
public Long findChangeSummaryGroupByIdsCount(List<String> changeSummaryGroupIds, List<String> states, @Nullable List<String> statuses, @NonNull @NonNull String sandbox) Description copied from interface:CustomizedChangeSummaryGroupRepository
Given a list ofChangeSummaryGroup
ids, find the count of groups that match the state requirements defined in the params.- Specified by:
findChangeSummaryGroupByIdsCount
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
changeSummaryGroupIds
- The group ids to checkstates
- TheChangeState
value for whichChangeSummaryGroup.getState()
should match. Cannot be emptystatuses
- he list ofChangeStatusType
values for whichChangeSummaryGroup.getStatus()
should match one of more of. Can be empty to indicate no filtrationsandbox
- The sandbox for which theChangeSummaryGroup.getSandbox()
should match- Returns:
- The count of entities matching the requested params
-
readPageByStateAndSandboxAndArchivedNot
public org.springframework.data.domain.Page<D> readPageByStateAndSandboxAndArchivedNot(@NonNull @NonNull String state, @NonNull @NonNull String sandbox, @Nullable Boolean archived, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable pageable) Description copied from interface:CustomizedChangeSummaryGroupRepository
Retrieve a page of records filtered by state and sandbox- Specified by:
readPageByStateAndSandboxAndArchivedNot
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
state
- TheChangeSummaryGroup.getState()
value to filter results bysandbox
- TheChangeSummaryGroup.getSandbox()
()} value to filter results byarchived
-ChangeSummaryGroup.getArchived()
value to not matchfilters
- the RSQLNode
used to restrict resultpageable
- The page setup information- Returns:
- The page of records
-
readPageByStateAndSandboxAndArchivedNot
public org.springframework.data.domain.Page<D> readPageByStateAndSandboxAndArchivedNot(@NonNull @NonNull String state, @NonNull @NonNull String sandbox, @Nullable Boolean archived, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable pageable, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepository
Retrieve a page of records filtered by state and sandbox- Specified by:
readPageByStateAndSandboxAndArchivedNot
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
state
- TheChangeSummaryGroup.getState()
value to filter results bysandbox
- TheChangeSummaryGroup.getSandbox()
()} value to filter results byarchived
-ChangeSummaryGroup.getArchived()
value to not matchfilters
- the RSQLNode
used to restrict resultpageable
- The page setup informationvendorNarrowing
- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo
- context information about sandboxing and multitenant state- Returns:
- The page of records
-
readPageByStateAndSandboxAndAuthorAndArchivedNot
public org.springframework.data.domain.Page<D> readPageByStateAndSandboxAndAuthorAndArchivedNot(@NonNull @NonNull String state, @NonNull @NonNull String sandbox, @NonNull @NonNull String author, @Nullable Boolean archived, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable pageable) Description copied from interface:CustomizedChangeSummaryGroupRepository
Retrieve a page of records filtered by state, sandbox, and author- Specified by:
readPageByStateAndSandboxAndAuthorAndArchivedNot
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
state
- TheChangeSummaryGroup.getState()
value to filter results bysandbox
- TheChangeSummaryGroup.getSandbox()
value to filter results byauthor
- TheChangeSummaryGroup.getAuthor()
value to filter records byarchived
-ChangeSummaryGroup.getArchived()
value to not matchfilters
- the RSQLNode
used to restrict resultpageable
- The page setup information- Returns:
- The page of records
-
readPageByStateAndSandboxAndAuthorAndArchivedNot
public org.springframework.data.domain.Page<D> readPageByStateAndSandboxAndAuthorAndArchivedNot(@NonNull @NonNull String state, @NonNull @NonNull String sandbox, @NonNull @NonNull String author, @Nullable Boolean archived, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @NonNull @NonNull org.springframework.data.domain.Pageable pageable, boolean vendorNarrowing, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:CustomizedChangeSummaryGroupRepository
Retrieve a page of records filtered by state, sandbox, and author- Specified by:
readPageByStateAndSandboxAndAuthorAndArchivedNot
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
state
- TheChangeSummaryGroup.getState()
value to filter results bysandbox
- TheChangeSummaryGroup.getSandbox()
value to filter results byauthor
- TheChangeSummaryGroup.getAuthor()
value to filter records byarchived
-ChangeSummaryGroup.getArchived()
value to not matchfilters
- the RSQLNode
used to restrict resultpageable
- The page setup informationvendorNarrowing
- whether or not to filter results based on the current authentication's vendor restrictions if vendor processing is enabledcontextInfo
- context information about sandboxing and multitenant state- Returns:
- The page of records
-
archiveChangeSummaryGroupsForSandbox
Description copied from interface:CustomizedChangeSummaryGroupRepository
Archives the group ofChangeSummary
for the specified sandbox id.- Specified by:
archiveChangeSummaryGroupsForSandbox
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
sandboxId
- the sandbox id associated to the change summary groups
-
removeFromAffectedVendors
@Transactional("sandboxTransactionManager") public boolean removeFromAffectedVendors(String changeSummaryGroupId, String vendorRef) Description copied from interface:CustomizedChangeSummaryGroupRepository
Atomically removes the givenvendorRef
fromChangeSummaryGroup.getAffectedVendorRefs()
of the givenchangeSummaryGroupId
if present.- Specified by:
removeFromAffectedVendors
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
changeSummaryGroupId
- the ID of the group to updatevendorRef
- the vendor ref to remove fromChangeSummaryGroup.getAffectedVendorRefs()
- Returns:
true
if the removal was successful,false
otherwise
-
cleanupBatch
@Nullable public String cleanupBatch(@Nullable String startingId, boolean archive, List<ChangeStatusType> detectStatuses, List<ChangeState> detectStates, ChangeStatusType targetStatus, ChangeState targetState, List<ChangeStatusType> summaryDetectStatuses, List<ChangeState> summaryDetectStates, Object source) Description copied from interface:CustomizedChangeSummaryGroupRepository
Check a bag of ChangeSummaryGroup entities for completion state. If complete, update status and state.- Specified by:
cleanupBatch
in interfaceCustomizedChangeSummaryGroupRepository<D extends JpaChangeSummaryGroup>
- Parameters:
startingId
- The ChangeSummaryGroup entity id that represents the start of the collection of entities to check. The size of the collection is determined byCompletionCleanupProperties.getCleanupBatchSize()
.archive
- Whether to archive the ChangeSummaryGroup upon completiondetectStatuses
- The list of statuses to match. One of these statuses must match an entity status to be considered as part of the cleanup routine.detectStates
- The list of states to match. One of these statuses must match an entity state to be considered as part of the cleanup routine.targetStatus
- The status to set on one or more entities if determined to be completetargetState
- The state to set on one or more entities if determined to be completesummaryDetectStatuses
- The list of associated ChangeSummary statuses to NOT match. Associated ChangeSummary instances must not be in any of these statuses for the related ChangeDeploy to be considered complete.summaryDetectStates
- The list of associated ChangeSummary states to NOT match. Associated ChangeSummary instances must not be in any of these states for the related ChangeDeploy to be considered complete.source
- The specific cleanup service instance making the call- Returns:
- The last ChangeSummaryGroup entity id used as part of the executed batch. This value
is interesting to provide as the
startingId
for subsequent calls to this method when performing a paged style execution approach. May be null if no values were found, or if fewer than the configured batch size were found.
-
getVendorNarrowingQueryCustomizer
-
isVendorProcessingEnabled
protected boolean isVendorProcessingEnabled()Whether or not vendor processing is enabled. This will determine how certain vendor-related fields on domains are initialized. -
setVendorProcessingEnabled
@Autowired public void setVendorProcessingEnabled(@Value("${broadleaf.sandbox.propagation.enabled:false}") boolean vendorProcessingEnabled) Whether or not vendor processing is enabled. This will determine how certain vendor-related fields on domains are initialized. -
setVendorNarrowingQueryCustomizerProvider
@Autowired public void setVendorNarrowingQueryCustomizerProvider(org.springframework.beans.factory.ObjectProvider<JpaVendorNarrowingQueryCustomizer> vendorNarrowingQueryCustomizerProvider) If vendor processing is enabled, this bean will be injected and and used for vendor narrowing.We leverage
ObjectProvider
here since we want both optional and lazy injection. This is to avoid a situation where the query customizer creates a circular dependency. -
setJdbcTemplate
@Autowired @Qualifier("summaryCompletionJdbcTemplate") public void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate) -
setProperties
-
setEventPublisher
@Autowired public void setEventPublisher(@Nullable org.springframework.context.ApplicationEventPublisher eventPublisher)
-