cancel
Showing results for 
Search instead for 
Did you mean: 

Information about nodes

ferdinandum
Champ in-the-making
Champ in-the-making
Hello, I need information about CRUD node.  Tuturial or manual in java.



What is the best way to create nodes of these two


CMLCreate create = new CMLCreate("1", parentReference, null, null, null, Constants.TYPE_CONTENT, properties);
CML cml = new CML();
cml.setCreate(new CMLCreate[]{create});
WebServiceFactory.getRepositoryService().update(cml); 

o con

Service.Registry.getNodeService.addChild(ParentRef,ChildRef,Asoctype Qname, Qname)


Thx.
1 REPLY 1

mrogers
Star Contributor
Star Contributor
Neither method is "better", one is a Web Service call which would be used from a remote application.
The other is the local Java API.

However saying that, Alfresco recommends Web Scripts as the way to access alfresco from a remote application rather than Web Services.  
And for a new application on 3.3 you should probably be using CMIS.