package de.ivu.elect;

import javax.enterprise.inject.Specializes;
import javax.inject.Inject;

import de.ivu.elect.business.security.control.ElectCommonPrincipal;
import de.ivu.elect.jee.faces.Messages;
import de.ivu.elect.presentation.AppFooter;
import de.ivu.elect.presentation.NlSystemProperties;

@Specializes
public class NlWasAppFooter extends AppFooter {
  private static final long serialVersionUID = 1L;

  @Inject
  private transient ElectCommonPrincipal electCommonPrincipal;

  @Inject
  private transient NlSystemProperties nlSystemProperties;

  @Inject
  private transient Messages messages;

  @Override
  public String getAdditionalUserInfo() {
    return messages.lokalisiere(nlSystemProperties.getDefaultElectionLevel(electCommonPrincipal.getMandant()));
  }
}
