org.sakaiproject.tool.assessment.facade
Interface AssessmentFacadeQueriesAPI

All Known Implementing Classes:
AssessmentFacadeQueries

public interface AssessmentFacadeQueriesAPI


Method Summary
 Long addAssessment(Long assessmentTemplateId)
           
 SectionFacade addSection(Long assessmentId)
           
 Long addTemplate()
           
 boolean assessmentTitleIsUnique(Long assessmentBaseId, String title, Boolean isTemplate)
           
 void checkForQuestionPoolItem(AssessmentData assessment, HashMap qpItemHash)
           
 void checkForQuestionPoolItem(SectionData section, HashMap qpItemHash)
           
 AssessmentData cloneAssessmentFromTemplate(AssessmentTemplateData t)
           
 AssessmentFacade createAssessment(String title, String description, Long typeId, Long templateId)
           
 AssessmentFacade createAssessmentWithoutDefaultSection(String title, String description, Long typeId, Long templateId)
          This method is the same as createAssessment() except that no default section will be created with the assessment.
 void deleteTemplate(Long templateId)
           
 ArrayList getAllActiveAssessments(String orderBy)
           
 ArrayList getAllActiveAssessmentTemplates()
           
 ArrayList getAllAssessments(int pageSize, int pageNumber, String orderBy)
           
 ArrayList getAllAssessments(String orderBy)
           
 ArrayList getAllAssessmentTemplates()
           
 AssessmentFacade getAssessment(Long assessmentId)
           
 List getAssessmentByTemplate(Long templateId)
           
 IdImpl getAssessmentId(long id)
           
 IdImpl getAssessmentId(Long id)
           
 IdImpl getAssessmentId(String id)
           
 AssessmentTemplateFacade getAssessmentTemplate(Long assessmentTemplateId)
           
 IdImpl getAssessmentTemplateId(long id)
           
 IdImpl getAssessmentTemplateId(Long id)
           
 IdImpl getAssessmentTemplateId(String id)
           
 ArrayList getBasicInfoOfAllActiveAssessments(String orderBy, boolean ascending)
           
 ArrayList getBasicInfoOfAllActiveAssessmentsByAgent(String orderBy, String siteAgentId)
           
 ArrayList getBasicInfoOfAllActiveAssessmentsByAgent(String orderBy, String siteAgentId, boolean ascending)
           
 ArrayList getBasicInfoOfAllActiveAssessmentTemplates(String orderBy)
           
 AssessmentFacade getBasicInfoOfAnAssessment(Long assessmentId)
           
 List getDefaultMetaDataSet()
           
 IdImpl getId(long id)
           
 IdImpl getId(Long id)
           
 IdImpl getId(String id)
           
 int getQuestionSize(Long assessmentId)
           
 SectionFacade getSection(Long sectionId)
           
 ArrayList getSettingsOfAllActiveAssessments(String orderBy)
           
 ArrayList getTitleOfAllActiveAssessmentTemplates()
           
 AssessmentBaseData load(Long id)
           
 AssessmentData loadAssessment(Long assessmentId)
           
 SectionData loadSection(Long sectionId)
           
 AssessmentTemplateData loadTemplate(Long assessmentTemplateId)
           
 void moveAllItems(Long sourceSectionId, Long destSectionId)
          This method move a set of questions form one section to another
 void removeAllItems(Long sourceSectionId)
           
 void removeAssessment(Long assessmentId)
           
 void removeSection(Long sectionId)
           
 void removeTemplate(Long assessmentId)
           
 void saveOrUpdate(AssessmentFacade assessment)
           
 void saveOrUpdate(AssessmentTemplateData template)
           
 void saveOrUpdateSection(SectionFacade section)
           
 

Method Detail

getId

public IdImpl getId(String id)

getId

public IdImpl getId(Long id)

getId

public IdImpl getId(long id)

getAssessmentId

public IdImpl getAssessmentId(String id)

getAssessmentId

public IdImpl getAssessmentId(Long id)

getAssessmentId

public IdImpl getAssessmentId(long id)

getAssessmentTemplateId

public IdImpl getAssessmentTemplateId(String id)

getAssessmentTemplateId

public IdImpl getAssessmentTemplateId(Long id)

getAssessmentTemplateId

public IdImpl getAssessmentTemplateId(long id)

addTemplate

public Long addTemplate()

