Scenario:
You're writing a domain security file and want one of the multiple access grant expressions to be true rather than all of them at the same time. This is achieved by using an OR operator between the access grant rather than default AND. How to achieve this?
Solution:
You can use orMultipleExpressions property of the access grant to signify that these grants are to be evaluated with an OR operation rather than AND. Here is how it looks:
<resourceAccessGrant id="Join_1_Row_Access_Grant1" orMultipleExpressions="true">
<principalExpression>some expression here</principalExpression>
<filterExpression>testProfileAttribute(SomeAttrib, 'Some Value')</filterExpression>
</resourceAccessGrant>
<resourceAccessGrant id="Join_1_Row_Access_Grant2" orMultipleExpressions="true">
<principalExpression>some expression here</principalExpression>
<filterExpression>testProfileAttribute(SomeAttrib, 'Some Value')</filterExpression>
</resourceAccessGrant>
With orMultipleExpressions these two grants combined with a logial OR rather than logical AND letting you write security schemas with grants that will apply all together but not necessarily at the same time. See chapter 8.6.3.1 of JasperServer Data Management Using Domains guide:
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now