public interface

ApplicationCache

com.atlassian.confluence.user.crowd.ApplicationCache
Known Indirect Subclasses

Class Overview

Caches Embedded Crowd Application objects by name to avoid frequent retrieval from the database.

Summary

Public Methods
Application getApplication(String name)
Returns the cached application with the given name, or null if the application isn't cached.
void putApplication(Application application)
Caches the application against its name, as returned by getName().
void removeAll()
Removes all entries from the cache.
void removeApplication(String name)
Removes the application with the given name from the cache.

Public Methods

public Application getApplication (String name)

Returns the cached application with the given name, or null if the application isn't cached.

public void putApplication (Application application)

Caches the application against its name, as returned by getName().

public void removeAll ()

Removes all entries from the cache. Can be used when the cache is stale, but it's not possible to determine which applications should be removed.

public void removeApplication (String name)

Removes the application with the given name from the cache. Does nothing if the name is not in the cache.