Posted by manning_pubs
on September 19, 2012 at 5:28 AM PDT
Enterprise Content Management (ECM) repositories often have a lot of types defined, sometimes hundreds in extreme cases. This means that there needs to be a way to organize and retrieve them in a scalable fashion. Some repository designs treat these type collections as a large flat list, while others treat them as a hierarchy. This article based on a portion of chapter 4 from CMIS and Apache Chemistry in Action covers type collections and how to navigate, retrieve, and examine them with two code examples showing basic techniques for each. The code examples assume the reader has the Apache Chemistry Workbench running, and that they have access to a public or local CMIS repository. If you would like step-by-step instructions for setting up these prerequisite tools please read Chapter 1 of the book which is a free download from Manning available at the book link. All of the code in this article is written in Groovy and can be executed exactly as shown in the Console window of the Apache Chemistry Workbench.