Hi I am using EP 6 with Content management.
I my application I need to get resources form content management, approval process is enabled for the content items.
I use this code
RID rid = RID.getRID(path);
if (rid != null) {
try {
resource = rf.getResource(rid, context);
} catch (ResourceException e1) {
//errorhandling
}
where rf is a com.sapportals.wcm.repository.IResourceFactory
created from a service user and a service context
which work fine, When the resource has been approved.
however if I change the specified content Item and do not approve it, the above code returns null as resource.
I would expect the api to return the latest approved version of the resource.
Have I misunderstood soemthing here or should I use another API?