Class CleanJCaptchaRunnable
java.lang.Object
org.ametys.plugins.core.impl.schedule.StaticRunnable
org.ametys.plugins.core.impl.schedule.ConfigBasedRunnable
org.ametys.plugins.core.impl.schedule.ConfigBasedEveryNMinutesRunnable
org.ametys.plugins.core.impl.captcha.jcaptcha.CleanJCaptchaRunnable
- All Implemented Interfaces:
Runnable
,PluginAware
,Component
,Configurable
,Serviceable
Runnable to clean JCaptcha saved into the
CaptchaHelper
every N minutes. It is only activated when JCaptcha is selected in the configuration.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.schedule.Runnable
Runnable.FireProcess, Runnable.MisfirePolicy
-
Field Summary
Fields inherited from class org.ametys.plugins.core.impl.schedule.StaticRunnable
_cronExpression, _deactivatable, _description, _featureName, _fireProcess, _id, _label, _misfirePolicy, _modifiable, _parameterValues, _pluginName, _removable, _schedulableEP, _schedulableId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isEnabled
(Configuration configuration) Check if the Runnable should be enabledvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.plugins.core.impl.schedule.ConfigBasedEveryNMinutesRunnable
configureFireProcess
Methods inherited from class org.ametys.plugins.core.impl.schedule.ConfigBasedRunnable
configure
Methods inherited from class org.ametys.plugins.core.impl.schedule.StaticRunnable
_configureParameterValues, getCronExpression, getDescription, getFireProcess, getId, getLabel, getMisfirePolicy, getParameterValues, getSchedulableId, getUserIdentity, isDeactivatable, isModifiable, isRemovable, isVolatile, setPluginInfo
-
Constructor Details
-
CleanJCaptchaRunnable
public CleanJCaptchaRunnable()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticRunnable
- Throws:
ServiceException
-
isEnabled
Description copied from class:ConfigBasedRunnable
Check if the Runnable should be enabled- Overrides:
isEnabled
in classConfigBasedRunnable
- Parameters:
configuration
- the configuration- Returns:
- true if the Runnable is enabled
-