public class PreventRuleService extends PollenServiceSupport
Modifier and Type | Field and Description |
---|---|
static String |
SCOPE_REMINDER |
static String |
SCOPE_VOTE |
serviceContext
Constructor and Description |
---|
PreventRuleService() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canExecuteRule(String scope,
PreventRule preventRule,
Integer value) |
PreventRule |
createAddVotePreventRule() |
PreventRule |
createRemindPreventRule(int sensibility) |
void |
onPollToRemind(Poll poll,
Date now) |
void |
onVoteAdded(Poll poll) |
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update
public static final String SCOPE_VOTE
public static final String SCOPE_REMINDER
public PreventRule createAddVotePreventRule()
public PreventRule createRemindPreventRule(int sensibility)
public void onVoteAdded(Poll poll)
protected boolean canExecuteRule(String scope, PreventRule preventRule, Integer value)
Copyright © 2009–2014 CodeLutin. All rights reserved.