org.openrdf.sesame.server.rmi
Class ServicesInterfaceImpl

java.lang.Object
  extended byorg.openrdf.sesame.server.rmi.ServicesInterfaceImpl
All Implemented Interfaces:
SesameService

public class ServicesInterfaceImpl
extends Object
implements SesameService


Constructor Summary
ServicesInterfaceImpl(String theID)
           
 
Method Summary
static void getContext(Object cookie)
           
 SesameRepository getRepository(String repositoryID)
          Gets a SesameRepository object for the specified repository ID.
 RepositoryList getRepositoryList()
          Gets a list of all repositories that are accessible by the currently logged in user.
 void login(String username, String password)
          Log in to a Sesame server.
 void logout()
          Log out from a Sesame server.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServicesInterfaceImpl

public ServicesInterfaceImpl(String theID)
Method Detail

getContext

public static void getContext(Object cookie)

getRepositoryList

public RepositoryList getRepositoryList()
                                 throws IOException
Gets a list of all repositories that are accessible by the currently logged in user. If no user is logged in, all repositories that are world-accessible are retrieved.

Specified by:
getRepositoryList in interface SesameService
Returns:
A RepositoryListImpl
Throws:
IOException - If an I/O error occurred while fetching information about the available repositories.

getRepository

public SesameRepository getRepository(String repositoryID)
                               throws UnknownRepositoryException,
                                      ConfigurationException,
                                      IOException
Gets a SesameRepository object for the specified repository ID.

Specified by:
getRepository in interface SesameService
Parameters:
repositoryID - A repository ID.
Throws:
AccessDeniedException - If access to the repository is denied.
UnknownRepositoryException - If the specified repository ID is unknown.
ConfigurationException - If the requested repository was not configured properly.
IOException

login

public void login(String username,
                  String password)
           throws AccessDeniedException,
                  IOException
Log in to a Sesame server.

Specified by:
login in interface SesameService
Throws:
AccessDeniedException - If the attempt to log in failed.
IOException - If an I/O error occurred.
IllegalArgumentException - If the supplied username is not a legal username.

logout

public void logout()
            throws IOException
Log out from a Sesame server.

Specified by:
logout in interface SesameService
Throws:
IOException - If an I/O error occurred.


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.