on 12-13-2011 2:47 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.