cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the current flavor from a domain name?

MEM4FP_
Champ in-the-making
Champ in-the-making

So I am trying to obtain the current flavor name/string from 'DocumentModelList domains = coreSession.query("select * from Domain)". Then I used the domains object and grabbed each of the document domains. (DocumentModel domain = domains.get(0))

Then I used the domain into the LocalThemeConfig and the LocalThemeHelper classes.

LocalThemeConfig config = LocalThemeHelper.getLocalThemeConfig(domain(0))

But when I printed out what config is, it just returns null. I looked at the getLocalThemeConfig code and it returns null regardless.

So how can I call the .getFlavor() function from class LocalThemeConfig when config returns null and is there some other way to achieve this?

0 REPLIES 0
Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.