/*
 * 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;
    }

}

@@ -1472,32 +1472,33 @@
 ptor of the wiki
+.
 %0A     */%0A    pri
@@ -1758,32 +1758,444 @@
 iAlias);%0A    %7D%0A%0A
+    /**%0A     * Constructor.%0A     * @param wikiId ID of the wiki%0A     * @param wikiAlias Alias of the wiki%0A     * @param documentReference Reference of the document that store the descriptor in the wiki%0A     */%0A    public DefaultWikiDescriptor(String wikiId, String wikiAlias, DocumentReference documentReference)%0A    %7B%0A        super(wikiId, wikiAlias);%0A        this.documentReference = documentReference;%0A    %7D%0A%0A
     /**%0A     * @

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