RepositoryManagerFactory Class

com.bea.content.manager
RepositoryManagerFactory Class

public class RepositoryManagerFactory

    extends Object

Used to get the RepositoryManager.


Hierarchy
Object
  RepositoryManagerFactory

Field Summary

public static final String
REPOSITORY_MANAGER_CACHE_NAME
String
 

Constructor Summary

RepositoryManagerFactory()

 

Method Summary

public static RepositoryManager
connect()
Creates a RepositoryManager and attempts to connect to all configured repositories.
public static RepositoryManager
connect(HttpSession session)
Creates a RepositoryManager, adds it to the session at REPOSITORY_MANAGER_CACHE_NAME and attempts to connect to all configured repositories.
public static RepositoryManager
create()
Creates a RepositoryManager.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   

Field Detail

REPOSITORY_MANAGER_CACHE_NAME

public static final String REPOSITORY_MANAGER_CACHE_NAME

 

Constructor Detail

RepositoryManagerFactory

public RepositoryManagerFactory()
 

Method Detail

connect() Method

public static RepositoryManager connect()
throws NoRepositoriesDefinedException, RepositoryException
Creates a RepositoryManager and attempts to connect to all configured repositories.

Returns

RepositoryManager - the connected repository manager.

Exceptions

NoRepositoriesDefinedException
- if there are no repositories to connect to.
RepositoryException
- if a system error occurs.

connect(HttpSession) Method

public static RepositoryManager connect(HttpSession session)
throws NoRepositoriesDefinedException, RepositoryException
Creates a RepositoryManager, adds it to the session at REPOSITORY_MANAGER_CACHE_NAME and attempts to connect to all configured repositories. If it is already in the session then return it.

Parameters

session
- the HttpSession to get the manager out of, or put it into if new.

Returns

RepositoryManager - the connected repository manager.

Exceptions

NoRepositoriesDefinedException
- if there are no repositories to connect to.
RepositoryException
- if a system error occurs.

create() Method

public static RepositoryManager create()
Creates a RepositoryManager.