/*
 * 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.wiki.descriptor.internal;

import org.xwiki.model.reference.DocumentReference;
import org.xwiki.model.reference.EntityReference;
import org.xwiki.wiki.WikiDescriptor;

/**
 * Default implementation of the Wiki notion.
 */
public class DefaultWikiDescriptor extends WikiDescriptor
{
    /**
     * Relative reference to the XWiki.XWikiServerClass containing wiki descriptor metadata.
     */
    public static final EntityReference SERVER_CLASS = XWikiServerClassDocumentInitializer.SERVER_CLASS;

    /**
     * Reference of the document that store the descriptor of the wiki
     */
    private DocumentReference documentReference;

    /**
     * Constructor
     * @param wikiId ID of the wiki
     * @param wikiAlias Alias of the wiki
     */
    public DefaultWikiDescriptor(String wikiId, String wikiAlias)
    {
        super(wikiId, wikiAlias);
    }

    /**
     * @param documentReference the new descriptor reference
     */
    public void setDocumentReference(DocumentReference documentReference)
    {
        this.documentReference = documentReference;
    }

    /**
     * @return the descriptor reference
     */
    public DocumentReference getDocumentReference()
    {
        return documentReference;
    }

}

/*
 * 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.wiki.descriptor.internal;

import org.xwiki.model.reference.DocumentReference;
import org.xwiki.model.reference.EntityReference;
import org.xwiki.wiki.WikiDescriptor;

/**
 * Default implementation of the Wiki notion.
 */
public class DefaultWikiDescriptor extends WikiDescriptor
{
    /**
     * Relative reference to the XWiki.XWikiServerClass containing wiki descriptor metadata.
     */
    public static final EntityReference SERVER_CLASS = XWikiServerClassDocumentInitializer.SERVER_CLASS;

    /**
     * Reference of the document that store the descriptor of the wiki.
     */
    private DocumentReference documentReference;

    /**
     * Constructor
     * @param wikiId ID of the wiki
     * @param wikiAlias Alias of the wiki
     */
    public DefaultWikiDescriptor(String wikiId, String wikiAlias)
    {
        super(wikiId, wikiAlias);
    }

    /**
     * Constructor.
     * @param wikiId ID of the wiki
     * @param wikiAlias Alias of the wiki
     * @param documentReference Reference of the document that store the descriptor in the wiki
     */
    public DefaultWikiDescriptor(String wikiId, String wikiAlias, DocumentReference documentReference)
    {
        super(wikiId, wikiAlias);
        this.documentReference = documentReference;
    }

    /**
     * @param documentReference the new descriptor reference
     */
    public void setDocumentReference(DocumentReference documentReference)
    {
        this.documentReference = documentReference;
    }

    /**
     * @return the descriptor reference
     */
    public DocumentReference getDocumentReference()
    {
        return documentReference;
    }

}

Merge xwiki-platform-wiki-manager and xwiki-platform-workspace.