/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
package sample; import java.rmi.RemoteException; import org.alfresco.webservice.dictionary.DictionaryFault; import org.alfresco.webservice.dictionary.DictionaryServiceSoapBindingStub; import org.alfresco.webservice.types.ClassDefinition; import org.alfresco.webservice.types.PropertyDefinition; import org.alfresco.webservice.util.AuthenticationUtils; import org.alfresco.webservice.util.WebServiceFactory; public class TestGetAspect { AuthenticationUtils.startSession("admin", "admin1234"); DictionaryServiceSoapBindingStub dic = WebServiceFactory.getDictionaryService(); // get all class definition ClassDefinition[] classDefs = dic.getClasses(null, null); for (ClassDefinition d : classDefs){ // is aspect if (d.isIsAspect()){ PropertyDefinition[] propDefs = d.getProperties(); if (propDefs == null) continue; // list all properties for(PropertyDefinition p : propDefs){ } } } } }