org.apache.chemistry.opencmis.fileshare
Class RepositoryMap

java.lang.Object
  extended by org.apache.chemistry.opencmis.fileshare.RepositoryMap

public class RepositoryMap
extends Object

Repository map.

Author:
Florian Müller

Constructor Summary
RepositoryMap()
           
 
Method Summary
 void addLogin(String username, String password)
          Adds a login.
 void addRepository(FileShareRepository fsr)
          Adds a repository object.
 void authenticate(CallContext context)
          Takes user and password from the CallContext and checks them.
 Collection<FileShareRepository> getRepositories()
          Returns all repository objects.
 FileShareRepository getRepository(String repositoryId)
          Gets a repository object by id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryMap

public RepositoryMap()
Method Detail

addRepository

public void addRepository(FileShareRepository fsr)
Adds a repository object.


getRepository

public FileShareRepository getRepository(String repositoryId)
Gets a repository object by id.


authenticate

public void authenticate(CallContext context)
Takes user and password from the CallContext and checks them.


getRepositories

public Collection<FileShareRepository> getRepositories()
Returns all repository objects.


addLogin

public void addLogin(String username,
                     String password)
Adds a login.



Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.