/*
 * 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.wikistream.instance.output;

import org.xwiki.model.reference.EntityReference;
import org.xwiki.properties.annotation.PropertyDescription;
import org.xwiki.properties.annotation.PropertyName;
import org.xwiki.rendering.syntax.Syntax;

/**
 * @version $Id$
 * @since 6.0M1
 */
public class ExtensionInstanceOutputProperties extends InstanceOutputProperties
{
    /**
     * @see #getDefaultReference()
     */
    private EntityReference defaultReference;

    /**
     * @see #getSaveComment()
     */
    private String saveComment = "Import";

    /**
     * @see #getDefaultSyntax()
     */
    private Syntax defaultSyntax;

    /**
     * @see #isPreviousDeleted()
     */
    private boolean previousDeleted = true;

    /**
     * @see #isVersionPreserved()
     */
    private boolean versionPreserved = true;

    /**
     * @see #isPreserveAuthor()
     */
    private boolean authorPreserved = true;

    /**
     * @return The base reference to use to resolve reference from events
     */
    @PropertyName("Default reference")
    @PropertyDescription("The base reference to use to resolve reference from events")
    public EntityReference getDefaultReference()
    {
        return this.defaultReference;
    }

    /**
     * @param defaultReference The base reference to use to resolve reference from events
     */
    public void setDefaultReference(EntityReference defaultReference)
    {
        this.defaultReference = defaultReference;
    }

    /**
     * @return The comment to set when saving a document
     */
    @PropertyName("Save comment")
    @PropertyDescription("The comment to set when saving a document")
    public String getSaveComment()
    {
        return this.saveComment;
    }

    /**
     * @param saveComment The comment to set when saving a document
     */
    public void setSaveComment(String saveComment)
    {
        this.saveComment = saveComment;
    }

    /**
     * @return The default syntax if not is provided in events
     */
    @PropertyName("Default syntax")
    @PropertyDescription("The default syntax if not is provided in events")
    public Syntax getDefaultSyntax()
    {
        return this.defaultSyntax;
    }

    /**
     * @param defaultSyntax The default syntax if not is provided in events
     */
    public void setDefaultSyntax(Syntax defaultSyntax)
    {
        this.defaultSyntax = defaultSyntax;
    }

    /**
     * @return Indicate if existing document should be deleted before importing the new one
     */
    @PropertyName("Delete existing document")
    @PropertyDescription("Indicate if existing document should be deleted before importing the new one")
    public boolean isPreviousDeleted()
    {
        return this.previousDeleted;
    }

    /**
     * @param previousDeleted Indicate if existing document should be deleted before importing the new one
     */
    public void setPreviousDeleted(boolean previousDeleted)
    {
        this.previousDeleted = previousDeleted;
    }

    /**
     * @return Indicate if the versions coming from the events should be kept
     */
    @PropertyName("Preserve version")
    @PropertyDescription("Indicate if the versions comming from the events should be kept")
    public boolean isVersionPreserved()
    {
        return this.versionPreserved;
    }

    /**
     * @param versionPreserved Indicate if the versions coming from the events should be kept
     */
    public void setVersionPreserved(boolean versionPreserved)
    {
        this.versionPreserved = versionPreserved;
    }

    /**
     * @return Indicate if the authors coming from the events should be kept.
     */
    @PropertyName("Preserve author")
    @PropertyDescription("Indicate if the authors comming from the events should be kept")
    public boolean isAuthorPreserved()
    {
        return authorPreserved;
    }

    /**
     * @param authorPreserved Indicate if the authors coming from the events should be kept. Not taken into account if
     *            {@link #setAuthor(org.xwiki.model.reference.DocumentReference)} is used.
     */
    public void setAuthorPreserved(boolean authorPreserved)
    {
        this.authorPreserved = authorPreserved;
    }
}

@@ -938,4164 +938,130 @@
 t;%0A%0A
