How can i use Nuxeo in my webapplication
Hi, i want to create my own Web application and want to use Nuxeo Document management, How it is possible? and what i have to do? Plese Explain Step By Step, i have already configure Nuxeo Sdk and Nuxeo platform in eclipse..
0 votes
3 answers
1516 views
Hi i write code which you have suggested.. BUT it is giving Error Like
java.io.FileNotFoundException: http://localhost:8080/automation/nuxeo/site/Document.Query
This piece of code should work on an established sesision and demonstrates a basic get and put document operation.
Hope this helps.
try {
root = (Document) session.newRequest("Document.Fetch").set( "value", "/default-domain/workspaces").execute();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
DocumentService documentService = new DocumentService(session);
try {
OperationRequest request = session.newRequest("Document.Create");
request.setInput(root);
request.set("type", "File");
request.set("name", "yourFileName");
request.set("properties", "dc:title=yourTitle");
request.execute();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
06/07/2013