on 06-25-2008 11:47 AM
Hi
i am trying to build an portal app which access KM using the following code
IUser epUser = (IUser)request.getUser().getUser();
ResourceContext ctx = new ResourceContext(epUser);
String repository = "/documents";
RID rid=RID.getRID(repository);
ICollection collectiona =(ICollection) (ResourceFactory.getInstance().getResource(rid, ctx));
collectiona.createCollection(u201Cfolder_nameu201D,null);
but in the line resourcecontext i get a error the security and user management cannot be resolved
i am using nwds 7.1 with ep 7.11 sp3
i think it need two jar files
com.sap.security.api.ep.jar
com.sap.security.api.jar
i was unable to find the jar files.
any suggestions and help on this topic would be good
thanks
Hi ,
if u want add jarfiles
go to -> Build path -> Add External Jar files in to Work Space .
Regards ,
venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Check the link
Regards ,
venkat
hi there
thanks for the info, but i still get the error message
"
The project was not built since its build path is incomplete. Cannot find the class file for com.sapportals.portal.security.usermanagement.IUser. Fix the build path then try building this project kmportalappproject Unknown 1214395184412 302
"
form where do i get this api , if you are having these api can u send me com.sap.security.api.ep5.jar
com.sap.security.api.jar
at mujahidzain at gmail
thanks in advance
hi venkat,
i am using the following code to create a folder in the km
IUser epUser = (IUser)request.getUser().getUser();
ResourceContext ctx = new ResourceContext((com.sapportals.portal.security.usermanagement.IUser) epUser);
String repository = "/documents";
RID rid=RID.getRID(repository);
ICollection collectiona =(ICollection) (ResourceFactory.getInstance().getResource(rid, ctx));
collectiona.createCollection(u201Cfolderu201D, null, as(IExtendedCollection.class));
the last line is displaying the wrong argument error can you let meknow where i am wrong
thanks
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.