当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
JackrabbitJCRService - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.cms.impl.jcr.jackrabbit
Class JackrabbitJCRService
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JackrabbitJCRService
public JackrabbitJCRService()
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: