public abstract class BaseWebSchemaHandler extends org.exoplatform.container.component.BaseComponentPlugin implements WebSchemaHandler
| Modifier and Type | Field and Description |
|---|---|
protected String |
EXO_OWNABLE |
protected String |
NT_FILE |
protected String |
NT_FOLDER |
protected String |
NT_UNSTRUCTURED |
| Constructor and Description |
|---|
BaseWebSchemaHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMixin(javax.jcr.Node node,
String mixin)
Adds the mixin.
|
protected void |
createDefautWebData(javax.jcr.Node webContent) |
protected javax.jcr.Node |
findPortalNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node child) |
protected String |
getFileMimeType(javax.jcr.Node file) |
protected abstract String |
getHandlerNodeType()
Gets the handler node type.
|
protected abstract String |
getParentNodeType()
Gets the parent node type.
|
protected <T> T |
getService(Class<T> clazz) |
boolean |
matchHandler(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
Match handler to process the schema
|
void |
onCreateNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
Process schema when crete node
|
void |
onModifyNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
Update schema when modify node
|
void |
onRemoveNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
Update schema before a node is removed
|
protected final String EXO_OWNABLE
protected final String NT_FOLDER
protected final String NT_UNSTRUCTURED
protected final String NT_FILE
public boolean matchHandler(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws Exception
WebSchemaHandlermatchHandler in interface WebSchemaHandlernode - the nodeException - the exceptionpublic void onCreateNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws Exception
WebSchemaHandleronCreateNode in interface WebSchemaHandlernode - the nodeException - the exceptionpublic void onModifyNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws Exception
WebSchemaHandleronModifyNode in interface WebSchemaHandlernode - the nodeException - the exceptionpublic void onRemoveNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws Exception
WebSchemaHandleronRemoveNode in interface WebSchemaHandlernode - the nodeException - the exceptionprotected abstract String getHandlerNodeType()
protected abstract String getParentNodeType()
protected void addMixin(javax.jcr.Node node,
String mixin)
throws javax.jcr.nodetype.NoSuchNodeTypeException,
javax.jcr.version.VersionException,
javax.jcr.nodetype.ConstraintViolationException,
javax.jcr.lock.LockException,
javax.jcr.RepositoryException
node - the nodemixin - the mixinjavax.jcr.RepositoryExceptionjavax.jcr.lock.LockExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.version.VersionExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionprotected <T> T getService(Class<T> clazz)
protected javax.jcr.Node findPortalNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node child)
throws Exception
Exceptionprotected String getFileMimeType(javax.jcr.Node file) throws Exception
ExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.