站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

JackrabbitJCRService - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.cms.impl.jcr.jackrabbit
Class JackrabbitJCRService

java.lang.Object
  extended byorg.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService
All Implemented Interfaces:
JCRService

public class JackrabbitJCRService
extends java.lang.Object
implements JCRService

Version:
$Revision: 5448 $
Author:
Julien Viet

Field Summary
private  java.lang.String config
           
private  java.lang.String homeDir
           
private static org.apache.log4j.Logger log
           
private  RepositoryImpl repository
           
private  java.lang.String repositoryName
           
 
Constructor Summary
JackrabbitJCRService()
           
 
Method Summary
private  NodeDefImpl getChildNodeDef(QName declaringNodeType, java.lang.String superType)
          Utility method used for childnodedefs
 java.lang.String getConfig()
           
 java.lang.String getHomeDir()
           
 Repository getRepository()
           
 java.lang.String getRepositoryName()
           
 Session login(java.lang.String user, java.lang.String password)
           
 boolean nodeTypesExist()
          Check for existence of namespace nodetypes.
private  void registerCustomNodeTypes(Repository repository)
          Creates the custom nodetypes needed by the portalcms.
private  void registerNodeType(Session session, QName qname, boolean sameNameChild, java.lang.String superType)
          Registers custom nodetypes.
 void setConfig(java.lang.String config)
           
 void setHomeDir(java.lang.String homeDir)
           
 void setRepositoryName(java.lang.String repositoryName)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.log4j.Logger log

repository

private RepositoryImpl repository

homeDir

private java.lang.String homeDir

repositoryName

private java.lang.String repositoryName

config

private java.lang.String config
Constructor Detail

JackrabbitJCRService

public JackrabbitJCRService()
Method Detail

getRepositoryName

public java.lang.String getRepositoryName()

setRepositoryName

public void setRepositoryName(java.lang.String repositoryName)

getConfig

public java.lang.String getConfig()

setConfig

public void setConfig(java.lang.String config)

getHomeDir

public java.lang.String getHomeDir()

setHomeDir

public void setHomeDir(java.lang.String homeDir)

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface JCRService
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface JCRService

nodeTypesExist

public boolean nodeTypesExist()
                       throws java.lang.Exception
Check for existence of namespace nodetypes.

Throws:
java.lang.Exception

login

public Session login(java.lang.String user,
                     java.lang.String password)
              throws java.lang.Exception
Specified by:
login in interface JCRService
Throws:
java.lang.Exception

getRepository

public Repository getRepository()
Specified by:
getRepository in interface JCRService

registerCustomNodeTypes

private void registerCustomNodeTypes(Repository repository)
                              throws java.lang.Exception
Creates the custom nodetypes needed by the portalcms.

Parameters:
repository -
Throws:
java.lang.Exception

registerNodeType

private void registerNodeType(Session session,
                              QName qname,
                              boolean sameNameChild,
                              java.lang.String superType)
                       throws RepositoryException,
                              InvalidNodeTypeDefException
Registers custom nodetypes.

Parameters:
session -
qname -
sameNameChild -
superType -
Throws:
javax.jcr.RepositoryException
org.apache.jackrabbit.core.nodetype.InvalidNodeTypeDefException
RepositoryException
InvalidNodeTypeDefException

getChildNodeDef

private NodeDefImpl getChildNodeDef(QName declaringNodeType,
                                    java.lang.String superType)
Utility method used for childnodedefs

Parameters:
declaringNodeType -
Returns: