com.atlassian.confluence.cache.jcaptcha
Class ConfluenceCachingCaptchaStore

java.lang.Object
  extended bycom.atlassian.confluence.cache.jcaptcha.ConfluenceCachingCaptchaStore
All Implemented Interfaces:
com.octo.captcha.service.captchastore.CaptchaStore

public class ConfluenceCachingCaptchaStore
extends Object
implements com.octo.captcha.service.captchastore.CaptchaStore

Created by IntelliJ IDEA. User: cowen Date: 21/06/2006 Time: 17:35:13 To change this template use File | Settings | File Templates.


Field Summary
protected  CacheManager cacheManager
           
 
Constructor Summary
ConfluenceCachingCaptchaStore()
           
 
Method Summary
 void empty()
           
protected  Cache getCache()
           
 com.octo.captcha.Captcha getCaptcha(String string)
           
 Collection getKeys()
           
 int getSize()
           
 boolean hasCaptcha(String string)
           
 boolean removeCaptcha(String string)
           
 void setCacheManager(CacheManager cacheManager)
           
 void storeCaptcha(String string, com.octo.captcha.Captcha captcha)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheManager

protected CacheManager cacheManager
Constructor Detail

ConfluenceCachingCaptchaStore

public ConfluenceCachingCaptchaStore()
Method Detail

setCacheManager

public void setCacheManager(CacheManager cacheManager)

hasCaptcha

public boolean hasCaptcha(String string)
Specified by:
hasCaptcha in interface com.octo.captcha.service.captchastore.CaptchaStore

storeCaptcha

public void storeCaptcha(String string,
                         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

getCaptcha

public com.octo.captcha.Captcha getCaptcha(String string)
                                    throws com.octo.captcha.service.CaptchaServiceException
Specified by:
getCaptcha in interface com.octo.captcha.service.captchastore.CaptchaStore
Throws:
com.octo.captcha.service.CaptchaServiceException

removeCaptcha

public boolean removeCaptcha(String string)
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 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 Cache getCache()


Confluence is developed by Atlassian.