/*
 * $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.AuthRequired;

/**
 * UnSubscribes an existing user from a mailing list.
 * 
 * @author Jon Stevens
 */
public class UnSubscribeMe extends AuthRequired 
{
	/** */
	@SuppressWarnings("unused")
	private final static Logger log = LoggerFactory.getLogger(UnSubscribeMe.class);
	
	/** */
	@Getter @Setter Long listId;
	
	/** */
	public void authExecute() throws Exception
	{
		Backend.instance().getAccountMgr().unsubscribeMe(this.listId);
	}	
}

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

package org.subethamail.web.action;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.java.Log;

import org.subethamail.web.Backend;
import org.subethamail.web.action.auth.AuthRequired;

/**
 * UnSubscribes an existing user from a mailing list.
 * 
 * @author Jon Stevens
 */
@Log
public class UnSubscribeMe extends AuthRequired 
{
	/** */
	@Getter @Setter Long listId;
	
	/** */
	public void authExecute() throws Exception
	{
		Backend.instance().getAccountMgr().unsubscribeMe(this.listId);
	}	
}

switch logging framework