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

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.data.dao.assessment.SectionData
All Implemented Interfaces:
Comparable, SectionDataIfc, Serializable

public class SectionData
extends Object
implements Serializable, SectionDataIfc, Comparable

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.SectionDataIfc
AS_LISTED_ON_ASSESSMENT_PAGE, AUTHOR_TYPE, NUM_QUESTIONS_DRAWN, POOLID_FOR_RANDOM_DRAW, QUESTIONS_AUTHORED_ONE_BY_ONE, QUESTIONS_ORDERING, RANDOM_DRAW_FROM_QUESTIONPOOL, RANDOM_WITHIN_PART
 
Constructor Summary
SectionData()
           
SectionData(Integer duration, Integer sequence, String title, String description, Long typeId, Integer status, String createdBy, Date createdDate, String lastModifiedBy, Date lastModifiedDate)
           
 
Method Summary
 void addItem(ItemDataIfc item)
           
 void addSectionMetaData(String label, String entry)
           
 int compareTo(Object o)
           
 AssessmentIfc getAssessment()
           
 Long getAssessmentId()
           
 String getCreatedBy()
           
 Date getCreatedDate()
           
 String getDescription()
           
 Integer getDuration()
          public AssessmentDataIfc getAssessment() { return (AssessmentDataIfc)assessment; }
 ArrayList getItemArray()
           
 ArrayList getItemArraySorted()
           
 ArrayList getItemArraySortedForGrading()
           
 ArrayList getItemArraySortedWithRandom(long seed)
           
 Set getItemSet()
           
 String getLastModifiedBy()
           
 Date getLastModifiedDate()
           
 Long getSectionId()
           
 String getSectionMetaDataByLabel(String label)
           
 HashMap getSectionMetaDataMap(Set metaDataSet)
           
 Set getSectionMetaDataSet()
           
 Integer getSequence()
           
 Integer getStatus()
           
 String getTitle()
           
 TypeIfc getType()
           
 Long getTypeId()
           
 void setAssessment(AssessmentIfc assessment)
           
 void setAssessmentId(Long assessmentId)
           
 void setCreatedBy(String createdBy)
           
 void setCreatedDate(Date createdDate)
           
 void setDescription(String description)
           
 void setDuration(Integer duration)
           
 void setItemSet(Set itemSet)
           
 void setLastModifiedBy(String lastModifiedBy)
           
 void setLastModifiedDate(Date lastModifiedDate)
           
 void setSectionId(Long id)
           
 void setSectionMetaDataSet(Set param)
           
 void setSequence(Integer sequence)
           
 void setStatus(Integer status)
           
 void setTitle(String title)
           
 void setTypeId(Long typeId)
           
 
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

SectionData

public SectionData()

SectionData

public SectionData(Integer duration,
                   Integer sequence,
                   String title,
                   String description,
                   Long typeId,
                   Integer status,
                   String createdBy,
                   Date createdDate,
                   String lastModifiedBy,
                   Date lastModifiedDate)
Method Detail

getSectionId

public Long getSectionId()
Specified by:
getSectionId in interface SectionDataIfc

setSectionId

public void setSectionId(Long id)
Specified by:
setSectionId in interface SectionDataIfc

getAssessmentId

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

setAssessmentId

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

setAssessment

public void setAssessment(AssessmentIfc assessment)
Specified by:
setAssessment in interface SectionDataIfc

getAssessment

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

getDuration

public Integer getDuration()
public AssessmentDataIfc getAssessment() { return (AssessmentDataIfc)assessment; }

Specified by:
getDuration in interface SectionDataIfc

setDuration

public void setDuration(Integer duration)
Specified by:
setDuration in interface SectionDataIfc

getSequence

public Integer getSequence()
Specified by:
getSequence in interface SectionDataIfc

setSequence

public void setSequence(Integer sequence)
Specified by:
setSequence in interface SectionDataIfc

getTitle

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

setTitle

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

getDescription

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

setDescription

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

getTypeId

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

setTypeId

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

getStatus

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

setStatus

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

getCreatedBy

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

setCreatedBy

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

getCreatedDate

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

setCreatedDate

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

getLastModifiedBy

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

setLastModifiedBy

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

getLastModifiedDate

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

setLastModifiedDate

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

getItemSet

public Set getItemSet()
Specified by:
getItemSet in interface SectionDataIfc

setItemSet

public void setItemSet(Set itemSet)
Specified by:
setItemSet in interface SectionDataIfc

getSectionMetaDataSet

public Set getSectionMetaDataSet()
Specified by:
getSectionMetaDataSet in interface SectionDataIfc

setSectionMetaDataSet

public void setSectionMetaDataSet(Set param)
Specified by:
setSectionMetaDataSet in interface SectionDataIfc

getSectionMetaDataMap

public HashMap getSectionMetaDataMap(Set metaDataSet)
Specified by:
getSectionMetaDataMap in interface SectionDataIfc

addSectionMetaData

public void addSectionMetaData(String label,
                               String entry)
Specified by:
addSectionMetaData in interface SectionDataIfc

getSectionMetaDataByLabel

public String getSectionMetaDataByLabel(String label)
Specified by:
getSectionMetaDataByLabel in interface SectionDataIfc

getItemArray

public ArrayList getItemArray()
Specified by:
getItemArray in interface SectionDataIfc

getItemArraySortedForGrading

public ArrayList getItemArraySortedForGrading()
Specified by:
getItemArraySortedForGrading in interface SectionDataIfc

getItemArraySorted

public ArrayList getItemArraySorted()
Specified by:
getItemArraySorted in interface SectionDataIfc

getItemArraySortedWithRandom

public ArrayList getItemArraySortedWithRandom(long seed)
Specified by:
getItemArraySortedWithRandom in interface SectionDataIfc

addItem

public void addItem(ItemDataIfc item)
Specified by:
addItem in interface SectionDataIfc

getType

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

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable