cancel
Showing results for 
Search instead for 
Did you mean: 

Get a custom model's parent through Java-backed Webscript

sgomez
Champ in-the-making
Champ in-the-making
Hi,

I have a custom model, my:customcontent, whose parent is cm:content.  Is it possible to retrieve the cm:content model through my own custom model?

I've looked in the dicitonaryService api and there does not seem to be any methods that will allow me to do this.  Is there another service I should try?

Thanks.
1 REPLY 1

gyro_gearless
Champ in-the-making
Champ in-the-making
Not sure what you exactly want to do, but maybe you want

ClassDefinition myClass= dictionaryService.getClass(MY_MODEL_QNAME);
QName parent = myClass.getParentName();


HTH
Gyro