public class WebSchemaConfigServiceImpl extends Object implements WebSchemaConfigService, org.picocontainer.Startable
| Constructor and Description |
|---|
WebSchemaConfigServiceImpl(WCMConfigurationService configurationService,
org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)
Instantiates a new web schema config service impl.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Collection<WebSchemaHandler> |
getAllWebSchemaHandler()
Gets the all web schema handler.
|
<T extends WebSchemaHandler> |
getWebSchemaHandlerByType(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.
|
public WebSchemaConfigServiceImpl(WCMConfigurationService configurationService, org.exoplatform.services.jcr.ext.hierarchy.NodeHierarchyCreator nodeHierarchyCreator)
configurationService - the configuration servicenodeHierarchyCreator - the hierarchy creatorpublic void addWebSchemaHandler(org.exoplatform.container.component.ComponentPlugin plugin)
throws Exception
WebSchemaConfigServiceaddWebSchemaHandler in interface WebSchemaConfigServiceplugin - the pluginException - the exceptionpublic Collection<WebSchemaHandler> getAllWebSchemaHandler() throws Exception
WebSchemaConfigServicegetAllWebSchemaHandler in interface WebSchemaConfigServiceException - the exceptionpublic <T extends WebSchemaHandler> T getWebSchemaHandlerByType(Class<T> clazz)
WebSchemaConfigServicegetWebSchemaHandlerByType in interface WebSchemaConfigServiceclazz - the clazzpublic void createSchema(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws Exception
WebSchemaConfigServicecreateSchema in interface WebSchemaConfigServicesessionProvider - the session providernode - the nodeException - the exceptionpublic void updateSchemaOnModify(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws Exception
WebSchemaConfigServiceupdateSchemaOnModify in interface WebSchemaConfigServicesessionProvider - the session providernode - the nodeException - the exceptionpublic void updateSchemaOnRemove(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws Exception
WebSchemaConfigServiceupdateSchemaOnRemove in interface WebSchemaConfigServicesessionProvider - the session providernode - the nodeException - the exceptionpublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.StartableCopyright © 2003–2019 eXo Platform SAS. All rights reserved.