04-21-2009 12:19 PM
05-03-2009 01:34 AM
public class AlfTypes {
public static void main(String[] args) throws RepositoryFault,
RemoteException {
AuthenticationUtils.startSession("admin", "admin");
DictionaryServiceSoapBindingStub dictService = WebServiceFactory
.getDictionaryService();
org.alfresco.webservice.types.ClassDefinition[] cds = dictService
.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].getSuperClass().equalsIgnoreCase(contentClass)) {
System.out.println("Class Name: " + cds[i].getName());
}
}
}
AuthenticationUtils.endSession();
}
}
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.