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

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.data.dao.assessment.PublishedAssessmentData
All Implemented Interfaces:
AssessmentBaseIfc, AssessmentIfc, PublishedAssessmentIfc, Serializable

public class PublishedAssessmentData
extends Object
implements Serializable, PublishedAssessmentIfc

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.sakaiproject.tool.assessment.data.ifc.assessment.AssessmentBaseIfc
ACTIVE_STATUS, DEAD_STATUS, HASMETADATAFORQUESTIONS, INACTIVE_STATUS, METADATAQUESTIONS_ISINSTRUCTOREDITABLE, SHOWFEEDBACKAUTHORING
 
Constructor Summary
PublishedAssessmentData()
           
PublishedAssessmentData(Long id, int submissionSize)
           
PublishedAssessmentData(Long id, String title, Date lastModifiedDate)
          "Convenient Constructor" This is a cheap object created for holding just the Id, title.
PublishedAssessmentData(Long id, String title, PublishedAccessControl assessmentAccessControl)
           
PublishedAssessmentData(Long id, String title, String releaseTo, Date startDate, Date dueDate, Date retractDate)
          "Convenient Constructor" This is a cheap object created for holding just the Id, title & delivery dates.
PublishedAssessmentData(Long id, String title, String releaseTo, Date startDate, Date dueDate, Date retractDate, Date feedbackDate, Integer feedbackDelivery, Integer feedbackAuthoring, Integer lateHandling, Boolean unlimitedSubmissions, Integer submissionsAllowed)
           
PublishedAssessmentData(Long id, String title, String releaseTo, Date startDate, Date dueDate, Date retractDate, Integer lateHandling, Boolean unlimitedSubmissions, Integer submissionsAllowed)
          Someone forgot to check this in, so I'm adding it.
