当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
RepositoryUtil - JBOSS Portal 2.6 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.
- Author:
- Roy Russo
Method Summary |
static Session |
login(Repository repository,
java.lang.String user,
java.lang.String password)
Handles authentication for the specified repository. |
static void |
safeLogout(Session session)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RepositoryUtil
private RepositoryUtil()
login
public static Session login(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(Session session)