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

import de.ivu.elect.business.email.entity.EmailLayout;
import de.ivu.elect.jee.presentation.dynamicform.Property;
import org.apache.deltaspike.core.api.scope.ConversationGroup;
import org.apache.deltaspike.core.api.scope.GroupedConversationScoped;

@GroupedConversationScoped
@ConversationGroup(AbstractEmailLayoutSearchParameters.class)
public class EmailLayoutSearchParameters extends AbstractEmailLayoutSearchParameters {

  private static final long serialVersionUID = 1L;

  private EmailLayout emailLayout;

  public EmailLayoutSearchParameters() {
    super();
  }

  protected EmailLayout getEmailLayout() {
    if (emailLayout == null) {
      emailLayout = new EmailLayout();
    }
    return emailLayout;
  }

  public String getBezeichnung() {
    return getEmailLayout().getBezeichnung();
  }

  public Property getBezeichnungProperty() {
    return getEmailLayout().getProperties().getBezeichnungProperty();
  }
}
