com.atlassian.confluence.cache.jcaptcha
Class ConfluenceCachingCaptchaStore
java.lang.Object
com.atlassian.confluence.cache.jcaptcha.ConfluenceCachingCaptchaStore
- All Implemented Interfaces:
- com.octo.captcha.service.captchastore.CaptchaStore
public class ConfluenceCachingCaptchaStore
- extends java.lang.Object
- implements com.octo.captcha.service.captchastore.CaptchaStore
An implementation of CaptchaStore that stores captchas in Confluence's cache.
Field Summary |
protected com.atlassian.cache.CacheFactory |
cacheFactory
|
Method Summary |
void |
empty()
|
protected com.atlassian.cache.Cache |
getCache()
|
com.octo.captcha.Captcha |
getCaptcha(java.lang.String id)
|
java.util.Collection |
getKeys()
|
java.util.Locale |
getLocale(java.lang.String id)
|
int |
getSize()
|
boolean |
hasCaptcha(java.lang.String id)
|
boolean |
removeCaptcha(java.lang.String id)
|
void |
setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
|
void |
storeCaptcha(java.lang.String id,
com.octo.captcha.Captcha captcha)
|
void |
storeCaptcha(java.lang.String id,
com.octo.captcha.Captcha captcha,
java.util.Locale locale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cacheFactory
protected com.atlassian.cache.CacheFactory cacheFactory
ConfluenceCachingCaptchaStore
public ConfluenceCachingCaptchaStore()
setCacheFactory
public void setCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
hasCaptcha
public boolean hasCaptcha(java.lang.String id)
- Specified by:
hasCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
storeCaptcha
public void storeCaptcha(java.lang.String id,
com.octo.captcha.Captcha captcha)
throws com.octo.captcha.service.CaptchaServiceException
- Specified by:
storeCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
- Throws:
com.octo.captcha.service.CaptchaServiceException
storeCaptcha
public void storeCaptcha(java.lang.String id,
com.octo.captcha.Captcha captcha,
java.util.Locale locale)
throws com.octo.captcha.service.CaptchaServiceException
- Specified by:
storeCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
- Throws:
com.octo.captcha.service.CaptchaServiceException
getCaptcha
public com.octo.captcha.Captcha getCaptcha(java.lang.String id)
throws com.octo.captcha.service.CaptchaServiceException
- Specified by:
getCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
- Throws:
com.octo.captcha.service.CaptchaServiceException
getLocale
public java.util.Locale getLocale(java.lang.String id)
throws com.octo.captcha.service.CaptchaServiceException
- Specified by:
getLocale
in interface com.octo.captcha.service.captchastore.CaptchaStore
- Throws:
com.octo.captcha.service.CaptchaServiceException
removeCaptcha
public boolean removeCaptcha(java.lang.String id)
- Specified by:
removeCaptcha
in interface com.octo.captcha.service.captchastore.CaptchaStore
getSize
public int getSize()
- Specified by:
getSize
in interface com.octo.captcha.service.captchastore.CaptchaStore
getKeys
public java.util.Collection getKeys()
- Specified by:
getKeys
in interface com.octo.captcha.service.captchastore.CaptchaStore
empty
public void empty()
- Specified by:
empty
in interface com.octo.captcha.service.captchastore.CaptchaStore
getCache
protected com.atlassian.cache.Cache getCache()
Copyright © 2003-2013 Atlassian. All Rights Reserved.