* ServletModuleContent -\r
* deliver html for the article admin form.\r
*\r
- * @version $Id: ServletModuleContent.java,v 1.52.2.7 2003/09/06 01:01:15 zapata Exp $\r
+ * @version $Id: ServletModuleContent.java,v 1.52.2.8 2003/09/19 02:54:51 zapata Exp $\r
* @author rk, mir-coders\r
*\r
*/\r
withValues.remove("webdb_create");\r
\r
String id = mainModule.add(withValues);\r
+ logAdminUsage(aRequest, id, "object added");\r
+\r
List topics;\r
\r
DatabaseContentToTopics.getInstance().setTopics(id, aRequest.getParameterValues("to_topic"));\r
throw new ServletModuleFailure(e);\r
}\r
\r
+ logAdminUsage(aRequest, articleId, "media " + mediaIdParam + " attached");\r
+\r
editObject(aRequest, aResponse, articleId);\r
}\r
\r
throw new ServletModuleFailure(e);\r
}\r
\r
+ logAdminUsage(aRequest, articleId, "media " + midParam + " deattached");\r
+\r
editObject(aRequest, aResponse, articleId);\r
}\r
\r
withValues.remove("webdb_create");\r
\r
String id = mainModule.set(withValues);\r
+\r
+ logAdminUsage(aRequest, id, "object modified");\r
+\r
DatabaseContentToTopics.getInstance().setTopics(aRequest.getParameter("id"), aRequest.getParameterValues("to_topic"));\r
\r
if (returnUrl!=null && !returnUrl.equals("")){\r
article.setValueForProperty("to_content", parentId);\r
article.setProduced(false);\r
article.update();\r
+ logAdminUsage(aRequest, articleId, "parent set to " + parentId);\r
}\r
catch(Throwable e) {\r
logger.error("ServletModuleContent.setparent: " + e.getMessage());\r
article.setValueForProperty("to_content", "");\r
article.setProduced(false);\r
article.update();\r
+ logAdminUsage(aRequest, articleId, "parent cleared");\r
}\r
catch(Throwable e) {\r
e.printStackTrace(logger.asPrintWriter(LoggerWrapper.DEBUG_MESSAGE));\r