Chapter 7. Building a generic application 173
2. Decide if it should list search templates or entities based on the dsType:
if (connection.getDsType().equals("OD") ||
connection.getDsType().equals("Fed")) {
// OD and FED use searchTemplates
CMBSearchTemplate searchTemplates[] = schema.getSearchTemplates();
...
} else {
// ICM and most other dsTypes use entity and attributes.
CMBEntity entities[] = schema.getEntities();
3. Call RBSortArray to sort the results of listing:
RBSortArray sort = new RBSortArray();
sort.sort(searchTemplates, true)
4. Loop through the array and add a line to the vector that has the name and the
display name separated by a “;”. Only Content Manager Version 8 has the
display name. For search templates that do not have ...