public class SectionFacade extends Object implements Serializable, SectionDataIfc, Comparable
| Modifier and Type | Field and Description |
|---|---|
protected AssessmentBaseIfc |
assessment |
protected Long |
assessmentId |
protected String |
createdBy |
protected Date |
createdDate |
protected SectionDataIfc |
data |
protected String |
description |
protected Integer |
duration |
protected org.osid.shared.Id |
id |
protected Set |
itemFacadeSet |
protected Set |
itemSet |
protected String |
lastModifiedBy |
protected Date |
lastModifiedDate |
protected HashMap |
metaDataMap |
protected Set |
metaDataSet |
protected org.osid.assessment.Section |
section |
protected Set |
sectionAttachmentSet |
protected Long |
sectionId |
protected org.osid.shared.Type |
sectionType |
protected Integer |
sequence |
protected Integer |
status |
protected String |
title |
protected Long |
typeId |
AS_LISTED_ON_ASSESSMENT_PAGE, AUTHOR_TYPE, DISCOUNT_VALUE_FOR_QUESTION, NUM_QUESTIONS_DRAWN, PER_STUDENT, PER_SUBMISSION, POINT_VALUE_FOR_QUESTION, POOLID_FOR_RANDOM_DRAW, POOLNAME_FOR_RANDOM_DRAW, QUESTIONS_AUTHORED_ONE_BY_ONE, QUESTIONS_ORDERING, QUESTIONS_RANDOM_DRAW_DATE, RANDOM_DRAW_FROM_QUESTIONPOOL, RANDOM_WITHIN_PART, RANDOMIZATION_TYPE| Constructor and Description |
|---|
SectionFacade()
SectionFacade is the class that is exposed to developer
It contains some of the useful methods specified in
org.osid.assessment.Section and it implements
org.sakaiproject.tool.assessment.ifc.
|
SectionFacade(SectionDataIfc data)
This is a very important constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(ItemDataIfc itemDataIfc) |
void |
addItem(ItemFacade itemFacade) |
void |
addSectionMetaData(String label,
String entry)
Add a Meta Data to SectionFacade
|
int |
compareTo(Object o) |
AssessmentIfc |
getAssessment() |
Long |
getAssessmentId() |
String |
getCreatedBy()
Get createdBy for SectionFacade.
|
Date |
getCreatedDate()
Get the creation date of SectionFacade.
|
SectionDataIfc |
getData()
Get the data for this SectionFacade.
|
String |
getDescription() |
Integer |
getDuration() |
ArrayList |
getItemArray() |
ArrayList |
getItemArraySorted() |
ArrayList |
getItemArraySortedForGrading() |
ArrayList |
getItemArraySortedWithRandom(long seed) |
Set |
getItemFacadeSet()
Get section text set (question text set) from SectionFacade.data
|
Set |
getItemSet() |
String |
getLastModifiedBy()
Get the agentId of the person who last modified SectionFacade
|
Date |
getLastModifiedDate()
Get the date when SectionFacade where last modified By
|
List |
getSectionAttachmentList() |
Set |
getSectionAttachmentSet() |
Long |
getSectionId() |
String |
getSectionMetaDataByLabel(String label) |
HashMap |
getSectionMetaDataMap(Set metaDataSet) |
Set |
getSectionMetaDataSet() |
TypeFacade |
getSectionTypeFacade() |
Integer |
getSequence() |
Integer |
getStatus()
Get status of SectionFacade. 1 = active, 0 = inactive
|
String |
getTitle() |
TypeIfc |
getType() |
Long |
getTypeId() |
void |
setAssessment(AssessmentIfc assessment) |
void |
setAssessmentId(Long assessmentId)
Set sectionId for SectionFacade
|
void |
setCreatedBy(String createdBy)
Set createdBy for SectionFacade.
|
void |
setCreatedDate(Date createdDate)
Set the creation date of SectionFacade
|
void |
setData(SectionDataIfc data)
Set data for SectionFacade
|
void |
setDescription(String description)
Set description for SectionFacade
|
void |
setDuration(Integer duration)
Set duration for SectionFacade
|
void |
setItemSet(Set itemSet)
Set section text (question text) in SectionFacade.data
|
void |
setLastModifiedBy(String lastModifiedBy)
set the agentId of the person who last modified sectionFacade
|
void |
setLastModifiedDate(Date lastModifiedDate)
Set the last modified date
|
void |
setSectionAttachmentSet(Set sectionAttachmentSet) |
void |
setSectionId(Long sectionId)
Set sectionId for SectionFacade
|
void |
setSectionMetaDataSet(Set metaDataSet)
Set section metadata in SectionFacade.data
|
void |
setSequence(Integer sequence) |
void |
setStatus(Integer status)
Set status for SectionFacade. 1 = active, 0 = inactive
|
void |
setTitle(String title)
Set instruction for SectionFacade
e.g.
|
void |
setTypeId(Long typeId)
Set TypeId for SectionType.
|
void |
updateData(SectionDataIfc data)
Call setDate() to update data in SectionFacade
|
protected org.osid.assessment.Section section
protected org.osid.shared.Id id
protected String description
protected SectionDataIfc data
protected org.osid.shared.Type sectionType
protected Long sectionId
protected Long assessmentId
protected AssessmentBaseIfc assessment
protected Integer duration
protected Integer sequence
protected String title
protected Long typeId
protected Integer status
protected String createdBy
protected Date createdDate
protected String lastModifiedBy
protected Date lastModifiedDate
protected Set itemSet
protected Set metaDataSet
protected HashMap metaDataMap
protected Set itemFacadeSet
protected Set sectionAttachmentSet
public SectionFacade()
public SectionFacade(SectionDataIfc data)
data - public SectionDataIfc getData()
public void updateData(SectionDataIfc data)
data - public void setData(SectionDataIfc data)
data - public Long getSectionId() throws DataFacadeException
getSectionId in interface SectionDataIfcDataFacadeExceptionpublic void setSectionId(Long sectionId)
setSectionId in interface SectionDataIfcsectionId - public Long getAssessmentId() throws DataFacadeException
getAssessmentId in interface SectionDataIfcDataFacadeExceptionpublic void setAssessmentId(Long assessmentId)
setAssessmentId in interface SectionDataIfcsectionId - public AssessmentIfc getAssessment() throws DataFacadeException
getAssessment in interface SectionDataIfcDataFacadeExceptionpublic void setAssessment(AssessmentIfc assessment)
setAssessment in interface SectionDataIfcpublic Integer getDuration() throws DataFacadeException
getDuration in interface SectionDataIfcDataFacadeExceptionpublic void setDuration(Integer duration)
setDuration in interface SectionDataIfcduration - public Integer getSequence() throws DataFacadeException
getSequence in interface SectionDataIfcDataFacadeExceptionpublic void setSequence(Integer sequence)
setSequence in interface SectionDataIfcpublic String getTitle() throws DataFacadeException
getTitle in interface SectionDataIfcDataFacadeExceptionpublic void setTitle(String title)
setTitle in interface SectionDataIfcinstruction - public String getDescription() throws DataFacadeException
getDescription in interface SectionDataIfcDataFacadeExceptionpublic void setDescription(String description)
setDescription in interface SectionDataIfcdescription - public Long getTypeId() throws DataFacadeException
getTypeId in interface SectionDataIfcDataFacadeExceptionpublic void setTypeId(Long typeId)
setTypeId in interface SectionDataIfctypeId - public Integer getStatus() throws DataFacadeException
getStatus in interface SectionDataIfcDataFacadeExceptionpublic void setStatus(Integer status)
setStatus in interface SectionDataIfcstatus - public String getCreatedBy() throws DataFacadeException
getCreatedBy in interface SectionDataIfcDataFacadeExceptionpublic void setCreatedBy(String createdBy)
setCreatedBy in interface SectionDataIfccreatedBy - public Date getCreatedDate() throws DataFacadeException
getCreatedDate in interface SectionDataIfcDataFacadeExceptionpublic void setCreatedDate(Date createdDate)
setCreatedDate in interface SectionDataIfccreatedDate - public String getLastModifiedBy() throws DataFacadeException
getLastModifiedBy in interface SectionDataIfcDataFacadeExceptionpublic void setLastModifiedBy(String lastModifiedBy)
setLastModifiedBy in interface SectionDataIfclastModifiedBy - public Date getLastModifiedDate() throws DataFacadeException
getLastModifiedDate in interface SectionDataIfcDataFacadeExceptionpublic void setLastModifiedDate(Date lastModifiedDate)
setLastModifiedDate in interface SectionDataIfclastModifiedBy - public Set getItemFacadeSet() throws DataFacadeException
DataFacadeExceptionpublic Set getItemSet() throws DataFacadeException
getItemSet in interface SectionDataIfcDataFacadeExceptionpublic void setItemSet(Set itemSet)
setItemSet in interface SectionDataIfcsectionTextSet - public Set getSectionMetaDataSet() throws DataFacadeException
getSectionMetaDataSet in interface SectionDataIfcDataFacadeExceptionpublic void setSectionMetaDataSet(Set metaDataSet)
setSectionMetaDataSet in interface SectionDataIfcmetaDataSet - public HashMap getSectionMetaDataMap(Set metaDataSet)
getSectionMetaDataMap in interface SectionDataIfcpublic void addItem(ItemFacade itemFacade)
public void addItem(ItemDataIfc itemDataIfc)
addItem in interface SectionDataIfcpublic String getSectionMetaDataByLabel(String label)
getSectionMetaDataByLabel in interface SectionDataIfcpublic void addSectionMetaData(String label, String entry)
addSectionMetaData in interface SectionDataIfclabel - entry - public TypeIfc getType()
getType in interface SectionDataIfcpublic TypeFacade getSectionTypeFacade()
public ArrayList getItemArray()
getItemArray in interface SectionDataIfcpublic ArrayList getItemArraySortedForGrading()
getItemArraySortedForGrading in interface SectionDataIfcpublic ArrayList getItemArraySorted()
public ArrayList getItemArraySortedWithRandom(long seed)
public int compareTo(Object o)
compareTo in interface Comparablepublic Set getSectionAttachmentSet() throws DataFacadeException
getSectionAttachmentSet in interface SectionDataIfcDataFacadeExceptionpublic void setSectionAttachmentSet(Set sectionAttachmentSet)
setSectionAttachmentSet in interface SectionDataIfcpublic List getSectionAttachmentList()
getSectionAttachmentList in interface SectionDataIfcCopyright © 2005-2014 Sakai Project. All Rights Reserved.