public class LocalThemeConfigAdapter extends AbstractLocalConfiguration<LocalThemeConfig> implements LocalThemeConfig
LocalThemeConfig
.Modifier and Type | Field and Description |
---|---|
protected DocumentRef |
documentRef |
protected String |
engine |
protected String |
flavor |
protected String |
mode |
protected String |
page |
protected String |
perspective |
protected String |
theme |
OLD_THEME_CONFIGURATION_PROPERTY
Constructor and Description |
---|
LocalThemeConfigAdapter(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
boolean |
canMerge()
Returns
true if this LocalConfiguration accepted to be merged with a parent configuration,
false otherwise. |
String |
computePagePath()
Returns the page path used in the
LocalTheme negotiation scheme |
DocumentRef |
getDocumentRef()
Returns the related
DocumentRef of this local configuration. |
String |
getEngine()
Returns the configured engine.
|
String |
getFlavor()
Returns the flavor (collection) to use for current page
|
String |
getMode()
Returns the configured mode.
|
String |
getPage()
Returns the configured page for the selected theme.
|
String |
getPerspective()
Returns the configured perspective used in the
LocalPerspective negociation scheme. |
String |
getTheme()
Returns the configured theme.
|
LocalThemeConfig |
merge(LocalThemeConfig other)
Merge this
LocalConfiguration with another one. |
save
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
protected DocumentRef documentRef
protected String perspective
public LocalThemeConfigAdapter(DocumentModel doc)
public DocumentRef getDocumentRef()
LocalConfiguration
DocumentRef
of this local configuration.getDocumentRef
in interface LocalConfiguration<LocalThemeConfig>
public boolean canMerge()
LocalConfiguration
true
if this LocalConfiguration
accepted to be merged with a parent configuration,
false
otherwise.canMerge
in interface LocalConfiguration<LocalThemeConfig>
canMerge
in class AbstractLocalConfiguration<LocalThemeConfig>
public LocalThemeConfig merge(LocalThemeConfig other)
LocalConfiguration
LocalConfiguration
with another one.merge
in interface LocalConfiguration<LocalThemeConfig>
merge
in class AbstractLocalConfiguration<LocalThemeConfig>
public String getTheme()
LocalThemeConfig
getTheme
in interface LocalThemeConfig
public String getPage()
LocalThemeConfig
getPage
in interface LocalThemeConfig
public String getPerspective()
LocalThemeConfig
LocalPerspective
negociation scheme.getPerspective
in interface LocalThemeConfig
public String getEngine()
LocalThemeConfig
getEngine
in interface LocalThemeConfig
public String getMode()
LocalThemeConfig
getMode
in interface LocalThemeConfig
public String getFlavor()
LocalThemeConfig
getFlavor
in interface LocalThemeConfig
public String computePagePath()
LocalThemeConfig
LocalTheme
negotiation schemecomputePagePath
in interface LocalThemeConfig
Copyright © 2015 Nuxeo SA. All rights reserved.