public class ConfluenceCachingCaptchaStore extends Object implements com.octo.captcha.service.captchastore.CaptchaStore
Constructor and Description |
---|
ConfluenceCachingCaptchaStore(com.atlassian.vcache.VCacheFactory cacheFactory) |
Modifier and Type | Method and Description |
---|---|
void |
empty() |
com.octo.captcha.Captcha |
getCaptcha(String id) |
Collection |
getKeys() |
Locale |
getLocale(String id) |
int |
getSize() |
boolean |
hasCaptcha(String id) |
boolean |
removeCaptcha(String id) |
void |
storeCaptcha(String id,
com.octo.captcha.Captcha captcha) |
void |
storeCaptcha(String id,
com.octo.captcha.Captcha captcha,
Locale locale) |
public ConfluenceCachingCaptchaStore(com.atlassian.vcache.VCacheFactory 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
Copyright © 2003–2017 Atlassian. All rights reserved.