org.chorem.pollen.services.impl
Class PollFeedService
java.lang.Object
org.chorem.pollen.services.PollenServiceSupport
org.chorem.pollen.services.impl.PollFeedService
- All Implemented Interfaces:
- PollenService
public class PollFeedService
- extends PollenServiceSupport
Service to manage feed of a poll.
- Since:
- 1.3
- Author:
- tchemit
|
Method Summary |
protected void |
addFeedEntry(Poll poll,
String title,
String content)
Ajout d'une entrée dans un flux. |
void |
deleteFeed(Poll poll)
Delete the poll feed file. |
File |
getFeedLocation(Poll poll)
Obtain the feed file of the given poll. |
boolean |
isFeedExists(Poll poll)
|
void |
onChoiceAdded(Poll poll,
Choice choice)
|
void |
onCommentAdded(Poll poll,
Comment comment)
|
void |
onCommentDeleted(Poll poll,
Comment comment,
String reason)
|
void |
onPollCreated(Poll poll)
|
void |
onVoteAdded(Poll poll,
Vote vote)
|
void |
onVoteDeleted(Poll poll,
Vote vote,
PollAccount voteAccount,
String reason)
|
void |
onVoteUpdated(Poll poll,
Vote vote)
|
| Methods inherited from class org.chorem.pollen.services.PollenServiceSupport |
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, generateId, getConfiguration, getDAO, getDatePattern, getDateTimePattern, 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 |
PollFeedService
public PollFeedService()
isFeedExists
public boolean isFeedExists(Poll poll)
getFeedLocation
public File getFeedLocation(Poll poll)
- Obtain the feed file of the given poll.
- Parameters:
poll - poll
- Returns:
- the location of the feed of the given poll
onPollCreated
public void onPollCreated(Poll poll)
onCommentAdded
public void onCommentAdded(Poll poll,
Comment comment)
onCommentDeleted
public void onCommentDeleted(Poll poll,
Comment comment,
String reason)
onVoteAdded
public void onVoteAdded(Poll poll,
Vote vote)
onVoteUpdated
public void onVoteUpdated(Poll poll,
Vote vote)
onVoteDeleted
public void onVoteDeleted(Poll poll,
Vote vote,
PollAccount voteAccount,
String reason)
onChoiceAdded
public void onChoiceAdded(Poll poll,
Choice choice)
deleteFeed
public void deleteFeed(Poll poll)
- Delete the poll feed file.
- Parameters:
poll - poll
addFeedEntry
protected void addFeedEntry(Poll poll,
String title,
String content)
- Ajout d'une entrée dans un flux.
- Parameters:
poll - polltitle - titre de l'entréecontent - contenu de l'entrée
Copyright © 2009-2012 CodeLutin. All Rights Reserved.