shailesh.mishra Posted January 12, 2015 Share Posted January 12, 2015 We are using jasper report server version 5.6. We have the following use case to support: We want to create a Domain with enhanced Security policies for it where we want to call an external service (e.g. a service which returns obligations based on logged in user and some custom logic) in row level security filter(filterExpression). Is there a way to achieve the same? Is it possible to expose a custom object like, authentication or tenant which can be bind in groovy runtime? Link to comment Share on other sites More sharing options...
ernestoo Posted January 12, 2015 Share Posted January 12, 2015 Yes within the Domain secuirty file you can call Groovy code with groovy('YourFunctionHere()') Link to comment Share on other sites More sharing options...
shailesh.mishra Posted January 12, 2015 Author Share Posted January 12, 2015 Hi, this may be silly, but where do I define this function? WEB-INF/groovy/somegroovyfile.groovy? Will this be the legit way of doing this? thanks. Link to comment Share on other sites More sharing options...
ernestoo Posted January 13, 2015 Share Posted January 13, 2015 Not 100% but you can see how testProfileAttribute is declared and that might give a clue Link to comment Share on other sites More sharing options...
shailesh.mishra Posted January 14, 2015 Author Share Posted January 14, 2015 Thanks ernestoo. Will try this out. Link to comment Share on other sites More sharing options...
Recommended Posts
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