on 01-21-2008 8:37 PM
Hello All,
I need to develop a report fetching some data from the UME in Portals
I am suppose to use the method IUserfactory.getUniqueIDs to fetch all the users in the User Management Engine.
But when I place this methode in wdinit() for a view controller I get a parsing issue - obviously It must not be able to search for the API . So how should I go about doing the same.
Best Regards,
Roby...
Robert,
Have you added the com.sap.security.api.iuser jar file in your project.
Else you have to import the required jar files manually in "java build path" of the project.
Right click project, open properties, open java build path, click on libraries, click on add external jars, in the eclipse folder, search for the iuser jar and add the jar. click ok and then rebuild your project.
Chintan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Chintan,
>>> Have you added the com.sap.security.api.iuser jar file in your project.
No I have not added
And when I perform the steps mentioned below
>>>Right click project, open properties, open java build path, click on libraries, click on add external jars, in the eclipse folder,
I have the following folders
examples
features
plugins
readme
tools
Could you please help me locate the iuser jar files plss .
Best Regards,
Roby ...
Rob,
You will need to add the following jars com.sap.security.api.jar & com.sap.security.api.perm.jar and you can find them on following location on you hard drive:-
<Path where you have installed IDE for eg: C:\Program Files\IDE>\IDE70\eclipse\plugins\com.sap.tc.ap_2.0.0\comp\SAP-JEE\DCs\sap.com\com.sap.security.api.sda\_comp\gen\default\public\default\lib\java
Hi Murtuza,
I have performed the steps mentioned by you and also performed the organise import and now able to use the IUserfactory .
But now the problem is I am not able to find the method which can fetch me all the users.
Unable to get this statement IUserfactory.getUniqueIDs()
I am using NWDS Version: 7.0.09
Best Regards,
Roby..
Hi,
Following is the link to the API http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUserFactory.html
Regards
Ayyapparaj
I got this from here:-
http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/class-use/IUserFactory.html
Chintan
Hi Chintan,
I created a simple Java project and created a simple Java Class with the following code
public class NumberofUsers {
public static void main (String[] args) {
IUserFactory userFactory = UMFactory.getUserFactory();
try
{
ISearchResult isearchresult = userFactory.getUniqueIDs();
System.out.println(isearchresult);
}
catch ( Exception e )
{
}
}
I am gettting the following error when I run the program
java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:178)
at NumberofUsers.main(NumberofUsers.java:21)
Exception in thread "main"
https://forums.sdn.sap.com/click.jspa?searchID=8201439&messageID=4494115
https://forums.sdn.sap.com/click.jspa?searchID=8201439&messageID=4630033
https://forums.sdn.sap.com/click.jspa?searchID=8201439&messageID=4519529
https://forums.sdn.sap.com/click.jspa?searchID=8201439&messageID=4364328
https://forums.sdn.sap.com/click.jspa?searchID=8201439&messageID=4657278
https://forums.sdn.sap.com/click.jspa?searchID=8201439&messageID=4737971
https://forums.sdn.sap.com/click.jspa?searchID=8201439&messageID=4375390
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.