1 4 package org.roller.presentation; 5 6 import java.util.TimerTask ; 7 8 import org.roller.RollerException; 9 import org.roller.model.Roller; 10 import org.roller.model.RollerFactory; 11 import org.roller.model.ScheduledTask; 12 import org.roller.util.Blacklist; 13 14 17 public class BlacklistUpdateTask extends TimerTask implements ScheduledTask 18 { 19 public void run() 20 { 21 Blacklist.checkForUpdate(); 23 } 24 public void init(Roller roller, String realPath) throws RollerException 25 { 26 String uploadDir = RollerFactory.getRoller().getFileManager().getUploadDir(); 28 Blacklist.getBlacklist(null, uploadDir); 29 Blacklist.checkForUpdate(); 31 } 32 } 33 | Popular Tags |