1 23 24 package org.infoglue.cms.applications.managementtool.actions; 25 26 import org.apache.log4j.Logger; 27 import org.infoglue.cms.applications.common.actions.InfoGlueAbstractAction; 28 import org.infoglue.cms.controllers.kernel.impl.simple.UpdateController; 29 import org.infoglue.cms.util.CmsPropertyHandler; 30 31 32 37 public class RefreshUpdatesAction extends InfoGlueAbstractAction 38 { 39 private final static Logger logger = Logger.getLogger(RefreshUpdatesAction.class.getName()); 40 41 UpdateController uc; 42 43 44 protected String doExecute() throws Exception { 45 logger.info("Executing doExecute on RefreshUpdates.."); 46 String path = getRequest().getRealPath("/") + "up2date/"; 47 String url = CmsPropertyHandler.getUp2dateUrl(); 48 49 uc = new UpdateController(url, path); 50 uc.refreshAvailableUpdates(); 51 52 return "success"; 53 } 54 55 56 } 57 | Popular Tags |