01-27-2012 01:14 PM
01-27-2012 06:12 PM
var cmisConnection = cmis.getConnection();
var cmisSession = cmisConnection.getSession();
folder = cmisSession.getRootFolder();
model.folder = folder;
Obviously this isn't too intense. The goal is just to show you how to get the cmis root object. What you do from there is up to you. For example, you could iterate over a folder like this:var iter = folder.getChildren().iterator();
while (iter.hasNext()) {
logger.log(iter.next().name);
}
Here is an example descriptor (test.get.desc.xml):<webscript>
<shortname>Test CMIS Object</shortname>
<description>Test CMIS Object</description>
<url>/someco/testcmis</url>
<authentication>user</authentication>
</webscript>
And here is an example view (test.get.html.ftl):<html>
<body>
Folder name:${folder.name}<br />
Folder id:${folder.id}</br />
</body>
</html>
As I mentioned on IRC this morning, the root scoped cmis object appears to be broken in Alfresco 4.0.c Community.01-28-2012 06:21 AM
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.