public String getOwnerDisplayName() { String ownerIdString = this.getOwnerId(); String ownerDisplayName= AgentFacade.getDisplayName(ownerIdString); return ownerDisplayName; }
public PublishedAssessmentFacade getSettingsOfPublishedAssessment(Long assessmentId) { PublishedAssessmentData a = loadPublishedAssessment(assessmentId); Boolean loadSection = Boolean.FALSE; PublishedAssessmentFacade f = new PublishedAssessmentFacade(a, loadSection); return f; }
public AssessmentFacade(Long id, String title, Date lastModifiedDate, Date startDate, Date dueDate, String releaseTo, Map releaseToGroups, String lastModifiedBy, int questionSize) { // in the case of template assessmentBaseId is the assessmentTemplateId super.setAssessmentBaseId(id); super.setTitle(title); super.setLastModifiedDate(lastModifiedDate); super.setLastModifiedBy(lastModifiedBy); this.questionSize = questionSize; this.startDate = startDate; this.dueDate = dueDate; this.releaseTo = releaseTo; this.releaseToGroups = releaseToGroups; setGroupCount(); }
/** * Set Correct Feedback * @param text */ public void setCorrectItemFeedback(String text) { removeFeedbackByType(ItemFeedbackIfc.CORRECT_FEEDBACK); addItemFeedback(ItemFeedbackIfc.CORRECT_FEEDBACK, text); }
/** * to take account of difference in obtaining question count * between randomized and non-randomized questions */ public Integer getPublishedItemCount(final Long publishedAssessmentId) { return getPublishedItemCountForNonRandomSections(publishedAssessmentId) + getPublishedItemCountForRandomSections(publishedAssessmentId); }
/** * This method returns a Hashmap (Long typeId, TypeFacade typeFacade) * with the specified authority and domain. * @param authority * @param domain * @return HashMap */ public Map getHashMapByAuthorityDomain(String authority, String domain) { List typeList = getListByAuthorityDomain(authority, domain); return createTypeFacadeMapById(typeList); }
/** * This method returns a HashMap (Long typeId, TypeFacade typeFacade) * containing all the TypeFacade available * @return HashMap */ private Map<Long, TypeFacade> getMapForAllTypes() { List<TypeD> typeList = getAllTypes(); return createTypeFacadeMapById(typeList); }
/** * Get Correct Feedback * @return */ public String getCorrectItemFeedback() { return getItemFeedback(ItemFeedbackIfc.CORRECT_FEEDBACK); }
/** * Get the current user's Eid. * Static convenience method. * @return the eid. */ public static String getEid() { AgentFacade facade =new AgentFacade(); return facade.eid; }
/** * set the typeFacadeMap for TypeFacadeQueries */ public void setTypeFacadeMap(){ this.typeFacadeMap = getMapForAllTypes(); }
/** * @param publishedId * @param which * @return */ public List<AssessmentGradingData> getTotalScores(final String publishedId, String which) { return getTotalScores(publishedId, which, true); }
/** * Call setDate() to update data in ItemFacade * @param data */ public void updateData(QuestionPoolDataIfc data) { setData(data); }
private void setQuestionPoolType(TypeIfc questionPoolType) throws DataFacadeException { this.questionPoolType = questionPoolType; setType(questionPoolType); }
public String getOwnerDisplayName() { String ownerIdString = this.getOwnerId(); String ownerDisplayName= AgentFacade.getDisplayName(ownerIdString); return ownerDisplayName; }
public PublishedAssessmentFacade getSettingsOfPublishedAssessment(Long assessmentId) { PublishedAssessmentData a = loadPublishedAssessment(assessmentId); Boolean loadSection = Boolean.FALSE; PublishedAssessmentFacade f = new PublishedAssessmentFacade(a, loadSection); return f; }
/** * Set InCorrect Feedback * @param text */ public void setInCorrectItemFeedback(String text) { removeFeedbackByType(ItemFeedbackIfc.INCORRECT_FEEDBACK); addItemFeedback(ItemFeedbackIfc.INCORRECT_FEEDBACK, text); }
/** * Get Incorrect Feedback * @return */ public String getInCorrectItemFeedback() { return getItemFeedback(ItemFeedbackIfc.INCORRECT_FEEDBACK); }
/** * Get the agent string. * Static convenience method. * @return the agent string. */ public static String getAgentString() { AgentFacade facade =new AgentFacade(); return facade.agentString; }
/** * Get General Feedback * @return */ public String getGeneralItemFeedback() { return getItemFeedback(ItemFeedbackIfc.GENERAL_FEEDBACK); }