Daisy Open Source CMS

org.outerj.daisy.repository
Interface RepositoryManager


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

getRepository

Repository getRepository(Credentials credentials)
                         throws RepositoryException
Throws:
AuthenticationFailedException - if login failed because of incorrect credentials
RepositoryException

getRepositoryServerVersion

String getRepositoryServerVersion()

Daisy Open Source CMS