Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 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)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD