| 1 19 20 package za.org.coefficient.modules.project; 21 22 import za.org.coefficient.interfaces.CoefficientContext; 23 import za.org.coefficient.modules.BaseModule; 24 import za.org.coefficient.util.ejb.VelocityScreenUtil; 25 26 import java.util.HashMap ; 27 28 42 public class QuickSearch extends BaseModule { 43 45 public String getMainMethod() { 46 return "viewSearch"; 47 } 48 49 public String getModuleDescription() { 50 return "Allows a quick project name search from the site navigation"; 51 } 52 53 public String getModuleDisplayName() { 54 return "QuickSearch"; 55 } 56 57 public CoefficientContext viewSearch(CoefficientContext ctx) { 58 StringBuffer sb = null; 59 sb = VelocityScreenUtil.getProcessedScreen("quick-search.vm", 60 new HashMap ()); 61 62 ctx.setModuleContent(sb.toString(), getModuleDisplayName()); 64 return ctx; 65 } 66 } 67 | Popular Tags |