Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.theme.styling.service
Class ThemeStylingServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.theme.styling.service.ThemeStylingServiceImpl
All Implemented Interfaces:
Adaptable, Component, Extensible, ThemeStylingService

public class ThemeStylingServiceImpl
extends DefaultComponent
implements ThemeStylingService

Default implementation for the ThemeStylingService

Since:
5.4.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuxeo.theme.styling.service.ThemeStylingService
ThemeStylingService.PRESET_CATEGORY
 
Field Summary
 
Fields inherited from interface org.nuxeo.theme.styling.service.ThemeStylingService
FLAVOR_MARKER, PAGE_STYLE_CLASS_NAME_PREFIX, PAGE_STYLE_NAME_SUFFIX
 
Constructor Summary
ThemeStylingServiceImpl()
           
 
Method Summary
 void activate(ComponentContext context)
          Activates the component.
 String getDefaultFlavor(String themePageName)
          Returns the default flavor for a given theme page
 void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 void themeRegistered(String themeName)
          Hook to notify the service that a theme has been registered
 void unregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
           
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThemeStylingServiceImpl

public ThemeStylingServiceImpl()
Method Detail

activate

public void activate(ComponentContext context)
              throws Exception
Description copied from interface: Component
Activates the component.

This method is called by the runtime when a component is activated.

Specified by:
activate in interface Component
Overrides:
activate in class DefaultComponent
Parameters:
context - the runtime context
Throws:
Exception - if an error occurs during activation

registerContribution

public void registerContribution(Object contribution,
                                 String extensionPoint,
                                 ComponentInstance contributor)
                          throws Exception
Overrides:
registerContribution in class DefaultComponent
Throws:
Exception

unregisterContribution

public void unregisterContribution(Object contribution,
                                   String extensionPoint,
                                   ComponentInstance contributor)
                            throws Exception
Overrides:
unregisterContribution in class DefaultComponent
Throws:
Exception

getDefaultFlavor

public String getDefaultFlavor(String themePageName)
Description copied from interface: ThemeStylingService
Returns the default flavor for a given theme page

Specified by:
getDefaultFlavor in interface ThemeStylingService

themeRegistered

public void themeRegistered(String themeName)
Description copied from interface: ThemeStylingService
Hook to notify the service that a theme has been registered

Specified by:
themeRegistered in interface ThemeStylingService

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.