org.apache.jackrabbit.ocm.manager.impl
Class CustomNodeTypeCreatorImpl

java.lang.Object
  extended by org.apache.jackrabbit.ocm.manager.impl.CustomNodeTypeCreatorImpl
All Implemented Interfaces:
CustomNodeTypeCreator

public class CustomNodeTypeCreatorImpl
extends 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(ObjectContentManagerImpl 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.
 ObjectContentManager getJcrSession()
          Getter for property jcrSession.
 void setJcrSession(ObjectContentManagerImpl 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(ObjectContentManagerImpl 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(ObjectContentManagerImpl jcrSession)
Setter for property jcrSession.

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

getJcrSession

public ObjectContentManager getJcrSession()
Getter for property jcrSession.

Returns:
jcrSession


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