Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.localconfiguration
Class LocalThemeConfigAdapter

java.lang.Object
  extended by org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration<LocalThemeConfig>
      extended by org.nuxeo.theme.localconfiguration.LocalThemeConfigAdapter
All Implemented Interfaces:
DetachedAdapter, LocalConfiguration<LocalThemeConfig>, LocalThemeConfig

public class LocalThemeConfigAdapter
extends AbstractLocalConfiguration<LocalThemeConfig>
implements LocalThemeConfig

Default implementation of LocalThemeConfig.

Author:
Quentin Lamerand

Constructor Summary
LocalThemeConfigAdapter(DocumentModel doc)
           
 
Method Summary
 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 negociation scheme
 String getCollection()
          Returns the collection (flavor) to use for current page
 DocumentRef getDocumentRef()
          Returns the related DocumentRef of this local configuration.
 String getEngine()
          Returns the configured engine.
 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.
 
Methods inherited from class org.nuxeo.ecm.core.api.localconfiguration.AbstractLocalConfiguration
save
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.core.api.localconfiguration.LocalConfiguration
save
 

Constructor Detail

LocalThemeConfigAdapter

public LocalThemeConfigAdapter(DocumentModel doc)
Method Detail

getDocumentRef

public DocumentRef getDocumentRef()
Description copied from interface: LocalConfiguration
Returns the related DocumentRef of this local configuration.

Specified by:
getDocumentRef in interface LocalConfiguration<LocalThemeConfig>

canMerge

public boolean canMerge()
Description copied from interface: LocalConfiguration
Returns true if this LocalConfiguration accepted to be merged with a parent configuration, false otherwise.

Specified by:
canMerge in interface LocalConfiguration<LocalThemeConfig>
Overrides:
canMerge in class AbstractLocalConfiguration<LocalThemeConfig>

merge

public LocalThemeConfig merge(LocalThemeConfig other)
Description copied from interface: LocalConfiguration
Merge this LocalConfiguration with another one.

Specified by:
merge in interface LocalConfiguration<LocalThemeConfig>
Overrides:
merge in class AbstractLocalConfiguration<LocalThemeConfig>

getTheme

public String getTheme()
Description copied from interface: LocalThemeConfig
Returns the configured theme.

Specified by:
getTheme in interface LocalThemeConfig

getPage

public String getPage()
Description copied from interface: LocalThemeConfig
Returns the configured page for the selected theme.

Specified by:
getPage in interface LocalThemeConfig

getPerspective

public String getPerspective()
Description copied from interface: LocalThemeConfig
Returns the configured perspective used in the LocalPerspective negociation scheme.

Specified by:
getPerspective in interface LocalThemeConfig

getEngine

public String getEngine()
Description copied from interface: LocalThemeConfig
Returns the configured engine.

Specified by:
getEngine in interface LocalThemeConfig

getMode

public String getMode()
Description copied from interface: LocalThemeConfig
Returns the configured mode.

Specified by:
getMode in interface LocalThemeConfig

getCollection

public String getCollection()
Description copied from interface: LocalThemeConfig
Returns the collection (flavor) to use for current page

Specified by:
getCollection in interface LocalThemeConfig

computePagePath

public String computePagePath()
Description copied from interface: LocalThemeConfig
Returns the page path used in the LocalTheme negociation scheme

Specified by:
computePagePath in interface LocalThemeConfig

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.