Uses of Enum
com.broadleafcommerce.data.tracking.core.policy.PermissionMatchingStrategy
Packages that use PermissionMatchingStrategy
Package
Description
-
Uses of PermissionMatchingStrategy in com.broadleafcommerce.data.tracking.core.policy
Methods in com.broadleafcommerce.data.tracking.core.policy that return PermissionMatchingStrategyModifier and TypeMethodDescriptionPolicyInformation.getPermissionMatchingStrategy()PolicyOverride.getPermissionMatchingStrategy()static PermissionMatchingStrategyReturns 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 PermissionMatchingStrategyModifier and TypeMethodDescriptionprotected PolicyInformationDefaultPolicyAspectProcessor.buildPolicyInformation(IdentityType[] identityTypes, String[] permissionRoots, OperationType[] operationTypes, PermissionMatchingStrategy multipleRootsMatchingStrategy, String ownerIdentifier, int param, int ownerIdentifierParam) PolicyOverride.withPermissionMatchingStrategy(PermissionMatchingStrategy permissionMatchingStrategy) Constructors in com.broadleafcommerce.data.tracking.core.policy with parameters of type PermissionMatchingStrategyModifierConstructorDescriptionPolicyInformation(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 PermissionMatchingStrategyModifier and TypeMethodDescriptionDefaultTrackablePolicyUtils.validateContext(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType) TrackablePolicyUtils.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.DefaultTrackablePolicyUtils.validateDelete(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) 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.protected PolicyResponseDefaultTrackablePolicyUtils.validateEntityOperation(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType) DefaultTrackablePolicyUtils.validateInsert(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) 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.protected PolicyResponseDefaultTrackablePolicyUtils.validateOperation(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) protected PolicyResponseDefaultTrackablePolicyUtils.validateOperation(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType) DefaultTrackablePolicyUtils.validateOther(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) TrackablePolicyUtils.validateOther(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate that before misc operation, the required permission is availableDefaultTrackablePolicyUtils.validatePermission(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) DefaultTrackablePolicyUtils.validatePermission(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo) TrackablePolicyUtils.validatePermission(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate the permission against the granted authorities of the currentAuthentication.TrackablePolicyUtils.validatePermission(String[] permissionRoots, PermissionMatchingStrategy strategy, OperationType operationType, ContextInfo contextInfo) Validate the permission against the granted authorities of the currentAuthentication.DefaultTrackablePolicyUtils.validateRead(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) TrackablePolicyUtils.validateRead(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) Validate that before reading, the required permission is available.DefaultTrackablePolicyUtils.validateUpdate(Trackable entity, ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) 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. -
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 PermissionMatchingStrategyModifier and TypeMethodDescriptionVendorAwareTrackablePolicyUtils.filterToVendorRestrictionsMatchingPolicyRequirements(@NonNull Set<String> restrictedVendorRefs, @NonNull Map<String, Set<String>> vendorRefsByRestrictedAuthority, OperationType requiredOperationType, @NonNull String[] permissionRoots, PermissionMatchingStrategy permissionMatchingStrategy) 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.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 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.VendorAwareTrackablePolicyUtils.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.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.