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
| 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 |
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,
PollUrl pollVoteUrl)
onAddComment
public void onAddComment(Comment comment,
PollUrl pollVoteUrl)
onAddVote
public void onAddVote(Vote vote,
boolean anonymousVote,
String pollResult,
PollUrl pollVoteUrl)
onAddChoice
public void onAddChoice(Choice choice,
PollUrl pollVoteUrl)
deleteFeed
public void deleteFeed(Poll poll)
- Delete the poll feed file.
- Parameters:
poll - poll
addFeedEntry
protected void addFeedEntry(Poll poll,
String title,
String content,
PollUrl pollVoteUrl)
- Ajout d'une entrée dans un flux.
- Parameters:
poll - polltitle - titre de l'entréecontent - contenu de l'entréepollVoteUrl - poll vote url
Copyright © 2009-2012 CodeLutin. All Rights Reserved.