org.sakaiproject.tool.assessment.data.dao.assessment
Class AssessmentAccessControl

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.data.dao.assessment.AssessmentAccessControl
All Implemented Interfaces:
AssessmentAccessControlIfc, Serializable

public class AssessmentAccessControl
extends Object
implements Serializable, AssessmentAccessControlIfc

This keeps track of the submission scheme, and the number allowed.

Author:
Rachel Gollub
See Also:
Serialized Form

Field Summary
static Integer ACCEPT_LATE_SUBMISSION
           
static Integer AUTO_SAVE
           
static Integer AUTO_SUBMIT
           
static Integer BY_ASSESSMENT
           
static Integer BY_PART
           
static Integer BY_QUESTION
           
static Integer CONTINUOUS_NUMBERING
           
static Integer DO_NOT_AUTO_SUBMIT
           
static Integer DO_NOT_TIMED_ASSESSMENT
           
static Integer LINEAR_ACCESS
           
static Integer NO_EDIT
           
static Integer NOT_ACCEPT_LATE_SUBMISSION
           
static Integer RANDOM_ACCESS
           
static Integer RESTART_NUMBERING_BY_PART
           
static Integer SAVE_ON_CLICK
           
static Integer TIMED_ASSESSMENT
           
static Integer UNLIMITED_SUBMISSIONS_ALLOWED
           
 
Fields inherited from interface org.sakaiproject.tool.assessment.data.ifc.assessment.AssessmentAccessControlIfc
LIMITED_SUBMISSIONS, UNLIMITED_SUBMISSIONS
 
Constructor Summary
AssessmentAccessControl()
          Creates a new SubmissionModel object.
AssessmentAccessControl(Integer submissionsAllowed, Integer submissionsSaved, Integer assessmentFormat, Integer bookMarkingItem, Integer timeLimit, Integer timedAssessment, Integer retryAllowed, Integer lateHandling, Date startDate, Date dueDate, Date scoreDate, Date feedbackDate, Date retractDate, Integer autoSubmit, Integer itemNavigation, Integer itemNumbering, String submissionMessage, String releaseTo)
           
 
Method Summary
 Object clone()
           
 AssessmentBaseIfc getAssessmentBase()
           
 Integer getAssessmentFormat()
           
 Integer getAutoSubmit()
           
 Integer getBookMarkingItem()
           
 Date getDueDate()
           
 Date getFeedbackDate()
           
 String getFinalPageUrl()
           
 Long getId()
           
 Integer getItemNavigation()
           
 Integer getItemNumbering()
           
 Integer getLateHandling()
           
 String getPassword()
           
 String getReleaseTo()
           
 Date getRetractDate()
           
 Integer getRetryAllowed()
           
 Date getScoreDate()
           
 Date getStartDate()
           
 String getSubmissionMessage()
           
 Integer getSubmissionsAllowed()
           
 Integer getSubmissionsSaved()
           
 Integer getTimedAssessment()
           
 Integer getTimeLimit()
           
 Boolean getUnlimitedSubmissions()
           
 String getUsername()
           
 void setAssessmentBase(AssessmentBaseIfc assessmentBase)
           
 void setAssessmentFormat(Integer assessmentFormat)
           
 void setAutoSubmit(Integer autoSubmit)
           
 void setBookMarkingItem(Integer bookMarkingItem)
           
 void setDueDate(Date dueDate)
           
 void setFeedbackDate(Date feedbackDate)
           
 void setFinalPageUrl(String finalPageUrl)
           
 void setId(Long id)
           
 void setItemNavigation(Integer itemNavigation)
           
 void setItemNumbering(Integer itemNumbering)
           
 void setLateHandling(Integer lateHandling)
           
 void setPassword(String password)
           
 void setReleaseTo(String releaseTo)
           
 void setRetractDate(Date retractDate)
           
 void setRetryAllowed(Integer retryAllowed)
           
 void setScoreDate(Date scoreDate)
           
 void setStartDate(Date startDate)
           
 void setSubmissionMessage(String submissionMessage)
           
 void setSubmissionsAllowed(Integer psubmissionsAllowed)
           
 void setSubmissionsSaved(Integer psubmissionsSaved)
           
 void setTimedAssessment(Integer timedAssessment)
           
 void setTimeLimit(Integer timeLimit)
           
 void setUnlimitedSubmissions(Boolean unlimitedSubmissions)
           
 void setUsername(String username)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_EDIT

public static Integer NO_EDIT

