Class LocalThemeConfigAdapter
- java.lang.Object
-
- org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration<LocalThemeConfig>
-
- org.nuxeo.theme.localconfiguration.LocalThemeConfigAdapter
-
- All Implemented Interfaces:
DetachedAdapter,LocalConfiguration<LocalThemeConfig>,LocalThemeConfig
public class LocalThemeConfigAdapter extends AbstractLocalConfiguration<LocalThemeConfig> implements LocalThemeConfig
Default implementation ofLocalThemeConfig.- Author:
- Quentin Lamerand
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentRefdocumentRefprotected Stringengineprotected Stringflavorprotected Stringmodeprotected Stringpageprotected Stringperspectiveprotected Stringtheme-
Fields inherited from interface org.nuxeo.theme.localconfiguration.LocalThemeConfig
OLD_THEME_CONFIGURATION_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description LocalThemeConfigAdapter(DocumentModel doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanMerge()Returnstrueif thisLocalConfigurationaccepted to be merged with a parent configuration,falseotherwise.DocumentRefgetDocumentRef()Returns the relatedDocumentRefof this local configuration.StringgetFlavor()Returns the flavor (collection) to use for current pageLocalThemeConfigmerge(LocalThemeConfig other)Merge thisLocalConfigurationwith another one.-
Methods inherited from class org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration
save
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.api.localconfiguration.LocalConfiguration
save
-
-
-
-
Field Detail
-
documentRef
protected DocumentRef documentRef
-
perspective
protected String perspective
-
-
Constructor Detail
-
LocalThemeConfigAdapter
public LocalThemeConfigAdapter(DocumentModel doc)
-
-
Method Detail
-
getDocumentRef
public DocumentRef getDocumentRef()
Description copied from interface:LocalConfigurationReturns the relatedDocumentRefof this local configuration.- Specified by:
getDocumentRefin interfaceLocalConfiguration<LocalThemeConfig>
-
canMerge
public boolean canMerge()
Description copied from interface:LocalConfigurationReturnstrueif thisLocalConfigurationaccepted to be merged with a parent configuration,falseotherwise.- Specified by:
canMergein interfaceLocalConfiguration<LocalThemeConfig>- Overrides:
canMergein classAbstractLocalConfiguration<LocalThemeConfig>
-
merge
public LocalThemeConfig merge(LocalThemeConfig other)
Description copied from interface:LocalConfigurationMerge thisLocalConfigurationwith another one.- Specified by:
mergein interfaceLocalConfiguration<LocalThemeConfig>- Overrides:
mergein classAbstractLocalConfiguration<LocalThemeConfig>
-
getFlavor
public String getFlavor()
Description copied from interface:LocalThemeConfigReturns the flavor (collection) to use for current page- Specified by:
getFlavorin interfaceLocalThemeConfig- Since:
- 5.5
-
-