Nuxeo Enterprise Platform 5.4

org.nuxeo.theme.localconfiguration
Class LocalThemeConfigAdapter

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

public class LocalThemeConfigAdapter
extends Object
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
 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 java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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>

merge

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

Specified by:
merge in interface LocalConfiguration<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

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 Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.