Package org.xwiki.captcha.script
Class CaptchaScriptService
- java.lang.Object
-
- org.xwiki.captcha.script.CaptchaScriptService
-
- All Implemented Interfaces:
org.xwiki.script.service.ScriptService
@Component @Named("captcha") @Singleton public class CaptchaScriptService extends Object implements org.xwiki.script.service.ScriptService
ExposesCaptcha
s to scripts.- Since:
- 10.8RC1
- Version:
- $Id: c42c4a623b8619e67626a56988a2c5f1cf38200a $
-
-
Constructor Summary
Constructors Constructor Description CaptchaScriptService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Captcha
get(String captchaName)
List<String>
getCaptchaNames()
Captcha
getDefault()
String
getDefaultCaptchaName()
-
-
-
Method Detail
-
getCaptchaNames
public List<String> getCaptchaNames()
- Returns:
- the list of available CAPTCHA implementation names
-
get
public Captcha get(String captchaName)
- Parameters:
captchaName
- the name of the CAPTCHA implementation to get- Returns:
- the CAPTCHA implementation
-
getDefaultCaptchaName
public String getDefaultCaptchaName()
- Returns:
- the name of the configured CAPTCHA implementation to use by default
-
getDefault
public Captcha getDefault()
- Returns:
- the configured CAPTCHA implementation to use by default
-
-