/** * * @param pdescription the description for the question pool * @throws DataFacadeException */ public void updateDescription(String description) throws DataFacadeException { setDescription(description); }
/** * * @param pdescription the description for the question pool * @throws DataFacadeException */ public void updateDescription(String description) throws DataFacadeException { setDescription(description); }
/** * Update questionpool from the extracted properties. * Note: you need to do a save when you are done. * @param questionpool, which will be persisted * @param assessmentMap, the extracted properties */ public void updateQuestionPool(QuestionPoolFacade questionpool, Map assessmentMap) { String title = ((String)assessmentMap.get("title")); questionpool.setDescription((String)assessmentMap.get("description")); //questionpool.setLastModifiedById("Sakai Import"); questionpool.setLastModified(new Date()); // note: currently dateCreated field not in use //questionpool.setDateCreated(new Date()); questionpool.setOrganizationName((String)assessmentMap.get("ASSESSMENT_ORGANIZATIONNAME")); questionpool.setObjectives((String)assessmentMap.get("ASSESSMENT_OBJECTIVES")); questionpool.setKeywords((String)assessmentMap.get("ASSESSMENT_KEYWORDS")); questionpool.setRubric((String)assessmentMap.get("ASSESSMENT_RUBRICS")); questionpool.setIntellectualPropertyId((Long)assessmentMap.get("INTELLECTUALPROPERTYID")); log.debug("QPOOL ASSESSMENT updating metadata information"); }
/** * Update questionpool from the extracted properties. * Note: you need to do a save when you are done. * @param questionpool, which will be persisted * @param assessmentMap, the extracted properties */ public void updateQuestionPool(QuestionPoolFacade questionpool, Map assessmentMap) { String title = ((String)assessmentMap.get("title")); questionpool.setDescription((String)assessmentMap.get("description")); //questionpool.setLastModifiedById("Sakai Import"); questionpool.setLastModified(new Date()); // note: currently dateCreated field not in use //questionpool.setDateCreated(new Date()); questionpool.setOrganizationName((String)assessmentMap.get("ASSESSMENT_ORGANIZATIONNAME")); questionpool.setObjectives((String)assessmentMap.get("ASSESSMENT_OBJECTIVES")); questionpool.setKeywords((String)assessmentMap.get("ASSESSMENT_KEYWORDS")); questionpool.setRubric((String)assessmentMap.get("ASSESSMENT_RUBRICS")); questionpool.setIntellectualPropertyId((Long)assessmentMap.get("INTELLECTUALPROPERTYID")); log.debug("QPOOL ASSESSMENT updating metadata information"); }
pool.setOwnerId(SessionManager.getCurrentSessionUserId()); pool.setTitle(importPool.getTitle()); pool.setDescription(importPool.getDescription());
destinationPool.setOwnerId(SessionManager.getCurrentSessionUserId()); destinationPool.setTitle(sourcePool.getTitle()); destinationPool.setDescription(sourcePool.getDescription());