public class PollFeedService extends PollenServiceSupport
serviceContext
Constructor and Description |
---|
PollFeedService() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFeedEntry(Poll poll,
String title,
String content)
Ajout d'une entrée dans un flux.
|
protected com.sun.syndication.feed.synd.SyndFeed |
createFeed(File file,
Poll poll) |
void |
deleteFeed(Poll poll)
Delete the poll feed file.
|
protected com.sun.syndication.feed.synd.SyndFeed |
getFeed(File file,
Poll poll) |
String |
getFeed(Poll poll)
Obtain the feed file of the given poll.
|
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) |
commitTransaction, create, createWithProperties, decorateDate, decorateDateTime, delete, flushTransaction, getConfiguration, getDAO, getDatePattern, getDateTimePattern, getEntities, getEntities, getEntityById, getLocale, getTransaction, newInstance, newService, setServiceContext, update
public boolean isFeedExists(Poll poll)
public File getFeedLocation(Poll poll)
poll
- pollpublic String getFeed(Poll poll)
poll
- pollpublic void onPollCreated(Poll poll)
public void onVoteDeleted(Poll poll, Vote vote, PollAccount voteAccount, String reason)
public void deleteFeed(Poll poll)
poll
- pollprotected void addFeedEntry(Poll poll, String title, String content)
poll
- polltitle
- titre de l'entréecontent
- contenu de l'entréeprotected com.sun.syndication.feed.synd.SyndFeed getFeed(File file, Poll poll) throws IOException, com.sun.syndication.io.FeedException
IOException
com.sun.syndication.io.FeedException
protected com.sun.syndication.feed.synd.SyndFeed createFeed(File file, Poll poll) throws IOException, com.sun.syndication.io.FeedException
IOException
com.sun.syndication.io.FeedException
Copyright © 2009–2014 CodeLutin. All rights reserved.