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

RepositoryUtil - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.cms.util
Class RepositoryUtil

java.lang.Object
  extended byorg.jboss.portal.cms.util.RepositoryUtil

public class RepositoryUtil
extends java.lang.Object

Helper class for JCR Repositories.

Author:
Roy Russo

Constructor Summary
private RepositoryUtil()
           
 
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
 

Constructor Detail

RepositoryUtil

private RepositoryUtil()
Method Detail

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)