Index: lams_central/build.xml =================================================================== diff -u -rc93741f61030242ea6ea80af27578256958a1709 -r8628fad036956ba43219abfd392f4913069c3dd8 --- lams_central/build.xml (.../build.xml) (revision c93741f61030242ea6ea80af27578256958a1709) +++ lams_central/build.xml (.../build.xml) (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -150,6 +150,7 @@ + @@ -210,6 +211,7 @@ + Index: lams_central/src/java/org/lamsfoundation/lams/authoring/service/AuthoringService.java =================================================================== diff -u -r9bef1de27d0d527d75191115a535bc2c4311ade9 -r8628fad036956ba43219abfd392f4913069c3dd8 --- lams_central/src/java/org/lamsfoundation/lams/authoring/service/AuthoringService.java (.../AuthoringService.java) (revision 9bef1de27d0d527d75191115a535bc2c4311ade9) +++ lams_central/src/java/org/lamsfoundation/lams/authoring/service/AuthoringService.java (.../AuthoringService.java) (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -75,7 +75,9 @@ import org.lamsfoundation.lams.util.wddx.FlashMessage; import org.lamsfoundation.lams.util.wddx.WDDXProcessor; +import com.allaire.wddx.WddxDeserializationException; + /** * @author Manpreet Minhas */ @@ -480,10 +482,10 @@ if(learningDesignDTO!=null){ LearningDesign design = extractor.extractLearningDesignObject(learningDesignDTO); learningDesignDAO.insert(design); - flashMessage = new FlashMessage("storeLearningDesignDetails",design.getLearningDesignId()); + flashMessage = new FlashMessage(IAuthoringService.STORE_LD_MESSAGE_KEY,design.getLearningDesignId()); } else - flashMessage = new FlashMessage("storeLearningDesignDetails", + flashMessage = new FlashMessage(IAuthoringService.STORE_LD_MESSAGE_KEY, "Invalid Object in WDDX packet", FlashMessage.ERROR); @@ -547,9 +549,11 @@ * @param wddxPacket The WDDX packet received from Flash * @return String The acknowledgement in WDDX format that the theme has been * successfully saved. + * @throws IOException + * @throws WddxDeserializationException * @throws Exception */ - public String storeTheme(String wddxPacket) throws Exception{ + public String storeTheme(String wddxPacket) throws Exception { if(containsNulls(wddxPacket)){ flashMessage = new FlashMessage("storeTheme", @@ -579,7 +583,7 @@ } themeDAO.saveOrUpdateTheme(storedTheme); - flashMessage = new FlashMessage("storeTheme",storedTheme.getId()); + flashMessage = new FlashMessage(IAuthoringService.STORE_THEME_MESSAGE_KEY,storedTheme.getId()); return flashMessage.serializeMessage(); } Index: lams_central/src/java/org/lamsfoundation/lams/authoring/service/IAuthoringService.java =================================================================== diff -u -r9bef1de27d0d527d75191115a535bc2c4311ade9 -r8628fad036956ba43219abfd392f4913069c3dd8 --- lams_central/src/java/org/lamsfoundation/lams/authoring/service/IAuthoringService.java (.../IAuthoringService.java) (revision 9bef1de27d0d527d75191115a535bc2c4311ade9) +++ lams_central/src/java/org/lamsfoundation/lams/authoring/service/IAuthoringService.java (.../IAuthoringService.java) (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -24,6 +24,7 @@ import java.io.IOException; import java.util.List; + import org.lamsfoundation.lams.learningdesign.LearningDesign; import org.lamsfoundation.lams.learningdesign.exception.LearningDesignException; import org.lamsfoundation.lams.usermanagement.User; @@ -36,7 +37,12 @@ */ public interface IAuthoringService { + /** Message key returned by the storeTheme() method */ + public static final String STORE_THEME_MESSAGE_KEY = "storeTheme"; + /** Message key returned by the storeLearningDesignDetails() method */ + public static final String STORE_LD_MESSAGE_KEY = "storeLearningDesignDetails"; + /** * Returns a populated LearningDesign object corresponding to the given learningDesignID * Index: lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java =================================================================== diff -u -r1ace59e69b84f2bd60f2a60b124abef279c55368 -r8628fad036956ba43219abfd392f4913069c3dd8 --- lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java (.../AuthoringAction.java) (revision 1ace59e69b84f2bd60f2a60b124abef279c55368) +++ lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringAction.java (.../AuthoringAction.java) (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -29,46 +29,45 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; +import org.apache.log4j.Logger; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.actions.DispatchAction; import org.lamsfoundation.lams.authoring.service.IAuthoringService; import org.lamsfoundation.lams.learningdesign.exception.LearningDesignException; import org.lamsfoundation.lams.usermanagement.exception.UserException; -import org.lamsfoundation.lams.util.WebUtil; import org.lamsfoundation.lams.usermanagement.exception.WorkspaceFolderException; +import org.lamsfoundation.lams.util.WebUtil; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; -import java.io.BufferedReader; - /** * @author Manpreet Minhas * * @struts.action name = "AuthoringAction" - * path = "/author" + * path = "/authoring/author" * parameter = "method" * validate = "false" * @struts.action-forward name = "success" path = "/index.jsp" * */ public class AuthoringAction extends DispatchAction{ - /** If you want the output given as a jsp, set the request parameter "jspoutput" to + private static Logger log = Logger.getLogger(AuthoringAction.class); + + /** If you want the output given as a jsp, set the request parameter "jspoutput" to * some value other than an empty string (e.g. 1, true, 0, false, blah). * If you want it returned as a stream (ie for Flash), do not define this parameter */ public static String USE_JSP_OUTPUT = "jspoutput"; - /** Complete Theme to be stored in the db */ - public static final String THEME_PARAMETER = "theme"; /** Id of theme to be retrieved from the db */ - public static final String THEME_ID_PARAMETER = "themeid"; - + public static final String THEME_ID_PARAMETER = "themeID"; + public IAuthoringService getAuthoringService(){ WebApplicationContext webContext = WebApplicationContextUtils.getRequiredWebApplicationContext(this.getServlet().getServletContext()); - return (IAuthoringService) webContext.getBean("authoringService"); + return (IAuthoringService) webContext.getBean(AuthoringConstants.AUTHORING_SERVICE_BEAN_NAME); } /** Output the supplied WDDX packet. If the request parameter USE_JSP_OUTPUT @@ -138,17 +137,7 @@ String wddxPacket = authoringService.getAllLearningDesignDetails(); return outputPacket(mapping, request, response, wddxPacket, "details"); } - public ActionForward storeLearningDesignDetails(ActionMapping mapping, - ActionForm form, - HttpServletRequest request, - HttpServletResponse response)throws ServletException, Exception{ - // String designDetails = WebUtil.readStrParam(request,"designDetails"); - String designDetails = getBody(request); - IAuthoringService authoringService = getAuthoringService(); - String message = authoringService.storeLearningDesignDetails(designDetails); - request.getSession().setAttribute("message",message); - return outputPacket(mapping, request, response, message, "message"); - } + public ActionForward getAllLearningLibraryDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, @@ -158,23 +147,7 @@ return outputPacket(mapping, request, response, wddxPacket, "details"); } - /** - * Store a theme created on a client. - * @return String The acknowledgement in WDDX format that the theme has been - * successfully saved. - * @throws Exception - */ - public ActionForward storeTheme(ActionMapping mapping, - ActionForm form, - HttpServletRequest request, - HttpServletResponse response)throws ServletException, Exception{ - String theme = WebUtil.readStrParam(request,THEME_PARAMETER); - IAuthoringService authoringService = getAuthoringService(); - String message = authoringService.storeTheme(theme); - request.getSession().setAttribute("message",message); - return outputPacket(mapping, request, response, message, "message"); - } /** * Returns a string representing the requested theme in WDDX format @@ -215,20 +188,5 @@ return outputPacket(mapping, request, response, message, "message"); } - /* Get the post body */ - private String getBody(HttpServletRequest req) - throws IOException - { - BufferedReader tempReader = req.getReader(); - int tempContentLength = req.getContentLength(); - StringBuffer tempStrBuf = new StringBuffer( tempContentLength>0 ? tempContentLength : 200 ); - String tempStr; - tempStr = tempReader.readLine(); - while ( tempStr != null ) - { - tempStrBuf.append(tempStr); - tempStr = tempReader.readLine(); - } - return(tempStrBuf.toString()); - } + } Index: lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringConstants.java =================================================================== diff -u --- lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringConstants.java (revision 0) +++ lams_central/src/java/org/lamsfoundation/lams/authoring/web/AuthoringConstants.java (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1,35 @@ +/*************************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * ************************************************************************ + */ +package org.lamsfoundation.lams.authoring.web; + +/** + * Constants used by Authoring. + * + * @author Fiona Malikoff + */ +public class AuthoringConstants { + + /** Spring context name for refering to the authoring service */ + public static final String AUTHORING_SERVICE_BEAN_NAME = "authoringService"; + +} Index: lams_central/src/java/org/lamsfoundation/lams/authoring/web/StoreLDServlet.java =================================================================== diff -u --- lams_central/src/java/org/lamsfoundation/lams/authoring/web/StoreLDServlet.java (revision 0) +++ lams_central/src/java/org/lamsfoundation/lams/authoring/web/StoreLDServlet.java (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1,61 @@ +/*************************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * ************************************************************************ + */package org.lamsfoundation.lams.authoring.web; + +import javax.servlet.http.HttpServletRequest; + +import org.apache.log4j.Logger; +import org.lamsfoundation.lams.authoring.service.IAuthoringService; +import org.lamsfoundation.lams.web.servlet.AbstractStoreWDDXPacketServlet; +import org.springframework.web.context.WebApplicationContext; +import org.springframework.web.context.support.WebApplicationContextUtils; + +/** + * Store a learning design. + * + * @author Fiona Malikoff + * + * @web:servlet name="storeLD" + * @web:servlet-mapping url-pattern="/authoring/storeLearningDesignDetails" + */ +public class StoreLDServlet extends AbstractStoreWDDXPacketServlet { + + private static Logger log = Logger.getLogger(AuthoringAction.class); + + public IAuthoringService getAuthoringService(){ + WebApplicationContext webContext = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); + return (IAuthoringService) webContext.getBean(AuthoringConstants.AUTHORING_SERVICE_BEAN_NAME); + } + + protected String process(String designDetails, HttpServletRequest request) + throws Exception + { + + IAuthoringService authoringService = getAuthoringService(); + return authoringService.storeLearningDesignDetails(designDetails); + } + + protected String getMessageKey(String designDetails, HttpServletRequest request) { + return IAuthoringService.STORE_LD_MESSAGE_KEY; + } + +} Index: lams_central/src/java/org/lamsfoundation/lams/authoring/web/StoreThemeServlet.java =================================================================== diff -u --- lams_central/src/java/org/lamsfoundation/lams/authoring/web/StoreThemeServlet.java (revision 0) +++ lams_central/src/java/org/lamsfoundation/lams/authoring/web/StoreThemeServlet.java (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1,59 @@ +/*************************************************************************** + * Copyright (C) 2005 LAMS Foundation (http://lamsfoundation.org) + * ============================================================= + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + * + * http://www.gnu.org/licenses/gpl.txt + * ************************************************************************ + */package org.lamsfoundation.lams.authoring.web; + +import javax.servlet.http.HttpServletRequest; + +import org.apache.log4j.Logger; +import org.lamsfoundation.lams.authoring.service.IAuthoringService; +import org.lamsfoundation.lams.web.servlet.AbstractStoreWDDXPacketServlet; +import org.springframework.web.context.WebApplicationContext; +import org.springframework.web.context.support.WebApplicationContextUtils; + +/** + * Store a theme created on a client. + * + * @author Fiona Malikoff + * + * @web:servlet name="storeTheme" + * @web:servlet-mapping url-pattern="/authoring/storeTheme" + */ +public class StoreThemeServlet extends AbstractStoreWDDXPacketServlet { + + private static Logger log = Logger.getLogger(StoreThemeServlet.class); + + public IAuthoringService getAuthoringService(){ + WebApplicationContext webContext = WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); + return (IAuthoringService) webContext.getBean(AuthoringConstants.AUTHORING_SERVICE_BEAN_NAME); + } + + protected String process(String theme, HttpServletRequest request) + throws Exception + { + IAuthoringService authoringService = getAuthoringService(); + return authoringService.storeTheme(theme); + } + + protected String getMessageKey(String theme, HttpServletRequest request) { + return IAuthoringService.STORE_THEME_MESSAGE_KEY; + } +} Index: lams_central/src/java/org/lamsfoundation/lams/web/development/WDDXPostAction.java =================================================================== diff -u --- lams_central/src/java/org/lamsfoundation/lams/web/development/WDDXPostAction.java (revision 0) +++ lams_central/src/java/org/lamsfoundation/lams/web/development/WDDXPostAction.java (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1,117 @@ +package org.lamsfoundation.lams.web.development; + +import java.io.BufferedReader; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStreamReader; +import java.io.PrintWriter; +import java.io.Writer; +import java.net.HttpURLConnection; +import java.net.URL; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +import org.apache.log4j.Logger; +import org.apache.struts.action.Action; +import org.apache.struts.action.ActionForm; +import org.apache.struts.action.ActionForward; +import org.apache.struts.action.ActionMapping; +import org.apache.struts.upload.FormFile; + + +/** + * Takes a action ( URL ) and a file containing a WDDX packet + * and forwards the contents of the WDDX packet to the action. + *

+ * This is used to simulate Flash sending a WDDX packet to + * the server. + *

+ * The error handling just throws a RuntimeException if something + * goes wrong. Not nice but this is only run during development.... + *

+ * @struts:action name="WDDXPostActionForm" + * path="/WDDXPost" + * validate="false" + * parameter="method" + */ +public class WDDXPostAction extends Action { + + private static Logger log = Logger.getLogger(WDDXPostAction.class); + + /** + * Process the request + */ + public ActionForward execute(ActionMapping mapping, ActionForm form, + HttpServletRequest req, HttpServletResponse res) + throws IOException, ServletException { + + WDDXPostActionForm postForm = (WDDXPostActionForm) form; + + String action = postForm.getUrlAction(); + if ( action == null ) { + RuntimeException e = new RuntimeException("Unable to process WDDX file, action is missing. Should be a URL"); + log.error(e); + throw e; + } + + FormFile file = postForm.getWddxFile(); + if ( file == null ) { + RuntimeException e = new RuntimeException("Unable to process WDDX file, file is missing."); + log.error(e); + throw e; + } + + // we've got the URL action and the WDDX input. Now try sending the WDDX to the URL + URL url = new URL(action); + HttpURLConnection urlConn = (HttpURLConnection) url.openConnection(); + urlConn.setRequestMethod("POST"); + urlConn.setDoInput (true); + urlConn.setDoOutput (true); + urlConn.setUseCaches (false); + urlConn.setAllowUserInteraction(false); + urlConn.setInstanceFollowRedirects(true); + + // Get packet from input file + ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512); // Grows if necessary + PrintWriter urlStreamWriter = new PrintWriter(byteStream, true); + BufferedReader wddxPacketStream = new BufferedReader(new InputStreamReader(file.getInputStream())); + String line = null; + while ((line = wddxPacketStream.readLine()) != null) { + urlStreamWriter.print(line); + } + urlStreamWriter.flush(); + wddxPacketStream.close(); + String packet = byteStream.toString(); + String packetStart = packet != null ? packet.substring(0,11): ""; + if ( ! packetStart.equalsIgnoreCase(" tag. Invalid format."); + } + log.debug("Sending packet "+packet); + + // POST requests are required to have Content-Length + String lengthString = String.valueOf(byteStream.size()); + urlConn.setRequestProperty("Content-Length", lengthString); + + // Write POST data to real output stream + byteStream.writeTo(urlConn.getOutputStream()); + urlConn.getOutputStream().flush(); + urlConn.connect(); + + // pass the response from the action back to the calling form. + BufferedReader in = new BufferedReader(new InputStreamReader(urlConn.getInputStream())); + Writer writer = res.getWriter(); + while ((line = in.readLine()) != null) { + writer.write(line); + } + in.close(); + + urlConn.disconnect(); + + return null; + } + + + +} \ No newline at end of file Index: lams_central/src/java/org/lamsfoundation/lams/web/development/WDDXPostActionForm.java =================================================================== diff -u --- lams_central/src/java/org/lamsfoundation/lams/web/development/WDDXPostActionForm.java (revision 0) +++ lams_central/src/java/org/lamsfoundation/lams/web/development/WDDXPostActionForm.java (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1,63 @@ +package org.lamsfoundation.lams.web.development; + +import javax.servlet.http.HttpServletRequest; + +import org.apache.log4j.Logger; +import org.apache.struts.action.ActionForm; +import org.apache.struts.action.ActionMapping; +import org.apache.struts.upload.FormFile; + +/** + * @author fmalikoff + * + * @struts:form name="WDDXPostActionForm" + * include-pk="true" + * include-all="true" + */ +public class WDDXPostActionForm extends ActionForm { + + public static final String formName = "WDDXPostActionForm"; // must match name in @struts:action section above + + private static Logger log = Logger.getLogger(WDDXPostActionForm.class); + + /** + * @return Returns the action. + */ + public String getUrlAction() { + return urlAction; + } + /** + * @param action The action to set. + */ + public void setUrlAction(String action) { + this.urlAction = action; + } + /** + * @return Returns the wddxFile. + */ + public FormFile getWddxFile() { + return wddxFile; + } + /** + * @param wddxFile The wddxFile to set. + */ + public void setWddxFile(FormFile wddxFile) { + this.wddxFile = wddxFile; + } + private String urlAction; + private FormFile wddxFile; + + public WDDXPostActionForm() { + } + + /** + * Reset all properties to their default values. + * + * @param mapping The mapping used to select this instance + * @param request The servlet request we are processing + */ + public void reset(ActionMapping mapping, HttpServletRequest request) { + } + + +} \ No newline at end of file Index: lams_central/test/java/org/lamsfoundation/lams/authoring/service/TestAuthoringService.java =================================================================== diff -u -r9bef1de27d0d527d75191115a535bc2c4311ade9 -r8628fad036956ba43219abfd392f4913069c3dd8 --- lams_central/test/java/org/lamsfoundation/lams/authoring/service/TestAuthoringService.java (.../TestAuthoringService.java) (revision 9bef1de27d0d527d75191115a535bc2c4311ade9) +++ lams_central/test/java/org/lamsfoundation/lams/authoring/service/TestAuthoringService.java (.../TestAuthoringService.java) (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -85,13 +85,15 @@ String packet = authService.getAllLearningLibraryDetails(); System.out.println("Library Details: "+ packet); } - public void testStoreLearningDesignDetails() throws Exception{ - String str = authService.storeLearningDesignDetails(LEARNING_DESIGN_PART_A+"-111111"+LEARNING_DESIGN_PART_B); + public void testStoreLearningDesignDetails() throws Exception{ + String design = LEARNING_DESIGN_PART_A+"-111111"+LEARNING_DESIGN_PART_B; + String str = authService.storeLearningDesignDetails(design); assertTrue("storeLearningDesignDetails returned WDDX packet", str!=null && str.startsWith(" + @@ -110,7 +114,7 @@ /> + + Index: lams_central/web/WEB-INF/web.xml =================================================================== diff -u -r31bb64847befe2f009de312f08d2f34dafcd424f -r8628fad036956ba43219abfd392f4913069c3dd8 --- lams_central/web/WEB-INF/web.xml (.../web.xml) (revision 31bb64847befe2f009de312f08d2f34dafcd424f) +++ lams_central/web/WEB-INF/web.xml (.../web.xml) (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -56,6 +56,17 @@ + + storeLD + org.lamsfoundation.lams.authoring.web.StoreLDServlet + + + + storeTheme + org.lamsfoundation.lams.authoring.web.StoreThemeServlet + + + + +Author :: LAMS + + + + + + + + + + + + + + + + + + + Index: lams_central/web/development/wddxPost.jsp =================================================================== diff -u --- lams_central/web/development/wddxPost.jsp (revision 0) +++ lams_central/web/development/wddxPost.jsp (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1,31 @@ +<%@ taglib uri="/WEB-INF/struts/tlds/struts-html.tld" prefix="html" %> + + + + + + +Send WDDX Packet To Server + + + + + + +

Test posting file to form - this should be WDDX XML to a URL expecting + the XML in the post body.

+

Form action: + + +

+

+ File to post: + +

+

+ Send +

+ + + Index: lams_central/web/lams_authoring.swf =================================================================== diff -u -r84af64052b65a5a8f91e42f58f03e8362c5eb3de -r8628fad036956ba43219abfd392f4913069c3dd8 Binary files differ Index: lams_documents/lams_authoring/AuthoringDesign.doc =================================================================== diff -u -r9a7760cbc794ad58c8aa1b665b0268a940ba55c5 -r8628fad036956ba43219abfd392f4913069c3dd8 Binary files differ Fisheye: Tag 8628fad036956ba43219abfd392f4913069c3dd8 refers to a dead (removed) revision in file `lams_documents/lams_authoring/sample_wddx_packets/all_learning_designs.xml'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 8628fad036956ba43219abfd392f4913069c3dd8 refers to a dead (removed) revision in file `lams_documents/lams_authoring/sample_wddx_packets/all_library_details.xml'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 8628fad036956ba43219abfd392f4913069c3dd8 refers to a dead (removed) revision in file `lams_documents/lams_authoring/sample_wddx_packets/learning_design.xml'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 8628fad036956ba43219abfd392f4913069c3dd8 refers to a dead (removed) revision in file `lams_documents/lams_authoring/sample_wddx_packets/storeLearningDesignDetails.xml'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_documents/lams_common/AuthoringDesign.doc =================================================================== diff -u Binary files differ Index: lams_documents/lams_common/WorkspaceFolder.doc =================================================================== diff -u Binary files differ Index: lams_documents/lams_common/sample_wddx_packets/FolderContents.xml =================================================================== diff -u --- lams_documents/lams_common/sample_wddx_packets/FolderContents.xml (revision 0) +++ lams_documents/lams_common/sample_wddx_packets/FolderContents.xml (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1 @@ +
getFolderContents3.02.01.02004-12-23T0:0:0+10:0Test Learning Design1970-1-1T10:0:0+10:0Test Learning Design title3.01.0learningDesign1970-1-1T10:0:0+10:0Folder1970-1-1T10:0:0+10:0MMinhas13.04.0folder1970-1-1T10:0:0+10:0Folder1970-1-1T10:0:0+10:0Manpreet Minhas Run Sequences Folder3.03.0folder1970-1-1T10:0:0+10:0Folder1970-1-1T10:0:0+10:0MMinhas23.05.0folder \ No newline at end of file Index: lams_documents/lams_common/sample_wddx_packets/all_learning_designs.xml =================================================================== diff -u --- lams_documents/lams_common/sample_wddx_packets/all_learning_designs.xml (revision 0) +++ lams_documents/lams_common/sample_wddx_packets/all_learning_designs.xml (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1 @@ +
getAllLearningDesignDetails3.01.02005-1-15T10:0:0+10:0Trial design69.0Help Text For Trial design5.02.0-111111.0Trial design4.01.12.01.01970-1-1T10:0:0+10:0Test Learning Design51.0Help Text4.04.01.0Test Learning Design title1.01.01.01.02005-1-15T10:0:0+10:0Trial design47.0Help Text For Trial design3.02.0-111111.0Trial design4.01.12.01.01970-1-1T10:0:0+10:0Test Learning Design29.0Help Text2.02.01.0Test Learning Design title1.01.01.01.01970-1-1T10:0:0+10:0Test Learning Design20.0Help Text1.01.0-111111.0Test Learning Design title1.01.02.0 \ No newline at end of file Index: lams_documents/lams_common/sample_wddx_packets/all_library_details.xml =================================================================== diff -u --- lams_documents/lams_common/sample_wddx_packets/all_library_details.xml (revision 0) +++ lams_documents/lams_common/sample_wddx_packets/all_library_details.xml (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1 @@ +
getAllLearningLibraryDetails3.0Notebook1.01.015.01.01.0Notebook Activity DescriptionHelp Text for ActivityimageNotebook Activity Titleauthor_urlNotebook Description1.0Notebook1.010.020.01.01.01.01.0Notebook TemplateHelp Text for ActivityNotebookImageNotebookauthor_urlNotebook Description1.0Notebook1.010.020.0NotebookNoticeBoard2.01.02.01.02.0NoticeBoard TemplateHelp Text for ActivityNoticeBoardImageNoticeBoardauthor_urlNoticeboard Description2.0Noticeboard2.010.020.01.016.01.02.0NoticeBoard ActivityHelp Text for ActivityimageNoticeBoard Activityauthor_urlNoticeboard Description2.0Noticeboard2.010.020.0NoticeBoardMultiple Choice Questions3.01.03.01.03.0Multiple Choice TemplateHelp Text for ActivityMultipleChoiceImageMultiple Choiceauthor_urlMultiple Coice Description3.0Multiple Choice3.010.020.01.017.01.03.0Multiple Choice Activity Help Text for ActivityimageMultiple Choiceauthor_urlMultiple Coice Description3.0Multiple Choice3.010.020.0Multiple ChoiceQuestions and Answer4.01.04.01.04.0Question and Answer TemplateHelp Text for ActivityQAImageQuestion and Answerauthor_urlQuestion and Answers Description4.0Question and Answers4.010.020.01.025.01.025.0QNA Activity DescriptionHelp Text for QNA ActivityQNAImageQNA Activity Titleauthor_urlQuestion and Answers Description4.0Question and Answers4.010.020.01.018.01.04.0Question and Answer ActivityHelp Text for ActivityimageQuestion and Answerauthor_urlQuestion and Answers Description4.0Question and Answers4.010.020.01.024.01.024.0QNA Activity DescriptionHelp Text for QNA ActivityQNAImageQNA Activity Titleauthor_urlQuestion and Answers Description4.0Question and Answers4.010.020.0Question And AnswerMessage Board5.01.05.01.05.0MessageBoard TemplateHelp Text for ActivityMBImageMessageBoardauthor_urlMessage Board Description5.0Message Board5.010.020.01.019.01.05.0Message Board ActivityHelp Text for ActivityimageMessage Boardauthor_urlMessage Board Description5.0Message Board5.010.020.0Message BoardSurvey6.01.06.01.06.0Survey TemplateHelp Text for ActivitySurveyImageSurvey/lams_tool_survey/tool/survey/authoring.do?method=loadSurveySurvey Description6.0Survey6.010.020.01.020.01.06.0Survey ActivityHelp Text for ActivityimageSurvey Title/lams_tool_survey/tool/survey/authoring.do?method=loadSurveySurvey Description6.0Survey6.010.020.0SurveyChat7.01.021.01.07.0Chat Activity DescriptionHelp Text for Chat ActivityChatImageChat Titleauthor_urlChat Description7.0Chat7.010.020.01.07.01.07.0Chat TemplateHelp Text for ActivityChatImageChatauthor_urlChat Description7.0Chat7.010.020.0ChatShared Resources8.01.08.01.08.0Shared Resources TemplateHelp Text for ActivitySRImageShared Resourcesauthor_urlShared Resources Description8.0Shared Resources8.010.020.01.022.01.08.0Shared Resources ActivityHelp Text for ActivityimageShared Resourcesauthor_urlShared Resources Description8.0Shared Resources8.010.020.0Shared ResourcesVoting9.01.09.01.09.0Voting TemplateHelp Text for ActivityVotingImageVotingauthor_urlVoting Description9.0Voting9.010.020.0VotingSubmit Files10.01.010.01.010.0Submit Files TemplateHelp Text for ActivitySubmitFilesImageSubmit Filesauthor_urlSubmit Files Description10.0Submit Files10.010.020.0Submit FilesInstant Messaging11.01.011.01.011.0Instant Messaging TemplateHelp Text for ActivityIMImageInstant Messagingauthor_urlInstant Messaging Description11.0Instant Messaging11.010.020.0Instant Messaging \ No newline at end of file Index: lams_documents/lams_common/sample_wddx_packets/learning_design.xml =================================================================== diff -u --- lams_documents/lams_common/sample_wddx_packets/learning_design.xml (revision 0) +++ lams_documents/lams_common/sample_wddx_packets/learning_design.xml (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1 @@ +
getLearningDesignDetails3.01.015.01.01.02005-1-1T0:0:0+10:0-111111.0-111111.0Notebook Activity Description-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0Notebook Activity Offline Instructions Online Instructionsstring_null_value1.0-111111.0-111111.0Notebook Activity Title12.01.010.020.01.028.05.028.02005-1-1T0:0:0+10:0-111111.0-111111.0Permission Gate3.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Permission Gate1.0-111111.0-111111.0PermissionGateImage-111111.0-111111.0string_null_valueOnline Instructionsstring_null_value0.0-111111.0-111111.0Permission Gate Activity-111111.0-111111.010.020.01.013.06.013.02005-1-1T0:0:0+10:0-111111.0-111111.0Parallel Activity Description-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0Parallel Activity Offline Instructions Online Instructionsstring_null_value1.0-111111.0-111111.0Parallel Activity Title-111111.0-111111.010.020.01.018.01.04.02005-1-1T0:0:0+10:0-111111.0-111111.0Question and Answer Activity-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0Tool Activity Offline Instructions Online Instructionsstring_null_value0.013.0-111111.0Question and Answer15.04.010.020.01.019.01.05.02005-1-1T0:0:0+10:0-111111.0-111111.0Message Board Activity-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0100.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0Tool Activity Offline Instructions Online Instructionsstring_null_value1.013.0-111111.0Message Board16.05.010.020.01.021.01.07.02005-1-1T0:0:0+10:0-111111.0-111111.0Chat Activity Description-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.099.02.0-111111.099.0Help Text for Chat Activity1.07.07.0ChatImage-111111.0-111111.0Tool Activity Offline Instructions Online Instructionsstring_null_value0.0-111111.0-111111.0Chat Title18.07.010.020.01.023.02.023.02005-1-1T0:0:0+10:099.099.0Random Grouping Activity Description-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.099.01.099.0-111111.0-1.0-111111.0-111111.0-111111.01.01.0-111111.0Help Text for RandomGroupingActivity1.0-111111.0-111111.0RandomGroupingActivityImage-111111.0-111111.0string_null_valueOnline Instructionsstring_null_value0.0-111111.0-111111.0RandomGroupingActivity Title-111111.0-111111.010.020.01.027.04.027.02005-1-1T0:0:0+10:0-111111.0-111111.0Schedule Gate3.01970-1-1T10:0:0+10:02.01970-1-1T10:0:0+10:01.0-111111.01.0-111111.0-111111.0Help Text for Schedule Gate1.0-111111.0-111111.0ScheduleGateImage-111111.0-111111.0string_null_valueOnline Instructionsstring_null_value0.0-111111.0-111111.0Schedule Gate Activity-111111.0-111111.010.020.01.014.08.014.02005-1-1T0:0:0+10:0-111111.0-111111.0Sequence Activity Description-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0Sequence Activity Offline Instructions Online Instructionsstring_null_value1.0-111111.0-111111.0Sequence Activity Title-111111.0-111111.010.020.01.022.01.08.02005-1-1T0:0:0+10:0-111111.0-111111.0Shared Resources Activity-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0Tool Activity Offline Instructions Online Instructionsstring_null_value0.014.0-111111.0Shared Resources19.08.010.020.01.025.01.025.02005-1-1T0:0:0+10:0-111111.0-111111.0QNA Activity Description-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for QNA Activity1.04.04.0QNAImage-111111.0-111111.0QNA Activity Offline Instructions Online Instructionsstring_null_value1.014.014.0QNA Activity Title21.04.010.020.01.024.01.024.02005-1-1T0:0:0+10:0-111111.0-111111.0QNA Activity Description-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.099.02.0-111111.099.0Help Text for QNA Activity1.04.04.0QNAImage-111111.0-111111.0QNA Activity Offline Instructions Online Instructionsstring_null_value0.0-111111.0-111111.0QNA Activity Title20.04.010.020.01.020.01.06.02005-1-1T0:0:0+10:0-111111.0-111111.0Survey Activity-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0Tool Activity Offline Instructions Online Instructionsstring_null_value0.0-111111.0-111111.0Survey Title17.06.010.020.01.012.07.012.02005-1-1T0:0:0+10:0-111111.0-111111.0Optional Activity Description-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.03.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image1.01.0Offline Instructions Online Instructionsstring_null_value1.0-111111.0-111111.0Optional Activity Title-111111.0-111111.010.020.01.016.01.02.02005-1-1T0:0:0+10:0-111111.0-111111.0NoticeBoard Activity-111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0NoticeBoard Activity Offline Instructions Online Instructionsstring_null_value0.012.0-111111.0NoticeBoard Activity13.02.010.020.01.017.01.03.02005-1-1T0:0:0+10:0-111111.0-111111.0Multiple Choice Activity -111111.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Activity1.0-111111.0-111111.0image-111111.0-111111.0Tool Activity Offline Instructions Online Instructionsstring_null_value1.012.0-111111.0Multiple Choice14.03.010.020.01.026.03.026.02005-1-1T0:0:0+10:0-111111.0-111111.0Synch Gate3.01970-1-1T10:0:0+10:0-111111.01970-1-1T10:0:0+10:0-111111.0-111111.01.0-111111.0-111111.0Help Text for Synch Gate1.0-111111.0-111111.0SynchGateImage-111111.0-111111.0string_null_valueOnline Instructionsstring_null_value0.0-111111.0-111111.0Synch Gate Activity-111111.0-111111.010.020.01.02004-12-23T0:0:0+10:01970-1-1T10:0:0+10:0Test Learning Design-111111.020.06.0Help Text1970-1-1T10:0:0+10:01.01.0-111111.0string_null_value-111111.0string_null_value1970-1-1T10:0:0+10:0-111111.0string_null_value1.0-111111.0Test Learning Design title2005-2-7T0:0:0+10:0ParallelActivity to SequenceActivity13.013.01.0ParallelActivity to SequenceActivity14.014.010.010.02005-2-7T0:0:0+10:0GroupingActivity to Schedule gate23.023.01.0GroupingActivity to Schedule gate27.027.04.04.02005-2-7T0:0:0+10:0Chat to QNA21.07.01.0Chat to QNA24.024.06.06.02005-2-7T0:0:0+10:0Permission gate to OptionsActivity28.028.01.0Permission gate to OptionsActivity12.012.08.08.02005-2-7T0:0:0+10:0Notebook to GroupingActivity15.01.01.0Notebook to GroupingActivity23.023.03.03.02005-2-7T0:0:0+10:0Survey to Synch gate20.06.01.0Survey to Synch gate26.026.01.01.02005-2-7T0:0:0+10:0Schedule gate to Chat27.027.01.0Schedule gate to Chat21.07.05.05.02005-2-7T0:0:0+10:0OptionsActivity to ParallelActivity12.012.01.0OptionsActivity to ParallelActivity13.013.09.09.02005-2-7T0:0:0+10:0QNA to Permission gate24.024.01.0QNA to Permission gate28.028.07.07.02005-2-7T0:0:0+10:0Synch gate to Notebook26.026.01.0Synch gate to Notebook15.01.02.02.01.01.02.0 \ No newline at end of file Index: lams_documents/lams_common/sample_wddx_packets/storeLearningDesignDetails.xml =================================================================== diff -u --- lams_documents/lams_common/sample_wddx_packets/storeLearningDesignDetails.xml (revision 0) +++ lams_documents/lams_common/sample_wddx_packets/storeLearningDesignDetails.xml (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1 @@ +
61.041-1111112-111111Submit Files to Noticeboard-1111111-111111Submit files to Noticeboard2005-2-7T1:0:232-1111113-111111Noticeboard to Notebook12-111111Noticeboard to notebook2005-2-7T1:0:23Test Learning Design title-1111111string__value-1111111970-1-1T11:0:23string__value-111111string__value-1111111-1111111970-1-1T11:0:23Help Text1-111111-111111Test Learning Design1970-1-1T11:0:232004-12-23T1:0:231201010-111111Submit Files-111111-1111110string__valueOnline InstructionsSubmit Files-111111-111111image1010-111111Help Text for Activity-111111-1111111-111111-1111111970-1-1T11:0:23-1111111970-1-1T11:0:23-111111Submit Files-111111-1111112005-1-1T1:0:2311-111111120102-111111Notebook-111111-1111110string__valueOnline Instructionsstring__value-111111-111111notebookimage22-111111Help Text for Noticeboard-111111-1111111-111111-1111111970-1-1T11:0:23-1111111970-1-1T11:0:23-111111Notice Board-111111-1111112005-1-1T1:0:2321-111111120101-111111Notebook Activity Title-111111-1111110string__valueOnline InstructionsOffline Instructions -111111-111111image11-111111Help Text for Activity-111111-1111111-111111-1111111970-1-1T11:0:23-1111111970-1-1T11:0:23-111111Notebook Activity Description-111111-1111112005-1-1T1:0:2331-1111111 Index: lams_documents/lams_common/sample_wddx_packets/storeTheme.xml =================================================================== diff -u --- lams_documents/lams_common/sample_wddx_packets/storeTheme.xml (revision 0) +++ lams_documents/lams_common/sample_wddx_packets/storeTheme.xml (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1,42 @@ +
+ + + + outset + 16711680 + 16711680 + 16711680 + + + _sans + 10 + 12452097 + block + + + + +AuthoringTestTheme +theme used for TestAuthoringService + + + + button + + + outset + 16711680 + 16711680 + 16711680 + + + 7174353 + block + + + + + + + + Index: lams_documents/lams_common/sample_wddx_packets/userAccessibleFolders.xml =================================================================== diff -u --- lams_documents/lams_common/sample_wddx_packets/userAccessibleFolders.xml (revision 0) +++ lams_documents/lams_common/sample_wddx_packets/userAccessibleFolders.xml (revision 8628fad036956ba43219abfd392f4913069c3dd8) @@ -0,0 +1 @@ +
getAccessibleWorkspaceFolders3.02004-12-23T0:0:0+10:0LAMS1.04.02004-12-23T0:0:0+10:0MACQUAIRE UNIVERSITY1.02.02004-12-23T0:0:0+10:0MELCOE1.03.02004-12-23T0:0:0+10:0MAMS1.05.02004-12-23T0:0:0+10:0Manpreet Minhas Run Sequences Folder6.07.02004-12-23T0:0:0+10:0Manpreet Minhas Workspace4.06.0 \ No newline at end of file Index: lams_documents/lams_workspace/document/WorkspaceFolder.doc =================================================================== diff -u -r249c5f448431928ac184935093e34e9c3ffb2b39 -r8628fad036956ba43219abfd392f4913069c3dd8 Binary files differ Fisheye: Tag 8628fad036956ba43219abfd392f4913069c3dd8 refers to a dead (removed) revision in file `lams_documents/lams_workspace/sample_wddx_packets/FolderContents.xml'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 8628fad036956ba43219abfd392f4913069c3dd8 refers to a dead (removed) revision in file `lams_documents/lams_workspace/sample_wddx_packets/userAccessibleFolders.xml'. Fisheye: No comparison available. Pass `N' to diff?