Xindice API
version 1.2m1

org.apache.xindice.server.rpc.messages
Class SetCollectionMeta

java.lang.Object
  extended byorg.apache.xindice.server.rpc.RPCDefaultMessage
      extended byorg.apache.xindice.server.rpc.messages.SetCollectionMeta
All Implemented Interfaces:
RPCMessage

public class SetCollectionMeta
extends RPCDefaultMessage

XML-RPC message to set the meta data associated with a collection

Version:
$Revision: 595817 $, $Date: 2007-11-16 15:49:03 -0500 (Fri, 16 Nov 2007) $
Author:
Dave Viner

Field Summary
 
Fields inherited from class org.apache.xindice.server.rpc.RPCDefaultMessage
API_NAME, API_VERSION, COLLECTION, COMPRESSED, CONFIGURATION, DOCUMENT, MAXKEYSIZE, META, MISSING_COLLECTION_PARAM, MISSING_CONFIGURATION_PARAM, MISSING_DOCUMENT_PARAM, MISSING_META_CONFIGURATION, MISSING_META_PARAM, MISSING_NAME_PARAM, MISSING_PATTERN_PARAM, MISSING_QUERY_PARAM, MISSING_TIMESTAMP_PARAM, MISSING_TYPE_PARAM, NAME, NAMESPACES, PAGESIZE, PATTERN, QUERY, RESULT, TIMESTAMP, TYPE
 
Constructor Summary
SetCollectionMeta()
           
 
Method Summary
 Map execute(Map message)
          Set the MetaData object for the requested collection.
 
Methods inherited from class org.apache.xindice.server.rpc.RPCDefaultMessage
getCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetCollectionMeta

public SetCollectionMeta()
Method Detail

execute

public Map execute(Map message)
            throws Exception
Set the MetaData object for the requested collection. This method expects the Map to contain the name of the collection in the RPCDefaultMessage.COLLECTION key, and the XML for the new MetaData object in the RPCDefaultMessage.META key. It will return an XML representation of the MetaData object associated with this collection. The XML will be stored in the RPCDefaultMessage.RESULT key.

Parameters:
message - the parameters passed to the xmlrpc method.
Returns:
Map containing XML of the newly created MetaData object.
Throws:
Exception

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.