Thursday, December 26, 2013

Creating new nodeRef - Alfresco API



Sometime we need to create alfresco node and need to proceed that node. We can create alfresco node but for that we need store to choose, in which store that node will store its content.

e.g.
StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
NodeRef nodeRef = new NodeRef(storeRef, "f8785545-beb0-4e4c-aedc-72a8db70bb30");


Here we used "SpacesStore" as the alfresco store area.

We can have following stores available :
archive://SpacesStore
system://system
user://alfrescoUserStore
workspace://lightWeightVersionStore
workspace://SpacesStore
workspace://version2Store


No comments:

Post a Comment