有人可以推荐我如何使用 java web-service API 在露天中获取方面的列表。
谢谢你。
It is not possible to get the list of aspects using web service client, you can however get the list of class definitions of aspects if you know their names.
Check DictionaryServiceSoapPort
interface, there is a method named getClasses
that can return an array of ClassDefinition
s for the given types and aspects.
I don't know if it helps but instead of retrieving the list of aspects using web service, you can as well get the list of all types by calling Get Class Definitions
web script. The url pattern is as follows.
http://localhost:8086/alfresco/service/api/classes/{className}
You can call the same web script without className
, this time it will output all the classes in the dictionary as JSON, both the types and aspects (aspects are marked with "isAspect"=true).
这对您来说可能会迟到,但您可以使用 DictionaryService(以防其他人搜索:
露天维基说:
getClasses 从字典中获取类型和方面定义的列表。
ClassDefinition[] getClasses(ClassPredicate 类型,ClassPredicate 方面)
参数:
types - 用于控制返回类型的谓词,或 null 以返回所有类型 aspect - 用于控制返回的方面的谓词,或 null 以返回所有方面 返回:
与请求的类型相关的类定义列表。