cancel
Showing results for 
Search instead for 
Did you mean: 

create a noderef from uuid string

pmarreddy
Champ in-the-making
Champ in-the-making
hi i just aa quiick question regarding creation of node ref from string, i tried it this way i am getting an exception which says invalid noderef

NodeRef content = new NodeRef(6e4688bb-8a04-11db-aae5-c11a2af43f89);

thanks prasanth
1 REPLY 1

mevlutozdemir
Champ on-the-rise
Champ on-the-rise

String nodeRefString = "6e4688bb-8a04-11db-aae5-c11a2af43f89";
StoreRef storeRefWorkspaceSpacesstore = StoreRef.STORE_REF_WORKSPACE_SPACESSTORE;

NodeRef nodeRef = new NodeRef(storeRefWorkspaceSpacesstore, nodeRefString);