|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.user.crowd.DefaultApplicationCache
public final class DefaultApplicationCache
Implementation of ApplicationCache that delegates to CacheFactory
for caching. The key for each entry is a lower-case version of the name and the value is an
immutable copy of the Application.
| Constructor Summary | |
|---|---|
DefaultApplicationCache(com.atlassian.cache.CacheFactory cacheFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
|
|
| Method Summary | |
|---|---|
void |
directoryUpdated(com.atlassian.crowd.event.directory.DirectoryUpdatedEvent directoryUpdatedEvent)
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultApplicationCache(com.atlassian.cache.CacheFactory cacheFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
| Method Detail |
|---|
@EventListener public void directoryUpdated(com.atlassian.crowd.event.directory.DirectoryUpdatedEvent directoryUpdatedEvent)
public com.atlassian.crowd.model.application.Application getApplication(String name)
ApplicationCache
getApplication in interface ApplicationCachepublic void putApplication(com.atlassian.crowd.model.application.Application application)
ApplicationCacheApplication.getName().
putApplication in interface ApplicationCachepublic void removeApplication(String name)
ApplicationCache
removeApplication in interface ApplicationCachepublic void removeAll()
ApplicationCache
removeAll in interface ApplicationCache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||