public class AlwaysMutableContextStateBuilder extends ContextStateBuilder
ContextStateBuilder
that always returns true
for
ContextState.mutable
.
This is only intended to be used when security is disabled.
DETAIL_LEVEL_COMPARATOR, DETAIL_TIMESTAMP_COMPARATOR, FIELD_LEVEL_COMPARATOR
Constructor and Description |
---|
AlwaysMutableContextStateBuilder(com.broadleafcommerce.common.extension.TypeFactory factory,
TrackableBehaviorUtil behaviorUtil,
com.fasterxml.jackson.databind.ObjectMapper fieldChangeMapper,
org.modelmapper.ModelMapper cloneMapper) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
determineContextStateMutability(Trackable domain,
ContextInfo contextInfo)
Determines whether the domain is mutable given the requesting context.
|
buildBusinessCollectionAccessorName, buildContextState, buildContextStateFieldChanges, deserializeCollectionValue, determineApplicationContextStateMutability, determineArchived, determineContextStateLevel, determinePersistentCollectionJavaType, determinePolicyContextStateMutability, determineSandboxChangeType, getBehaviorUtil, getCloneMapper, getCollectionField, getFactory, getFieldChangeMapper, getOtherBusinessCollectionValue, getOtherCollectionMemberType, getPolicyUtils, isLatestChangeToFieldAtAnyLevel, isNotObsoleteChange, isNotProductionChange, isRebasedChange, setApplicationInfo, setCatalogInfo, setChangeStateForEmbeddedCollections, setCollectionItemContextState, setContextStateTrackingInfo, setCustomerContext, setPolicyUtils, setTenant
public AlwaysMutableContextStateBuilder(com.broadleafcommerce.common.extension.TypeFactory factory, TrackableBehaviorUtil behaviorUtil, com.fasterxml.jackson.databind.ObjectMapper fieldChangeMapper, org.modelmapper.ModelMapper cloneMapper)
protected boolean determineContextStateMutability(Trackable domain, ContextInfo contextInfo)
ContextStateBuilder
determineContextStateMutability
in class ContextStateBuilder
domain
- The Trackable domain instance
under consideration for
mutabilitycontextInfo
- The context information used to determine sandbox and multitenant state in
trackingCopyright © 2021. All rights reserved.