public class ConfluenceCachingCaptchaStore extends Object implements com.octo.captcha.service.captchastore.CaptchaStore, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
protected com.atlassian.cache.CacheFactory |
cacheFactory |
| Constructor and Description |
|---|
ConfluenceCachingCaptchaStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
empty() |
protected com.atlassian.cache.Cache<String,com.octo.captcha.service.captchastore.CaptchaAndLocale> |
getCache() |
com.octo.captcha.Captcha |
getCaptcha(String id) |
Collection |
getKeys() |
Locale |
getLocale(String id) |
int |
getSize() |
boolean |
hasCaptcha(String id) |
boolean |
removeCaptcha(String id) |
void |
setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory) |
void |
storeCaptcha(String id,
com.octo.captcha.Captcha captcha) |
void |
storeCaptcha(String id,
com.octo.captcha.Captcha captcha,
Locale locale) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
public boolean hasCaptcha(String id)
hasCaptcha in interface com.octo.captcha.service.captchastore.CaptchaStorepublic void storeCaptcha(String id, com.octo.captcha.Captcha captcha) throws com.octo.captcha.service.CaptchaServiceException
storeCaptcha in interface com.octo.captcha.service.captchastore.CaptchaStorecom.octo.captcha.service.CaptchaServiceExceptionpublic void storeCaptcha(String id, com.octo.captcha.Captcha captcha, Locale locale) throws com.octo.captcha.service.CaptchaServiceException
storeCaptcha in interface com.octo.captcha.service.captchastore.CaptchaStorecom.octo.captcha.service.CaptchaServiceExceptionpublic com.octo.captcha.Captcha getCaptcha(String id) throws com.octo.captcha.service.CaptchaServiceException
getCaptcha in interface com.octo.captcha.service.captchastore.CaptchaStorecom.octo.captcha.service.CaptchaServiceExceptionpublic Locale getLocale(String id) throws com.octo.captcha.service.CaptchaServiceException
getLocale in interface com.octo.captcha.service.captchastore.CaptchaStorecom.octo.captcha.service.CaptchaServiceExceptionpublic boolean removeCaptcha(String id)
removeCaptcha in interface com.octo.captcha.service.captchastore.CaptchaStorepublic int getSize()
getSize in interface com.octo.captcha.service.captchastore.CaptchaStorepublic Collection getKeys()
getKeys in interface com.octo.captcha.service.captchastore.CaptchaStorepublic void empty()
empty in interface com.octo.captcha.service.captchastore.CaptchaStoreprotected com.atlassian.cache.Cache<String,com.octo.captcha.service.captchastore.CaptchaAndLocale> getCache()
Copyright © 2003–2016 Atlassian. All rights reserved.