|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.cms.util.RepositoryUtil
Helper class for JCR Repositories.
| Constructor Summary | |
RepositoryUtil()
|
|
| Method Summary | |
static javax.jcr.Repository |
getRepository(java.lang.String repositoryName)
Retrieves a handle on the repository. |
static javax.jcr.Session |
login(javax.jcr.Repository repository,
java.lang.String user,
java.lang.String password)
Handles authentication for the specified repository. |
static void |
registerCustomNodeTypes(javax.jcr.Repository repository)
Creates the custom nodetypes needed by the portalcms. |
static void |
registerRepository(java.lang.String repositoryName,
java.lang.String configFile,
java.lang.String homeDir)
Registers the repository, also creates it if it does not exist on the FS. |
static void |
unregisterRepository(java.lang.String repositoryName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RepositoryUtil()
| Method Detail |
public static void registerCustomNodeTypes(javax.jcr.Repository repository)
throws java.lang.Exception
repository -
java.lang.Exception
public static void registerRepository(java.lang.String repositoryName,
java.lang.String configFile,
java.lang.String homeDir)
throws javax.jcr.RepositoryException,
javax.naming.NamingException
repositoryName - configFile - homeDir -
javax.jcr.RepositoryException
javax.naming.NamingException
public static void unregisterRepository(java.lang.String repositoryName)
throws javax.naming.NamingException
javax.naming.NamingExceptionpublic static javax.jcr.Repository getRepository(java.lang.String repositoryName)
repositoryName -
public static javax.jcr.Session login(javax.jcr.Repository repository,
java.lang.String user,
java.lang.String password)
repository - user - password -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||