cancel
Showing results for 
Search instead for 
Did you mean: 

Nuxeo Java client

Nuxeo_User
Confirmed Champ
Confirmed Champ

Hello,I am trying to get the properties of a document using Nuxeo Java client.I am able to get the document,but when i use the methods get() or getPropertyValue() it doesn't return the value. Can someone help me?

1 ACCEPTED ANSWER

Thomas_Roger
Star Contributor
Star Contributor

You need to configure the client to retrieve the required schemas/properties when fetching a document:

To retrieve the properties of the dublincore and common schemas:

nuxeoClient.schemas("dublincore", "common");

You could also configure the client to retrieve all the schemas/properties:

nuxeoClient.schemas("*");

See https://github.com/nuxeo/nuxeo-java-client#options for more information.

View answer in original post

2 REPLIES 2

Thomas_Roger
Star Contributor
Star Contributor

You need to configure the client to retrieve the required schemas/properties when fetching a document:

To retrieve the properties of the dublincore and common schemas:

nuxeoClient.schemas("dublincore", "common");

You could also configure the client to retrieve all the schemas/properties:

nuxeoClient.schemas("*");

See https://github.com/nuxeo/nuxeo-java-client#options for more information.

Thank you Thomas