org.exoplatform.services.wcm.skin
Class CSSFileHandler

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

public class CSSFileHandler
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
CSSFileHandler()
           
 
Method Summary
protected  java.lang.String getHandlerNodeType()
          Gets the handler node type.
protected  java.lang.String getParentNodeType()
          Gets the parent node type.
 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 file)
          Process schema when crete node
 void onModifyNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, javax.jcr.Node file)
          Update schema when modify node
 void onRemoveNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, javax.jcr.Node file)
          Update schema before a node is removed
 
Methods inherited from class org.exoplatform.services.wcm.core.BaseWebSchemaHandler
addMixin, createDefautWebData, findPortalNode, getFileMimeType, getService
 
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

CSSFileHandler

public CSSFileHandler()
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 file)
                  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
file - the node
Throws:
java.lang.Exception - the exception

onModifyNode

public void onModifyNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                         javax.jcr.Node file)
                  throws java.lang.Exception
Description copied from interface: WebSchemaHandler
Update schema when modify node

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

onRemoveNode

public void onRemoveNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                         javax.jcr.Node file)
                  throws java.lang.Exception
Description copied from interface: WebSchemaHandler
Update schema before a node is removed

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


Copyright © 2010 eXo Platform SAS. All Rights Reserved.