Keel 2.1RC2

org.keel.apps.poll.models
Class PromptQuestion

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.PromptQuestion
All Implemented Interfaces:
Configurable, LogEnabled, Model, Securable, ThreadSafe

public class PromptQuestion
extends SecurableStandardLogEnabledModel
implements ThreadSafe

This method will provide a form for the User to create a new Question in the selected poll, the poll being displayed in the upper left corner of the header. The User types in the Question and then may determine the Relative Display Order on Voting Form by entering a number in this field. Questions are shown in numerical order determined by the value in this field. The next available number will be given as the default value when entering a new Question. The Answer Required? field allows selection from either Can Be Left Unanswered or Must Provide Answer. If Must Provide Answer is selected, the User will not be able to successfully vote on a poll until all questions with this selected have been answered. The Allow Free Form Answer? fields allows selection from either Provide Set of Choices or User Can Provide Own Answer. Selecting Provide Set of Choices will present to the User of the Poll, a list of all defined choices to select from. Selecting User Can Provide Own Answer will present the User of the Poll with a list of all defined choices and an entry field where the User can enter their own response. When selecting User Can Provide Own Answer in the Allow Free Form Answer setup question, note that one should always then create a choice called Other or User's Answer which the User should select and then use the field shown to type in their own answer. A User's own answer will in this way be scored by providing a score on the choice Other or User's Answer. The Choice Display Type field allows selection of four different display types: Checkbox, Multibox, Dropdown or Radio Buttons. When selecting Checkbox from the Choice Display Type, note that there should be only one (and must be one) choice created for this question. A score is applied such that if the checkbox is checked by the user, they score that set score. If the checkbox is not checked, it will show as No Answer Selected and will score 0 for that question. Also note that User Can Provide Own Answer, although selectable, is not an option for this selection.

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
PromptQuestion()
           
 
Method Summary
 ModelResponse execute(ModelRequest req)
          This model creates all the elements to create a screen to add a new question to a given poll
 
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

PromptQuestion

public PromptQuestion()
Method Detail

execute

public ModelResponse execute(ModelRequest req)
                      throws ModelException
This model creates all the elements to create a screen to add a new question to a given poll

Specified by:
execute in interface Model
Throws:
ModelException - Nested database exception

Keel 2.1RC2

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