public class AssessmentServiceImpl extends Object implements AssessmentServiceAPI
| Constructor and Description |
|---|
AssessmentServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
SectionDataIfc |
addSection(String assessmentId)
Add a section to an assessment.
|
AssessmentIfc |
createAssessment(String title,
String description,
String typeId,
String templateId)
Create an assessment.
|
AssessmentIfc |
createAssessmentWithoutDefaultSection(String title,
String description,
String typeId,
String templateId)
Create an assessment without a default section.
|
void |
deleteAssessmentTemplate(Long assessmentId)
Delete an assessment template from an assessment.
|
List |
getAllActiveAssessments(String orderBy)
Get all active assessments.
|
List |
getAllActiveAssessmentTemplates()
Get a list of all active assessment templates.
|
List |
getAllAssessments(int pageSize,
int pageNumber,
String orderBy)
Get list of all active assessments.
|
List |
getAllAssessments(String orderBy)
Get an ordered list of assessments.
|
List |
getAllAssessmentTemplates()
Get a list of assessment templates.
|
AssessmentIfc |
getAssessment(String assessmentId)
Get assessment from id string.
|
AssessmentTemplateIfc |
getAssessmentTemplate(String assessmentTemplateId)
Get assessment template from id string.
|
List |
getBasicInfoOfAllActiveAssessments(String orderBy)
Get list of all active assessments with only basic info populated.
|
List |
getBasicInfoOfAllActiveAssessments(String orderBy,
boolean ascending)
Get list of all active assessments with only basic info populated.
|
List |
getBasicInfoOfAllActiveAssessmentTemplates(String orderBy)
Get list of all active assessment templates with only basic info populated.
|
AssessmentIfc |
getBasicInfoOfAnAssessment(String assessmentId)
Get an assessment with only basic info populated..
|
int |
getQuestionSize(String assessmentId)
Get number of questions.
|
SectionDataIfc |
getSection(String sectionId)
Get a section.
|
List |
getSettingsOfAllActiveAssessments(String orderBy)
Get list of all active assessment's settings.
|
List |
getTitleOfAllActiveAssessmentTemplates()
Get a list of all the assessment template titles.
|
void |
moveAllItems(String sourceSectionId,
String destSectionId)
Move items between sections.
|
void |
removeAllItems(String sourceSectionId)
Remove all items from a section.
|
void |
removeAssessment(String assessmentId)
Remove the assessment.
|
void |
removeSection(String sectionId)
Remove a section.
|
void |
save(AssessmentTemplateIfc template) |
void |
saveAssessment(AssessmentIfc assessment)
Save an assessment.
|
void |
saveOrUpdateSection(SectionDataIfc section)
Perform persistence saveOrUpdate on section.
|
void |
update(AssessmentIfc assessment)
Update an assessment coupled to the persistence layer
|
public AssessmentTemplateIfc getAssessmentTemplate(String assessmentTemplateId)
getAssessmentTemplate in interface AssessmentServiceAPIassessmentTemplateId - public AssessmentIfc getAssessment(String assessmentId)
getAssessment in interface AssessmentServiceAPIassessmentId - public AssessmentIfc getBasicInfoOfAnAssessment(String assessmentId)
getBasicInfoOfAnAssessment in interface AssessmentServiceAPIassessmentId - teh assessment id string.public List getAllAssessmentTemplates()
getAllAssessmentTemplates in interface AssessmentServiceAPIpublic List getAllActiveAssessmentTemplates()
getAllActiveAssessmentTemplates in interface AssessmentServiceAPIpublic List getTitleOfAllActiveAssessmentTemplates()
getTitleOfAllActiveAssessmentTemplates in interface AssessmentServiceAPIpublic List getAllAssessments(String orderBy)
getAllAssessments in interface AssessmentServiceAPIorderBy - sort order field.public List getAllActiveAssessments(String orderBy)
getAllActiveAssessments in interface AssessmentServiceAPIorderBy - sort order field.public List getSettingsOfAllActiveAssessments(String orderBy)
getSettingsOfAllActiveAssessments in interface AssessmentServiceAPIorderBy - sort order field.public List getBasicInfoOfAllActiveAssessments(String orderBy, boolean ascending)
getBasicInfoOfAllActiveAssessments in interface AssessmentServiceAPIorderBy - ascending - ascending sort if trueorderBy - sort order field.public List getBasicInfoOfAllActiveAssessments(String orderBy)
getBasicInfoOfAllActiveAssessments in interface AssessmentServiceAPIorderBy - orderBy - sort order field.public List getAllAssessments(int pageSize, int pageNumber, String orderBy)
getAllAssessments in interface AssessmentServiceAPIorderBy - pageSize - number in a pagepageNumber - number of the pageorderBy - sort order field.public AssessmentIfc createAssessment(String title, String description, String typeId, String templateId)
createAssessment in interface AssessmentServiceAPItitle - the titledescription - the descriptiontypeId - the type idtemplateId - the template's template idpublic int getQuestionSize(String assessmentId)
getQuestionSize in interface AssessmentServiceAPIassessmentId - the assessment id string.public void update(AssessmentIfc assessment)
update in interface AssessmentServiceAPIassessment - the assessment interface of the POJOpublic void save(AssessmentTemplateIfc template)
save in interface AssessmentServiceAPIpublic void saveAssessment(AssessmentIfc assessment)
saveAssessment in interface AssessmentServiceAPIassessment - the assessment.public void deleteAssessmentTemplate(Long assessmentId)
deleteAssessmentTemplate in interface AssessmentServiceAPIassessmentId - the assessment id of the assessment.public void removeAssessment(String assessmentId)
removeAssessment in interface AssessmentServiceAPIassessmentId - the assessment id string.public SectionDataIfc addSection(String assessmentId)
addSection in interface AssessmentServiceAPIassessmentId - the assessment id string.public void removeSection(String sectionId)
removeSection in interface AssessmentServiceAPIsectionId - its id.public SectionDataIfc getSection(String sectionId)
getSection in interface AssessmentServiceAPIsectionId - the section id string.public void saveOrUpdateSection(SectionDataIfc section)
saveOrUpdateSection in interface AssessmentServiceAPIsection - the section.public void moveAllItems(String sourceSectionId, String destSectionId)
moveAllItems in interface AssessmentServiceAPIsourceSectionId - source id.destSectionId - destination id.public void removeAllItems(String sourceSectionId)
removeAllItems in interface AssessmentServiceAPIsourceSectionId - the section id string.public List getBasicInfoOfAllActiveAssessmentTemplates(String orderBy)
getBasicInfoOfAllActiveAssessmentTemplates in interface AssessmentServiceAPIorderBy - public AssessmentIfc createAssessmentWithoutDefaultSection(String title, String description, String typeId, String templateId)
createAssessmentWithoutDefaultSection in interface AssessmentServiceAPItitle - description - typeId - templateId - Copyright © 2003–2020 Sakai Project. All rights reserved.