08-13-2014 11:23 AM
08-14-2014 05:28 AM
Session session = getSession(servalUrl, userName, password);
ItemIterable<QueryResult> qrs = session.query("SELECT * FROM cmis:document D WHERE CONTAINS(D,'PATH: \"/app:company_home/cm:maindir/cm:subdir//*\"')", false);
for(QueryResult q : qrs) {
System.out.println(q.getPropertyValueById(PropertyIds.SECONDARY_OBJECT_TYPE_IDS)); //secondary type is just alfresco aspect
}
List<Tree<ObjectType>> types =session.getTypeDescendants("cmis:secondary", -1, true);
for(Tree<ObjectType> type:types){
System.out.println(type.getItem());
}
08-19-2014 03:10 PM
08-19-2014 11:23 PM
AlfrescoDocument newDocument = (AlfrescoDocument) folder1.createDocument(properties, contentStream, vs);
newDocument.refresh();
newDocument.getPropertyValue(PropertyIds.SECONDARY_OBJECT_TYPE_IDS);
08-20-2014 09:39 AM
08-20-2014 07:29 PM
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.