I need to create a java iview with all the resources in a folder in documents repository to be displayed. They should also have links to open them. In other words something like a simple km navigation iview. How do I do this using the api?
Ive coded:
IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
IResourceFactory factory = ResourceFactory.getInstance();
RID rid = RID.getRID("/documents/ABC");
IResourceContext ctx = new ResourceContext(user);
IResource res = factory.getResource(rid,ctx);
URL target = res.getTargetURL();
ICollection coll = (ICollection)factory.getResource(rid,ctx);
ILink link = (ILink) coll.createLink("link",target,LinkType.INTERNAL,null);
Not very clear on the api. Plz help.