private static void performMetadataExport(Session session, ItemIterable<QueryResult> results){
try {
for (QueryResult result : results){
String[] valueList = new String[8];
valueList[0] = (String)result.getPropertyValueByQueryName("cmis:name");
valueList[1] = (String)result.getPropertyValueByQueryName("cmis:createdBy");
valueList[2] = (String)result.getPropertyValueByQueryName("cmis:lastModifiedBy");
valueList[3] = (String)result.getPropertyValueByQueryName("cmis:objectId");
valueList[4] = (String)result.getPropertyValueByQueryName("cmis:versionLabel");
//valueList[5] = (String)result.getPropertyValueByQueryName("cmis:objectTypeId");
//valueList[6] = (String)result.getPropertyValueByQueryName("cmis:parentTypeId ");
}
LOGGER.info("CmisMetadataExport: Exported: " + results.getTotalNumItems() + " items.");
}
catch(Exception e){
LOGGER.error(e.toString());
}
LOGGER.info("CmisMetadataExport: Export Complete.");
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.