com.silverpeas.jcrutil.model
Class SilverpeasRegister

java.lang.Object
  extended by com.silverpeas.jcrutil.model.SilverpeasRegister

public class SilverpeasRegister
extends Object


Constructor Summary
SilverpeasRegister()
           
 
Method Summary
static void registerNodeTypes(Reader cnd)
          Register Silverpeas node types in Jackrabbit
static void registerNodeTypes(String cndFileName)
          Register Silverpeas node types in Jackrabbit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilverpeasRegister

public SilverpeasRegister()
Method Detail

registerNodeTypes

public static void registerNodeTypes(String cndFileName)
                              throws javax.jcr.RepositoryException,
                                     org.apache.jackrabbit.commons.cnd.ParseException,
                                     IOException
Register Silverpeas node types in Jackrabbit

Parameters:
cndFileName - the file containing the nodes definitions.
Throws:
javax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
org.apache.jackrabbit.commons.cnd.ParseException
IOException

registerNodeTypes

public static void registerNodeTypes(Reader cnd)
                              throws javax.jcr.RepositoryException,
                                     org.apache.jackrabbit.commons.cnd.ParseException,
                                     IOException
Register Silverpeas node types in Jackrabbit

Parameters:
cnd - a reader containing the nodes definitions.
Throws:
javax.jcr.NamespaceException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
org.apache.jackrabbit.commons.cnd.ParseException
IOException


Copyright © 2016 Silverpeas. All Rights Reserved.