Index: lams_central/src/java/org/lamsfoundation/lams/authoring/service/AuthoringService.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/authoring/service/AuthoringService.java,v diff -u -r1.38 -r1.39 --- lams_central/src/java/org/lamsfoundation/lams/authoring/service/AuthoringService.java 17 Sep 2006 06:12:05 -0000 1.38 +++ lams_central/src/java/org/lamsfoundation/lams/authoring/service/AuthoringService.java 20 Sep 2006 03:00:29 -0000 1.39 @@ -755,6 +755,20 @@ return flashMessage.serializeMessage(); } + + /** @see org.lamsfoundation.lams.authoring.service.IAuthoringService#getHelpURL() */ + public String getHelpURL() throws Exception { + + String helpURL = Configuration.get(ConfigurationKeys.HELP_URL); + + if(helpURL != null) + flashMessage = new FlashMessage("getHelpURL", helpURL); + else + throw new Exception(); + + return flashMessage.serializeMessage(); + } + public MessageService getMessageService() { return messageService; Index: lams_central/src/java/org/lamsfoundation/lams/authoring/service/IAuthoringService.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/authoring/service/IAuthoringService.java,v diff -u -r1.18 -r1.19 --- lams_central/src/java/org/lamsfoundation/lams/authoring/service/IAuthoringService.java 17 Sep 2006 06:12:06 -0000 1.18 +++ lams_central/src/java/org/lamsfoundation/lams/authoring/service/IAuthoringService.java 20 Sep 2006 03:00:29 -0000 1.19 @@ -240,6 +240,13 @@ */ public String generateUniqueContentFolder() throws FileUtilException, IOException; + /** + * Returns the generic help url from configuration + * + * @return String Generic help url + * @throws Exception + */ + public String getHelpURL() throws Exception; /** Get the message service, which gives access to the I18N text */ public MessageService getMessageService(); Index: lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java,v diff -u -r1.15 -r1.16 --- lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java 17 Sep 2006 06:12:05 -0000 1.15 +++ lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java 20 Sep 2006 03:00:29 -0000 1.16 @@ -248,6 +248,24 @@ writer.println(wddxPacket); return null; } + + public ActionForward getHelpURL(ActionMapping mapping, + ActionForm form, + HttpServletRequest request, + HttpServletResponse response)throws ServletException, Exception{ + + String wddxPacket; + IAuthoringService authoringService = getAuthoringService(); + try { + wddxPacket = authoringService.getHelpURL(); + } catch (Exception e) { + wddxPacket = handleException(e, "getHelpURL", authoringService).serializeMessage(); + } + + PrintWriter writer = response.getWriter(); + writer.println(wddxPacket); + return null; + } /** * Handle flash error. * @param e @@ -265,6 +283,7 @@ authoringService.getMessageService().getMessage("error.system.error", msg), FlashMessage.CRITICAL_ERROR); } + /** * Get AuditService bean. * @return