org.chorem.pollen.services.impl
Class PreventRuleService
java.lang.Object
org.chorem.pollen.services.PollenServiceSupport
org.chorem.pollen.services.impl.PreventRuleService
- All Implemented Interfaces:
- PollenService
public class PreventRuleService
- extends PollenServiceSupport
Manage prevent rules of a poll.
- Since:
- 1.3
- Author:
- tchemit
|
Method Summary |
PreventRule |
createAddVotePreventRule()
|
PreventRule |
createRemindPreventRule(int sensibility)
|
protected boolean |
execute(String scope,
PreventRule preventRule,
Integer value)
|
void |
onPollToRemind(Poll poll,
PollUrl pollVoteUrl)
|
protected void |
onPollToRemind(Poll poll,
PreventRule preventRule,
PollUrl pollVoteUrl,
int timeValue)
|
void |
onVoteAdded(Poll poll,
PollUrl pollVoteUrl,
PollUrl modifURL)
|
protected void |
onVoteAdded(Poll poll,
PreventRule preventRule,
PollUrl pollVoteUrl,
PollUrl modifURL)
|
| Methods inherited from class org.chorem.pollen.services.PollenServiceSupport |
commitTransaction, create, delete, flushTransaction, getConfiguration, getDAO, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SCOPE_VOTE
public static final String SCOPE_VOTE
- See Also:
- Constant Field Values
SCOPE_REMINDER
public static final String SCOPE_REMINDER
- See Also:
- Constant Field Values
PreventRuleService
public PreventRuleService()
createAddVotePreventRule
public PreventRule createAddVotePreventRule()
createRemindPreventRule
public PreventRule createRemindPreventRule(int sensibility)
onVoteAdded
public void onVoteAdded(Poll poll,
PollUrl pollVoteUrl,
PollUrl modifURL)
onPollToRemind
public void onPollToRemind(Poll poll,
PollUrl pollVoteUrl)
onVoteAdded
protected void onVoteAdded(Poll poll,
PreventRule preventRule,
PollUrl pollVoteUrl,
PollUrl modifURL)
onPollToRemind
protected void onPollToRemind(Poll poll,
PreventRule preventRule,
PollUrl pollVoteUrl,
int timeValue)
execute
protected boolean execute(String scope,
PreventRule preventRule,
Integer value)
Copyright © 2009-2012 CodeLutin. All Rights Reserved.