|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.services.wcm.core.BaseWebSchemaHandler
public abstract class BaseWebSchemaHandler
Created by The eXo Platform SAS.
| Field Summary | |
|---|---|
protected java.lang.String |
EXO_OWNABLE
|
protected java.lang.String |
NT_FILE
|
protected java.lang.String |
NT_FOLDER
|
protected java.lang.String |
NT_UNSTRUCTURED
|
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
desc, name |
| Constructor Summary | |
|---|---|
BaseWebSchemaHandler()
|
|
| Method Summary | ||
|---|---|---|
protected void |
addMixin(javax.jcr.Node node,
java.lang.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 java.lang.String |
getFileMimeType(javax.jcr.Node file)
|
|
protected abstract java.lang.String |
getHandlerNodeType()
Gets the handler node type. |
|
protected abstract java.lang.String |
getParentNodeType()
Gets the parent node type. |
|
protected
|
getService(java.lang.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 |
|
| Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
getDescription, getName, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.lang.String EXO_OWNABLE
protected final java.lang.String NT_FOLDER
protected final java.lang.String NT_UNSTRUCTURED
protected final java.lang.String NT_FILE
| Constructor Detail |
|---|
public BaseWebSchemaHandler()
| Method Detail |
|---|
public boolean matchHandler(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws java.lang.Exception
WebSchemaHandler
matchHandler in interface WebSchemaHandlernode - the node
java.lang.Exception - the exception
public void onCreateNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws java.lang.Exception
WebSchemaHandler
onCreateNode in interface WebSchemaHandlernode - the node
java.lang.Exception - the exception
public void onModifyNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws java.lang.Exception
WebSchemaHandler
onModifyNode in interface WebSchemaHandlernode - the node
java.lang.Exception - the exception
public void onRemoveNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node node)
throws java.lang.Exception
WebSchemaHandler
onRemoveNode in interface WebSchemaHandlernode - the node
java.lang.Exception - the exceptionprotected abstract java.lang.String getHandlerNodeType()
protected abstract java.lang.String getParentNodeType()
protected void addMixin(javax.jcr.Node node,
java.lang.String mixin)
throws java.lang.Exception
node - the nodemixin - the mixin
java.lang.Exception - the exceptionprotected <T> T getService(java.lang.Class<T> clazz)
protected javax.jcr.Node findPortalNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
javax.jcr.Node child)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String getFileMimeType(javax.jcr.Node file)
throws java.lang.Exception
java.lang.Exception
protected void createDefautWebData(javax.jcr.Node webContent)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||