package de.ivu.elect.presentation.hilfe;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import javax.annotation.Nullable;
import javax.enterprise.context.ApplicationScoped;

/**
 *  on 19.08.2015.
 */
@ApplicationScoped
public class OnlineHilfeIdMap implements Serializable {

  private static final long serialVersionUID = 1L;

  private final Map<String, String> hilfeIdsFuerViewIds = new HashMap<>();

  @Nullable
  public String getHilfeIdFuerViewId(String viewId) {
    return hilfeIdsFuerViewIds.get(viewId);
  }

  public void setHilfeIdsFuerViewIds(Map<String, String> hilfeIdsFuerViewIds) {
    this.hilfeIdsFuerViewIds.clear();
    this.hilfeIdsFuerViewIds.putAll(hilfeIdsFuerViewIds);
  }


}
