cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing the Repository

peds
Champ in-the-making
Champ in-the-making
Hello,

I know this should be a simple question, but I've been looking for days and I can't figure out how to access the repository through Java. I just want to be able to access the repository, navigate to a space (company home/…./../my space) and then add a file at that location.

I've looked at the NodeService API, but I haven't seen how to associate it with a specific store. Everything I've read has explained how the services work, but I can't figure out how to get access any specific, real repository.

Thanks,
Ben
2 REPLIES 2

pmonks
Star Contributor
Star Contributor
Take a look at some of the examples in the SDK (http://wiki.alfresco.com/wiki/Alfresco_SDK) - they demonstrate how to access and manipulate content both in-process and via some of the remote APIs.

The developer guide (http://wiki.alfresco.com/wiki/Developer_Guide) is also a good place to start out.

Cheers,
Peter

peds
Champ in-the-making
Champ in-the-making
Thanks Peter.

I found a snippet of code that uses webservices module, which I didn't previously have installed. I used the CMLCreate and and CML objects to make the object, a NamedValue array for properties, and the ContentServiceSoapBindingStub object to add content.

Cheers,
Ben