Uses of Enum Class
com.broadleafcommerce.data.tracking.core.policy.PermissionMatchingStrategy
Package
Description
-
Uses of PermissionMatchingStrategy in com.broadleafcommerce.data.tracking.core.policy
Modifier and TypeMethodDescriptionPolicyInformation.getPermissionMatchingStrategy()
PolicyOverride.getPermissionMatchingStrategy()
static PermissionMatchingStrategy
Returns the enum constant of this class with the specified name.static PermissionMatchingStrategy[]
PermissionMatchingStrategy.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionprotected PolicyInformation
DefaultPolicyAspectProcessor.buildPolicyInformation
(IdentityType[] identityTypes, String[] permissionRoots, OperationType[] operationTypes, PermissionMatchingStrategy multipleRootsMatchingStrategy, String ownerIdentifier, int param, int ownerIdentifierParam) PolicyOverride.withPermissionMatchingStrategy
(PermissionMatchingStrategy permissionMatchingStrategy) ModifierConstructorDescriptionPolicyInformation
(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
Modifier and TypeMethodDescriptionDefaultTrackablePolicyUtils.validateContext
(ContextInfo contextInfo, String[] requiredPermissionRoots, PermissionMatchingStrategy permissionMatchingStrategy, OperationType operationType) 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.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 PolicyResponse
DefaultTrackablePolicyUtils.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 PolicyResponse
DefaultTrackablePolicyUtils.validateOperation
(ContextInfo contextInfo, String[] permissionRoots, PermissionMatchingStrategy strategy) protected PolicyResponse
DefaultTrackablePolicyUtils.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
Modifier 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 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.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.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.