cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Page to Workset using Java

Former Member
0 Kudos

i am trying to add a page to a Workset using java. Can any one help me do this.

Also how can i retrieve the Worksets attached to a Role.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I am to create a workset in the fashion mentioned below.

IRoleService rSrv = (IRoleService)PortalRuntime.getRuntimeResources().getService("com.sap.portal.pcd.roleservice.roles");

IWorksetDescriptor worksetDescriptor = rSrv.getWorksetDescriptor(env);

parentCtx.bind(worksetName, worksetDescriptor);

IPortalWorkset workset = (IPortalWorkset)parentCtx.lookup(worksetName);

But adding pages to the workset is still not resolved.

Do Pass on any info regarding this.