This is a copy of a post I sent to another forum (http://tech.forums.softwareag.com/techjforum/posts/list/51479.page). But I re-post it here since this forum seems to be more appropriate. I apologise if it breaks some forum rules.
I want to check (from within a program) whether a certain MWS role (configured in MWS via user management) is allowed to see a certain page (specified by its alias). I.e. I’d need a function like this:
boolean hasPermission(String roleName, String pageAlias)
How is it possible to implement it? The function would be executed in MWS (not in IS). Is there some API to accomplish this?
There is a code sample (http://techcommunity.softwareag.com/ecosystem/comm.../SAMPLE-20130313141546300.html), but the code is not much documented and uses some classes which I could not find docs for.
Any advice would be much appreciated.