Index: lams_tool_sbmt/build.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_sbmt/build.properties,v diff -u -r1.11.2.1 -r1.11.2.2 --- lams_tool_sbmt/build.properties 12 Mar 2007 05:14:17 -0000 1.11.2.1 +++ lams_tool_sbmt/build.properties 19 Apr 2007 01:25:27 -0000 1.11.2.2 @@ -11,7 +11,7 @@ tool.version=20070227 # Minimum compatible version -min.server.version.number=2.0.200612051427 +min.server.version.number=2.0.2.200704181605 #submit files package definition sbmt.package=org.lamsfoundation.lams.tool.sbmt Index: lams_tool_scribe/build.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scribe/build.properties,v diff -u -r1.1.2.2 -r1.1.2.3 --- lams_tool_scribe/build.properties 26 Mar 2007 06:09:40 -0000 1.1.2.2 +++ lams_tool_scribe/build.properties 19 Apr 2007 01:26:38 -0000 1.1.2.3 @@ -13,7 +13,7 @@ weblib=lib # Minimum compatible version -min.server.version.number=2.0.200612051427 +min.server.version.number=2.0.2.200704181605 # Language files package language.files.package=org.lamsfoundation.lams.tool.scribe Index: lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/service/ScribeService.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/service/ScribeService.java,v diff -u -r1.15 -r1.15.2.1 --- lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/service/ScribeService.java 2 Nov 2006 00:02:25 -0000 1.15 +++ lams_tool_scribe/src/java/org/lamsfoundation/lams/tool/scribe/service/ScribeService.java 19 Apr 2007 01:25:41 -0000 1.15.2.1 @@ -195,23 +195,23 @@ scribeDAO.saveOrUpdate(toContent); } - public void setAsDefineLater(Long toolContentId) + public void setAsDefineLater(Long toolContentId, boolean value) throws DataMissingException, ToolException { Scribe scribe = scribeDAO.getByContentId(toolContentId); if(scribe == null){ throw new ToolException("Could not find tool with toolContentID: " + toolContentId); } - scribe.setDefineLater(true); + scribe.setDefineLater(value); scribeDAO.saveOrUpdate(scribe); } - public void setAsRunOffline(Long toolContentId) + public void setAsRunOffline(Long toolContentId, boolean value) throws DataMissingException, ToolException { Scribe scribe = scribeDAO.getByContentId(toolContentId); if(scribe == null){ throw new ToolException("Could not find tool with toolContentID: " + toolContentId); } - scribe.setRunOffline(true); + scribe.setRunOffline(value); scribeDAO.saveOrUpdate(scribe); } Index: lams_tool_survey/build.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/build.properties,v diff -u -r1.2.2.1 -r1.2.2.2 --- lams_tool_survey/build.properties 12 Mar 2007 05:16:55 -0000 1.2.2.1 +++ lams_tool_survey/build.properties 19 Apr 2007 01:26:50 -0000 1.2.2.2 @@ -18,7 +18,7 @@ hideTool=false # Minimum compatible version -min.server.version.number=2.0.200612051427 +min.server.version.number=2.0.2.200704181605 # Language files package language.files.package=org.lamsfoundation.lams.tool.survey Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyServiceImpl.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyServiceImpl.java,v diff -u -r1.15 -r1.15.2.1 --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyServiceImpl.java 12 Dec 2006 00:25:44 -0000 1.15 +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyServiceImpl.java 19 Apr 2007 01:26:50 -0000 1.15.2.1 @@ -732,21 +732,21 @@ } - public void setAsDefineLater(Long toolContentId) throws DataMissingException, ToolException { + public void setAsDefineLater(Long toolContentId, boolean value) throws DataMissingException, ToolException { Survey survey = surveyDao.getByContentId(toolContentId); if(survey == null){ throw new ToolException("No found tool content by given content ID:" + toolContentId); } - survey.setDefineLater(true); + survey.setDefineLater(value); } - public void setAsRunOffline(Long toolContentId) throws DataMissingException, ToolException { + public void setAsRunOffline(Long toolContentId, boolean value) throws DataMissingException, ToolException { Survey survey = surveyDao.getByContentId(toolContentId); if(survey == null){ throw new ToolException("No found tool content by given content ID:" + toolContentId); } - survey.setRunOffline(true); + survey.setRunOffline(value); } Index: lams_tool_vote/build.properties =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/build.properties,v diff -u -r1.2.2.1 -r1.2.2.2 --- lams_tool_vote/build.properties 12 Mar 2007 05:17:10 -0000 1.2.2.1 +++ lams_tool_vote/build.properties 19 Apr 2007 01:27:10 -0000 1.2.2.2 @@ -10,7 +10,7 @@ hideTool=false # Minimum compatible version -min.server.version.number=2.0.200612051427 +min.server.version.number=2.0.2.200704181605 # Language files package language.files.package=org.lamsfoundation.lams.tool.vote Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java,v diff -u -r1.36 -r1.36.2.1 --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java 26 Sep 2006 02:26:51 -0000 1.36 +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/IVoteService.java 19 Apr 2007 01:27:02 -0000 1.36.2.1 @@ -218,9 +218,9 @@ public void copyToolContent(Long fromContentId, Long toContentId) throws ToolException; - public void setAsDefineLater(Long toolContentID) throws DataMissingException, ToolException; + public void setAsDefineLater(Long toolContentID, boolean value) throws DataMissingException, ToolException; - public void setAsRunOffline(Long toolContentID) throws DataMissingException, ToolException; + public void setAsRunOffline(Long toolContentID, boolean value) throws DataMissingException, ToolException; public void removeToolContent(Long toolContentID, boolean removeSessionData) throws SessionDataExistsException, ToolException; Index: lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/VoteServicePOJO.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/VoteServicePOJO.java,v diff -u -r1.55 -r1.55.2.1 --- lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/VoteServicePOJO.java 13 Nov 2006 21:00:33 -0000 1.55 +++ lams_tool_vote/src/java/org/lamsfoundation/lams/tool/vote/service/VoteServicePOJO.java 19 Apr 2007 01:27:02 -0000 1.55.2.1 @@ -1698,9 +1698,8 @@ * @return * @throws ToolException */ - public void setAsDefineLater(Long toolContentID) throws DataMissingException, ToolException + public void setAsDefineLater(Long toolContentID, boolean value) throws DataMissingException, ToolException { - logger.debug("request for setAsDefineLater with toolContentID: " + toolContentID); if (toolContentID == null) { logger.error("throwing DataMissingException: WARNING!: retrieved toolContentID is null."); @@ -1713,9 +1712,8 @@ logger.error("throwing DataMissingException: WARNING!: retrieved voteContent is null."); throw new DataMissingException("voteContent is missing"); } - voteContent.setDefineLater(true); + voteContent.setDefineLater(value); saveVoteContent(voteContent); - logger.debug("success: end of setAsDefineLater on toolContentID:" + toolContentID); } @@ -1727,9 +1725,8 @@ * return * @throws ToolException */ - public void setAsRunOffline(Long toolContentID) throws DataMissingException, ToolException + public void setAsRunOffline(Long toolContentID, boolean value) throws DataMissingException, ToolException { - logger.debug("request for setAsRunOffline with toolContentID:" + toolContentID); if (toolContentID == null) { logger.error("throwing DataMissingException: WARNING!: retrieved toolContentID is null."); @@ -1741,9 +1738,8 @@ logger.error("throwing DataMissingException: WARNING!: retrieved voteContent is null."); throw new DataMissingException("voteContent is missing"); } - voteContent.setRunOffline(true); + voteContent.setRunOffline(value); saveVoteContent(voteContent); - logger.debug("success: end of setAsRunOffline on toolContentID:" + toolContentID); }