package com.aguillem.festival.manager.core.dto;

import org.scub.foundation.framework.core.interfaces.dto.IdLabelCriteriaDto;

/**
 * Criteria for IdLabelDto linked to an other object.
 * @author Anthony Guillemette (anthony.guillemette@gmail.com)
 */
public class IdLabelLinkedCriteriaDto extends IdLabelCriteriaDto {

    private static final long serialVersionUID = 5530445469962780225L;

    private Long linkId;

    public IdLabelLinkedCriteriaDto() {
        super();
    }

    public IdLabelLinkedCriteriaDto(String filter) {
        super(filter);
    }

    public IdLabelLinkedCriteriaDto(String filter, Long linkId) {
        super(filter);
        this.linkId = linkId;
    }

    /**
     * Get linkId.
     * @return the linkId
     */
    public Long getLinkId() {
        return linkId;
    }

    /**
     * Set linkId.
     * @param linkId the linkId to set
     */
    public void setLinkId(Long linkId) {
        this.linkId = linkId;
    }

    @Override
    public String toString() {
        return "IdLabelLinkedCriteriaDto [linkId=" + linkId + ", toString()=" + super.toString() + "]";
    }
}
