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

/*
 * 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 getPageVersion() {
        return getInt("pageVersion");        
    }
    
    public void setPageVersion(int version) {
        setInt("pageVersion", version);
    }
    
    public int getPageMinorVersion() {
        return getInt("pageMinorVersion");
    }
    
    public void setPageMinorVersion(int minorVersion) {
        setInt("pageMinorVersion", minorVersion);
    }
    
    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);
    }            
}

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