1 25 26 29 package net.killingar.forum.actions.comic; 30 31 import net.killingar.forum.internal.managers.ItemListManager; 32 33 public class Unsubscribe extends ActionComicsSupport 34 { 35 37 boolean showIgnored = true; 39 long comicID; 40 41 43 45 public void setShowIgnored(boolean showIgnored) { this.showIgnored = showIgnored; } 47 public void setComicID(long in) { comicID = in; } 48 49 public boolean getShowIgnored() { return showIgnored; } 51 52 protected String doExecute() 54 { 55 try 56 { 57 ItemListManager itemLists = (ItemListManager)manager.getManager(ItemListManager.class.getName()); 58 59 itemLists.removeItem("comics hotlist", Long.toString(comicID)); 60 } 61 catch (Exception e) 62 { 63 e.printStackTrace(); 64 addErrorMessage("executing "+getClass().toString()+" action failed, exception thrown: "+e.toString()); 65 return ERROR; 66 } 67 68 return SUCCESS; 69 } 70 } 71 | Popular Tags |