Modifier and Type | Interface and Description |
---|---|
interface |
BaseTrackableRepository<D extends Trackable>
Establish a base Trackable repository interface that includes TrackableRsqlFilterExecutor as
well.
|
interface |
TrackableRepository<D extends Trackable>
Special Spring Data
Repository version targeted specifically at maintaining persistence
for Trackable domain objects. |
interface |
TrackableRsqlFilterExecutor<D extends Trackable>
Marker interface to indicate that a
TrackableRepository can also handle RSQL-based query
methods. |
class |
TransitionPackage<D extends Trackable>
Represents an item to advance or reverse in the sandbox approval flow.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ApplicationTrackable<D>
Defines a domain class type that supports tracking information (audit, sandbox and application).
|
interface |
CatalogTrackable<D>
Defines a domain class type that supports tracking information (audit, sandbox and catalog).
|
interface |
CustomerContextTrackable<D>
Defines a domain class type that supports tracking information (audit, sandbox and customer
context).
|
interface |
FullTrackable<D>
Defines a domain class type that supports the expanded scope of tracking information (audit,
sandbox, catalog, and application).
|
interface |
SandboxTrackable<D>
Defines a domain class type that supports tracking information (audit and sandbox).
|
interface |
TenantTrackable<D>
Defines a domain class type that supports audit tracking only.
|
interface |
TypedTrackable<D>
Allows setter generics for the entity
Tracking implementation to directly reflect the
concrete type of the Tracking instance variable. |
Modifier and Type | Method and Description |
---|---|
<D extends Trackable> |
BasicAuditUtility.touch(ContextInfo contextInfo,
String contextId,
Class<D> repositoryEntityType,
Trackable example)
Set the update portion of a
BasicAuditable identified by the type and contextId, and
then persist that change. |
<D extends Trackable> |
DefaultBasicAuditUtility.touch(ContextInfo contextInfo,
String contextId,
Class<D> repositoryEntityType,
Trackable example) |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultTrackableBehaviorUtil.isSandboxRecord(@NonNull Trackable domainInstance) |
boolean |
TrackableBehaviorUtil.isSandboxRecord(Trackable domainInstance)
Determines whether the given
Trackable is a record in a sandbox. |
<D extends Trackable> |
BasicAuditUtility.touch(ContextInfo contextInfo,
String contextId,
Class<D> repositoryEntityType,
Trackable example)
Set the update portion of a
BasicAuditable identified by the type and contextId, and
then persist that change. |
<D extends Trackable> |
DefaultBasicAuditUtility.touch(ContextInfo contextInfo,
String contextId,
Class<D> repositoryEntityType,
Trackable example) |
Modifier and Type | Method and Description |
---|---|
TenantPersistenceHandler |
TenantSyncMessagingConfiguration.tenantPersistenceHandler(CommonCatalogRepository<Trackable> catalogRepository,
CommonApplicationRepository<Trackable> applicationRepository,
DomainMapperManager trackingMapper,
org.springframework.context.ApplicationEventPublisher eventPublisher,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
List<ApplicationDataRouteSupporting> applicationRoutes,
List<CatalogDataRouteSupporting> catalogRoutes,
org.springframework.core.env.Environment environment) |
TenantPersistenceHandler |
TenantSyncMessagingConfiguration.tenantPersistenceHandler(CommonCatalogRepository<Trackable> catalogRepository,
CommonApplicationRepository<Trackable> applicationRepository,
DomainMapperManager trackingMapper,
org.springframework.context.ApplicationEventPublisher eventPublisher,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
List<ApplicationDataRouteSupporting> applicationRoutes,
List<CatalogDataRouteSupporting> catalogRoutes,
org.springframework.core.env.Environment environment) |
Modifier and Type | Method and Description |
---|---|
static cz.jirutka.rsql.parser.ast.Node |
FilterHelper.transform(cz.jirutka.rsql.parser.ast.Node filters,
TrackableRepository<Trackable> repository,
List<RsqlQueryTransformer> rsqlQueryTransformers)
Transforms
filters from properties that target a projection into ones that apply to a
backing repository provider domain object |
Modifier and Type | Method and Description |
---|---|
protected <D extends Trackable> |
ModelMapperDomainMapperMember.buildDetailsBefore(D repositoryDomain,
ContextInfo contextInfo,
org.modelmapper.TypeMap<?,?> repositoryTypeMap) |
protected <D extends Trackable> |
ModelMapperDomainMapperMember.isCatalogOrSandboxTrackable(D repositoryDomain) |
protected <D extends Trackable,P> |
ModelMapperDomainMapperMember.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 compile
ChangeDetail instances to include in
the Tracking state. |
protected <D extends Trackable> |
ModelMapperDomainMapperMember.shouldBuildChangeDetails(D repositoryDomain,
ContextInfo contextInfo)
Determine if dirty change details should be built for this domain.
|
Modifier and Type | Method and Description |
---|---|
Trackable |
RejectMapResponse.getAdvancedState()
The resulting promotion sandbox state after any
ChangeDetail instances have been
removed, and the entity state updated to reflect the removal. |
Trackable |
ForwardMapResponse.getForwardState()
The resulting sandbox state
|
Trackable |
RejectMapResponse.getUserState()
The resulting user sandbox state after the reject request.
|
Trackable |
DefaultTrackableDomainMapperMemberSupport.handleDelete(Trackable repositoryDomain,
ContextInfo contextInfo) |
Trackable |
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.
|
Trackable |
WorkflowMapper.propagateMap(Trackable original,
Trackable target,
boolean delete,
String propagationId)
Transfer state (via
ChangeDetail between an original item and a target item belonging
to a parent Catalog and a child Catalog, respectively. |
Trackable |
DefaultWorkflowMapper.propagateMap(Trackable original,
Trackable target,
boolean delete,
String propagationId) |
Trackable |
WorkflowMapper.rebaseMap(Trackable original,
Trackable target,
WorkflowRebaseRequest request)
Update an original item with
ChangeDetail state from a target that is missing in the
original. |
Trackable |
DefaultWorkflowMapper.rebaseMap(Trackable original,
Trackable target,
WorkflowRebaseRequest request) |
Trackable |
WorkflowMapper.revertMap(Trackable original,
WorkflowRevertRequest request)
Update an original
TrackingLevel.USER level record to represent a reverted state. |
Trackable |
DefaultWorkflowMapper.revertMap(Trackable original,
WorkflowRevertRequest request) |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultChangeTransformer.applyChanges(ChangeDetail detail,
Trackable target,
boolean reverse,
boolean addDetail,
boolean validateDetailVersion,
String explicitVersion)
Apply a
ChangeDetail to a target entity. |
boolean |
ChangeTransformer.applyChanges(ChangeDetail detail,
Trackable target,
boolean reverse,
boolean addDetail,
boolean validateDetailVersion,
String explicitVersion)
Apply a
ChangeDetail to a target entity |
protected void |
DefaultWorkflowMapper.applyChanges(ChangeDetail detail,
Trackable target,
boolean reverse,
boolean addDetail,
boolean validateDetailVersion,
String explicitVersion)
Apply a
ChangeDetail to a promotion target entity |
ChangeDetail |
DefaultTrackableDomainMapperMemberSupport.buildChangeDetailBefore(ContextInfo contextInfo,
Trackable repositoryDomain,
String propertyName,
PropertyTypeInfo propertyTypeInfo,
String businessPropertyName) |
ChangeDetail |
TrackableDomainMapperMemberSupport.buildChangeDetailBefore(ContextInfo contextInfo,
Trackable repositoryDomain,
String propertyName,
PropertyTypeInfo propertyTypeInfo,
String businessPropertyName)
Construct a
ChangeDetail instance that represents the value of soon-to-be dirty field
before the mutating change is applied. |
ContextState |
ContextStateBuilder.buildContextState(Trackable domain,
ContextInfo contextInfo)
Builds
ContextState information for a ContextStateAware business instance corresponding to the given Trackable
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 in
ContextState information to the business domain that can be inspected for
additional metadata around the entity in relation to the context of the requester. |
protected List<FieldChange> |
ContextStateBuilder.buildContextStateFieldChanges(Trackable domain)
Builds a list of
FieldChanges for the ContextState of a
ContextStateAware business instance corresponding to a given
Trackable domain instance . |
void |
DefaultTrackableDomainMapperMemberSupport.buildTracking(ContextInfo contextInfo,
Trackable domainInstance,
List<ChangeDetail> details) |
void |
TrackableDomainMapperMemberSupport.buildTracking(ContextInfo contextInfo,
Trackable domainInstance,
List<ChangeDetail> details)
Compile the
Tracking information for a new change |
void |
DefaultTrackableDomainMapperMemberSupport.buildTracking(Trackable domainInstance,
List<ChangeDetail> details) |
void |
TrackableDomainMapperMemberSupport.buildTracking(Trackable domainInstance,
List<ChangeDetail> details)
Compile the
Tracking information for a new change. |
protected void |
DefaultWorkflowMapper.deployChange(Trackable original,
Trackable target,
String propagationId,
String version)
Handle the advancement of changes (non-delete) from a starting object to a target object.
|
protected void |
DefaultWorkflowMapper.deployDelete(Trackable original,
Trackable target)
Handle the advancement of a delete change from a starting object to a target object.
|
ForwardMapResponse |
WorkflowMapper.deployMap(Trackable original,
Trackable target,
WorkflowDeployRequest request,
String propagationId)
Transfer state (via
ChangeDetail between an original item and the target production
state. |
ForwardMapResponse |
DefaultWorkflowMapper.deployMap(Trackable original,
Trackable target,
WorkflowDeployRequest request,
String propagationId) |
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 |
ContextStateBuilder.determineArchived(Trackable domain)
Determines the
ContextState.getArchived() . |
protected Integer |
ContextStateBuilder.determineContextStateLevel(Trackable domain)
Determines the
ContextState.getLevel() . |
protected boolean |
ContextStateBuilder.determineContextStateMutability(Trackable domain,
ContextInfo contextInfo)
Determines whether the domain is mutable given the requesting context.
|
protected boolean |
AlwaysMutableContextStateBuilder.determineContextStateMutability(Trackable domain,
ContextInfo contextInfo) |
protected boolean |
ContextStateBuilder.determinePolicyContextStateMutability(Trackable domain,
ContextInfo contextInfo)
Determines whether the domain is mutable given the requesting context based on permissions
and policy validation.
|
protected String |
ContextStateBuilder.determineSandboxChangeType(Trackable domain)
Returns the
tracking's object's sandbox change type. |
Trackable |
DefaultTrackableDomainMapperMemberSupport.handleDelete(Trackable repositoryDomain,
ContextInfo contextInfo) |
Trackable |
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.
|
protected void |
DefaultWorkflowMapper.promoteChange(Trackable original,
Trackable target,
String promotionId)
Handle the advancement of changes (non-delete) from a starting object to a target object
based on matching promotion id.
|
protected void |
DefaultWorkflowMapper.promoteDelete(Trackable original,
Trackable target,
String promotionId)
Handle the advancement of a delete change from a starting object to a target object based on
matching promotion id.
|
ForwardMapResponse |
WorkflowMapper.promoteMap(Trackable original,
Trackable target,
WorkflowPromoteRequest request)
Transfer state (via
ChangeDetail between an original item and a target item. |
ForwardMapResponse |
DefaultWorkflowMapper.promoteMap(Trackable original,
Trackable target,
WorkflowPromoteRequest request) |
Trackable |
WorkflowMapper.propagateMap(Trackable original,
Trackable target,
boolean delete,
String propagationId)
Transfer state (via
ChangeDetail between an original item and a target item belonging
to a parent Catalog and a child Catalog, respectively. |
Trackable |
DefaultWorkflowMapper.propagateMap(Trackable original,
Trackable target,
boolean delete,
String propagationId) |
Trackable |
WorkflowMapper.rebaseMap(Trackable original,
Trackable target,
WorkflowRebaseRequest request)
Update an original item with
ChangeDetail state from a target that is missing in the
original. |
Trackable |
DefaultWorkflowMapper.rebaseMap(Trackable original,
Trackable target,
WorkflowRebaseRequest request) |
RejectMapResponse |
WorkflowMapper.rejectMap(Trackable promotedState,
Trackable target,
WorkflowRejectRequest request)
Transfer state (via
ChangeDetail between a promoted sandbox state item to a new user
state item. |
RejectMapResponse |
DefaultWorkflowMapper.rejectMap(Trackable original,
Trackable target,
WorkflowRejectRequest request) |
Trackable |
WorkflowMapper.revertMap(Trackable original,
WorkflowRevertRequest request)
Update an original
TrackingLevel.USER level record to represent a reverted state. |
Trackable |
DefaultWorkflowMapper.revertMap(Trackable original,
WorkflowRevertRequest request) |
void |
RejectMapResponse.setAdvancedState(Trackable advancedState)
The resulting promotion sandbox state after any
ChangeDetail instances have been
removed, and the entity state updated to reflect the removal. |
protected void |
ContextStateBuilder.setApplicationInfo(Trackable domain,
ContextState contextState,
TrackableBehaviorPackage behavior) |
protected void |
ContextStateBuilder.setCatalogInfo(Trackable domain,
ContextState contextState,
TrackableBehaviorPackage behavior) |
void |
ContextStateBuilder.setChangeStateForEmbeddedCollections(Trackable domain,
ContextStateAware businessItem,
org.modelmapper.ModelMapper fromMeMapper)
Sets the
EmbeddedContextState on a businessItem's embedded collections where the
member items are EmbeddedContextStateAware . |
protected void |
ContextStateBuilder.setContextStateTrackingInfo(Trackable domain,
ContextState contextState)
Adds additional info to a
ContextState being built for a ContextStateAware business instance corresponding to a given Trackable
domain instance . |
protected void |
ContextStateBuilder.setCustomerContext(Trackable domain,
ContextState contextState,
TrackableBehaviorPackage behavior) |
protected void |
ContextStateBuilder.setTenant(Trackable domain,
ContextState contextState,
TrackableBehaviorPackage behavior) |
protected void |
DefaultTrackableDomainMapperMemberSupport.updateChangeSummaryState(Trackable entity,
Tracking tracking) |
protected void |
DefaultTrackableDomainMapperMemberSupport.updatePersistenceMessageState(Trackable entity,
Tracking tracking) |
RejectMapResponse |
RejectMapResponse.withAdvancedState(Trackable advancedState) |
Constructor and Description |
---|
ForwardMapResponse(Trackable forwardState) |
RejectMapResponse(Trackable userState) |
Modifier and Type | Method and Description |
---|---|
protected CommonMarketplaceApplicationCatalogRepository<Trackable> |
DefaultCommonMarketplaceApplicationCatalogService.getRepository() |
Constructor and Description |
---|
DefaultCommonMarketplaceApplicationCatalogService(CommonMarketplaceApplicationCatalogRepository<Trackable> repository,
CrudEntityHelper helper) |
Modifier and Type | Method and Description |
---|---|
protected List<TrackableRepository<Trackable>> |
PurgeObsoleteSandboxDataHandler.getTrackableRepositories() |
protected List<TrackableRepository<Trackable>> |
PruneRestingNotificationStatesHandler.getTrackableRepositories() |
Modifier and Type | Method and Description |
---|---|
protected void |
ChangeSummaryMessageFactory.buildIndexableInformation(Object entity,
Trackable domain,
ChangeEvent changeEvent)
Assign
ChangeEvent.getIndexableTargetId() and ChangeEvent.getIndexableType() ,
if single index request messaging is supported for the entity and state. |
protected boolean |
ChangeDetailPruningPersistenceMessageAckedHandler.isProductionLevel(Trackable trackable) |
protected boolean |
ChangeDetailPruningPersistenceMessageAckedHandler.isSandboxableEntity(Trackable trackable,
TrackableBehaviorUtil trackableBehaviorUtil) |
protected void |
ChangeSummaryMessageFactory.setVendorRefIfApplicable(Trackable entity,
ChangeEvent changeEvent)
If vendor processing is enabled, this will determine the vendor the
entity is
associated to, and set that information on the ChangeEvent.getVendorRef() . |
Modifier and Type | Method and Description |
---|---|
protected void |
ChangeDetailPruningPersistenceMessageAckedHandler.pruneChangeDetails(Object nativeEntityId,
TrackableRepository<Trackable> repository) |
Constructor and Description |
---|
PruneRestingNotificationStatesHandler(List<TrackableRepository<Trackable>> trackableRepositories,
PruneRestingNotificationStatesConfigurationProperties configurationProperties) |
PurgeObsoleteSandboxDataHandler(List<TrackableRepository<Trackable>> trackableRepositories,
PurgeObsoleteSandboxDataConfigurationProperties configurationProperties) |
Modifier and Type | Method and Description |
---|---|
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateApplicationCatalogUpdate(@NonNull Trackable entity,
@NonNull Application application)
If a catalog discriminated entity, validate that the current user is capable of updating an
entity via the catalogs visible to the current application.
|
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateApplicationUpdate(@NonNull Trackable entity,
@NonNull Application application)
If an application discriminated entity, validate that the current user is capable of updating
an entity via the application requested in the context.
|
PolicyResponse |
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.
|
PolicyResponse |
DefaultTrackablePolicyUtils.validateDelete(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
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 instance
|
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateEntityUpdateForTenantFactors(Trackable entity,
Application application,
String tenantId,
TrackableBehaviorPackage behavior) |
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateGlobalMutateToInheritedCatalog(Trackable entity,
ContextInfo contextInfo) |
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateGlobalUpdateToHiddenCatalog(Trackable entity) |
PolicyResponse |
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.
|
PolicyResponse |
DefaultTrackablePolicyUtils.validateInsert(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
protected boolean |
DefaultTrackablePolicyUtils.validateTenantTrackableUpdate(Trackable entity,
Application application,
TrackableBehaviorPackage behavior) |
protected PolicyResponse |
DefaultTrackablePolicyUtils.validateTenantUpdate(@NonNull Trackable entity,
String tenantId) |
PolicyResponse |
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.
|
PolicyResponse |
DefaultTrackablePolicyUtils.validateUpdate(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy) |
Modifier and Type | Method and Description |
---|---|
protected PolicyResponse |
VendorAwareTrackablePolicyUtils.validateEntityMutableByCurrentVendorRestrictions(Trackable entity,
ContextInfo contextInfo,
String[] requiredPermissionRoots,
PermissionMatchingStrategy permissionMatchingStrategy,
OperationType operationType)
Checks whether the given
entity 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 by
DefaultTrackablePolicyUtils.validateUpdate(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
and
DefaultTrackablePolicyUtils.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. |
PolicyResponse |
VendorAwareTrackablePolicyUtils.validateInsert(Trackable entity,
ContextInfo contextInfo,
String[] permissionRoots,
PermissionMatchingStrategy strategy)
Overrides
DefaultTrackablePolicyUtils.validateInsert(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
to add behavior that checks whether the entity can be inserted by the current
authentication's vendor restrictions. |
Modifier and Type | Method and Description |
---|---|
<R extends TrackableRepository<Trackable> & TrackableRsqlFilterExecutor<Trackable>> |
RsqlCrudEntityHelper.castToRsqlRepository(TrackableRepository<Trackable> repository)
Since most of the methods in the service require a repository that implements both
TrackableRepository and TrackableRsqlFilterExecutor , this method provides a
convenient way to handle that casting. |
<R extends TrackableRepository<Trackable> & TrackableRsqlFilterExecutor<Trackable>> |
RsqlCrudEntityHelper.castToRsqlRepository(TrackableRepository<Trackable> repository)
Since most of the methods in the service require a repository that implements both
TrackableRepository and TrackableRsqlFilterExecutor , this method provides a
convenient way to handle that casting. |
<P,R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>> |
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>> |
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>> |
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>> |
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>> |
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>> |
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>> |
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.
|
<P,R extends TrackableRsqlFilterExecutor<Trackable> & TrackableRepository<Trackable>> |
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.
|
Modifier and Type | Method and Description |
---|---|
protected <P> Trackable |
CrudEntityHelper.applyReplace(String entityToReplaceId,
P replacement,
Map<String,Trackable> foundEntitiesByContextId,
List<BulkPersistenceResponse.PersistenceFailure<P>> failures,
ContextInfo contextInfo) |
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 the
CrudEntityHelper.mapper to convert a business domain instance to its
persistent equivalent. |
Modifier and Type | Method and Description |
---|---|
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 TrackableRepository<Trackable> |
BaseCrudEntityService.getRepository() |
Modifier and Type | Method and Description |
---|---|
protected P |
BaseCrudEntityService.convertFromPersistentDomain(Trackable domain,
ContextInfo contextInfo) |
<P> P |
CrudEntityHelper.convertFromPersistentDomain(Trackable domain,
ContextInfo contextInfo)
Convenience method to use the
CrudEntityHelper.mapper to convert a persistent domain instance to its
business equivalent. |
void |
CrudEntityHelper.notify(Trackable domain,
ContextInfo context,
@NonNull com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository)
Notify the system of the change.
|
void |
ChangeNotifier.notify(Trackable domain,
ContextInfo context,
com.broadleafcommerce.common.messaging.notification.NotificationStateRepository repository)
Notify the async message fabric of the change
|
String |
PropagationIntegrator.prepare(Trackable domain,
ContextInfo context,
OperationType operationType)
Prepare a
Trackable entity for propagation, if applicable. |
String |
CrudEntityHelper.prepare(Trackable updated,
ContextInfo context,
@NonNull OperationType operationType) |
void |
PropagationIntegrator.propagateIfApplicable(Trackable domain,
ContextInfo context,
OperationType operationType,
TrackableRepository<Trackable> repository,
String propagationId)
Initiate a catalog propagation for the change.
|
void |
CrudEntityHelper.propagateIfApplicable(Trackable updated,
ContextInfo context,
@NonNull OperationType operationType,
@NonNull TrackableRepository<Trackable> repository,
String propagationId) |
void |
CatalogChangeService.sync(Trackable catalog,
Class<Trackable> type,
boolean isNew)
Sync catalog change information to one or more instances of
<D> |
Modifier and Type | Method and Description |
---|---|
protected <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) |
<R extends TrackableRepository<Trackable> & TrackableRsqlFilterExecutor<Trackable>> |
RsqlCrudEntityHelper.castToRsqlRepository(TrackableRepository<Trackable> repository)
Since most of the methods in the service require a repository that implements both
TrackableRepository and TrackableRsqlFilterExecutor , this method provides a
convenient way to handle that casting. |
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 the
CrudEntityHelper.mapper to convert a business domain instance to its
persistent equivalent. |
<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.
|
<P> List<P> |
CrudEntityHelper.createAll(List<P> businessInstances,
ContextInfo context,
TrackableRepository<Trackable> repository) |
<P> BulkPersistenceResponse<P> |
CrudEntityHelper.createAllAllowingPartialSuccess(List<P> businessInstances,
ContextInfo context,
TrackableRepository<Trackable> repository) |
void |
CrudEntityHelper.delete(String id,
ContextInfo context,
TrackableRepository<Trackable> repository)
Perform a delete operation on the entity identified by the context id.
|
void |
PropagationIntegrator.propagateIfApplicable(Trackable domain,
ContextInfo context,
OperationType operationType,
TrackableRepository<Trackable> repository,
String propagationId)
Initiate a catalog propagation for the change.
|
<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.
|
<P> Iterable<P> |
CrudEntityHelper.readAllByContextId(Iterable<String> ids,
ContextInfo context,
TrackableRepository<Trackable> repository)
Retrieve all business instances based on a list of context ids.
|
<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.
|
<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.
|
<P> List<P> |
CrudEntityHelper.replaceAll(List<Update<P>> replacements,
ContextInfo context,
TrackableRepository<Trackable> repository) |
<P> BulkPersistenceResponse<P> |
CrudEntityHelper.replaceAllAllowingPartialSuccess(List<Update<P>> replacements,
ContextInfo context,
TrackableRepository<Trackable> repository) |
void |
CatalogChangeService.sync(Trackable catalog,
Class<Trackable> type,
boolean isNew)
Sync catalog change information to one or more instances of
<D> |
cz.jirutka.rsql.parser.ast.Node |
RsqlCrudEntityHelper.transform(cz.jirutka.rsql.parser.ast.Node filters,
TrackableRepository<Trackable> repository)
Transforms
filters from properties that target a projection into ones that apply to a
backing repository provider domain object |
org.springframework.data.domain.Sort |
CrudEntityHelper.transform(org.springframework.data.domain.Sort sort,
TrackableRepository<Trackable> repository)
Transforms the given
sort from properties targeting the projection layer into a
Sort that targets properties at the domain layer |
org.springframework.data.domain.Pageable |
CrudEntityHelper.transformSort(org.springframework.data.domain.Pageable pageable,
TrackableRepository<Trackable> repository)
Transforms the sort inside of a
Pageable (if applicable). |
<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.
|
<P> List<P> |
CrudEntityHelper.updateAll(List<Update<P>> updates,
ContextInfo context,
TrackableRepository<Trackable> repository) |
<P> BulkPersistenceResponse<P> |
CrudEntityHelper.updateAllAllowingPartialSuccess(List<Update<P>> updates,
ContextInfo context,
TrackableRepository<Trackable> repository) |
<P> P |
CrudEntityHelper.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
TrackableRepository<Trackable> repository,
SortPositionStrategy<P> sortPositionStrategy)
Apply a sort field value change
|
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.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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DecimalSplitSortPositionStrategy.updateAfterPositionSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
TrackableRepository<Trackable> repository,
Sortable toUpdate,
Sortable sortTransfer)
Update when the
SortPositionRequest.getPositionAfterContextId() value is available. |
protected void |
DecimalSplitSortPositionStrategy.updateBeforePositionSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
TrackableRepository<Trackable> repository,
Sortable toUpdate,
Sortable sortTransfer)
Update when the
SortPositionRequest.getPositionBeforeContextId() value is available. |
protected void |
DecimalSplitSortPositionStrategy.updateFirstPositionSort(ContextInfo context,
TrackableRepository<Trackable> repository,
Sortable domain,
Sortable sortTransfer)
Update when the
SortPositionRequest.getPositionAfterContextId() is missing, which
indicates that the request is to move the entity to the first position in the sorting group. |
default P |
SortPositionStrategy.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
DomainMapperManager mapper,
TrackableRepository<Trackable> repository,
ChangeNotifier notifier)
Deprecated.
Use
SortPositionStrategy.updateSort(SortPositionRequest, ContextInfo, DomainMapperManager, TrackableRepository, ChangeNotifier, PropagationIntegrator)
instead to allow for instant propagation handling. |
P |
SortPositionStrategy.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
DomainMapperManager mapper,
TrackableRepository<Trackable> repository,
ChangeNotifier notifier,
PropagationIntegrator propagationIntegrator)
Apply a sort field value change
|
P |
DecimalSplitSortPositionStrategy.updateSort(SortPositionRequest sortPositionRequest,
ContextInfo context,
DomainMapperManager mapper,
TrackableRepository<Trackable> repository,
ChangeNotifier notifier,
PropagationIntegrator propagationIntegrator) |
Modifier and Type | Interface and Description |
---|---|
interface |
CommonApplicationRepository<D extends Trackable>
Repository agnostic interface for management of
Trackable domain related to
Application . |
interface |
CommonCatalogRepository<D extends Trackable>
|
interface |
CommonMarketplaceApplicationCatalogRepository<D extends Trackable>
Repository agnostic interface for management of
Trackable domain related to
MarketplaceApplicationCatalog . |
interface |
CustomizedCommonApplicationRepository<D extends Trackable>
Advanced functionality related to catalog maintenance and maintenance of application
discriminated entities.
|
Modifier and Type | Method and Description |
---|---|
<D extends Trackable> |
CustomizedCommonCatalogRepository.readApplicationOwnedInheritedCatalog(String startingCatalogId,
String applicationId)
Find any application owned catalog that inherits from the starting catalog based on the
requested application.
|
<D extends Trackable> |
CustomizedCommonCatalogRepository.updateAllChildRelatedEntitiesOfType(String contextId,
Map<String,Object> updateValues,
Class<D> type)
Given a catalog
contextId , update all entity instances of the domain type
whose related catalog has its parent catalog set to the given contextId . |
<D extends Trackable> |
CustomizedCommonCatalogRepository.updateAllRelatedEntitiesOfType(String contextId,
Map<String,Object> updateValues,
Class<D> type)
Given a catalog
contextId , update all entity instances of the domain type
belonging to the catalog to have the updated values. |
Modifier and Type | Method and Description |
---|---|
Trackable |
ApplicationChangedEvent.getApplication()
The application that was modified
|
Trackable |
CatalogChangedEvent.getCatalog()
The catalog that was modified
|
protected Trackable |
TenantPersistenceHandler.hydrateFromJson(com.fasterxml.jackson.databind.JsonNode entityJson,
Class<?> domainType,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Create a repository-specific entity instance given a JSON representation.
|
Modifier and Type | Method and Description |
---|---|
void |
CatalogChangeHelper.sync(Trackable catalog,
Class<Trackable> type,
boolean isNew) |
protected void |
TenantPersistenceHandler.updateCache(Trackable existingInstance)
Update Spring CacheManager to groom caches related to this entity persistence
|
Modifier and Type | Method and Description |
---|---|
void |
TenantPersistenceHandler.setApplicationCatalogRepository(CommonMarketplaceApplicationCatalogRepository<Trackable> applicationCatalogRepository) |
void |
CatalogChangeHelper.sync(Trackable catalog,
Class<Trackable> type,
boolean isNew) |
Constructor and Description |
---|
ApplicationChangedEvent(Object source,
Trackable application,
OperationType operation) |
CatalogChangedEvent(Object source,
Trackable catalog,
OperationType operation) |
Constructor and Description |
---|
CatalogChangeHelper(CommonCatalogRepository<Trackable> repo) |
DefaultCommonApplicationService(CommonApplicationRepository<Trackable> repository,
CrudEntityHelper helper) |
DefaultCommonCatalogService(CommonCatalogRepository<Trackable> repository,
CrudEntityHelper helper,
com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager) |
TenantPersistenceHandler(CommonCatalogRepository<Trackable> catalogRepository,
CommonApplicationRepository<Trackable> applicationRepository,
DomainMapperManager trackingMapper,
org.springframework.context.ApplicationEventPublisher eventPublisher,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
List<ApplicationDataRouteSupporting> applicationRoutes,
List<CatalogDataRouteSupporting> catalogRoutes,
org.springframework.core.env.Environment environment) |
TenantPersistenceHandler(CommonCatalogRepository<Trackable> catalogRepository,
CommonApplicationRepository<Trackable> applicationRepository,
DomainMapperManager trackingMapper,
org.springframework.context.ApplicationEventPublisher eventPublisher,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
List<ApplicationDataRouteSupporting> applicationRoutes,
List<CatalogDataRouteSupporting> catalogRoutes,
org.springframework.core.env.Environment environment) |
Modifier and Type | Method and Description |
---|---|
Trackable |
VendorSandboxPropagationHandler.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
VendorSandboxPropagationHandler.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationHandler.handlePropagation(Trackable incoming,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository,
boolean isDelete) |
Trackable |
VendorSandboxPropagationHandler.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Modifier and Type | Method and Description |
---|---|
protected void |
WorkflowTransitionHelper.applyDeployment(WorkflowDeployRequest request,
Trackable target,
Trackable original)
Apply changes from an "original" entity to a target production entity (if any).
|
protected void |
WorkflowTransitionHelper.applyPromotion(WorkflowPromoteRequest request,
Trackable target,
Trackable original)
Apply changes from an "original" entity to a target sandbox entity (if any).
|
protected void |
WorkflowTransitionHelper.applyReject(WorkflowRejectRequest request,
Trackable target,
Trackable original)
Apply one or more changes related to a promotion from an "original" entity to a target user
sandbox entity (if any).
|
boolean |
VendorSandboxPropagationHandler.canHandle(Trackable incoming,
String incomingCatalog,
String parentCatalog,
Trackable candidate,
OperationType changeType) |
boolean |
DefaultPropagationHandler.canHandle(Trackable incoming,
String incomingCatalog,
String parentCatalog,
Trackable candidate,
OperationType changeType) |
boolean |
PropagationHandler.canHandle(Trackable incoming,
String incomingCatalog,
String parentCatalog,
Trackable candidate,
OperationType changeType)
Is this handler capable of handling the propagation process given the contextual information.
|
protected TempOverrideMapResponse |
WorkflowTransitionHelper.evaluateForTemporaryOverride(WorkflowDeployRequest request,
Trackable target,
Trackable original)
In the case where a change was propagated after deployment via
VendorSandboxPropagationHandler , temporary override state for an application can be
created. |
Trackable |
VendorSandboxPropagationHandler.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
VendorSandboxPropagationHandler.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationHandler.handlePropagation(Trackable incoming,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository,
boolean isDelete) |
protected void |
WorkflowTransitionHelper.handleTransitionFailure(TransitionRequest request,
Trackable original,
Exception e)
Handle failure of a transition request and notify the messaging system of the failure
|
Trackable |
VendorSandboxPropagationHandler.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected void |
WorkflowTransitionHelper.notifyOfCompletion(Trackable domain)
Inform the system via a message of type
WorkflowRequestCompletionProducer.TYPE that
transition processing is complete. |
protected void |
WorkflowTransitionHelper.notifyOfPersistence(Trackable domain)
Inform the system via a message of type
PersistenceProducer.TYPE that an entity has
been persisted. |
protected void |
DefaultPropagationHandler.notifyOfPersistence(Trackable domain,
TrackableRepository<Trackable> repository)
Inform the system via a message of type
PersistenceProducer.TYPE that an entity has
been persisted. |
protected void |
WorkflowTransitionHelper.propagate(Trackable deployed,
String parentCatalog,
boolean isDelete,
String propagationId)
Deprecated.
Only supports
DefaultPropagationHandler . Use
WorkflowTransitionHelper.propagate(Trackable, String, OperationType, String) instead for full
propagation support. WorkflowTransitionHelper.propagate(Trackable, String, OperationType, String)
usage requires broadleaf.sandbox.propagation.enabled property be set to
true. |
protected void |
WorkflowTransitionHelper.propagate(Trackable deployed,
String parentCatalog,
OperationType changeType,
String propagationId)
Given a deployed catalog discriminated change, recurse through versions of the entity in
child catalogs and transfer the deployed changes using the process defined implementations of
PropagationHandler . |
void |
PropagationManager.propagate(Trackable deployed,
String parentCatalog,
OperationType changeType,
String propagationId,
TrackableRepository<Trackable> repository)
Given a deployed catalog discriminated change, recurse through versions of the entity in
child catalogs and transfer the deployed changes using the process defined implementations of
PropagationHandler . |
void |
DefaultPropagationManager.propagate(Trackable deployed,
String parentCatalog,
OperationType changeType,
String propagationId,
TrackableRepository<Trackable> repository) |
protected void |
WorkflowTransitionHelper.updateCompletionState(Trackable originalTrackable,
Tracking advancedTracking,
TransitionRequest transitionRequest,
boolean success,
Exception e)
Setup the initial
NotificationState on a Trackable entity in regard to the
sending status of the WorkflowRequestCompletionProducer.TYPE message for transition
completion. |
protected void |
DefaultPropagationHandler.updatePersistenceState(Trackable trackable)
Setup the initial
NotificationState on a Trackable entity in regard to the
sending status of the PersistenceProducer.TYPE message for a persistence event. |
protected void |
WorkflowTransitionHelper.updatePersistenceState(Trackable trackable)
Setup the initial
NotificationState on a Trackable entity in regard to the
sending status of the PersistenceProducer.TYPE message for a persistence event. |
Modifier and Type | Method and Description |
---|---|
Trackable |
VendorSandboxPropagationHandler.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleCreate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
TrackableRepository<Trackable> repository) |
Trackable |
VendorSandboxPropagationHandler.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleDelete(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationHandler.handlePropagation(Trackable incoming,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository,
boolean isDelete) |
Trackable |
VendorSandboxPropagationHandler.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
DefaultPropagationHandler.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
Trackable |
PropagationAware.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected Trackable |
DefaultPropagationManager.handleUpdate(Trackable incoming,
String incomingCatalog,
String parentCatalog,
String propagationId,
Trackable candidate,
TrackableRepository<Trackable> repository) |
protected void |
DefaultPropagationHandler.notifyOfPersistence(Trackable domain,
TrackableRepository<Trackable> repository)
Inform the system via a message of type
PersistenceProducer.TYPE that an entity has
been persisted. |
void |
PropagationManager.propagate(Trackable deployed,
String parentCatalog,
OperationType changeType,
String propagationId,
TrackableRepository<Trackable> repository)
Given a deployed catalog discriminated change, recurse through versions of the entity in
child catalogs and transfer the deployed changes using the process defined implementations of
PropagationHandler . |
void |
DefaultPropagationManager.propagate(Trackable deployed,
String parentCatalog,
OperationType changeType,
String propagationId,
TrackableRepository<Trackable> repository) |
Constructor and Description |
---|
DefaultTransitionHandler(TrackableRepository<Trackable> repository,
WorkflowMapper mapper,
CommonCatalogService<Catalog> commonCatalogService,
com.broadleafcommerce.common.messaging.repository.ResourceLockRepository<?,?> resourceLockRepository,
Class<?> entityDomain,
com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager,
WorkflowRequestCompletionNotifier completionNotifier,
com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService,
com.broadleafcommerce.common.messaging.notification.MessageSerializationHelper serializationHelper,
com.broadleafcommerce.common.extension.data.DataRouteReference routeReference,
SingleIndexRequestMessageFactory factory) |
VendorSandboxPropagationHandler(CommonCatalogService<? extends Catalog> catalogService,
CommonApplicationService<? extends Application> applicationService,
DomainMapperManager mapperManager,
CrudEntityHelper helper,
SandboxPropagationProperties propagationProperties,
org.modelmapper.ModelMapper cloneMapper,
List<ChangeTransformer> changeTransformers,
TrackableDomainMapperMemberSupport domainMapperMemberSupport,
WorkflowMapper workflowMapper,
CommonMarketplaceApplicationCatalogRepository<Trackable> applicationCatalogRepository) |
WorkflowTransitionHelper(TrackableRepository<Trackable> repository,
WorkflowMapper mapper,
CommonCatalogService<Catalog> catalogService,
com.broadleafcommerce.common.messaging.repository.ResourceLockRepository<?,?> resourceLockRepository,
com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager,
WorkflowRequestCompletionNotifier completionNotifier,
com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService,
com.broadleafcommerce.common.messaging.notification.MessageSerializationHelper helper) |
WorkflowTransitionHelper(TrackableRepository<Trackable> repository,
WorkflowMapper mapper,
com.broadleafcommerce.common.messaging.repository.ResourceLockRepository<?,?> resourceLockRepository,
com.broadleafcommerce.common.messaging.notification.NotificationManager notificationManager,
WorkflowRequestCompletionNotifier completionNotifier,
com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService,
com.broadleafcommerce.common.messaging.notification.MessageSerializationHelper helper) |
Copyright © 2021. All rights reserved.