1 31 32 package org.opencms.workplace.tools.modules; 33 34 import org.opencms.jsp.CmsJspActionElement; 35 import org.opencms.main.OpenCms; 36 import org.opencms.report.I_CmsReportThread; 37 import org.opencms.workplace.list.A_CmsListReport; 38 import org.opencms.workplace.threads.CmsDatabaseImportThread; 39 40 import javax.servlet.http.HttpServletRequest ; 41 import javax.servlet.http.HttpServletResponse ; 42 import javax.servlet.jsp.PageContext ; 43 44 53 public class CmsModulesListImportReport extends A_CmsListReport { 54 55 56 private String m_paramModule; 57 58 63 public CmsModulesListImportReport(CmsJspActionElement jsp) { 64 65 super(jsp); 66 } 67 68 75 public CmsModulesListImportReport(PageContext context, HttpServletRequest req, HttpServletResponse res) { 76 77 this(new CmsJspActionElement(context, req, res)); 78 } 79 80 85 public String getParamModule() { 86 87 return m_paramModule; 88 } 89 90 94 public I_CmsReportThread initializeThread() { 95 96 String modulename = getParamModule(); 97 String importpath = OpenCms.getSystemInfo().getPackagesRfsPath(); 98 importpath = OpenCms.getSystemInfo().getAbsoluteRfsPathRelativeToWebInf(importpath + "modules/" + modulename); 99 100 I_CmsReportThread importThread = new CmsDatabaseImportThread(getCms(), importpath, false); 101 102 return importThread; 103 } 104 105 109 public void setParamModule(String paramModule) { 110 111 m_paramModule = paramModule; 112 } 113 114 } 115 | Popular Tags |