on 05-02-2012 12:09 PM
IWDClientUser wdClientUser = WDClientUser.getCurrentUser() ;
com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("km_svc");
IResourceContext resourceContext = new ResourceContext(user);
IResourceFactory resourceFactory = ResourceFactory.getInstance();
RID file = RID.getRID(PathForRid);
IResource i_resource = resourceFactory.getResource(file, resourceContext);
I have the Code above. I would know the LastModified - Date from the specific Km - Path given in RID. BUT i_resource is allways null 😞 What should be the right way?
kind regards
Micha
Micha
I am not sure if your problem is solved, but I think here are couple of things you can check
change the code at,
IResourceFactory resourceFactory = ResourceFactory.getInstance();
make it,
IResourceFactory resourceFactory = ResourceFactory.getInstance(user);
RID file = RID.getRID(PathForRid);
What is the value in PathForRid ??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.