02-26-2016 05:19 PM
Document object = (Document) cmisSession.getObjectByPath(path2Object);
if (object != null) {
log.info("\tName [" + object.getName() + "]");
log.info("\tDescription [" + object.getDescription() + "]");
List<Property<?>> properties = object.getProperties();
if (properties != null) {
for (int index=0; index<properties.size(); index++) {
Property aProperty = properties.get(index);
log.info("/t P QueryName [" + aProperty.getQueryName() + "]");
log.info("/t P Value [" + aProperty.getValueAsString() + "]");
}
}
List<SecondaryType> aspects = object.getSecondaryTypes();
if (aspects != null) {
for (int index=0; index<aspects.size(); index++) {
SecondaryType aspect = aspects.get(index);
log.info("/t P QueryName [" + aspect.getQueryName());
log.info("/t P Discription [" + aspect.getDescription());
}
}
}
03-30-2016 12:40 PM
05-27-2016 07:56 AM
String cmisQuery = "SELECT doc.*, salo.* FROM cmis:document AS doc JOIN salo:documentProperties AS salo ON doc.cmis:objectId = salo.cmis:objectId ";
String cmisQueryWhereClause = "WHERE";
// add where clause
cmisQueryWhereClause += "(salo.salo:lo_id = 1867) AND (salo.salo:lo_category = 'Type1')"
ItemIterable<QueryResult> queryResults = cmisSession.query(cmisQuery, false);
for (QueryResult queryResult:queryResults) {
PropertyData<?> abcProperty = queryResult.getPropertyByOd("abc");
String abcValue = abcProperty.getFirstValue().toString()
//…
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.