|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RepositoryManager
A RepositoryManager is the place to get Repository instances from.
A RepositoryManager represents one 'physical' repository (one database). All Repository instances retrieved from one RepositoryManager thus represent the same repository, the difference between the instances is they are authenticated for different users.
To communicate remotely with the repository (in other words, to use the remote repository API implementation), simply instantiate a "RemoteRepositoryManager", as follows:
import org.outerj.daisy.repository.clientimpl.RemoteRepositoryManager;
...
RepositoryManager repositoryManager = new RemoteRepositoryManager(
"http://localhost:9263", new Credentials("guest", "guest"));
More extensive getting-started documentation on this is included in the Daisy documentation.
| Method Summary | |
|---|---|
Repository |
getRepository(Credentials credentials)
|
String |
getRepositoryServerVersion()
|
| Method Detail |
|---|
Repository getRepository(Credentials credentials)
throws RepositoryException
AuthenticationFailedException - if login failed because of incorrect credentials
RepositoryExceptionString getRepositoryServerVersion()
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||