
package de.ivu.elect.presentation.exchange;

import java.io.Serializable;

import javax.inject.Inject;

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

@GroupedConversationScoped
@ConversationGroup(DateiImportBerichtLastViewConversationStore.class)
public class DateiImportBerichtLastViewConversationStore implements Serializable {

  private static final long serialVersionUID = 1L;

  @Inject
  protected GroupedConversation conversation;

  private String lastViewId;

  public String getLastViewId() {
    return lastViewId;
  }

  public void setLastViewId(String lastViewId) {
    this.lastViewId = lastViewId;
  }

  public boolean isSelected() {
    return getLastViewId() != null;
  }

  public void close() {
    conversation.close();
  }
}
