org.sakaiproject.tool.assessment.facade
Class PublishedAssessmentFacade

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.facade.PublishedAssessmentFacade
All Implemented Interfaces:
AssessmentBaseIfc, AssessmentIfc, Cloneable, PublishedAssessmentIfc, Serializable

public class PublishedAssessmentFacade
extends Object
implements PublishedAssessmentIfc, Cloneable

See Also:
Serialized Form

Field Summary
static Integer ACTIVE_STATUS
           
static Integer ANY_STATUS
           
static Integer INACTIVE_STATUS
           
 
Fields inherited from interface org.sakaiproject.tool.assessment.data.ifc.assessment.AssessmentBaseIfc
DEAD_STATUS, HASMETADATAFORQUESTIONS, METADATAQUESTIONS_ISINSTRUCTOREDITABLE, SHOWFEEDBACKAUTHORING
 
Constructor Summary
PublishedAssessmentFacade()
           
PublishedAssessmentFacade(Long id, String title, AssessmentAccessControlIfc publishedAccessControl)
           
PublishedAssessmentFacade(Long id, String title, String releaseTo, Date startDate, Date dueDate)
           
PublishedAssessmentFacade(Long id, String title, String releaseTo, Date startDate, Date dueDate, Date retractDate, Date feedbackDate, Integer feedbackDelivery, Integer feedbackAuthoring, Integer lateHandling, Boolean unlimitedSubmissions, Integer submissionsAllowed)
           
PublishedAssessmentFacade(PublishedAssessmentIfc data)
           
PublishedAssessmentFacade(PublishedAssessmentIfc data, Boolean loadSection)
           
 
Method Summary
 void addAssessmentMetaData(String label, String entry)
           
 PublishedAssessmentFacade clonePublishedAssessment()
           
 AssessmentIfc getAssessment()
           
 AssessmentAccessControlIfc getAssessmentAccessControl()
           
 Long getAssessmentBaseId()
           
 AssessmentFeedbackIfc getAssessmentFeedback()
           
 Long getAssessmentId()
           
 String getAssessmentMetaDataByLabel(String label)
           
 HashMap getAssessmentMetaDataMap()
           
 HashMap getAssessmentMetaDataMap(Set publishedMetaDataSet)
           
 Set getAssessmentMetaDataSet()
           
 Long getAssessmentTemplateId()
           
 String getComments()
           
 String getCreatedBy()
           
 Date getCreatedDate()
           
 PublishedAssessmentIfc getData()
           
 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()
          not tested this method -daisy 11/16/04 public void removeAssessmentMetaDataByLabel(String label) { HashSet set = new HashSet(); Iterator iter = this.publishedMetaDataSet.iterator(); while (iter.hasNext()){ PublishedMetaData metadata = (PublishedMetaData) iter.next(); if (!
 Set getSecuredIPAddressSet()
           
 Date getStartDate()
           
 Integer getStatus()
           
 Integer getSubmissionsAllowed()
           
 int getSubmissionSize()
           
 Integer getTesteeNotification()
           
 String getTitle()
           
 Float getTotalScore()
           
 TypeIfc getType()
           
 Long getTypeId()
           
 Boolean getUnlimitedSubmissions()
           
 void setAssessment(AssessmentIfc assessment)
           
 void setAssessmentAccessControl(AssessmentAccessControlIfc publishedAccessControl)
           
 void setAssessmentBaseId(Long id)
           
 void setAssessmentFeedback(AssessmentFeedbackIfc assessmentFeedback)
           
 void setAssessmentId(Long assessmentId)
           
 void setAssessmentMetaDataSet(Set publishedMetaDataSet)
           
 void setAssessmentTemplateId(Long assessmentTemplateId)
           
 void setComments(String comments)
           
 void setCreatedBy(String createdBy)
           
 void setCreatedDate(Date createdDate)
           
 void setDescription(String description)
           
 void setEvaluationModel(EvaluationModelIfc publishedEvaluationModel)
           
 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 publishedAssessmentId)
           
 void setSectionSet(Set sectionSet)
           
 void setSecuredIPAddressSet(Set publishedSecuredIPAddressSet)
           
 void setStatus(Integer status)
           
 void setSubmissionSize(int size)
           
 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
 

Field Detail

ACTIVE_STATUS

public static Integer ACTIVE_STATUS

INACTIVE_STATUS

public static Integer INACTIVE_STATUS

ANY_STATUS

public static Integer ANY_STATUS
Constructor Detail

PublishedAssessmentFacade

public PublishedAssessmentFacade()

PublishedAssessmentFacade

public PublishedAssessmentFacade(Long id,
                                 String title,
                                 String releaseTo,
                                 Date startDate,
                                 Date dueDate)

PublishedAssessmentFacade

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

PublishedAssessmentFacade

public PublishedAssessmentFacade(Long id,
                                 String title,
                                 AssessmentAccessControlIfc publishedAccessControl)

PublishedAssessmentFacade

public PublishedAssessmentFacade(PublishedAssessmentIfc data,
                                 Boolean loadSection)

PublishedAssessmentFacade

public PublishedAssessmentFacade(PublishedAssessmentIfc data)
Method Detail

getPublishedAssessmentId

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

setPublishedAssessmentId

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

getAssessment

public AssessmentIfc getAssessment()

setAssessment

public void setAssessment(AssessmentIfc assessment)

getAssessmentId

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

setAssessmentId

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

getAssessmentBaseId

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

setAssessmentBaseId

public void setAssessmentBaseId(Long id)
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

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 publishedAccessControl)
Specified by:
setAssessmentAccessControl in interface AssessmentBaseIfc

getEvaluationModel

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

setEvaluationModel

public void setEvaluationModel(EvaluationModelIfc publishedEvaluationModel)
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 publishedMetaDataSet)
Specified by:
setAssessmentMetaDataSet in interface AssessmentBaseIfc

getAssessmentMetaDataMap

public HashMap getAssessmentMetaDataMap(Set publishedMetaDataSet)
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()
not tested this method -daisy 11/16/04 public void removeAssessmentMetaDataByLabel(String label) { HashSet set = new HashSet(); Iterator iter = this.publishedMetaDataSet.iterator(); while (iter.hasNext()){ PublishedMetaData metadata = (PublishedMetaData) iter.next(); if (!metadata.getLabel().equals(label)) set.add(metadata); } setAssessmentMetaDataSet(set); }

Specified by:
getSectionSet in interface AssessmentIfc

setSectionSet

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

getSecuredIPAddressSet

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

setSecuredIPAddressSet

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

getData

public PublishedAssessmentIfc getData()

getType

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

getSectionArray

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

getSectionArraySorted

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

getReleaseTo

public String getReleaseTo()

getStartDate

public Date getStartDate()

getDueDate

public Date getDueDate()

getSubmissionSize

public int getSubmissionSize()

setSubmissionSize

public void setSubmissionSize(int size)

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()

getRetractDate

public Date getRetractDate()

getFeedbackDelivery

public Integer getFeedbackDelivery()

getFeedbackAuthoring

public Integer getFeedbackAuthoring()

getFeedbackDate

public Date getFeedbackDate()

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

getTotalScore

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

clonePublishedAssessment

public PublishedAssessmentFacade clonePublishedAssessment()