Keel 2.1RC2

org.keel.apps.poll.models
Class ListPolls

java.lang.Object
  extended byorg.keel.services.model.StandardModel
      extended byorg.keel.services.model.StandardLogEnabledModel
          extended byorg.keel.services.model.SecurableStandardLogEnabledModel
              extended byorg.keel.apps.poll.models.ListPolls
All Implemented Interfaces:
Configurable, LogEnabled, Model, Securable, ThreadSafe

public class ListPolls
extends SecurableStandardLogEnabledModel
implements ThreadSafe

This model lists all the polls, for the selected category, that are browsable by the logged-in user. Polls are listed in alphabetical order for the Category selected which is displayed in the upper left corner of the page. Security settings for the given User are determined automatically and as such, only those icons for which the User has permission will be shown on the page. The Vote icon will only display on Polls which are still open for voting and for which the user has permission to vote in. The Results and Participants icons will only display when "Viewing Results Allowed Before Poll Closes" field has been set to "Allowed" in the Poll information screen and when the User has permission to View Results. Each Poll is assigned a unique ID number at the time it is created. Like Categories, when a Poll is first created, full security permissions are assigned to the security group "root". Security for other groups can be edited from this page using the Securities icon link. The total number of Questions for each poll is noted to the right of the Poll ID. Questions can be created and edited using the Questions icon link to the right of the poll. Results and Participants are links which let the User view the Results of the poll in summary, or view the individual Participants (and their individual results) of that poll. In the center of the top header is a link to Add A New Poll, and on each Poll line item is a link to Update the poll information. For more detailed discussion of the features linked to from this page, please see the idividual models for that feature.

Version:
$Revision: 1.9 $ $Date: 2003/10/10 23:16:29 $
Author:
Michael Nash

Field Summary
 
Fields inherited from class org.keel.services.model.SecurableStandardLogEnabledModel
 
Fields inherited from class org.keel.services.model.StandardLogEnabledModel
log
 
Fields inherited from class org.keel.services.model.StandardModel
configuration
 
Fields inherited from interface org.keel.services.model.Model
ROLE
 
Constructor Summary
ListPolls()
           
 
Method Summary
 ModelResponse execute(ModelRequest req)
           
 
Methods inherited from class org.keel.services.model.SecurableStandardLogEnabledModel
getAuthorizationManager, setAuthorizationManager
 
Methods inherited from class org.keel.services.model.StandardLogEnabledModel
enableLogging
 
Methods inherited from class org.keel.services.model.StandardModel
configure, getConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListPolls

public ListPolls()
Method Detail

execute

public ModelResponse execute(ModelRequest req)
                      throws ModelException
Specified by:
execute in interface Model
Throws:
ModelException - Nested DB errors

Keel 2.1RC2

Please see keelframework.org for information about new Keel releases.