-import org.xwiki.model.reference.EntityReference;%0Aimport org.xwiki.properties.annotation.PropertyDescription;%0Aimport org.xwiki.properties.annotation.PropertyName;%0Aimport org.xwiki.rendering.syntax.Syntax;%0A%0A/**%0A * @version $Id$%0A * @since 6.0M1%0A */%0Apublic class ExtensionInstanceOutputProperties extends InstanceOutputProperties%0A%7B%0A    /**%0A     * @see #getDefaultReference()%0A     */%0A    private EntityReference defaultReference;%0A%0A    /**%0A     * @see #getSaveComment()%0A     */%0A    private String saveComment = %22Import%22;%0A%0A    /**%0A     * @see #getDefaultSyntax()%0A     */%0A    private Syntax defaultSyntax;%0A%0A    /**%0A     * @see #isPreviousDeleted()%0A     */%0A    private boolean previousDeleted = true;%0A%0A    /**%0A     * @see #isVersionPreserved()%0A     */%0A    private boolean versionPreserved = true;%0A%0A    /**%0A     * @see #isPreserveAuthor()%0A     */%0A    private boolean authorPreserved = true;%0A%0A    /**%0A     * @return The base reference to use to resolve reference from events%0A     */%0A    @PropertyName(%22Default reference%22)%0A    @PropertyDescription(%22The base reference to use to resolve reference from events%22)%0A    public EntityReference getDefaultReference()%0A    %7B%0A        return this.defaultReference;%0A    %7D%0A%0A    /**%0A     * @param defaultReference The base reference to use to resolve reference from events%0A     */%0A    public void setDefaultReference(EntityReference defaultReference)%0A    %7B%0A        this.defaultReference = defaultReference;%0A    %7D%0A%0A    /**%0A     * @return The comment to set when saving a document%0A     */%0A    @PropertyName(%22Save comment%22)%0A    @PropertyDescription(%22The comment to set when saving a document%22)%0A    public String getSaveComment()%0A    %7B%0A        return this.saveComment;%0A    %7D%0A%0A    /**%0A     * @param saveComment The comment to set when saving a document%0A     */%0A    public void setSaveComment(String saveComment)%0A    %7B%0A        this.saveComment = saveComment;%0A    %7D%0A%0A    /**%0A     * @return The default syntax if not is provided in events%0A     */%0A    @PropertyName(%22Default syntax%22)%0A    @PropertyDescription(%22The default syntax if not is provided in events%22)%0A    public Syntax getDefaultSyntax()%0A    %7B%0A        return this.defaultSyntax;%0A    %7D%0A%0A    /**%0A     * @param defaultSyntax The default syntax if not is provided in events%0A     */%0A    public void setDefaultSyntax(Syntax defaultSyntax)%0A    %7B%0A        this.defaultSyntax = defaultSyntax;%0A    %7D%0A%0A    /**%0A     * @return Indicate if existing document should be deleted before importing the new one%0A     */%0A    @PropertyName(%22Delete existing document%22)%0A    @PropertyDescription(%22Indicate if existing document should be deleted before importing the new one%22)%0A    public boolean isPreviousDeleted()%0A    %7B%0A        return this.previousDeleted;%0A    %7D%0A%0A    /**%0A     * @param previousDeleted Indicate if existing document should be deleted before importing the new one%0A     */%0A    public void setPreviousDeleted(boolean previousDeleted)%0A    %7B%0A        this.previousDeleted = previousDeleted;%0A    %7D%0A%0A    /**%0A     * @return Indicate if the versions coming from the events should be kept%0A     */%0A    @PropertyName(%22Preserve version%22)%0A    @PropertyDescription(%22Indicate if the versions comming from the events should be kept%22)%0A    public boolean isVersionPreserved()%0A    %7B%0A        return this.versionPreserved;%0A    %7D%0A%0A    /**%0A     * @param versionPreserved Indicate if the versions coming from the events should be kept%0A     */%0A    public void setVersionPreserved(boolean versionPreserved)%0A    %7B%0A        this.versionPreserved = versionPreserved;%0A    %7D%0A%0A    /**%0A     * @return Indicate if the authors coming from the events should be kept.%0A     */%0A    @PropertyName(%22Preserve author%22)%0A    @PropertyDescription(%22Indicate if the authors comming from the events should be kept%22)%0A    public boolean isAuthorPreserved()%0A    %7B%0A        return authorPreserved;%0A    %7D%0A%0A    /**%0A     * @param authorPreserved Indicate if the authors coming from the events should be kept. Not taken into account if%0A     *            %7B@link #setAuthor(org.xwiki.model.reference.DocumentReference)%7D is used.%0A     */%0A    public void setAuthorPreserved(boolean authorPreserved)%0A    %7B%0A        this.authorPreserved = authorPreserved;%0A    %7D
+/**%0A * @version $Id$%0A * @since 6.0M1%0A */%0Apublic class ExtensionInstanceOutputProperties extends InstanceOutputProperties%0A%7B%0A
 %0A%7D%0A

Remove properties copy/pasted by mistake