Hello,
I am playing around with checking permissions in web dynpro and ejb. My permissions that extend ActionPermission are working fine, but i dont know how to implement checks on permissions that extend ValuePermission.
If i have a class TestValuePermission extends ValuePermission.
How should permissions be defined in actions.xml and how to do my check? The documentation says the following about valuepermission:
This permission class maps a permission name to a value, for example:
Name=”Value”, Action=”25”
Name=”Min”, Action=”>50”
Name=”Max”, Action=”<100”
Does this have to be put in the actions.xml? (with lower than and greater than sign)
It would be of great help if someone could give a example (for example checking value within boundaries) for valuepermission, including the xml and the code-part that checks the permission.
user.checkPermission(new TestValuePermission( "name" , "value");
Kind regards,
Joren