cancel
Showing results for 
Search instead for 
Did you mean: 

Dictionary Model / Namespaces / Properties

ddanninger
Champ in-the-making
Champ in-the-making
Hi,

i really wondered when i used the Dictionary Model.

Isnt it a problem for others too?

For example i have a custom Model with my own namespace and my own prefix. If i want to write a Application where i dont know the Avaible Namespaces of Custom Models / Prefixes of Custom Models. Its really hard ? Isnt it?

I can get the Node and the Properties and their Namespaces easily: "{http://www.ddanninger.com/model/content/1.0}projectName" its not a big deal.
But if i want to know the Dictionary Type of this Property it will not work dynamically anymore.

There is no possibility for getting the Prefix of a Property where u dont know the Namespace.

If i would try to send the Property to the Dictionary Webservice by using "{http://www.ddanninger.com/model/content/1.0}projectName" it will not work, i have to use the prefix ddSmiley TonguerojectName instead.

But how can i do that without knowing the Custom Model Namespaces of a Property?
So it wouldnt be possible to write Dynamically Enterprise Applications. I think if u write big applications u need a function to get the Prefix of a Custom Content Model Namespace?

Isnt it possible to extend the "getProperties" function of the DictionaryService that you can enter:  "{http://www.ddanninger.com/model/content/1.0}projectName" instead of "ddSmiley Tongueroject" ?

Does anybody already wrote a workaround for that?

Best regards
Dominik
2 REPLIES 2

derek
Star Contributor
Star Contributor
Hi,
Which API are you using?
Regards

ddanninger
Champ in-the-making
Champ in-the-making
Iam using the PHP API ( with extended classes )

But my co-worker is using the JAVA Webservice API (Alfresco Remote SDK? is it correct?) and he also has the same problem.

Is that just implemented in the REST or CMIS?

Regards,
Dominik