Uses of Class
com.broadleafcommerce.data.tracking.core.policy.PermissionMatchingStrategy
-
-
Uses of PermissionMatchingStrategy in com.broadleafcommerce.data.tracking.core.policy
Methods in com.broadleafcommerce.data.tracking.core.policy that return PermissionMatchingStrategy Modifier and Type Method Description PermissionMatchingStrategyPolicyInformation. getPermissionMatchingStrategy()PermissionMatchingStrategyPolicyOverride. getPermissionMatchingStrategy()PermissionMatchingStrategypermissionMatchingStrategy()When multiplePolicy.permissionRoots()are specified this controls how the final built authorities are validated for this annotation.static PermissionMatchingStrategyPermissionMatchingStrategy. valueOf(String name)Returns the enum constant of this type with the specified name.static PermissionMatchingStrategy[]PermissionMatchingStrategy. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.broadleafcommerce.data.tracking.core.policy with parameters of type PermissionMatchingStrategy Modifier and Type Method Description protected PolicyInformationDefaultPolicyAspectProcessor. buildPolicyInformation(IdentityType[] identityTypes, String[] permissionRoots, OperationType[] operationTypes, PermissionMatchingStrategy multipleRootsMatchingStrategy, String ownerIdentifier, int param, int ownerIdentifierParam)PolicyOverridePolicyOverride. withPermissionMatchingStrategy(PermissionMatchingStrategy permissionMatchingStrategy)Constructors in com.broadleafcommerce.data.tracking.core.policy with parameters of type PermissionMatchingStrategy Constructor Description PolicyInformation(String[] permissionRoots, OperationType[] operationTypes, PermissionMatchingStrategy permissionMatchingStrategy, IdentityType[] identityTypes, String ownerIdentifier, int param, int ownerIdentifierParam) -
Uses of PermissionMatchingStrategy in com.broadleafcommerce.data.tracking.core.policy.trackable
Methods in com.broadleafcommerce.data.tracking.core.policy.trackable with parameters of type PermissionMatchingStrategy Modifier and Type Method Description PolicyResponseDefaultTrackablePolicyUtils. validateContext(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType)PolicyResponseTrackablePolicyUtils. validateContext(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType)Review theContextInfoparameter for valid tenant user membership and valid catalog visibility based on the currentAuthenticationand requested tenant information in the contextInfo.PolicyResponseDefaultTrackablePolicyUtils. validateDelete(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)PolicyResponseTrackablePolicyUtils. 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.protected PolicyResponseDefaultTrackablePolicyUtils. validateEntityOperation(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType)PolicyResponseDefaultTrackablePolicyUtils. validateInsert(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)PolicyResponseTrackablePolicyUtils. 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.protected PolicyResponseDefaultTrackablePolicyUtils. validateOperation(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)protected PolicyResponseDefaultTrackablePolicyUtils. validateOperation(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType)PolicyResponseDefaultTrackablePolicyUtils. validateOther(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)PolicyResponseTrackablePolicyUtils. validateOther(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)Validate that before misc operation, the required permission is availablePolicyResponseDefaultTrackablePolicyUtils. validatePermission(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)PolicyResponseDefaultTrackablePolicyUtils. validatePermission(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo)PolicyResponseTrackablePolicyUtils. validatePermission(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)Validate the permission against the granted authorities of the currentAuthentication.PolicyResponseTrackablePolicyUtils. validatePermission(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo)Validate the permission against the granted authorities of the currentAuthentication.PolicyResponseDefaultTrackablePolicyUtils. validateRead(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)PolicyResponseTrackablePolicyUtils. validateRead(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)Validate that before reading, the required permission is available.PolicyResponseDefaultTrackablePolicyUtils. validateUpdate(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)PolicyResponseTrackablePolicyUtils. 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. -
Uses of PermissionMatchingStrategy 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 PermissionMatchingStrategy 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)Set<String>VendorAwareTrackablePolicyUtils. filterToVendorRestrictionsMatchingRequiredPermissions(@NonNull Set<String> restrictedVendorRefs, @NonNull Map<String,Set<String>> vendorRefsByRestrictedAuthority, @NonNull List<String> fullyExpandedRequiredPermissions, PermissionMatchingStrategy permissionMatchingStrategy)protected booleanVendorAwareTrackablePolicyUtils. isCatalogVisibleByVendorRestrictions(@NonNull ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType requiredOperationType)Reports whether the catalog referenced in thecontextInfois visible by the vendor restrictions in the current authentication.PolicyResponseVendorAwareTrackablePolicyUtils. 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 thecontextInfois visible by the current authentication's vendor restrictions.protected PolicyResponseVendorAwareTrackablePolicyUtils. validateEntityMutableByCurrentVendorRestrictions(Trackable entity, ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType)Checks whether the givenentitybeing mutated is actually mutable given the current authentication's vendor privileges and provided policy requirements.protected PolicyResponseVendorAwareTrackablePolicyUtils. 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.PolicyResponseVendorAwareTrackablePolicyUtils. validateInsert(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy)OverridesDefaultTrackablePolicyUtils.validateInsert(Trackable, ContextInfo, String[], PermissionMatchingStrategy)to add behavior that checks whether the entity can be inserted by the current authentication's vendor restrictions.PolicyResponseVendorAwareTrackablePolicyUtils. 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.
-