As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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()); } } }
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() //… }