com.hack23.cia.web.viewfactory.api.user
Class VotesModelAndView

Package class diagram package VotesModelAndView
java.lang.Object
  extended by com.hack23.cia.web.viewfactory.api.common.AbstractModelAndView
      extended by com.hack23.cia.web.viewfactory.api.user.AbstractUserModelAndView
          extended by com.hack23.cia.web.viewfactory.api.user.AbstractParliamentModelAndView
              extended by com.hack23.cia.web.viewfactory.api.user.VotesModelAndView
All Implemented Interfaces:
ModelAndView, Serializable

public class VotesModelAndView
extends AbstractParliamentModelAndView

The Class VotesModelAndView.

See Also:
Serialized Form

Nested Class Summary
static class VotesModelAndView.VotesViewSpecification
          The Enum VotesViewSpecification.
 
Constructor Summary
VotesModelAndView(UserSessionDTO userSessionDTO, ControllerAction controllerAction, VotesModelAndView.VotesViewSpecification votesViewSpecification, List<Vote> votes)
          Instantiates a new votes model and view.
 
Method Summary
 String getViewSpecificationDescription()
          Gets the view specification description.
 List<Vote> getVotes()
          Gets the votes.
 VotesModelAndView.VotesViewSpecification getVotesViewSpecification()
          Gets the votes view specification.
 
Methods inherited from class com.hack23.cia.web.viewfactory.api.common.AbstractModelAndView
getControllerAction, getUserSessionDTO
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VotesModelAndView

public VotesModelAndView(UserSessionDTO userSessionDTO,
                         ControllerAction controllerAction,
                         VotesModelAndView.VotesViewSpecification votesViewSpecification,
                         List<Vote> votes)
Instantiates a new votes model and view.

Parameters:
userSessionDTO - the user session dto
controllerAction - the controller action
votesViewSpecification - the votes view specification
votes - the votes
Method Detail

getViewSpecificationDescription

public final String getViewSpecificationDescription()
Description copied from interface: ModelAndView
Gets the view specification description.

Specified by:
getViewSpecificationDescription in interface ModelAndView
Specified by:
getViewSpecificationDescription in class AbstractModelAndView
Returns:
the view specification description

getVotes

public final List<Vote> getVotes()
Gets the votes.

Returns:
the votes

getVotesViewSpecification

public final VotesModelAndView.VotesViewSpecification getVotesViewSpecification()
Gets the votes view specification.

Returns:
the votes view specification


Copyright © 2008-2009 www.hack23.com. All Rights Reserved.