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.InitializingBean
Exception
public void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
public boolean hasCaptcha(String id)
hasCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
public void storeCaptcha(String id, com.octo.captcha.Captcha captcha) throws com.octo.captcha.service.CaptchaServiceException
storeCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
com.octo.captcha.service.CaptchaServiceException
public 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.CaptchaStore
com.octo.captcha.service.CaptchaServiceException
public com.octo.captcha.Captcha getCaptcha(String id) throws com.octo.captcha.service.CaptchaServiceException
getCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
com.octo.captcha.service.CaptchaServiceException
public Locale getLocale(String id) throws com.octo.captcha.service.CaptchaServiceException
getLocale
in interface com.octo.captcha.service.captchastore.CaptchaStore
com.octo.captcha.service.CaptchaServiceException
public boolean removeCaptcha(String id)
removeCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
public int getSize()
getSize
in interface com.octo.captcha.service.captchastore.CaptchaStore
public Collection getKeys()
getKeys
in interface com.octo.captcha.service.captchastore.CaptchaStore
public void empty()
empty
in interface com.octo.captcha.service.captchastore.CaptchaStore
protected com.atlassian.cache.Cache<String,com.octo.captcha.service.captchastore.CaptchaAndLocale> getCache()
Copyright © 2003–2016 Atlassian. All rights reserved.