com.atlassian.confluence.user.crowd
Interface ApplicationCache

All Known Implementing Classes:
DefaultApplicationCache

public interface ApplicationCache

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

Since:
3.5

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

Method Detail

getApplication

com.atlassian.crowd.model.application.Application getApplication(String name)
Returns the cached application with the given name, or null if the application isn't cached.


putApplication

void putApplication(com.atlassian.crowd.model.application.Application application)
Caches the application against its name, as returned by Application.getName().


removeApplication

void removeApplication(String name)
Removes the application with the given name from the cache. Does nothing if the name is not in the cache.


removeAll

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.



Copyright © 2003-2013 Atlassian. All Rights Reserved.