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 |
|---|---|
PreventRule |
createAddVotePreventRule() |
PreventRule |
createRemindPreventRule(int sensibility) |
protected boolean |
execute(String scope,
PreventRule preventRule,
Integer value) |
void |
onPollToRemind(Poll poll) |
protected void |
onPollToRemind(Poll poll,
PreventRule preventRule,
int timeValue) |
void |
onVoteAdded(Poll poll) |
protected void |
onVoteAdded(Poll poll,
PreventRule preventRule) |
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, generateId, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, updatepublic static final String SCOPE_VOTE
public static final String SCOPE_REMINDER
public PreventRule createAddVotePreventRule()
public PreventRule createRemindPreventRule(int sensibility)
public void onVoteAdded(Poll poll)
public void onPollToRemind(Poll poll)
protected void onVoteAdded(Poll poll, PreventRule preventRule)
protected void onPollToRemind(Poll poll, PreventRule preventRule, int timeValue)
protected boolean execute(String scope, PreventRule preventRule, Integer value)
Copyright © 2009-2012 CodeLutin. All Rights Reserved.