org.jboss.portal.cms.util
Class RepositoryUtil

java.lang.Object
  extended by org.jboss.portal.cms.util.RepositoryUtil

public class RepositoryUtil
extends java.lang.Object

Helper class for JCR Repositories.

Author:
Roy Russo

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
 

Method Detail

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)