org.keel.apps.poll.models
Class ListPolls
java.lang.Object
org.keel.services.model.StandardModel
org.keel.services.model.StandardLogEnabledModel
org.keel.services.model.SecurableStandardLogEnabledModel
org.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
| Fields inherited from interface org.keel.services.model.Model |
ROLE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListPolls
public ListPolls()
execute
public ModelResponse execute(ModelRequest req)
throws ModelException
-
- Specified by:
execute in interface Model
-
- Throws:
ModelException - Nested DB errors
Please see keelframework.org for information about new Keel releases.