1 package org.tigris.scarab.actions; 2 3 48 49 import org.apache.turbine.TemplateContext; 51 import org.apache.turbine.RunData; 52 53 import org.tigris.scarab.om.ScarabUser; 54 import org.tigris.scarab.actions.base.RequireLoginFirstAction; 55 import org.tigris.scarab.util.Log; 56 57 63 public class SetHomePage extends RequireLoginFirstAction 64 { 65 68 public void doPerform(RunData data, TemplateContext context) throws Exception 69 { 70 String target = data.getTarget(); 71 if ("ModuleNotReady.vm".equals(target)) 74 { 75 Log.get() 76 .debug("Setting homepage to ModuleNotReady.vm was avoided"); 77 } 78 else 79 { 80 ((ScarabUser)data.getUser()).setHomePage(target); 81 } 82 } 83 } 84 | Popular Tags |