TIMED_ASSESSMENT

public static Integer TIMED_ASSESSMENT

DO_NOT_TIMED_ASSESSMENT

public static Integer DO_NOT_TIMED_ASSESSMENT

AUTO_SUBMIT

public static Integer AUTO_SUBMIT

DO_NOT_AUTO_SUBMIT

public static Integer DO_NOT_AUTO_SUBMIT

SAVE_ON_CLICK

public static Integer SAVE_ON_CLICK

AUTO_SAVE

public static Integer AUTO_SAVE

LINEAR_ACCESS

public static Integer LINEAR_ACCESS

RANDOM_ACCESS

public static Integer RANDOM_ACCESS

BY_QUESTION

public static Integer BY_QUESTION

BY_PART

public static Integer BY_PART

BY_ASSESSMENT

public static Integer BY_ASSESSMENT

CONTINUOUS_NUMBERING

public static Integer CONTINUOUS_NUMBERING

RESTART_NUMBERING_BY_PART

public static Integer RESTART_NUMBERING_BY_PART

UNLIMITED_SUBMISSIONS_ALLOWED

public static Integer UNLIMITED_SUBMISSIONS_ALLOWED

ACCEPT_LATE_SUBMISSION

public static Integer ACCEPT_LATE_SUBMISSION

NOT_ACCEPT_LATE_SUBMISSION

public static Integer NOT_ACCEPT_LATE_SUBMISSION
Constructor Detail

AssessmentAccessControl

public AssessmentAccessControl()
Creates a new SubmissionModel object.


AssessmentAccessControl

public AssessmentAccessControl(Integer submissionsAllowed,
                               Integer submissionsSaved,
                               Integer assessmentFormat,
                               Integer bookMarkingItem,
                               Integer timeLimit,
                               Integer timedAssessment,
                               Integer retryAllowed,
                               Integer lateHandling,
                               Date startDate,
                               Date dueDate,
                               Date scoreDate,
                               Date feedbackDate,
                               Date retractDate,
                               Integer autoSubmit,
                               Integer itemNavigation,
                               Integer itemNumbering,
                               String submissionMessage,
                               String releaseTo)
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Throws:
CloneNotSupportedException

getId

public Long getId()
Specified by:
getId in interface AssessmentAccessControlIfc

setId

public void setId(Long id)
Specified by:
setId in interface AssessmentAccessControlIfc

setAssessmentBase

public void setAssessmentBase(AssessmentBaseIfc assessmentBase)
Specified by:
setAssessmentBase in interface AssessmentAccessControlIfc

getAssessmentBase

public AssessmentBaseIfc getAssessmentBase()
Specified by:
getAssessmentBase in interface AssessmentAccessControlIfc

getSubmissionsAllowed

public Integer getSubmissionsAllowed()
Specified by:
getSubmissionsAllowed in interface AssessmentAccessControlIfc

setSubmissionsAllowed

public void setSubmissionsAllowed(Integer psubmissionsAllowed)
Specified by:
setSubmissionsAllowed in interface AssessmentAccessControlIfc

getSubmissionsSaved

public Integer getSubmissionsSaved()
Specified by:
getSubmissionsSaved in interface AssessmentAccessControlIfc

setSubmissionsSaved

public void setSubmissionsSaved(Integer psubmissionsSaved)
Specified by:
setSubmissionsSaved in interface AssessmentAccessControlIfc

getAssessmentFormat

public Integer getAssessmentFormat()
Specified by:
getAssessmentFormat in interface AssessmentAccessControlIfc

setAssessmentFormat

public void setAssessmentFormat(Integer assessmentFormat)
Specified by:
setAssessmentFormat in interface AssessmentAccessControlIfc

getBookMarkingItem

public Integer getBookMarkingItem()
Specified by:
getBookMarkingItem in interface AssessmentAccessControlIfc

setBookMarkingItem

public void setBookMarkingItem(Integer bookMarkingItem)
Specified by:
setBookMarkingItem in interface AssessmentAccessControlIfc

getTimeLimit

public Integer getTimeLimit()
Specified by:
getTimeLimit in interface AssessmentAccessControlIfc

setTimeLimit

public void setTimeLimit(Integer timeLimit)
Specified by:
setTimeLimit in interface AssessmentAccessControlIfc

getTimedAssessment

public Integer getTimedAssessment()
Specified by:
getTimedAssessment in interface AssessmentAccessControlIfc

setTimedAssessment

