Skip to Content
author's profile photo Former Member
Former Member

Looping through PCD objects - identify Pages, IViews and Folders

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 13, 2011 at 08:07 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.