03-31-2010 10:17 AM
03-31-2010 10:37 AM
03-31-2010 11:13 AM
03-31-2010 03:51 PM
public Map<String, String> getAllContentTypes() throws DictionaryFault,
RemoteException {
Map<String, String> contentTypesList = new HashMap<String, String>();
ClassDefinition[] cds = DSSBS.getClasses(null, null);
String contentClass = "{http://www.alfresco.org/model/content/1.0}content";
for (int i = 0; i < cds.length; i++) {
if (cds[i].getSuperClass() != null) {
if (cds[i].getName().equals(contentClass)) {
contentTypesList.put(cds[i].getName(), cds[i].getTitle());
}
if (cds[i].getSuperClass().equalsIgnoreCase(contentClass)) {
if (!cds[i].getName().startsWith(
"{http://www.alfresco.org/model/")) {
contentTypesList.put(cds[i].getName(), cds[i]
.getTitle());
}
}
}
}
return contentTypesList;
}
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.