org.exoplatform.services.wcm.webcontent
Class WebContentSchemaHandler

java.lang.Object
  extended by org.exoplatform.container.component.BaseComponentPlugin
      extended by org.exoplatform.services.wcm.core.BaseWebSchemaHandler
          extended by org.exoplatform.services.wcm.webcontent.WebContentSchemaHandler
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin, WebSchemaHandler

public class WebContentSchemaHandler
extends BaseWebSchemaHandler

Created by The eXo Platform SAS

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

Field Summary
 
Fields inherited from class org.exoplatform.services.wcm.core.BaseWebSchemaHandler
EXO_OWNABLE, NT_FILE, NT_FOLDER, NT_UNSTRUCTURED
 
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name
 
Constructor Summary
WebContentSchemaHandler()
           
 
Method Summary
 void createDefaultSchema(javax.jcr.Node webContent)
           
protected  void createSchema(javax.jcr.Node webContent)
           
 javax.jcr.Node getCSSFolder(javax.jcr.Node webContent)
           
 javax.jcr.Node getDocumentFolder(javax.jcr.Node webContent)
           
protected  java.lang.String getHandlerNodeType()
          Gets the handler node type.
 javax.jcr.Node getIllustrationImage(javax.jcr.Node webContent)
           
 javax.jcr.Node getImagesFolders(javax.jcr.Node webContent)
           
 javax.jcr.Node getJSFolder(javax.jcr.Node webContent)
           
protected  java.lang.String getParentNodeType()
          Gets the parent node type.
 javax.jcr.Node getVideoFolder(javax.jcr.Node webContent)
           
 boolean isWebcontentChildNode(javax.jcr.Node file)
           
 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 webContent)
          Process schema when crete node
 
Methods inherited from class org.exoplatform.services.wcm.core.BaseWebSchemaHandler
addMixin, createDefautWebData, findPortalNode, getFileMimeType, getService, onModifyNode, onRemoveNode
 
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
 

Constructor Detail

WebContentSchemaHandler

public WebContentSchemaHandler()
Method Detail

getHandlerNodeType

protected java.lang.String getHandlerNodeType()
Description copied from class: BaseWebSchemaHandler
Gets the handler node type.

Specified by:
getHandlerNodeType in class BaseWebSchemaHandler
Returns:
the handler node type

getParentNodeType

protected java.lang.String getParentNodeType()
Description copied from class: BaseWebSchemaHandler
Gets the parent node type.

Specified by:
getParentNodeType in class BaseWebSchemaHandler
Returns:
the parent node type

matchHandler

public boolean matchHandler(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                            javax.jcr.Node node)
                     throws java.lang.Exception
Description copied from interface: WebSchemaHandler
Match handler to process the schema

Specified by:
matchHandler in interface WebSchemaHandler
Overrides:
matchHandler in class BaseWebSchemaHandler
node - the node
Returns:
true, if successful
Throws:
java.lang.Exception - the exception

onCreateNode

public void onCreateNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                         javax.jcr.Node webContent)
                  throws java.lang.Exception
Description copied from interface: WebSchemaHandler
Process schema when crete node

Specified by:
onCreateNode in interface WebSchemaHandler
Overrides:
onCreateNode in class BaseWebSchemaHandler
webContent - the node
Throws:
java.lang.Exception - the exception

getCSSFolder

public javax.jcr.Node getCSSFolder(javax.jcr.Node webContent)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getJSFolder

public javax.jcr.Node getJSFolder(javax.jcr.Node webContent)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getImagesFolders

public javax.jcr.Node getImagesFolders(javax.jcr.Node webContent)
                                throws java.lang.Exception
Throws:
java.lang.Exception

getIllustrationImage

public javax.jcr.Node getIllustrationImage(javax.jcr.Node webContent)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getVideoFolder

public javax.jcr.Node getVideoFolder(javax.jcr.Node webContent)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getDocumentFolder

public javax.jcr.Node getDocumentFolder(javax.jcr.Node webContent)
                                 throws java.lang.Exception
Throws:
java.lang.Exception

createDefaultSchema

public void createDefaultSchema(javax.jcr.Node webContent)
                         throws java.lang.Exception
Throws:
java.lang.Exception

createSchema

protected void createSchema(javax.jcr.Node webContent)
                     throws java.lang.Exception
Throws:
java.lang.Exception

isWebcontentChildNode

public boolean isWebcontentChildNode(javax.jcr.Node file)
                              throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.