简体   繁体   中英

Nuxeo integration with spring boot

我可以使用Nuxeo API Rest服务将其与Spring Boot应用程序集成吗?如果可以,Nuxeo是否提供免费服务或仅提供试用期。

Nuxeo has developed a java sdk, ready to use in your springboot app : https://github.com/nuxeo/nuxeo-java-client

Code example :

import org.nuxeo.client.NuxeoClient;
import org.nuxeo.client.objects.Document;
import org.nuxeo.client.objects.Documents;

NuxeoClient nuxeoClient = new NuxeoClient.Builder()
.url(url)
.authentication("Administrator","Administrator")
.connect();


// Fetch the root document
Document doc = nuxeoClient.operation(Operations.REPOSITORY_GET_DOCUMENT).param("value", "/").execute();

// Execute query
Documents docs = nuxeoClient.operation("Repository.Query")
                            .param("query", "SELECT * FROM Document")
                            .execute();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM