cancel
Showing results for 
Search instead for 
Did you mean: 

Looping through PCD objects - identify Pages, IViews and Folders

Former Member
0 Kudos

Hi,

In some of our projects we are handling with PCD objects.

On NW7.0 we did that with code like on this Wiki page:

[http://wiki.sdn.sap.com/wiki/display/Snippets/Browseportalcontentandobjectproperties|http://wiki.sdn.sap.com/wiki/display/Snippets/Browseportalcontentandobjectproperties]

private final static String PCDIVIEW = "com.sapportals.portal.ivs.iviews.IPortalIview";
 private final static String PCDPAGE = "com.sapportals.portal.ivs.iviews.IPortalPage";
 private final static String PCDROLE = "com.sapportals.portal.pcd.pcm.roles.IRoleDescriptor";
 private final static String PCDWORKSET = "com.sapportals.portal.pcd.pcm.roles.IWorksetDescriptor";
 private final static String PCDLAYOUT = "com.sapportals.portal.ivs.iviews.ILayout";
 private final static String PCDFOLDER = "com.sapportals.portal.pcd.pcm.roles.IRoleFolderDescriptor";
 private final static String GLCONTEXT = "com.sapportals.portal.pcd.gl.IPcdContext";
u2026.
u2026.
String new_root = browsing_root + "/" + nameClass.getName();
     if(nameClass.getClassName().equals(PCDWORKSET)){
      img = request.getWebResourcePath() + "/images/workset.gif";
     }else if(nameClass.getClassName().equals(PCDFOLDER)){
      img = request.getWebResourcePath() + "/images/folder.gif";
     }else if(nameClass.getClassName().equals(PCDPAGE)){
      img = request.getWebResourcePath() + "/images/page.gif";
     }else if(nameClass.getClassName().equals(PCDIVIEW)){
      img = request.getWebResourcePath() + "/images/iView.gif";
     }else if(nameClass.getClassName().equals(PCDROLE)){
      img = request.getWebResourcePath() + "/images/role.gif";
     }

In NW7.3 we found out, that identifying e.g. a Page doesn't work anymore and is different as on NW7.0.

Has someone an idea how to do the same on NW7.3? As it seems identifying a Page is done now via "com.sap.portal.pcm.page.IPage" but what about the other object types?

Can you help me?

Thanks

Stefan

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Stefan,

The values are as follows:

private final static String PCDIVIEW = "com.sap.portal.pcm.iview.IiView";
private final static String PCDPAGE = "com.sap.portal.pcm.page.IPage";
private final static String PCDROLE = "com.sapportals.portal.pcd.pcm.roles.IRoleDescriptor";
private final static String PCDWORKSET = "com.sapportals.portal.pcd.pcm.roles.IWorksetDescriptor";
private final static String PCDLAYOUT = "com.sap.portal.pcm.layout.ILayout";
private final static String PCDFOLDER = "com.sapportals.portal.pcd.pcm.roles.IRoleFolderDescriptor";
private final static String GLCONTEXT = "com.sapportals.portal.pcd.gl.IPcdContext";

Hope it helps

Detlev

Former Member
0 Kudos

Hi Detlev,

Thanks for your input. I will try if it works.

Regards,

Stefan

Former Member
0 Kudos

Hi Detlev,

Works - thanks!

Stefan

Answers (0)