
package de.ivu.elect.presentation.email.action;

import de.ivu.elect.business.email.boundary.EmailChangeEvent;
import de.ivu.elect.business.email.entity.Email;
import de.ivu.elect.presentation.menu.AbstractActionEntry;
import de.ivu.elect.presentation.security.AbstractGebietSecurity;

import javax.inject.Inject;

public abstract class AbstractEmailAction extends AbstractActionEntry<Email> {

  private static final long serialVersionUID = 1L;

  @Inject
  private EmailChangeEvent emailChangeEvent;

  public AbstractEmailAction() {
    super();
  }

  @Override
  protected AbstractGebietSecurity getGebietSecurity() {
    return AbstractActionEntry.KEINE_GEBIET_SECURITY;
  }

  @Override
  protected void fireChangeEvent() {
    emailChangeEvent.sendChangeEvent();
  }
}
