Index: lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/service/NoticeboardServicePOJO.java =================================================================== diff -u -r4aae0391a4892385de3df761a655e0ab8b1c0183 -rd85446887b504b9f49585c11695ef67e6052edd9 --- lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/service/NoticeboardServicePOJO.java (.../NoticeboardServicePOJO.java) (revision 4aae0391a4892385de3df761a655e0ab8b1c0183) +++ lams_tool_nb/src/java/org/lamsfoundation/lams/tool/noticeboard/service/NoticeboardServicePOJO.java (.../NoticeboardServicePOJO.java) (revision d85446887b504b9f49585c11695ef67e6052edd9) @@ -1072,11 +1072,19 @@ nbContentDAO.saveNbContent(toolContentObj); } - /** Set the reflective title - does nothing as Noticeboard is not reflective */ - public void setReflectiveData(Long toolContentId, String title, String defaultInputValues) + /** Set the description, throws away the title value as this is not supported in 2.0 */ + public void setReflectiveData(Long toolContentId, String title, String description) throws ToolException, DataMissingException { - log.error("Was asked to set reflective data "+title+" to activity toolContentId "+toolContentId - +". Noticeboard does not support reflection"); + + NoticeboardContent toolContentObj = retrieveNoticeboard(toolContentId); + if ( toolContentObj == null ) { + throw new DataMissingException("Unable to set reflective data titled "+title + +" on activity toolContentId "+toolContentId + +" as the tool content does not exist."); + } + + toolContentObj.setReflectOnActivity(Boolean.TRUE); + toolContentObj.setReflectInstructions(description); } //=========================================================================================