cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing DictionaryService via CMIS api

ddelapasse
Champ in-the-making
Champ in-the-making
Using the Java API can I access the DictionaryService?  I connect via CMIS Session object and can get a few services from that, but I can NOT figure out how to access the DictionaryService.  
4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
Hello,

via CMIS you don't access the DictionaryService like you would access it from Java code running within Alfresco. But you do have access to the basic data (except maybe some Alfresco specifics, like default aspects) via the RepositoryService of CMIS. From this you can access type definitions, type hierarchies and also relationship definitions (which are basically just another type in CMIS).

Regards
Axel

ddelapasse
Champ in-the-making
Champ in-the-making
Thanks Axel!  I was able to get to the propertyDefinitions for my type.  Unfortunately, the list constraints don't seem to be returning the correct display values (4.2f).  I have defined i18n aliases for the constraint values that are working nicely via Share (alias are defined in the REPO's properties area), but the CMIS api is just returning the values in both the getValue() and getDisplayName() spots. 

mrogers
Star Contributor
Star Contributor
Please raise that issue in JIRA (issues.alfresco.com)

ddelapasse
Champ in-the-making
Champ in-the-making
mrogers, I would be happy to do that.  Should it go into the Alfresco project?  I don't see anything CMIS specific.