org.apache.jackrabbit.ocm.nodemanagement.impl
Class RepositorySessionFactory

java.lang.Object
  extended by org.apache.jackrabbit.ocm.nodemanagement.impl.RepositorySessionFactory

public class RepositorySessionFactory
extends Object

Factory class to create a JCR repository session for different JCR implementations.

Author:
Oliver Kiessler

Field Summary
static String JACKRABBIT
           
 
Method Summary
static Session getSession(String jcrRepository, String username, String password, RepositoryConfiguration configuration)
          Returns a session to a JCR repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JACKRABBIT

public static final String JACKRABBIT
See Also:
Constant Field Values
Method Detail

getSession

public static Session getSession(String jcrRepository,
                                 String username,
                                 String password,
                                 RepositoryConfiguration configuration)
Returns a session to a JCR repository.

Parameters:
jcrRepository -
username - Username to logon
password - Password
Returns:
session JCR repository session


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.