org.exoplatform.services.wcm.core
Interface WebSchemaConfigService

All Known Implementing Classes:
WebSchemaConfigServiceImpl

public interface WebSchemaConfigService

Created by The eXo Platform SAS.

Author:
: Hoa.Pham hoa.pham@exoplatform.com May 28, 2008

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 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.
 

Method Detail

addWebSchemaHandler

void addWebSchemaHandler(org.exoplatform.container.component.ComponentPlugin plugin)
                         throws java.lang.Exception
Adds the web schema handler.

Parameters:
plugin - the plugin
Throws:
java.lang.Exception - the exception

getAllWebSchemaHandler

java.util.Collection<WebSchemaHandler> getAllWebSchemaHandler()
                                                              throws java.lang.Exception
Gets the all web schema handler.

Returns:
the all web schema handler
Throws:
java.lang.Exception - the exception

getWebSchemaHandlerByType

<T extends WebSchemaHandler> T getWebSchemaHandlerByType(java.lang.Class<T> clazz)
Gets the web schema handler by type.

Parameters:
clazz - the clazz
Returns:
the web schema handler by type

createSchema

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

Parameters:
node - the node
sessionProvider - the session provider
Throws:
java.lang.Exception - the exception

updateSchemaOnModify

void updateSchemaOnModify(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                          javax.jcr.Node node)
                          throws java.lang.Exception
Update schema when a node is modified.

Parameters:
node - the node
sessionProvider - the session provider
Throws:
java.lang.Exception - the exception

updateSchemaOnRemove

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

Parameters:
node - the node
sessionProvider - the session provider
Throws:
java.lang.Exception - the exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.