|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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(java.lang.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(java.lang.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(java.lang.String name)
ApplicationCache
getApplication
in interface ApplicationCache
public void putApplication(com.atlassian.crowd.model.application.Application application)
ApplicationCache
Application.getName()
.
putApplication
in interface ApplicationCache
public void removeApplication(java.lang.String name)
ApplicationCache
removeApplication
in interface ApplicationCache
public void removeAll()
ApplicationCache
removeAll
in interface ApplicationCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |