org.sakaiproject.tool.assessment.shared.api.assessment
Interface AssessmentServiceAPI

All Known Implementing Classes:
AssessmentServiceImpl

public interface AssessmentServiceAPI

The AssessmentServiceAPI declares a shared interface to get/set assessment information.

Author:
Ed Smiley

Method Summary
 SectionDataIfc addSection(String assessmentId)
           
 AssessmentIfc createAssessment(String title, String description, String typeId, String templateId)
           
 AssessmentIfc createAssessmentWithoutDefaultSection(String title, String description, String typeId, String templateId)
           
 void deleteAssessmentTemplate(Long assessmentId)
           
 List getAllActiveAssessments(String orderBy)
           
 List getAllActiveAssessmentTemplates()
           
 List getAllAssessments(int pageSize, int pageNumber, String orderBy)
           
 List getAllAssessments(String orderBy)
           
 List getAllAssessmentTemplates()
           
 AssessmentIfc getAssessment(String assessmentId)
           
 AssessmentTemplateIfc getAssessmentTemplate(String assessmentTemplateId)
           
 List getBasicInfoOfAllActiveAssessments(String orderBy)
           
 List getBasicInfoOfAllActiveAssessments(String orderBy, boolean ascending)
           
 List getBasicInfoOfAllActiveAssessmentTemplates(String orderBy)
           
 AssessmentIfc getBasicInfoOfAnAssessment(String assessmentId)
           
 int getQuestionSize(String assessmentId)
           
 SectionDataIfc getSection(String sectionId)
           
 List getSettingsOfAllActiveAssessments(String orderBy)
           
 List getTitleOfAllActiveAssessmentTemplates()
           
 void moveAllItems(String sourceSectionId, String destSectionId)
           
 void removeAllItems(String sourceSectionId)
           
 void removeAssessment(String assessmentId)
           
 void removeSection(String sectionId)
           
 void save(AssessmentTemplateIfc template)
           
 void saveAssessment(AssessmentIfc assessment)
           
 void saveOrUpdateSection(SectionDataIfc section)
           
 void update(AssessmentIfc assessment)
           
 

Method Detail

getAssessmentTemplate

public AssessmentTemplateIfc getAssessmentTemplate(String assessmentTemplateId)

getAssessment

public AssessmentIfc getAssessment(String assessmentId)

getBasicInfoOfAnAssessment

public AssessmentIfc getBasicInfoOfAnAssessment(String assessmentId)

getAllAssessmentTemplates

public List getAllAssessmentTemplates()

getAllActiveAssessmentTemplates

public List getAllActiveAssessmentTemplates()

getTitleOfAllActiveAssessmentTemplates

public List getTitleOfAllActiveAssessmentTemplates()

getAllAssessments

public List getAllAssessments(String orderBy)

getAllActiveAssessments

public List getAllActiveAssessments(String orderBy)

getSettingsOfAllActiveAssessments

public List getSettingsOfAllActiveAssessments(String orderBy)

getBasicInfoOfAllActiveAssessments

public List getBasicInfoOfAllActiveAssessments(String orderBy,
                                               boolean ascending)

getBasicInfoOfAllActiveAssessments

public List getBasicInfoOfAllActiveAssessments(String orderBy)

getAllAssessments

public List getAllAssessments(int pageSize,
                              int pageNumber,
                              String orderBy)

createAssessment

public AssessmentIfc createAssessment(String title,
                                      String description,
                                      String typeId,
                                      String templateId)

getQuestionSize

public int getQuestionSize(String assessmentId)

update

public void update(AssessmentIfc assessment)

save

public void save(AssessmentTemplateIfc template)

saveAssessment

public void saveAssessment(AssessmentIfc assessment)

deleteAssessmentTemplate

public void deleteAssessmentTemplate(Long assessmentId)

removeAssessment

public void removeAssessment(String assessmentId)

addSection

public SectionDataIfc addSection(String assessmentId)

removeSection

public void removeSection(String sectionId)

getSection

public SectionDataIfc getSection(String sectionId)

saveOrUpdateSection

public void saveOrUpdateSection(SectionDataIfc section)

moveAllItems

public void moveAllItems(String sourceSectionId,
                         String destSectionId)

removeAllItems

public void removeAllItems(String sourceSectionId)

getBasicInfoOfAllActiveAssessmentTemplates

public List getBasicInfoOfAllActiveAssessmentTemplates(String orderBy)

createAssessmentWithoutDefaultSection

public AssessmentIfc createAssessmentWithoutDefaultSection(String title,
                                                           String description,
                                                           String typeId,
                                                           String templateId)