Uses of Class
com.broadleafcommerce.data.tracking.core.policy.PolicyInformation
-
-
Uses of PolicyInformation in com.broadleafcommerce.data.tracking.core.cache.marketplace.vendor
Methods in com.broadleafcommerce.data.tracking.core.cache.marketplace.vendor that return PolicyInformation Modifier and Type Method Description protected PolicyInformation
DefaultVendorAwareCacheKeyEnhancer. getCurrentPolicyRequirements()
Methods in com.broadleafcommerce.data.tracking.core.cache.marketplace.vendor with parameters of type PolicyInformation Modifier and Type Method Description protected Set<String>
DefaultVendorAwareCacheKeyEnhancer. getPermissionRoots(PolicyInformation policyInformation)
-
Uses of PolicyInformation in com.broadleafcommerce.data.tracking.core.context
Methods in com.broadleafcommerce.data.tracking.core.context with parameters of type PolicyInformation Modifier and Type Method Description String
ContextInfo.QueryInfluencer. buildFilter(Class<?> entityBeingRead, PolicyInformation currentPolicyRequirements, ContextInfo contextInfo)
Produce aNode
filter string that theNarrowExecutor
can parse and add as a predicate for the query it is currently processing. -
Uses of PolicyInformation in com.broadleafcommerce.data.tracking.core.policy
Methods in com.broadleafcommerce.data.tracking.core.policy that return PolicyInformation Modifier and Type Method Description protected PolicyInformation
DefaultPolicyAspectProcessor. buildPolicyInformation(IdentityType[] identityTypes, String[] permissionRoots, OperationType[] operationTypes, PermissionMatchingStrategy multipleRootsMatchingStrategy, String ownerIdentifier, int param, int ownerIdentifierParam)
PolicyInformation
PolicyContext. derivePolicyInformation(PolicyInformation start)
Embellish the currentPolicyInformation
with any inherited information from a parent PolicyInformation instance in logic flow.PolicyInformation
PolicyContext. getMostDerivedPolicyInformation()
Policy validation flows may "stack" as a codepath progresses, and become more derived viaPolicyContext.derivePolicyInformation(PolicyInformation)
.Methods in com.broadleafcommerce.data.tracking.core.policy that return types with arguments of type PolicyInformation Modifier and Type Method Description Map<String,PolicyInformation>
PolicyContext. getContextPolicies()
Methods in com.broadleafcommerce.data.tracking.core.policy with parameters of type PolicyInformation Modifier and Type Method Description PolicyInformation
PolicyContext. derivePolicyInformation(PolicyInformation start)
Embellish the currentPolicyInformation
with any inherited information from a parent PolicyInformation instance in logic flow.protected OperationType
DefaultPolicyAspectProcessor. narrowType(PolicyInformation policy, ContextInfo contextInfo)
Figure out the OperationType to use, given the policy and contextInfo.PolicyResponse
PolicyEvaluator. validate(Map<Integer,Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType)
Validate security context required to execute a method annotated withPolicy
.PolicyResponse
PolicyEvaluator. validateReadOutput(Object output, PolicyInformation policy)
Validate the output of a read method for methods annotated with a Policy of theIdentityType.OWNER
type and a matching user of the owner type (seeTrackablePolicyUtils#isOwnerUser()
).Method parameters in com.broadleafcommerce.data.tracking.core.policy with type arguments of type PolicyInformation Modifier and Type Method Description void
PolicyContext. setContextPolicies(Map<String,PolicyInformation> contextPolicies)
-
Uses of PolicyInformation in com.broadleafcommerce.data.tracking.core.policy.trackable
Methods in com.broadleafcommerce.data.tracking.core.policy.trackable with parameters of type PolicyInformation Modifier and Type Method Description protected boolean
TrackableEntityPolicyEvaluator. isOwnerPolicy(PolicyInformation policy)
Does this policy contain IdentityType.OWNER?PolicyResponse
TrackableEntityPolicyEvaluator. validate(Map<Integer,Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType)
PolicyResponse
TrackableEntityPolicyEvaluator. validateReadOutput(Object output, PolicyInformation policy)
protected PolicyResponse
TrackableEntityPolicyEvaluator. validateRequestedOperation(Map<Integer,Object> methodParams, PolicyInformation policy, ContextInfo contextInfo, OperationType operationType, TrackablePolicyUtils trackablePolicyUtils)
-
Uses of PolicyInformation in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor
Methods in com.broadleafcommerce.data.tracking.core.policy.trackable.marketplace.vendor with parameters of type PolicyInformation Modifier and Type Method Description protected OperationType
VendorAwareTrackablePolicyUtils. determineRequiredOperationType(PolicyInformation policy, ContextInfo contextInfo)
This is copied fromDefaultPolicyAspectProcessor.narrowType(PolicyInformation, ContextInfo)
.Set<String>
VendorAwareTrackablePolicyUtils. filterToVendorRestrictionsMatchingPolicyRequirements(@NonNull Set<String> restrictedVendorRefs, @NonNull Map<String,Set<String>> vendorRefsByRestrictedAuthority, @NonNull PolicyInformation policyRequirements, ContextInfo contextInfo)
An authentication may have restrictions, but it's possible not all of them have the authorities required by a resource.
-