cancel
Showing results for 
Search instead for 
Did you mean: 

Reterive the KM Folder by using API

Former Member
0 Kudos

Hi All,

How to reterive the KM Folder (root\documents\Images) using API?

Regards

Thillai

View Entire Topic
Former Member
0 Kudos

Hi,

try{

IUser contextUser = (IUser) ((IPortalComponentRequest) this.getRequest()).getUser().getUser();

ResourceContext resourceContext = new ResourceContext(contextUser);

RID rid = RID.getRID("\documents\Images");

IResource resource = (IResource) ResourceFactory.getInstance().getResource(rid, resourceContext);

}

catch(Exception e)

{

}

u can then use the resource object.

Mr.Chowdary