package ru.yandex.wmconsole.servantlet.hostlist;

import ru.yandex.common.framework.core.ServRequest;
import ru.yandex.common.framework.core.ServResponse;
import ru.yandex.wmconsole.servantlet.WMCAuthorizedHostOperationServantlet;
import ru.yandex.wmtools.common.error.InternalException;
import ru.yandex.wmtools.common.error.UserException;

public class RemoveHostServantlet extends WMCAuthorizedHostOperationServantlet {
    private static final String PARAM_REMOVE = "remove";

    @Override
    public void doProcess(ServRequest req, ServResponse res, long userId) throws UserException, InternalException {
        Long[] hostIds = getMultiParamLong(req, PARAM_REMOVE);
        if (hostIds.length > 0) {
            getHostInfoService().removeHosts(userId, req.getUserId(), hostIds);
        }
        //getHostInfoService().
    }
}
