/*
 * 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.xmlrpc.model;

import java.util.Map;

import org.codehaus.swizzle.confluence.MapObject;

/**
 * XWiki specific class to describe an object.
 * 
 * @author fmancinelli
 *
 */
public class XWikiObjectSummary extends MapObject
{
    public XWikiObjectSummary()
    {
        super();
    }

    public XWikiObjectSummary(Map map)
    {
        super(map);
    }
    
    public String getPageId() {
        return getString("pageId");        
    }
    
    public void setPageId(String pageId) {
        setString("pageId", pageId);
    }
    
    public int getId() {
        return getInt("id");        
    }
    
    public void setId(int id) {
        setInt("id", id);
    }
    
    public String getClassName() {
        return getString("className");
    }
    
    public void setClassName(String className) {
        setString("className", className);
    }
    
    public String getPrettyName() {
        return getString("prettyName");
    }
    
    public void setPrettyName(String prettyName) {
        setString("prettyName", prettyName);
    }            
}

@@ -1442,32 +1442,430 @@
 Id);%0A    %7D%0A    %0A
+    public int getPageVersion() %7B%0A        return getInt(%22pageVersion%22);        %0A    %7D%0A    %0A    public void setPageVersion(int version) %7B%0A        setInt(%22pageVersion%22, version);%0A    %7D%0A    %0A    public int getPageMinorVersion() %7B%0A        return getInt(%22pageMinorVersion%22);%0A    %7D%0A    %0A    public void setPageMinorVersion(int minorVersion) %7B%0A        setInt(%22pageMinorVersion%22, minorVersion);%0A    %7D%0A    %0A
     public int g

Extend XMLRPC API with methods: getModifiedPagesHistory, safe storePage and safe storeObject