/*
 * $Id$
 * $URL$
 */

package org.subethamail.web.action;

import lombok.Getter;
import lombok.Setter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.subethamail.web.Backend;
import org.subethamail.web.action.auth.AuthAction;

/**
 * Performs an action on a held subscription.
 * 
 * @author Jeff Schnitzer
 */
public class HeldSubAction extends AuthAction 
{
	/** */
	@SuppressWarnings("unused")
	private final static Logger log = LoggerFactory.getLogger(HeldSubAction.class);

	@Getter @Setter Long listId;
	@Getter @Setter Long personId;
	@Getter @Setter String action;
	
	/** */
	public void execute() throws Exception
	{
		if ("Approve".equals(this.action))
		{
			Backend.instance().getListMgr().approveHeldSubscription(this.listId, this.personId);
		}
		else if ("Discard".equals(this.action))
		{
			Backend.instance().getListMgr().discardHeldSubscription(this.listId, this.personId);
		}
	}
}

@@ -112,67 +112,40 @@
 r;%0D%0A
-%0D%0A
 import 
-org.slf4j.Logger;%0D%0Aimport org.slf4j.LoggerFactory;
+lombok.extern.java.Log;%0D%0A
 %0D%0Aim
@@ -322,16 +322,22 @@
 r%0D%0A */%0D%0A
+@Log%0D%0A
 public c
@@ -383,131 +383,8 @@
 %0A%7B%0D%0A
-%09/** */%0D%0A%09@SuppressWarnings(%22unused%22)%0D%0A%09private final static Logger log = LoggerFactory.getLogger(HeldSubAction.class);%0D%0A%0D%0A
 %09@Ge

switch logging framework