当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
RepositoryUtil - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.cms.util
Class RepositoryUtil
java.lang.Object
org.jboss.portal.cms.util.RepositoryUtil
- public class RepositoryUtil
- extends java.lang.Object
Helper class for JCR Repositories.
Method Summary |
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 |
safeLogout(javax.jcr.Session session)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
login
public static javax.jcr.Session login(javax.jcr.Repository repository,
java.lang.String user,
java.lang.String password)
throws java.lang.Exception
- Handles authentication for the specified repository.
- Parameters:
repository
- user
- password
-
- Returns:
- session
- Throws:
java.lang.Exception
safeLogout
public static void safeLogout(javax.jcr.Session session)