Uses of Class
com.broadleafcommerce.data.tracking.core.type.OperationType
-
-
Uses of OperationType in com.broadleafcommerce.data.tracking.core.context
Methods in com.broadleafcommerce.data.tracking.core.context that return OperationType Modifier and Type Method Description protected OperationType
ContextInfoHandlerMethodArgumentResolver. getDefaultOperationType()
OperationType
ContextInfo. getOperationType()
The type of CRUD operation being requestedOperationType
value()
Which operation thisis initialized with
Methods in com.broadleafcommerce.data.tracking.core.context with parameters of type OperationType Modifier and Type Method Description protected boolean
ContextInfoWebRequestResolver. determineClearOverride(org.springframework.web.context.request.NativeWebRequest req, OperationType operationType)
ContextInfo
ContextInfoWebRequestResolver. resolveContextInfo(@NonNull org.springframework.web.context.request.NativeWebRequest req, @NonNull ContextRequest contextRequest, @NonNull OperationType operationType, org.springframework.core.MethodParameter methodParameter)
Builds aContextInfo
with the givencontextRequest
andoperationType
, with additional fields populated from data gathered inreq
.ContextInfo
ContextInfoWebRequestResolver. resolveContextInfo(@NonNull org.springframework.web.context.request.NativeWebRequest req, @NonNull OperationType operationType, org.springframework.core.MethodParameter methodParameter)
A convenience method that builds both aContextInfo
and itsContextRequest
from the given web request.void
ContextInfo. setOperationType(OperationType operationType)
The type of CRUD operation being requestedContextInfo
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 OperationType Constructor Description ContextInfo(OperationType operationType)
ContextInfo(OperationType operationType, boolean ignoreNarrowing)
Convenience constructor to set the operationType and ignoreNarrowing indicatorContextInfo(OperationType operationType, ContextRequest request)
Convenience method for operationType and contextRequestContextInfo(OperationType operationType, ContextRequest request, String author)
Convenience method for operationType and contextRequest -
Uses of OperationType in com.broadleafcommerce.data.tracking.core.mapping
Methods in com.broadleafcommerce.data.tracking.core.mapping with parameters of type OperationType Modifier and Type Method Description static <P> P
EntityUtils. divert(ContextInfo contextInfo, OperationType type, Function<ContextInfo,P> op)
Divert a call to the functionop
with the given context info and operation type. -
Uses of OperationType in com.broadleafcommerce.data.tracking.core.policy
Methods in com.broadleafcommerce.data.tracking.core.policy that return OperationType Modifier and Type Method Description OperationType[]
PolicyInformation. getOperationTypes()
OperationType[]
PolicyOverride. getOperationTypes()
protected OperationType
DefaultPolicyAspectProcessor. narrowType(PolicyInformation policy, ContextInfo contextInfo)
Figure out the OperationType to use, given the policy and contextInfo.OperationType[]
operationTypes()
One or more possible valid operation types.Methods in com.broadleafcommerce.data.tracking.core.policy with parameters of type OperationType Modifier and Type Method Description protected PolicyInformation
DefaultPolicyAspectProcessor. buildPolicyInformation(IdentityType[] identityTypes, String[] permissionRoots, OperationType[] operationTypes, PermissionMatchingStrategy multipleRootsMatchingStrategy, String ownerIdentifier, int param, int ownerIdentifierParam)
PolicyResponse
PolicyEvaluator. validate(Map<Integer,Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType)
Validate security context required to execute a method annotated withPolicy
.PolicyOverride
PolicyOverride. withOperationTypes(OperationType[] operationTypes)
Constructors in com.broadleafcommerce.data.tracking.core.policy with parameters of type OperationType Constructor Description PolicyInformation(String[] permissionRoots, OperationType[] operationTypes, PermissionMatchingStrategy permissionMatchingStrategy, IdentityType[] identityTypes, String ownerIdentifier, int param, int ownerIdentifierParam)
-
Uses of OperationType in com.broadleafcommerce.data.tracking.core.policy.trackable
Methods in com.broadleafcommerce.data.tracking.core.policy.trackable with parameters of type OperationType Modifier and Type Method Description protected Map<String,List<String>>
DefaultTrackablePolicyUtils. expandPermissionRootsToPermissions(@NonNull String[] permissionRoots, OperationType operationType)
PolicyResponse
TrackableEntityPolicyEvaluator. validate(Map<Integer,Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType)
PolicyResponse
DefaultTrackablePolicyUtils. validateContext(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType)
PolicyResponse
TrackablePolicyUtils. validateContext(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType)
Review theContextInfo
parameter for valid tenant user membership and valid catalog visibility based on the currentAuthentication
and requested tenant information in the contextInfo.protected PolicyResponse
DefaultTrackablePolicyUtils. validateEntityOperation(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType)
protected PolicyResponse
DefaultTrackablePolicyUtils. validateOperation(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType)
PolicyResponse
DefaultTrackablePolicyUtils. validatePermission(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo)
PolicyResponse
TrackablePolicyUtils. validatePermission(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo)
Validate the permission against the granted authorities of the currentAuthentication
.protected PolicyResponse
TrackableEntityPolicyEvaluator. validateRequestedOperation(Map<Integer,Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType, TrackablePolicyUtils trackablePolicyUtils)
-
Uses of OperationType in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor
Methods in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor that return OperationType Modifier and Type Method Description protected OperationType
VendorAwareTrackablePolicyUtils. determineRequiredOperationType(PolicyInformation policy, ContextInfo contextInfo)
This is copied fromDefaultPolicyAspectProcessor.narrowType(PolicyInformation, ContextInfo)
.Methods in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor with parameters of type OperationType Modifier and Type Method Description protected Set<String>
VendorAwareTrackablePolicyUtils. filterToVendorRestrictionsMatchingPolicyRequirements(@NonNull Set<String> restrictedVendorRefs, @NonNull Map<String,Set<String>> vendorRefsByRestrictedAuthority, OperationType requiredOperationType, @NonNull String[] permissionRoots, PermissionMatchingStrategy permissionMatchingStrategy)
protected boolean
VendorAwareTrackablePolicyUtils. isCatalogVisibleByVendorRestrictions(@NonNull ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType requiredOperationType)
Reports whether the catalog referenced in thecontextInfo
is visible by the vendor restrictions in the current authentication.PolicyResponse
VendorAwareTrackablePolicyUtils. validateContext(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType)
Performs similar validation toDefaultTrackablePolicyUtils.validateContext(ContextInfo, String[], PermissionMatchingStrategy, OperationType)
, but also considers whether the catalog in thecontextInfo
is visible by the current authentication's vendor restrictions.protected PolicyResponse
VendorAwareTrackablePolicyUtils. validateEntityMutableByCurrentVendorRestrictions(Trackable entity, ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType)
Checks whether the givenentity
being mutated is actually mutable given the current authentication's vendor privileges and provided policy requirements.protected PolicyResponse
VendorAwareTrackablePolicyUtils. validateEntityOperation(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType)
This is the method used byDefaultTrackablePolicyUtils.validateUpdate(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
andDefaultTrackablePolicyUtils.validateDelete(Trackable, ContextInfo, String[], PermissionMatchingStrategy)
to validate an entity can be updated/deleted by the current authentication, so it is overridden here to add consideration for vendor restrictions.PolicyResponse
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. -
Uses of OperationType in com.broadleafcommerce.data.tracking.core.service
Methods in com.broadleafcommerce.data.tracking.core.service with parameters of type OperationType Modifier and Type Method Description String
CrudEntityHelper. prepare(Trackable updated, ContextInfo context, @NonNull OperationType operationType)
String
PropagationIntegrator. prepare(Trackable domain, ContextInfo context, OperationType operationType)
Prepare aTrackable
entity for propagation, if applicable.void
CrudEntityHelper. propagateIfApplicable(Trackable updated, ContextInfo context, @NonNull OperationType operationType, @NonNull TrackableRepository<Trackable> repository, String propagationId)
void
PropagationIntegrator. propagateIfApplicable(Trackable domain, ContextInfo context, OperationType operationType, TrackableRepository<Trackable> repository, String propagationId)
Initiate a catalog propagation for the change. -
Uses of OperationType in com.broadleafcommerce.data.tracking.core.service.scheduledjob
Methods in com.broadleafcommerce.data.tracking.core.service.scheduledjob with parameters of type OperationType Modifier and Type Method Description ContextInfo
DefaultScheduledJobContextService. buildContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType)
Creates theContextInfo
for the specified scheduled job with the specified change operation andScheduledJobRef.getTenantId()
.ContextInfo
ScheduledJobContextService. buildContextInfo(com.broadleafcommerce.common.messaging.domain.ScheduledJobRef scheduledJobRef, OperationType operationType)
Creates theContextInfo
for the specified scheduled job with the specified change operation.protected ContextInfo
DefaultScheduledJobContextService. createContextInfo(OperationType operationType)
-
Uses of OperationType in com.broadleafcommerce.data.tracking.core.tenant.service
Methods in com.broadleafcommerce.data.tracking.core.tenant.service that return OperationType Modifier and Type Method Description OperationType
ApplicationChangedEvent. getOperation()
The operation that triggered the changeOperationType
CatalogChangedEvent. getOperation()
The operation that triggered the changeConstructors in com.broadleafcommerce.data.tracking.core.tenant.service with parameters of type OperationType Constructor Description ApplicationChangedEvent(Object source, Trackable application, OperationType operation)
CatalogChangedEvent(Object source, Trackable catalog, OperationType operation)
-
Uses of OperationType in com.broadleafcommerce.data.tracking.core.transition
Methods in com.broadleafcommerce.data.tracking.core.transition with parameters of type OperationType Modifier and Type Method Description 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.boolean
VendorSandboxPropagationHandler. canHandle(Trackable incoming, String incomingCatalog, String parentCatalog, Trackable candidate, OperationType changeType)
void
DefaultPropagationManager. propagate(Trackable deployed, String parentCatalog, OperationType changeType, String propagationId, TrackableRepository<Trackable> repository)
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 ofPropagationHandler
.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 ofPropagationHandler
. -
Uses of OperationType in com.broadleafcommerce.data.tracking.core.type
Methods in com.broadleafcommerce.data.tracking.core.type that return OperationType Modifier and Type Method Description static OperationType
OperationType. valueOf(String name)
Returns the enum constant of this type with the specified name.static OperationType[]
OperationType. values()
Returns an array containing the constants of this enum type, in the order they are declared.
-