on 07-18-2007 10:21 PM
Hi!
Does anyone know how to call hasPermission from a web service? I have a web service running out on the WebAS, and I am trying to use an IUser from the Role Factory to call hasPermission(...); however it always returns false. Is it because there is no context for the user when coming in through the web service?
Hi,
public boolean hasPermission(Permission permission)
Returns true if the user has the given permission.
Parameters:
permission - com.sap.ip.me.api.security.Permission object which is checked
Returns:
true if the user has the given permission.
for more information please check out the link below it might help you
https://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/javadoc/index-all.html
***************please reward points if the information is helpful to you****************
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.