
package de.ivu.elect.presentation;

import java.util.ArrayList;
import java.util.List;

import de.ivu.elect.jee.faces.messagehelper.AbstractResourceBundle;

/**
 * @deprecated
 * @see LokalisierungResourceBundle
 */
@Deprecated
public class BaseResourceBundle extends AbstractResourceBundle {

  public static final String BASE_NAME_FOR_AUTO_GENERATED_MESSAGES = "EntityMessages";

  public static final String BASE_NAME_FOR_BASE_MESSAGES = "messages_elect";

  public static final String BASE_NAME_FOR_BASE_CUSTOM_MESSAGES = BASE_NAME_FOR_BASE_MESSAGES + "_custom";

  public BaseResourceBundle() {
    super();
  }

  @Override
  protected List<String> getBaseNamesOrderedBySpecialization() {
    List<String> result = new ArrayList<>();

    result.add(getBaseNameForBaseCustomMessages());
    result.add(getBaseNameForBaseMessages());
    result.add(getBaseNameForAutoGeneratedMessages());

    return result;
  }

  protected String getBaseNameForAutoGeneratedMessages() {
    return BASE_NAME_FOR_AUTO_GENERATED_MESSAGES;
  }

  protected String getBaseNameForBaseMessages() {
    return BASE_NAME_FOR_BASE_MESSAGES;
  }

  protected String getBaseNameForBaseCustomMessages() {
    return BASE_NAME_FOR_BASE_CUSTOM_MESSAGES;
  }
}
