|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 Summary | |
void |
addSession(String repositoryName,
RepositorySession session)
Adds a RepositorySession. |
RepositorySession[] |
connect()
Attempts to connect to all availble Repositories with the current user's Credenntials. |
RepositorySession |
connect(String repositoryName)
Attempts to connect to a specific repository using the current user's credentials and returns the RepositorySession based on the attempt. |
RepositorySession |
connect(String repositoryName,
String userName,
String password)
Attempts to connect to a specific repository and returns the RepositorySession based on the attempt. |
NodeOps |
getNodeOps()
Gets a NodeOps service. |
ObjectClassOps |
getObjectClassOps()
Gets a ObjectClassOps service. |
RepositoryOps |
getRepositoryOps()
Gets a RepositoryOps service. |
SearchOps |
getSearchOps()
Gets a SearchOps service. |
RepositorySession[] |
getSessions()
Gets the RepositorySessions. |
WorkspaceOps |
getWorkspaceOps()
Gets a WorkspaceOps service object |
void |
removeSession(String repositoryName)
Removes a RepositorySession |
Method Detail |
public void addSession(String repositoryName, RepositorySession session)
repositoryName
- - the name of the Repository to which the
RepositorySession is for.session
- - the RepositorySession for the the Repository.public RepositorySession[] connect() throws NoRepositoriesDefinedException, RepositoryException
NoRepositoriesDefinedException
- - if there isn't any Repository
defined to connect to.
RepositoryException
- if an error occurs.public RepositorySession connect(String repositoryName)
repositoryName
- the name of the Repository to connect to.public RepositorySession connect(String repositoryName, String userName, String password)
repositoryName
- - the name of the Repository to connect to.userName
- - the username to connect with.password
- - the password to connect with.
public NodeOps getNodeOps()
public ObjectClassOps getObjectClassOps()
public RepositoryOps getRepositoryOps()
public SearchOps getSearchOps()
public RepositorySession[] getSessions()
public WorkspaceOps getWorkspaceOps()
public void removeSession(String repositoryName)
repositoryName
- - the name of the repository to remove the RepositorySession for.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |