concept update in category apache chemistry

appears as: update, update, n update
CMIS and Apache Chemistry in Action

This is an excerpt from Manning's book CMIS and Apache Chemistry in Action.

The order of property types returned from the server is important. When an object type is created or updated, the repository’s response will return the new type’s properties in the exact same order in which they were listed in the input (the create or update) request. This is necessary so that clients can tell which properties correspond to their requested properties in cases where the IDs are different from what was requested. Remember that earlier we said that the value you pass for the type and property ID is only a suggestion. The repository may change it if necessary, so always use the returned value.

As always, exception handling is important because the update could fail. For example, the object might not exist anymore, or a property value might be invalid. You’ll want to be careful about handling the CmisNameConstraintViolationException when changing the cmis:name property.