Match strategies
Match strategies define how rights profiles apply to assets. In particular, when multiple rights profiles are associated with an asset, the match strategy defines the overall intended use condition for that asset.
There are three match strategies available: any, all, and subject-based. The match_strategy parameter of the UsageRightsConfiguration setting determines which of these strategies is applied to all of your assets.
Match strategy examples can help you decide which strategy is most suitable.
Any
This is the default match strategy in Sitecore Content Hub. It allows the download of restricted assets if their intended use matches at least one of the associated rights profiles.
All
This strategy allows the download of restricted assets only if their intended use matches all the associated rights profiles.
Subject-based
This is a complex strategy that uses a type and subject validation to check if download rights should be granted. Based on these two properties, an optimized rights profile is calculated. This strategy lets multiple owners grant distinct usage rights for the same asset.
When you have an asset with two related rights profiles:
-
If type and subject are identical, the subject-based strategy combines the rights profiles to create one overlapping rights profile.
-
If type and subject are different, the subject-based strategy calculates the overlap and extracts the most restrictive rights profile.
Complexity
The subject-based strategy calculates the complexity of an asset according to the set of rights profiles associated with it. It groups rights profiles per combination of type and subject. The calculated complexity equals the number of potential combinations containing one element of each rights profile (Start, End, Territories, or Media). Then, the system compares the complexity to a threshold number (100 by default) to define whether the asset has a complex rights profiles.