package de.ivu.elect.business.protokollierung.boundary;

import javax.annotation.Nullable;

import org.apache.deltaspike.core.api.scope.ConversationGroup;
import org.apache.deltaspike.core.api.scope.GroupedConversationScoped;

import de.ivu.elect.business.protokollierung.entity.LoeschProtokoll;

@GroupedConversationScoped
@ConversationGroup(AbstractLoeschProtokollSearchParameters.class)
public class LoeschProtokollSearchParameters extends AbstractLoeschProtokollSearchParameters {
  private static final long serialVersionUID = 1L;

  private LoeschProtokoll loeschProtokoll;

  public LoeschProtokoll getLoeschProtokoll() {
    if (loeschProtokoll == null) {
      loeschProtokoll = new LoeschProtokoll();
    }
    return loeschProtokoll;
  }

  @Override
  public void reset() {
    super.reset();
    loeschProtokoll = null;
  }

  @Nullable
  @Override
  protected Long getDefaultLimit() {
    return GLOBAL_MASSENDATEN_DEFAULT_LIMIT;
  }
}
