org.exoplatform.services.wcm.portal
Class PortalFolderSchemaHandler

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

public class PortalFolderSchemaHandler
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
PortalFolderSchemaHandler()
          Instantiates a new portal folder schema handler.
 
Method Summary
 javax.jcr.Node getAudioFolder(javax.jcr.Node portalFolder)
          Gets the audio folder.
 javax.jcr.Node getCSSFolder(javax.jcr.Node portalFolder)
          Gets the CSS folder.
 javax.jcr.Node getDocumentStorage(javax.jcr.Node portalFolder)
          Gets the document storage.
protected  java.lang.String getHandlerNodeType()
          Gets the handler node type.
 javax.jcr.Node getImagesFolder(javax.jcr.Node portalFolder)
          Gets the images folder.
 javax.jcr.Node getJSFolder(javax.jcr.Node portalFolder)
          Gets the javasscript folder.
 javax.jcr.Node getLinkFolder(javax.jcr.Node portalFolder)
          Gets the link folder.
 javax.jcr.Node getMultimediaFolder(javax.jcr.Node portalFolder)
          Gets the multimedia folder.
protected  java.lang.String getParentNodeType()
          Gets the parent node type.
 javax.jcr.Node getVideoFolder(javax.jcr.Node portalFolder)
          Gets the video folder.
 javax.jcr.Node getWebContentStorage(javax.jcr.Node portalFolder)
          Gets the web content storage.
 void onCreateNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider, javax.jcr.Node portalFolder)
          Process schema when crete node
 
Methods inherited from class org.exoplatform.services.wcm.core.BaseWebSchemaHandler
addMixin, createDefautWebData, findPortalNode, getFileMimeType, getService, matchHandler, 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

PortalFolderSchemaHandler

public PortalFolderSchemaHandler()
Instantiates a new portal folder schema handler.

Parameters:
actionServiceContainer - the action service container
Method Detail

getCSSFolder

public javax.jcr.Node getCSSFolder(javax.jcr.Node portalFolder)
                            throws java.lang.Exception
Gets the CSS folder.

Parameters:
portalFolder - the portal folder
Returns:
the cSS folder
Throws:
java.lang.Exception - the exception

getJSFolder

public javax.jcr.Node getJSFolder(javax.jcr.Node portalFolder)
                           throws java.lang.Exception
Gets the javasscript folder.

Parameters:
portalFolder - the portal folder
Returns:
the javasscript folder node
Throws:
java.lang.Exception - the exception

getMultimediaFolder

public javax.jcr.Node getMultimediaFolder(javax.jcr.Node portalFolder)
                                   throws java.lang.Exception
Gets the multimedia folder.

Parameters:
portalFolder - the portal folder
Returns:
the multimedia folder
Throws:
java.lang.Exception - the exception

getImagesFolder

public javax.jcr.Node getImagesFolder(javax.jcr.Node portalFolder)
                               throws java.lang.Exception
Gets the images folder.

Parameters:
portalFolder - the portal folder
Returns:
the images folder
Throws:
java.lang.Exception - the exception

getVideoFolder

public javax.jcr.Node getVideoFolder(javax.jcr.Node portalFolder)
                              throws java.lang.Exception
Gets the video folder.

Parameters:
portalFolder - the portal folder
Returns:
the video folder
Throws:
java.lang.Exception - the exception

getAudioFolder

public javax.jcr.Node getAudioFolder(javax.jcr.Node portalFolder)
                              throws java.lang.Exception
Gets the audio folder.

Parameters:
portalFolder - the portal folder
Returns:
the audio folder
Throws:
java.lang.Exception - the exception

getDocumentStorage

public javax.jcr.Node getDocumentStorage(javax.jcr.Node portalFolder)
                                  throws java.lang.Exception
Gets the document storage.

Parameters:
portalFolder - the portal folder
Returns:
the document storage
Throws:
java.lang.Exception - the exception

getLinkFolder

public javax.jcr.Node getLinkFolder(javax.jcr.Node portalFolder)
                             throws java.lang.Exception
Gets the link folder.

Parameters:
portalFolder - the portal folder
Returns:
the link folder
Throws:
java.lang.Exception - the exception

getWebContentStorage

public javax.jcr.Node getWebContentStorage(javax.jcr.Node portalFolder)
                                    throws java.lang.Exception
Gets the web content storage.

Parameters:
portalFolder - the portal folder
Returns:
the web content storage
Throws:
java.lang.Exception - the exception

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

onCreateNode

public void onCreateNode(org.exoplatform.services.jcr.ext.common.SessionProvider sessionProvider,
                         javax.jcr.Node portalFolder)
                  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
portalFolder - the node
Throws:
java.lang.Exception - the exception


Copyright © 2011 eXo Platform SAS. All Rights Reserved.