Keel 2.1RC2

org.keel.apps.poll.models
Class PromptPoll

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

public class PromptPoll
extends SecurableStandardLogEnabledModel
implements ThreadSafe

This method creates and adds a new poll to a given category. When creating a new Poll, the User is prompted to enter a Poll Description which is used as the name of the Poll. The Open and Close Date and Times are also entered on this page. Note that the required format for the Date/Time field is shown to the left of the entry field. Dates can be entered without entering exact hours/minutes which then default to 00:00:00. The final prompt is "View Results Allowed Before Poll Closes?" with the choices of Allowed or Disallowed. If the User selects Allowed, any User, with security permission, will be able to view the Summary and the Participant results before the poll is closed. The icons for these will be displayed on the Poll Listing page. If Disallowed is selected, these views may only be accessed after the poll has closed and until then the icons are not displayed on the Poll Listing page. The newly added Poll is only viewable by "root" (or another group if specified in configuration) until securtity is explicitly granted.

Version:
$Revision: 1.8 $ $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
PromptPoll()
           
 
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

PromptPoll

public PromptPoll()
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.