Index: lams_build/lib/lams/lams.jar =================================================================== RCS file: /usr/local/cvsroot/lams_build/lib/lams/lams.jar,v diff -u -r1.460 -r1.461 Binary files differ Index: lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LearningDesignRepositoryServlet.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LearningDesignRepositoryServlet.java,v diff -u -r1.19 -r1.20 --- lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LearningDesignRepositoryServlet.java 7 Aug 2015 03:54:14 -0000 1.19 +++ lams_central/src/java/org/lamsfoundation/lams/webservice/xml/LearningDesignRepositoryServlet.java 18 Sep 2015 12:49:43 -0000 1.20 @@ -352,8 +352,6 @@ sortDate == null ? null : ( sortDate.equals("0") ? "DESC" : "ASC" )); } - log.debug("LearningDesignRepositoryServlet returning "+folderContentsJSON); - response.setContentType("application/json;charset=UTF-8"); response.getWriter().write(folderContentsJSON); @@ -367,8 +365,6 @@ String wddxResponse = service.deleteResource(learningDesignId, FolderContentDTO.DESIGN, userId); Hashtable table = (Hashtable) WDDXProcessor.deserialize(wddxResponse); - log.debug("Delete response "+wddxResponse); - Double messageTypeDouble = (Double) table.get("messageType"); int messageType = messageTypeDouble != null ? messageTypeDouble.intValue() : 0; if ( messageType == FlashMessage.OBJECT_MESSAGE ) { Index: lams_central/src/java/org/lamsfoundation/lams/workspace/service/WorkspaceManagementService.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/workspace/service/WorkspaceManagementService.java,v diff -u -r1.65 -r1.66 --- lams_central/src/java/org/lamsfoundation/lams/workspace/service/WorkspaceManagementService.java 7 Aug 2015 03:54:14 -0000 1.65 +++ lams_central/src/java/org/lamsfoundation/lams/workspace/service/WorkspaceManagementService.java 18 Sep 2015 12:49:43 -0000 1.66 @@ -98,6 +98,11 @@ protected IUserManagementService userMgmtService; protected MessageService messageService; + // To support integrations that need a type for the learning design, any designs that do not have a type field set, + // return "default" in the type field. Also, the integrations can search for designs that do not have a type field + // set by setting type = default. This setup is done in the FolderContentDTO. See LDEV-3523 + protected static final String DEFAULT_DESIGN_TYPE = "default"; + /** * i18n Message service * @@ -477,6 +482,8 @@ subfolderJSON.put("folderID", folderContent.getResourceID().intValue()); result.append("folders", subfolderJSON); } else if (FolderContentDTO.DESIGN.equals(contentType)) { + if ( folderContent.getDesignType() == null ) + folderContent.setDesignType(DEFAULT_DESIGN_TYPE); if ( designType == null || designType.equals(folderContent.getDesignType())) { JSONObject learningDesignJSON = new JSONObject(); learningDesignJSON.put("name", folderContent.getName()); @@ -531,7 +538,7 @@ JSONObject learningDesignJSON = new JSONObject(); learningDesignJSON.put("name", StringEscapeUtils.escapeHtml(design.getTitle())); learningDesignJSON.put("learningDesignId", design.getLearningDesignId()); - learningDesignJSON.putOpt("type", design.getDesignType()); + learningDesignJSON.putOpt("type", design.getDesignType() != null ? design.getDesignType() : DEFAULT_DESIGN_TYPE); learningDesignJSON.put("date", design.getLastModifiedDateTime()); result.put(learningDesignJSON); } Index: lams_common/src/java/org/lamsfoundation/lams/workspace/dto/FolderContentDTO.java =================================================================== RCS file: /usr/local/cvsroot/lams_common/src/java/org/lamsfoundation/lams/workspace/dto/FolderContentDTO.java,v diff -u -r1.19 -r1.20 --- lams_common/src/java/org/lamsfoundation/lams/workspace/dto/FolderContentDTO.java 7 Aug 2015 03:50:23 -0000 1.19 +++ lams_common/src/java/org/lamsfoundation/lams/workspace/dto/FolderContentDTO.java 18 Sep 2015 12:49:41 -0000 1.20 @@ -253,6 +253,10 @@ this.originalAuthor = originalAuthor; } + public void setDesignType(String designType) { + this.designType = designType; + } + private String formatLastModifiedDateTime(TimeZone tz) { if(this.lastModifiedDateTime != null) { java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd-MMM-yyyy HH:mm:ss");