Powered By Blogger

Monday, August 15, 2011

Comparison between WCM and DM nodeRepresentation

In the DM represenation noderef will be a numerical as below. I am trying to access
space_templates folder present in the DataDictionary
Node Identifier
Primary Path: /{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/application/1.0}dictionary/{http://www.alfresco.org/model/application/1.0}space_templates
Reference: workspace://SpacesStore/08116618-8978-4917-88a1-9547e6128002
Type: {http://www.alfresco.org/model/content/1.0}folder
Parent: workspace://SpacesStore/460a0e42-dc18-4d7e-ad4a-2a8415a69846

In WCM noderef is comma seperated value with the complete store name

Primary Path: /{http://www.alfresco.org/model/content/1.0}www/{http://www.alfresco.org/model/content/1.0}avm_webapps/{http://www.alfresco.org/model/content/1.0}ROOT/{http://www.alfresco.org/model/content/1.0}statementinput.jsp.txt
Reference: avm://testdns--admin/-1;www;avm_webapps;ROOT;statementinput.jsp.txt
Type: {http://www.alfresco.org/model/wcmmodel/1.0}avmplaincontent
Parent: avm://testdns--admin/-1;www;avm_webapps;ROOT


Sample path will be as below
testdns--admin--preview:/www/avm_webapps/ROOT/statementinput.jsp.txt

If you replace ; with / of nodeReference we will get the path.

No comments:

Post a Comment