org.apache.portals.graffito.jcr.persistence.impl
Class CustomNodeTypeCreatorImpl

java.lang.Object
  extended by org.apache.portals.graffito.jcr.persistence.impl.CustomNodeTypeCreatorImpl
All Implemented Interfaces:
CustomNodeTypeCreator

public class CustomNodeTypeCreatorImpl
extends java.lang.Object
implements CustomNodeTypeCreator

Default implementation of the jackrabbit custom node creator.

Version:
$Id: Exp $
Author:
Oliver Kiessler

Constructor Summary
CustomNodeTypeCreatorImpl()
          Creates a new instance of CustomNodeTypeCreatorImpl.
CustomNodeTypeCreatorImpl(PersistenceManagerImpl jcrSession)
          Creates a new instance of CustomNodeTypeCreatorImpl with a jcr session.
 
Method Summary
 boolean addJcrCustomNodeType()
          Method to add a jcr custom node type to an existing jcr repository.
 boolean createInitialJcrCustomNodeTypes()
          This method is supposed to create custom node types on repository setup.
 PersistenceManager getJcrSession()
          Getter for property jcrSession.
 void setJcrSession(PersistenceManagerImpl jcrSession)
          Setter for property jcrSession.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomNodeTypeCreatorImpl

public CustomNodeTypeCreatorImpl()
Creates a new instance of CustomNodeTypeCreatorImpl.


CustomNodeTypeCreatorImpl

public CustomNodeTypeCreatorImpl(PersistenceManagerImpl jcrSession)
Creates a new instance of CustomNodeTypeCreatorImpl with a jcr session.

Parameters:
jcrSession - JcrSession
Method Detail

createInitialJcrCustomNodeTypes

public boolean createInitialJcrCustomNodeTypes()
                                        throws CustomNodeTypeCreationException
This method is supposed to create custom node types on repository setup.

Specified by:
createInitialJcrCustomNodeTypes in interface CustomNodeTypeCreator
Returns:
true/false
Throws:
CustomNodeTypeCreationException

addJcrCustomNodeType

public boolean addJcrCustomNodeType()
                             throws CustomNodeTypeCreationException
Method to add a jcr custom node type to an existing jcr repository.

Specified by:
addJcrCustomNodeType in interface CustomNodeTypeCreator
Returns:
true/false
Throws:
CustomNodeTypeCreationException

setJcrSession

public void setJcrSession(PersistenceManagerImpl jcrSession)
Setter for property jcrSession.

Specified by:
setJcrSession in interface CustomNodeTypeCreator
Parameters:
jcrSession - JcrSession

getJcrSession

public PersistenceManager getJcrSession()
Getter for property jcrSession.

Returns:
jcrSession


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.