package ru.yandex.webmaster.support.host;

import java.net.IDN;
import java.util.List;

import org.springframework.beans.factory.annotation.Required;

import ru.yandex.webmaster.common.util.HostnamePart;
import ru.yandex.webmaster.support.host.dao.TblHostsMainSupportDao;
import ru.yandex.wmconsole.data.info.BriefHostInfo;
import ru.yandex.wmtools.common.error.InternalException;

/**
 * @author aherman
 */
public class SupportHostService {
    private TblHostsMainSupportDao tblHostsMainSupportDao;

    public List<BriefHostInfo> findHostsByNamePart(HostnamePart hostnamePart, int size) throws InternalException {
        return tblHostsMainSupportDao.findHosts(hostnamePart, size);
    }

    @Required
    public void setTblHostsMainSupportDao(TblHostsMainSupportDao tblHostsMainSupportDao) {
        this.tblHostsMainSupportDao = tblHostsMainSupportDao;
    }
}