removeTemplate

public void removeTemplate(Long assessmentId)

addAssessment

public Long addAssessment(Long assessmentTemplateId)

load

public AssessmentBaseData load(Long id)

loadTemplate

public AssessmentTemplateData loadTemplate(Long assessmentTemplateId)

loadAssessment

public AssessmentData loadAssessment(Long assessmentId)

getAssessmentTemplate

public AssessmentTemplateFacade getAssessmentTemplate(Long assessmentTemplateId)

getAllAssessmentTemplates

public ArrayList getAllAssessmentTemplates()

getAllActiveAssessmentTemplates

public ArrayList getAllActiveAssessmentTemplates()

getTitleOfAllActiveAssessmentTemplates

public ArrayList getTitleOfAllActiveAssessmentTemplates()
Returns:
a list of AssessmentTemplateFacade. However, it is IMPORTANT to note that it is not a full object, it contains merely assessmentBaseId (which is the templateId) & title. This methods is used when a list of template titles is required for displaying purposes.

getAssessment

public AssessmentFacade getAssessment(Long assessmentId)

removeAssessment

public void removeAssessment(Long assessmentId)

cloneAssessmentFromTemplate

public AssessmentData cloneAssessmentFromTemplate(AssessmentTemplateData t)

createAssessmentWithoutDefaultSection

public AssessmentFacade createAssessmentWithoutDefaultSection(String title,
                                                              String description,
                                                              Long typeId,
                                                              Long templateId)
                                                       throws Exception
This method is the same as createAssessment() except that no default section will be created with the assessment.

Throws:
Exception

createAssessment

public AssessmentFacade createAssessment(String title,
                                         String description,
                                         Long typeId,
                                         Long templateId)
                                  throws Exception
Throws:
Exception

getAllAssessments

public ArrayList getAllAssessments(String orderBy)

getAllActiveAssessments

public ArrayList getAllActiveAssessments(String orderBy)

getBasicInfoOfAllActiveAssessments

public ArrayList getBasicInfoOfAllActiveAssessments(String orderBy,
                                                    boolean ascending)

getBasicInfoOfAllActiveAssessmentsByAgent

public ArrayList getBasicInfoOfAllActiveAssessmentsByAgent(String orderBy,
                                                           String siteAgentId,
                                                           boolean ascending)

getBasicInfoOfAllActiveAssessmentsByAgent

public ArrayList getBasicInfoOfAllActiveAssessmentsByAgent(String orderBy,
                                                           String siteAgentId)

getBasicInfoOfAnAssessment

public AssessmentFacade getBasicInfoOfAnAssessment(Long assessmentId)

getSettingsOfAllActiveAssessments

public ArrayList getSettingsOfAllActiveAssessments(String orderBy)

getAllAssessments

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

getQuestionSize

public int getQuestionSize(Long assessmentId)

saveOrUpdate

public void saveOrUpdate(AssessmentFacade assessment)

saveOrUpdate

public void saveOrUpdate(AssessmentTemplateData template)

deleteTemplate

public void deleteTemplate(Long templateId)

addSection

public SectionFacade addSection(Long assessmentId)

getSection

public SectionFacade getSection(Long sectionId)

removeSection

public void removeSection(Long sectionId)

loadSection

public SectionData loadSection(Long sectionId)

saveOrUpdateSection

public void saveOrUpdateSection(SectionFacade section)

moveAllItems

public void moveAllItems(Long sourceSectionId,
                         Long destSectionId)
This method move a set of questions form one section to another

Parameters:
sourceSectionId -
destSectionId -

getBasicInfoOfAllActiveAssessmentTemplates

public ArrayList getBasicInfoOfAllActiveAssessmentTemplates(String orderBy)

checkForQuestionPoolItem

public void checkForQuestionPoolItem(AssessmentData assessment,
                                     HashMap qpItemHash)

checkForQuestionPoolItem

public void checkForQuestionPoolItem(SectionData section,
                                     HashMap qpItemHash)

removeAllItems

public void removeAllItems(Long sourceSectionId)

assessmentTitleIsUnique

public boolean assessmentTitleIsUnique(Long assessmentBaseId,
                                       String title,
                                       Boolean isTemplate)

getAssessmentByTemplate

public List getAssessmentByTemplate(Long templateId)

getDefaultMetaDataSet

public List getDefaultMetaDataSet()