org.apache.chemistry.opencmis.client.bindings.impl
Class RepositoryInfoCache

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.bindings.impl.RepositoryInfoCache
All Implemented Interfaces:
Serializable

public class RepositoryInfoCache
extends Object
implements Serializable

A cache for repository info objects.

See Also:
Serialized Form

Constructor Summary
RepositoryInfoCache(BindingSession session)
          Constructor.
 
Method Summary
 RepositoryInfo get(String repositoryId)
          Retrieves a repository info object from the cache.
 void put(RepositoryInfo repositoryInfo)
          Adds a repository info object to the cache.
 void remove(String repositoryId)
          Removes a repository info object from the cache.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepositoryInfoCache

public RepositoryInfoCache(BindingSession session)
Constructor.

Parameters:
session - the session object
Method Detail

put

public void put(RepositoryInfo repositoryInfo)
Adds a repository info object to the cache.

Parameters:
repositoryInfo - the repository info object

get

public RepositoryInfo get(String repositoryId)
Retrieves a repository info object from the cache.

Parameters:
repositoryId - the repository id
Returns:
the repository info object or null if the object is not in the cache

remove

public void remove(String repositoryId)
Removes a repository info object from the cache.

Parameters:
repositoryId - the repository id

toString

public String toString()
Overrides:
toString in class Object


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