public void setTimedAssessment(Integer timedAssessment)
Specified by:
setTimedAssessment in interface AssessmentAccessControlIfc

setRetryAllowed

public void setRetryAllowed(Integer retryAllowed)
Specified by:
setRetryAllowed in interface AssessmentAccessControlIfc

getRetryAllowed

public Integer getRetryAllowed()
Specified by:
getRetryAllowed in interface AssessmentAccessControlIfc

setLateHandling

public void setLateHandling(Integer lateHandling)
Specified by:
setLateHandling in interface AssessmentAccessControlIfc

getLateHandling

public Integer getLateHandling()
Specified by:
getLateHandling in interface AssessmentAccessControlIfc

getStartDate

public Date getStartDate()
Specified by:
getStartDate in interface AssessmentAccessControlIfc

setStartDate

public void setStartDate(Date startDate)
Specified by:
setStartDate in interface AssessmentAccessControlIfc

getDueDate

public Date getDueDate()
Specified by:
getDueDate in interface AssessmentAccessControlIfc

setDueDate

public void setDueDate(Date dueDate)
Specified by:
setDueDate in interface AssessmentAccessControlIfc

getScoreDate

public Date getScoreDate()
Specified by:
getScoreDate in interface AssessmentAccessControlIfc

setScoreDate

public void setScoreDate(Date scoreDate)
Specified by:
setScoreDate in interface AssessmentAccessControlIfc

getFeedbackDate

public Date getFeedbackDate()
Specified by:
getFeedbackDate in interface AssessmentAccessControlIfc

setFeedbackDate

public void setFeedbackDate(Date feedbackDate)
Specified by:
setFeedbackDate in interface AssessmentAccessControlIfc

getRetractDate

public Date getRetractDate()
Specified by:
getRetractDate in interface AssessmentAccessControlIfc

setRetractDate

public void setRetractDate(Date retractDate)
Specified by:
setRetractDate in interface AssessmentAccessControlIfc

setAutoSubmit

public void setAutoSubmit(Integer autoSubmit)
Specified by:
setAutoSubmit in interface AssessmentAccessControlIfc

getAutoSubmit

public Integer getAutoSubmit()
Specified by:
getAutoSubmit in interface AssessmentAccessControlIfc

setItemNavigation

public void setItemNavigation(Integer itemNavigation)
Specified by:
setItemNavigation in interface AssessmentAccessControlIfc

getItemNavigation

public Integer getItemNavigation()
Specified by:
getItemNavigation in interface AssessmentAccessControlIfc

setItemNumbering

public void setItemNumbering(Integer itemNumbering)
Specified by:
setItemNumbering in interface AssessmentAccessControlIfc

getItemNumbering

public Integer getItemNumbering()
Specified by:
getItemNumbering in interface AssessmentAccessControlIfc

setSubmissionMessage

public void setSubmissionMessage(String submissionMessage)
Specified by:
setSubmissionMessage in interface AssessmentAccessControlIfc

getSubmissionMessage

public String getSubmissionMessage()
Specified by:
getSubmissionMessage in interface AssessmentAccessControlIfc

setFinalPageUrl

public void setFinalPageUrl(String finalPageUrl)
Specified by:
setFinalPageUrl in interface AssessmentAccessControlIfc

getFinalPageUrl

public String getFinalPageUrl()
Specified by:
getFinalPageUrl in interface AssessmentAccessControlIfc

getReleaseTo

public String getReleaseTo()
Specified by:
getReleaseTo in interface AssessmentAccessControlIfc

setReleaseTo

public void setReleaseTo(String releaseTo)
Specified by:
setReleaseTo in interface AssessmentAccessControlIfc

getUsername

public String getUsername()
Specified by:
getUsername in interface AssessmentAccessControlIfc

setUsername

public void setUsername(String username)
Specified by:
setUsername in interface AssessmentAccessControlIfc

getPassword

public String getPassword()
Specified by:
getPassword in interface AssessmentAccessControlIfc

setPassword

public void setPassword(String password)
Specified by:
setPassword in interface AssessmentAccessControlIfc

getUnlimitedSubmissions

public Boolean getUnlimitedSubmissions()
Specified by:
getUnlimitedSubmissions in interface AssessmentAccessControlIfc

setUnlimitedSubmissions

public void setUnlimitedSubmissions(Boolean unlimitedSubmissions)
Specified by:
setUnlimitedSubmissions in interface AssessmentAccessControlIfc