com.mulesoft.adapter.module.salesforce
Class SObjects

java.lang.Object
  extended by com.mulesoft.adapter.module.salesforce.SObjects

public final class SObjects
extends Object


Method Summary
static List<Map<String,Object>> asTypedObject(org.mule.tools.module.invocation.DynamicModule module, String type, List<Map<String,String>> objects)
          Specified `objects` as typed objects.
static String extractType(Node node, Map<String,String> attributes)
           
static List<Node> findSObjectRootNodes(Document document)
           
static byte[] generateQueryResponse(List<Map<String,Object>> objects, String rootElementName, String rootElementNamespace)
           true 01g30000000590JAAQ-3 Merce Carroll 1
static byte[] generateSubscriptionResponse(Map<String,Object> object, String rootElementName, String rootElementNamespace, String channel, String createdDate, String type)
           Contact
static Map<String,List<Map<String,String>>> parse(Document payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

extractType

public static String extractType(Node node,
                                 Map<String,String> attributes)
Parameters:
node -
attributes -
Returns:
type of specified SObject (represented by specified Node and `attributes`). Support both enterprise and partner representations.

parse

public static Map<String,List<Map<String,String>>> parse(Document payload)
Parameters:
payload -
Returns:

generateQueryResponse

public static byte[] generateQueryResponse(List<Map<String,Object>> objects,
                                           String rootElementName,
                                           String rootElementNamespace)
true 01g30000000590JAAQ-3 Merce Carroll 1


generateSubscriptionResponse

public static byte[] generateSubscriptionResponse(Map<String,Object> object,
                                                  String rootElementName,
                                                  String rootElementNamespace,
                                                  String channel,
                                                  String createdDate,
                                                  String type)
Contact


findSObjectRootNodes

public static List<Node> findSObjectRootNodes(Document document)
Parameters:
document -
Returns:
all root Nodes

asTypedObject

public static List<Map<String,Object>> asTypedObject(org.mule.tools.module.invocation.DynamicModule module,
                                                     String type,
                                                     List<Map<String,String>> objects)
                                              throws org.mule.api.MuleException
Specified `objects` as typed objects.

Throws:
org.mule.api.MuleException


Copyright © 2012. All Rights Reserved.