/*
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.xwiki.eventstream.internal;

import java.util.Date;
import java.util.List;

import org.xwiki.job.AbstractRequest;
import org.xwiki.job.Request;

/**
 * The request used to configure {@link LegacyEventMigrationJob}.
 * 
 * @version $Id$
 * @since 12.6RC1
 */
public class LegacyEventMigrationRequest extends AbstractRequest
{
    /**
     * Serialization identifier.
     */
    private static final long serialVersionUID = 1L;

    private static final String SINCE_ID = "after";

    /**
     * The default constructor.
     */
    public LegacyEventMigrationRequest()
    {
    }

    /**
     * @param request the request to copy
     */
    public LegacyEventMigrationRequest(Request request)
    {
        super(request);
    }

    /**
     * @param since the date after which to copy the events
     * @param id the identifier used to access the job
     */
    public LegacyEventMigrationRequest(Date since, List<String> id)
    {
        setSince(since);
        setId(id);
    }

    /**
     * @return the date after which to copy the events
     */
    public Date getSince()
    {
        return this.getProperty(SINCE_ID);
    }

    /**
     * @param since the date after which to copy the events
     */
    public void setSince(Date since)
    {
        setProperty(SINCE_ID, since);
    }
}

@@ -1153,11 +1153,8 @@
 12.6
-RC1
 %0A */

Enable pre filtering and new event store by default