PublishedAssessmentData(String title, String description, String comments, Long typeId, Integer instructorNotification, Integer testeeNotification, Integer multipartAllowed, Integer status, String createdBy, Date createdDate, String lastModifiedBy, Date lastModifiedDate)
           
 
Method Summary
 void addAssessmentMetaData(String label, String entry)
           
 AssessmentAccessControlIfc getAssessmentAccessControl()
           
 Long getAssessmentBaseId()
           
 AssessmentFeedbackIfc getAssessmentFeedback()
           
 Long getAssessmentId()
           
 String getAssessmentMetaDataByLabel(String label)
           
 HashMap getAssessmentMetaDataMap()
           
 HashMap getAssessmentMetaDataMap(Set assessmentMetaDataSet)
           
 Set getAssessmentMetaDataSet()
           
 Long getAssessmentTemplateId()
           
 String getComments()
           
 String getCreatedBy()
           
 Date getCreatedDate()
           
 SectionDataIfc getDefaultSection()
           
 String getDescription()
           
 Date getDueDate()
           
 EvaluationModelIfc getEvaluationModel()
           
 Integer getFeedbackAuthoring()
           
 Date getFeedbackDate()
           
 Integer getFeedbackDelivery()
           
 Integer getInstructorNotification()
           
 Boolean getIsTemplate()
           
 String getLastModifiedBy()
           
 Date getLastModifiedDate()
           
 Integer getLateHandling()
           
 Integer getMultipartAllowed()
           
 String getOwnerSite()
           
 String getOwnerSiteId()
           
 Long getParentId()
           
 Long getPublishedAssessmentId()
           
 String getReleaseTo()
           
 Date getRetractDate()
           
 SectionDataIfc getSection(Long sequence)
           
 ArrayList getSectionArray()
           
 ArrayList getSectionArraySorted()
           
 Set getSectionSet()
           
 Set getSecuredIPAddressSet()
           
 Date getStartDate()
           
 Integer getStatus()
           
 Integer getSubmissionsAllowed()
           
 int getSubmissionSize()
           
 Integer getTesteeNotification()
           
 String getTitle()
           
 Float getTotalScore()
           
 TypeIfc getType()
           
 Long getTypeId()
           
 Boolean getUnlimitedSubmissions()
           
 void setAssessmentAccessControl(AssessmentAccessControlIfc assessmentAccessControl)
           
 void setAssessmentBaseId(Long assessmentBaseId)
           
 void setAssessmentFeedback(AssessmentFeedbackIfc assessmentFeedback)
           
 void setAssessmentId(Long assessmentId)
           
 void setAssessmentMetaDataSet(Set assessmentMetaDataSet)
           
 void setAssessmentTemplateId(Long assessmentTemplateId)
           
 void setComments(String comments)
           
 void setCreatedBy(String createdBy)
           
 void setCreatedDate(Date createdDate)
           
 void setDescription(String description)
           
 void setEvaluationModel(EvaluationModelIfc evaluationModel)
           
 void setInstructorNotification(Integer instructorNotification)
           
 void setIsTemplate(Boolean isTemplate)
           
 void setLastModifiedBy(String lastModifiedBy)
           
 void setLastModifiedDate(Date lastModifiedDate)
           
 void setMultipartAllowed(Integer multipartAllowed)
           
 void setOwnerSite(String ownerSiteName)
           
 void setParentId(Long parentId)
           
 void setPublishedAssessmentId(Long assessmentBaseId)
           
 void setSectionSet(Set sectionSet)
           
 void setSecuredIPAddressSet(Set securedIPAddressSet)
           
 void setStatus(Integer status)
           
 void setTesteeNotification(Integer testeeNotification)
           
 void setTitle(String title)
           
 void setTypeId(Long typeId)
           
 void updateAssessmentMetaData(String label, String entry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishedAssessmentData

public PublishedAssessmentData()

PublishedAssessmentData

public PublishedAssessmentData(Long id,
                               String title,
                               Date lastModifiedDate)
"Convenient Constructor" This is a cheap object created for holding just the Id, title. This object is merely used for validation of assessmentTitleIsUniqueForAll. It is not used for persistence.


PublishedAssessmentData

public PublishedAssessmentData(Long id,
                               String title,
                               String releaseTo,
                               Date startDate,
                               Date dueDate,
                               Date retractDate)
"Convenient Constructor" This is a cheap object created for holding just the Id, title & delivery dates. This object is merely used for display. It is not used for persistence.


PublishedAssessmentData

public PublishedAssessmentData(Long id,
                               String title,
                               String releaseTo,
                               Date startDate,
                               Date dueDate,
                               Date retractDate,
                               Integer lateHandling,
                               Boolean unlimitedSubmissions,
                               Integer submissionsAllowed)
Someone forgot to check this in, so I'm adding it.


PublishedAssessmentData

public PublishedAssessmentData(Long id,
                               String title,
                               PublishedAccessControl assessmentAccessControl)

PublishedAssessmentData

public PublishedAssessmentData(Long id,
                               String title,
                               String releaseTo,
                               Date startDate,
                               Date dueDate,
                               Date retractDate,
                               Date feedbackDate,
                               Integer feedbackDelivery,
                               Integer feedbackAuthoring,
                               Integer lateHandling,
                               Boolean unlimitedSubmissions,
                               Integer submissionsAllowed)

PublishedAssessmentData

public PublishedAssessmentData(Long id,
                               int submissionSize)

PublishedAssessmentData

public PublishedAssessmentData(String title,
                               String description,
                               String comments,
                               Long typeId,
                               Integer instructorNotification,
                               Integer testeeNotification,
                               Integer multipartAllowed,
                               Integer status,
                               String createdBy,
                               Date createdDate,
                               String lastModifiedBy,
                               Date lastModifiedDate)
Method Detail

getAssessmentId

public Long getAssessmentId()
Specified by:
getAssessmentId in interface PublishedAssessmentIfc

setAssessmentId

public void setAssessmentId(Long assessmentId)
Specified by:
setAssessmentId in interface PublishedAssessmentIfc

getPublishedAssessmentId

public Long getPublishedAssessmentId()
Specified by:
getPublishedAssessmentId in interface PublishedAssessmentIfc

setPublishedAssessmentId

public void setPublishedAssessmentId(Long assessmentBaseId)
Specified by:
setPublishedAssessmentId in interface PublishedAssessmentIfc

getTitle

public String getTitle()
Specified by:
getTitle in interface AssessmentBaseIfc

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface AssessmentBaseIfc

getDescription

public String getDescription()
Specified by:
getDescription in interface AssessmentBaseIfc

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface AssessmentBaseIfc

getComments

public String getComments()
Specified by:
getComments in interface AssessmentBaseIfc

setComments

public void setComments(String comments)
Specified by:
setComments in interface AssessmentBaseIfc

getInstructorNotification

public Integer getInstructorNotification()
Specified by:
getInstructorNotification in interface AssessmentBaseIfc

setInstructorNotification

public void setInstructorNotification(Integer instructorNotification)
Specified by:
setInstructorNotification in interface AssessmentBaseIfc

getTesteeNotification

public Integer getTesteeNotification()
Specified by:
getTesteeNotification in interface AssessmentBaseIfc

setTesteeNotification

public void setTesteeNotification(Integer testeeNotification)
Specified by:
setTesteeNotification in interface AssessmentBaseIfc

getMultipartAllowed

public Integer getMultipartAllowed()
Specified by:
getMultipartAllowed in interface AssessmentBaseIfc

setMultipartAllowed

public void setMultipartAllowed(Integer multipartAllowed)
Specified by:
setMultipartAllowed in interface AssessmentBaseIfc

getTypeId

public Long getTypeId()
Specified by:
getTypeId in interface AssessmentBaseIfc

setTypeId

public void setTypeId(Long typeId)
Specified by:
setTypeId in interface AssessmentBaseIfc

getStatus

public Integer getStatus()
Specified by:
getStatus in interface AssessmentBaseIfc

setStatus

public void setStatus(Integer status)
Specified by:
setStatus in interface AssessmentBaseIfc

getCreatedBy

public String getCreatedBy()
Specified by:
getCreatedBy in interface AssessmentBaseIfc

setCreatedBy

public void setCreatedBy(String createdBy)
Specified by:
setCreatedBy in interface AssessmentBaseIfc

getCreatedDate

public Date getCreatedDate()
Specified by:
getCreatedDate in interface AssessmentBaseIfc

setCreatedDate

public void setCreatedDate(Date createdDate)
Specified by:
setCreatedDate in interface AssessmentBaseIfc

getLastModifiedBy

public String getLastModifiedBy()
Specified by:
getLastModifiedBy in interface AssessmentBaseIfc

setLastModifiedBy

public void setLastModifiedBy(String lastModifiedBy)
Specified by:
setLastModifiedBy in interface AssessmentBaseIfc

getLastModifiedDate

public Date getLastModifiedDate()
Specified by:
getLastModifiedDate in interface AssessmentBaseIfc

setLastModifiedDate

public void setLastModifiedDate(Date lastModifiedDate)
Specified by:
setLastModifiedDate in interface AssessmentBaseIfc

getAssessmentAccessControl

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

setAssessmentAccessControl

public void setAssessmentAccessControl(AssessmentAccessControlIfc assessmentAccessControl)
Specified by:
setAssessmentAccessControl in interface AssessmentBaseIfc

getEvaluationModel

public EvaluationModelIfc getEvaluationModel()
Specified by:
getEvaluationModel in interface AssessmentBaseIfc

setEvaluationModel

public void setEvaluationModel(EvaluationModelIfc evaluationModel)
Specified by:
setEvaluationModel in interface AssessmentBaseIfc

getAssessmentFeedback

public AssessmentFeedbackIfc getAssessmentFeedback()
Specified by:
getAssessmentFeedback in interface AssessmentBaseIfc

setAssessmentFeedback

public void setAssessmentFeedback(AssessmentFeedbackIfc assessmentFeedback)
Specified by:
setAssessmentFeedback in interface AssessmentBaseIfc

getAssessmentMetaDataSet

public Set getAssessmentMetaDataSet()
Specified by:
getAssessmentMetaDataSet in interface AssessmentBaseIfc

setAssessmentMetaDataSet

public void setAssessmentMetaDataSet(Set assessmentMetaDataSet)
Specified by:
setAssessmentMetaDataSet in interface AssessmentBaseIfc

getSecuredIPAddressSet

public Set getSecuredIPAddressSet()
Specified by:
getSecuredIPAddressSet in interface AssessmentBaseIfc

setSecuredIPAddressSet

public void setSecuredIPAddressSet(Set securedIPAddressSet)
Specified by:
setSecuredIPAddressSet in interface AssessmentBaseIfc

getAssessmentMetaDataMap

public HashMap getAssessmentMetaDataMap(Set assessmentMetaDataSet)
Specified by:
getAssessmentMetaDataMap in interface AssessmentBaseIfc

getAssessmentMetaDataMap

public HashMap getAssessmentMetaDataMap()
Specified by:
getAssessmentMetaDataMap in interface AssessmentBaseIfc

getAssessmentMetaDataByLabel

public String getAssessmentMetaDataByLabel(String label)
Specified by:
getAssessmentMetaDataByLabel in interface AssessmentBaseIfc

addAssessmentMetaData

public void addAssessmentMetaData(String label,
                                  String entry)
Specified by:
addAssessmentMetaData in interface AssessmentBaseIfc

updateAssessmentMetaData

public void updateAssessmentMetaData(String label,
                                     String entry)
Specified by:
updateAssessmentMetaData in interface AssessmentBaseIfc

getSectionSet

public Set getSectionSet()
Specified by:
getSectionSet in interface AssessmentIfc

setSectionSet

public void setSectionSet(Set sectionSet)
Specified by:
setSectionSet in interface AssessmentIfc

getAssessmentBaseId

public Long getAssessmentBaseId()
Specified by:
getAssessmentBaseId in interface AssessmentBaseIfc

setAssessmentBaseId

public void setAssessmentBaseId(Long assessmentBaseId)
Specified by:
setAssessmentBaseId in interface AssessmentBaseIfc

getIsTemplate

public Boolean getIsTemplate()
Specified by:
getIsTemplate in interface AssessmentBaseIfc

setIsTemplate

public void setIsTemplate(Boolean isTemplate)
Specified by:
setIsTemplate in interface AssessmentBaseIfc

getParentId

public Long getParentId()
Specified by:
getParentId in interface AssessmentBaseIfc

setParentId

public void setParentId(Long parentId)
Specified by:
setParentId in interface AssessmentBaseIfc

getAssessmentTemplateId

public Long getAssessmentTemplateId()
Specified by:
getAssessmentTemplateId in interface AssessmentIfc

setAssessmentTemplateId

public void setAssessmentTemplateId(Long assessmentTemplateId)
Specified by:
setAssessmentTemplateId in interface AssessmentIfc

getType

public TypeIfc getType()
Specified by:
getType in interface AssessmentBaseIfc

getReleaseTo

public String getReleaseTo()

getStartDate

public Date getStartDate()

getDueDate

public Date getDueDate()

getRetractDate

public Date getRetractDate()

getSubmissionSize

public int getSubmissionSize()

getSectionArray

public ArrayList getSectionArray()
Specified by:
getSectionArray in interface AssessmentIfc

getSectionArraySorted

public ArrayList getSectionArraySorted()
Specified by:
getSectionArraySorted in interface AssessmentIfc

getSection

public SectionDataIfc getSection(Long sequence)
Specified by:
getSection in interface AssessmentIfc

getDefaultSection

public SectionDataIfc getDefaultSection()
Specified by:
getDefaultSection in interface AssessmentIfc

getLateHandling

public Integer getLateHandling()

getUnlimitedSubmissions

public Boolean getUnlimitedSubmissions()

getSubmissionsAllowed

public Integer getSubmissionsAllowed()

getFeedbackDelivery

public Integer getFeedbackDelivery()

getFeedbackAuthoring

public Integer getFeedbackAuthoring()

getFeedbackDate

public Date getFeedbackDate()

getTotalScore

public Float getTotalScore()
Specified by:
getTotalScore in interface PublishedAssessmentIfc

setOwnerSite

public void setOwnerSite(String ownerSiteName)
Specified by:
setOwnerSite in interface PublishedAssessmentIfc

getOwnerSite

public String getOwnerSite()
Specified by:
getOwnerSite in interface PublishedAssessmentIfc

getOwnerSiteId

public String getOwnerSiteId()
Specified by:
getOwnerSiteId in interface PublishedAssessmentIfc