Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

UME - ValuePermission

Former Member
0 Kudos

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 <b>class TestValuePermission extends ValuePermission</b>.

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

2 REPLIES 2

Former Member
0 Kudos

I moved my question to here:

Former Member
0 Kudos

Moved question to