org.exoplatform.services.wcm.core.impl
Class WebSchemaConfigServiceImpl

java.lang.Object
  extended by org.exoplatform.services.wcm.core.impl.WebSchemaConfigServiceImpl
All Implemented Interfaces:
WebSchemaConfigService, org.picocontainer.Startable

public class WebSchemaConfigServiceImpl
extends java.lang.Object
implements WebSchemaConfigService, org.picocontainer.Startable

Created by The eXo Platform SAS.

Author:
: Hoa.Pham hoa.pham@exoplatform.com Jun 3, 2008

Constructor Summary
WebSchemaConfigServiceImpl()
          Instantiates a new web schema config service impl.
 
Method Summary
 void addWebSchemaHandler(org.exoplatform.container.component.ComponentPlugin plugin)
          Adds the web schema handler.
 void createSchema(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, javax.jcr.Node node)
          Call this method when a node is created in observed tree.
 java.util.Collection<WebSchemaHandler> getAllWebSchemaHandler()
          Gets the all web schema handler.
<T extends WebSchemaHandler>
T
getWebSchemaHandlerByType(java.lang.Class<T> clazz)
          Gets the web schema handler by type.
 void start()
           
 void stop()
           
 void updateSchemaOnModify(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, javax.jcr.Node node)
          Update schema when a node is modified.
 void updateSchemaOnRemove(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, javax.jcr.Node node)
          Update schema on when a node is removed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSchemaConfigServiceImpl

public WebSchemaConfigServiceImpl()
Instantiates a new web schema config service impl.

Parameters:
configurationService - the configuration service
hierarchyCreator - the hierarchy creator
Method Detail

addWebSchemaHandler

public void addWebSchemaHandler(org.exoplatform.container.component.ComponentPlugin plugin)
                         throws java.lang.Exception
Description copied from interface: WebSchemaConfigService
Adds the web schema handler.

Specified by:
addWebSchemaHandler in interface WebSchemaConfigService
Parameters:
plugin - the plugin
Throws:
java.lang.Exception - the exception

getAllWebSchemaHandler

public java.util.Collection<WebSchemaHandler> getAllWebSchemaHandler()
                                                              throws java.lang.Exception
Description copied from interface: WebSchemaConfigService
Gets the all web schema handler.

Specified by:
getAllWebSchemaHandler in interface WebSchemaConfigService
Returns:
the all web schema handler
Throws:
java.lang.Exception - the exception

getWebSchemaHandlerByType

public <T extends WebSchemaHandler> T getWebSchemaHandlerByType(java.lang.Class<T> clazz)
Description copied from interface: WebSchemaConfigService
Gets the web schema handler by type.

Specified by:
getWebSchemaHandlerByType in interface WebSchemaConfigService
Parameters:
clazz - the clazz
Returns:
the web schema handler by type

createSchema

public void createSchema(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                         javax.jcr.Node node)
                  throws java.lang.Exception
Description copied from interface: WebSchemaConfigService
Call this method when a node is created in observed tree.

Specified by:
createSchema in interface WebSchemaConfigService
Parameters:
sessionProvider - the session provider
node - the node
Throws:
java.lang.Exception - the exception

updateSchemaOnModify

public void updateSchemaOnModify(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                 javax.jcr.Node node)
                          throws java.lang.Exception
Description copied from interface: WebSchemaConfigService
Update schema when a node is modified.

Specified by:
updateSchemaOnModify in interface WebSchemaConfigService
Parameters:
sessionProvider - the session provider
node - the node
Throws:
java.lang.Exception - the exception

updateSchemaOnRemove

public void updateSchemaOnRemove(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                                 javax.jcr.Node node)
                          throws java.lang.Exception
Description copied from interface: WebSchemaConfigService
Update schema on when a node is removed.

Specified by:
updateSchemaOnRemove in interface WebSchemaConfigService
Parameters:
sessionProvider - the session provider
node - the node
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 © 2011 eXo Platform SAS. All Rights Reserved.