|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ContentManagerFactory and
IVirtualRepositoryManager
public interface RepositoryManager
This class acts as a virtual repository to all configured repositories. It is the entry point to connect to and operate on the repositories. For each available Repository, a RepositorySession will be created and added to the returned array. A connection may also be attempted to a specific Repository in which case, the RepositorySession for that attempted connection will be added to the RepositorySession array and returned. The RepositoryManager may be cached (perhaps in the HttpSession). If this is the case, it is up to the client to keep RepositorySessions in sync with the user's connection and disconnections to Repositories.
| Method Detail |
|---|
RepositorySession[] connect()
throws NoRepositoriesDefinedException,
RepositoryException
ContentManagerFactory
NoRepositoriesDefinedException - - if there isn't any Repository
defined to connect to.
RepositoryException - if an error occurs.RepositorySession connect(String repositoryName)
ContentManagerFactory
repositoryName - the name of the Repository to connect to.
RepositorySession connect(String repositoryName,
String userName,
String password)
ContentManagerFactory
repositoryName - - the name of the Repository to connect to.userName - - the username to connect with.password - - the password to connect with.
RepositoryOps getRepositoryOps()
ContentManagerFactory.getVirtualRepositoryManager()
NodeOps getNodeOps()
ContentManagerFactory.getNodeManager()
ObjectClassOps getObjectClassOps()
ContentManagerFactory.getTypeManager()
WorkspaceOps getWorkspaceOps()
ContentManagerFactory.getNodeManager()
SearchOps getSearchOps()
ContentManagerFactory.getSearchManager()
void addSession(String repositoryName,
RepositorySession session)
ContentManagerFactory
repositoryName - - the name of the Repository to which the
RepositorySession is for.session - - the RepositorySession for the the Repository.void removeSession(String repositoryName)
ContentManagerFactory
repositoryName - - the name of the repository to remove the RepositorySession for.RepositorySession[] getSessions()
ContentManagerFactory
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||