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 DocumentRef
documentRef
protected String
engine
protected String
flavor
protected String
mode
protected String
page
protected String
perspective
protected String
theme
-
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 boolean
canMerge()
Returnstrue
if thisLocalConfiguration
accepted to be merged with a parent configuration,false
otherwise.DocumentRef
getDocumentRef()
Returns the relatedDocumentRef
of this local configuration.String
getFlavor()
Returns the flavor (collection) to use for current pageLocalThemeConfig
merge(LocalThemeConfig other)
Merge thisLocalConfiguration
with 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:LocalConfiguration
Returns the relatedDocumentRef
of this local configuration.- Specified by:
getDocumentRef
in interfaceLocalConfiguration<LocalThemeConfig>
-
canMerge
public boolean canMerge()
Description copied from interface:LocalConfiguration
Returnstrue
if thisLocalConfiguration
accepted to be merged with a parent configuration,false
otherwise.- Specified by:
canMerge
in interfaceLocalConfiguration<LocalThemeConfig>
- Overrides:
canMerge
in classAbstractLocalConfiguration<LocalThemeConfig>
-
merge
public LocalThemeConfig merge(LocalThemeConfig other)
Description copied from interface:LocalConfiguration
Merge thisLocalConfiguration
with another one.- Specified by:
merge
in interfaceLocalConfiguration<LocalThemeConfig>
- Overrides:
merge
in classAbstractLocalConfiguration<LocalThemeConfig>
-
getFlavor
public String getFlavor()
Description copied from interface:LocalThemeConfig
Returns the flavor (collection) to use for current page- Specified by:
getFlavor
in interfaceLocalThemeConfig
- Since:
- 5.5
-
-