org.chorem.pollen.services.impl
Class PollFeedService

java.lang.Object
  extended by org.chorem.pollen.services.PollenServiceSupport
      extended by 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

Field Summary
 
Fields inherited from class org.chorem.pollen.services.PollenServiceSupport
serviceContext
 
Constructor Summary
PollFeedService()
           
 
Method Summary
protected  void addFeedEntry(Poll poll, String title, String content, PollUrl pollVoteUrl)
          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 onAddChoice(Choice choice, PollUrl pollVoteUrl)
           
 void onAddComment(Comment comment, PollUrl pollVoteUrl)
           
 void onAddVote(Vote vote, boolean anonymousVote, String pollResult, PollUrl pollVoteUrl)
           
 void onPollCreated(Poll poll, PollUrl pollVoteUrl)
           
 
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
 

Constructor Detail

PollFeedService

public PollFeedService()
Method Detail

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 - poll
title - titre de l'entrée
content - contenu de l'entrée
pollVoteUrl - poll vote url


Copyright © 2009-2012 CodeLutin. All Rights Reserved.