| org.sakaiproject.tool.assessment.facade.AssessmentFacadeQueries
Method Summary | |
public Long | addAssessment(Long assessmentTemplateId) | public SectionFacade | addSection(Long assessmentId) | public Long | addTemplate() | public boolean | assessmentTitleIsUnique(Long assessmentBaseId, String title, Boolean isTemplate) | public void | checkForQuestionPoolItem(AssessmentData assessment, HashMap qpItemHash) | public void | checkForQuestionPoolItem(SectionData section, HashMap qpItemHash) | public AssessmentData | cloneAssessmentFromTemplate(AssessmentTemplateData t) | public void | copyAllAssessments(String fromContext, String toContext) | public AssessmentFacade | createAssessment(String title, String description, Long typeId, Long templateId) | public AssessmentAttachmentIfc | createAssessmentAttachment(AssessmentIfc assessment, String resourceId, String filename, String protocol) | public 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. | public AttachmentData | createEmailAttachment(String resourceId, String filename, String protocol) | public ItemAttachmentIfc | createItemAttachment(ItemDataIfc item, String resourceId, String filename, String protocol) | public SectionAttachmentIfc | createSectionAttachment(SectionDataIfc section, String resourceId, String filename, String protocol) | public void | deleteAllMetaData(AssessmentBaseIfc t) | public void | deleteAllSecuredIP(AssessmentIfc assessment) | public void | deleteTemplate(Long templateId) | public ArrayList | getAllActiveAssessmentTemplates() | public ArrayList | getAllActiveAssessments(String orderBy) | public List | getAllActiveAssessmentsByAgent(String siteAgentId) | public ArrayList | getAllAssessmentTemplates() | public ArrayList | getAllAssessments(String orderBy) | public ArrayList | getAllAssessments(int pageSize, int pageNumber, String orderBy) | public AssessmentFacade | getAssessment(Long assessmentId) | public List | getAssessmentByTemplate(Long templateId) | public String | getAssessmentCreatedBy(String assessmentId) | public IdImpl | getAssessmentId(String id) | public IdImpl | getAssessmentId(Long id) | public IdImpl | getAssessmentId(long id) | public String | getAssessmentSiteId(String assessmentId) | public AssessmentTemplateFacade | getAssessmentTemplate(Long assessmentTemplateId) | public IdImpl | getAssessmentTemplateId(String id) | public IdImpl | getAssessmentTemplateId(Long id) | public IdImpl | getAssessmentTemplateId(long id) | public ArrayList | getBasicInfoOfAllActiveAssessmentTemplates(String orderBy) | public ArrayList | getBasicInfoOfAllActiveAssessments(String orderBy, boolean ascending) | public ArrayList | getBasicInfoOfAllActiveAssessmentsByAgent(String orderBy, String siteAgentId, boolean ascending) | public ArrayList | getBasicInfoOfAllActiveAssessmentsByAgent(String orderBy, String siteAgentId) | public AssessmentFacade | getBasicInfoOfAnAssessment(Long assessmentId) | public List | getDefaultMetaDataSet() | public IdImpl | getId(String id) | public IdImpl | getId(Long id) | public IdImpl | getId(long id) | public int | getQuestionSize(Long assessmentId) | public String | getRelativePath(String url, String protocol) | public SectionFacade | getSection(Long sectionId) | public ArrayList | getSettingsOfAllActiveAssessments(String orderBy) | public ArrayList | getTitleOfAllActiveAssessmentTemplates() a list of AssessmentTemplateFacade. | public AssessmentBaseData | load(Long id) | public AssessmentData | loadAssessment(Long assessmentId) | public SectionData | loadSection(Long sectionId) | public AssessmentTemplateData | loadTemplate(Long assessmentTemplateId) | public static void | main(String[] args) | public void | moveAllItems(Long sourceSectionId, Long destSectionId) | public Set | prepareAnswerFeedbackSet(Answer newAnswer, Set answerFeedbackSet) | public Set | prepareAnswerSet(ItemText newItemText, Set answerSet) | public AssessmentData | prepareAssessment(AssessmentData a, String protocol) | public AssessmentAccessControl | prepareAssessmentAccessControl(AssessmentData p, AssessmentAccessControl a) | public Set | prepareAssessmentAttachmentSet(AssessmentData newAssessment, Set assessmentAttachmentSet, String protocol) | public AssessmentFeedback | prepareAssessmentFeedback(AssessmentData p, AssessmentFeedback a) | public Set | prepareAssessmentMetaDataSet(AssessmentData p, Set metaDataSet) | public EvaluationModel | prepareEvaluationModel(AssessmentData p, EvaluationModel e) | public Set | prepareItemAttachmentSet(ItemData newItem, Set itemAttachmentSet, String protocol) | public Set | prepareItemFeedbackSet(ItemData newItem, Set itemFeedbackSet) | public Set | prepareItemMetaDataSet(ItemData newItem, Set itemMetaDataSet) | public Set | prepareItemSet(SectionData newSection, Set itemSet, String protocol) | public Set | prepareItemTextSet(ItemData newItem, Set itemTextSet) | public Set | prepareSectionAttachmentSet(SectionData newSection, Set sectionAttachmentSet, String protocol) | public Set | prepareSectionMetaDataSet(SectionData newSection, Set metaDataSet) | public Set | prepareSectionSet(AssessmentData newAssessment, Set sectionSet, String protocol) | public Set | prepareSecuredIPSet(AssessmentData p, Set ipSet) | public static void | print(AssessmentBaseData a) | public static void | printFacade(AssessmentTemplateFacade a) | public void | removeAllItems(Long sourceSectionId) | public void | removeAssessment(Long assessmentId) | public void | removeAssessmentAttachment(Long assessmentAttachmentId) | public void | removeItemAttachment(Long itemAttachmentId) | public void | removeSection(Long sectionId) | public void | removeSectionAttachment(Long sectionAttachmentId) | public void | removeTemplate(Long assessmentId) | public void | saveOrUpdate(AssessmentFacade assessment) | public void | saveOrUpdate(AssessmentTemplateData template) | public void | saveOrUpdateAttachments(List list) | public void | saveOrUpdateSection(SectionFacade section) | public void | updateAssessmentLastModifiedInfo(AssessmentFacade assessmentFacade) |
LASTMODIFIEDDATE | final public static String LASTMODIFIEDDATE(Code) | | |
AssessmentFacadeQueries | public AssessmentFacadeQueries()(Code) | | |
addAssessment | public Long addAssessment(Long assessmentTemplateId)(Code) | | |
assessmentTitleIsUnique | public boolean assessmentTitleIsUnique(Long assessmentBaseId, String title, Boolean isTemplate)(Code) | | |
copyAllAssessments | public void copyAllAssessments(String fromContext, String toContext)(Code) | | |
createAssessmentWithoutDefaultSection | public AssessmentFacade createAssessmentWithoutDefaultSection(String title, String description, Long typeId, Long templateId) throws Exception(Code) | | This method is the same as createAssessment() except that no default
section will be created with the assessment.
|
deleteTemplate | public void deleteTemplate(Long templateId)(Code) | | |
getAllActiveAssessmentTemplates | public ArrayList getAllActiveAssessmentTemplates()(Code) | | |
getAllActiveAssessmentsByAgent | public List getAllActiveAssessmentsByAgent(String siteAgentId)(Code) | | |
getAllAssessmentTemplates | public ArrayList getAllAssessmentTemplates()(Code) | | |
getAssessmentByTemplate | public List getAssessmentByTemplate(Long templateId)(Code) | | |
getAssessmentTemplateId | public IdImpl getAssessmentTemplateId(long id)(Code) | | |
getBasicInfoOfAllActiveAssessmentTemplates | public ArrayList getBasicInfoOfAllActiveAssessmentTemplates(String orderBy)(Code) | | |
getBasicInfoOfAllActiveAssessments | public ArrayList getBasicInfoOfAllActiveAssessments(String orderBy, boolean ascending)(Code) | | |
getBasicInfoOfAllActiveAssessmentsByAgent | public ArrayList getBasicInfoOfAllActiveAssessmentsByAgent(String orderBy, String siteAgentId, boolean ascending)(Code) | | |
getBasicInfoOfAllActiveAssessmentsByAgent | public ArrayList getBasicInfoOfAllActiveAssessmentsByAgent(String orderBy, String siteAgentId)(Code) | | |
getDefaultMetaDataSet | public List getDefaultMetaDataSet()(Code) | | |
getQuestionSize | public int getQuestionSize(Long assessmentId)(Code) | | |
getSettingsOfAllActiveAssessments | public ArrayList getSettingsOfAllActiveAssessments(String orderBy)(Code) | | |
getTitleOfAllActiveAssessmentTemplates | public ArrayList getTitleOfAllActiveAssessmentTemplates()(Code) | | a list of AssessmentTemplateFacade. However, it is IMPORTANT tonote that it is not a full object, it contains merelyassessmentBaseId (which is the templateId) & title. This methodsis used when a list of template titles is required for displayingpurposes. In Sakai2.0, template are scoped by creator, i.e. userscan only see their own template plus the "Default Template" |
moveAllItems | public void moveAllItems(Long sourceSectionId, Long destSectionId)(Code) | | This method move a set of questions form one section to another
Parameters: sourceSectionId - Parameters: destSectionId - |
prepareAnswerFeedbackSet | public Set prepareAnswerFeedbackSet(Answer newAnswer, Set answerFeedbackSet)(Code) | | |
prepareItemFeedbackSet | public Set prepareItemFeedbackSet(ItemData newItem, Set itemFeedbackSet)(Code) | | |
prepareItemMetaDataSet | public Set prepareItemMetaDataSet(ItemData newItem, Set itemMetaDataSet)(Code) | | |
removeAllItems | public void removeAllItems(Long sourceSectionId)(Code) | | This method remove a set of questions form one section that is random
draw
Parameters: sourceSectionId - |
removeAssessment | public void removeAssessment(Long assessmentId)(Code) | | |
removeAssessmentAttachment | public void removeAssessmentAttachment(Long assessmentAttachmentId)(Code) | | |
removeItemAttachment | public void removeItemAttachment(Long itemAttachmentId)(Code) | | |
removeSection | public void removeSection(Long sectionId)(Code) | | |
removeSectionAttachment | public void removeSectionAttachment(Long sectionAttachmentId)(Code) | | |
removeTemplate | public void removeTemplate(Long assessmentId)(Code) | | |
saveOrUpdateAttachments | public void saveOrUpdateAttachments(List list)(Code) | | |
updateAssessmentLastModifiedInfo | public void updateAssessmentLastModifiedInfo(AssessmentFacade assessmentFacade)(Code) | | |
|
|