org.exoplatform.services.wcm.skin
Class XSkinService

java.lang.Object
  extended by org.exoplatform.services.wcm.skin.XSkinService
All Implemented Interfaces:
org.picocontainer.Startable

public class XSkinService
extends java.lang.Object
implements org.picocontainer.Startable

Created by The eXo Platform SAS Author : Hoa.Pham hoa.pham@exoplatform.com Apr 9, 2008


Field Summary
static java.lang.String SKIN_PATH_REGEXP
          The Constant SKIN_PATH_REGEXP.
 
Constructor Summary
XSkinService()
          Instantiates a new extended skin service to manage skin for web content.
 
Method Summary
 java.lang.String getActiveStylesheet(javax.jcr.Node webcontent)
          Gets the active stylesheet.
 void start()
           
 void stop()
           
 void updatePortalSkinOnModify(javax.jcr.Node portal, javax.jcr.Node cssFile)
          Update portal skin on modify.
 void updatePortalSkinOnRemove(javax.jcr.Node portal, javax.jcr.Node cssFile)
          Update portal skin on modify.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SKIN_PATH_REGEXP

public static final java.lang.String SKIN_PATH_REGEXP
The Constant SKIN_PATH_REGEXP.

Constructor Detail

XSkinService

public XSkinService()
             throws java.lang.Exception
Instantiates a new extended skin service to manage skin for web content.

Parameters:
skinService - the skin service
initializerService - the content initializer service. this param makes sure that the service started after the content initializer service is started
schemaConfigService - the schema config service
configurationService - the configuration service
servletContext - the servlet context
Throws:
java.lang.Exception - the exception
Method Detail

getActiveStylesheet

public java.lang.String getActiveStylesheet(javax.jcr.Node webcontent)
                                     throws java.lang.Exception
Gets the active stylesheet.

Parameters:
home - the home
Returns:
the active stylesheet
Throws:
java.lang.Exception - the exception

updatePortalSkinOnModify

public void updatePortalSkinOnModify(javax.jcr.Node portal,
                                     javax.jcr.Node cssFile)
                              throws java.lang.Exception
Update portal skin on modify.

Parameters:
cssFile - the css file
portal - the portal
Throws:
java.lang.Exception - the exception

updatePortalSkinOnRemove

public void updatePortalSkinOnRemove(javax.jcr.Node portal,
                                     javax.jcr.Node cssFile)
                              throws java.lang.Exception
Update portal skin on modify.

Parameters:
cssFile - the css file
portal - the portal
Throws:
java.lang.Exception - the exception

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable


Copyright © 2010 eXo Platform SAS. All Rights Reserved.