public class MetadataServiceUtil extends Object
Modifier and Type | Method and Description |
---|---|
static List<com.sforce.soap.metadata.SaveResult> |
callCreateUpdateService(com.sforce.soap.metadata.MetadataConnection connection,
String type,
List<Map<String,Object>> request,
MetadataOperationType metadataOperation) |
static List<com.sforce.soap.metadata.DeleteResult> |
callDeleteService(com.sforce.soap.metadata.MetadataConnection connection,
String type,
List<String> fullNames) |
static void |
callDeployService(com.sforce.soap.metadata.MetadataConnection connection,
InputStream stream,
boolean ignoreWarnings,
boolean purgeOnDelete,
boolean rollbackOnError) |
static com.sforce.soap.metadata.ReadResult |
callReadService(com.sforce.soap.metadata.MetadataConnection connection,
String type,
List<String> fullNames) |
static com.sforce.soap.metadata.SaveResult |
callRenameService(com.sforce.soap.metadata.MetadataConnection connection,
String type,
String oldFullName,
String newFullName) |
static InputStream |
callRetrieveService(com.sforce.soap.metadata.MetadataConnection connection,
Double apiVersion,
List<String> packageNames,
List<String> specificFiles,
InputStream unpackaged) |
static List<com.sforce.soap.metadata.UpsertResult> |
callUpsertService(com.sforce.soap.metadata.MetadataConnection connection,
String type,
List<Map<String,Object>> request) |
static com.sforce.soap.metadata.Metadata[] |
getMetadataObjects(MetadataType metadataType,
List<Map<String,Object>> objects) |
static Map<String,Object> |
toMObjectMap(Map<Object,Object> map) |
@NotNull public static List<com.sforce.soap.metadata.SaveResult> callCreateUpdateService(@NotNull com.sforce.soap.metadata.MetadataConnection connection, @NotNull String type, @NotNull List<Map<String,Object>> request, @NotNull MetadataOperationType metadataOperation) throws SalesforceException
SalesforceException
@NotNull public static List<com.sforce.soap.metadata.UpsertResult> callUpsertService(com.sforce.soap.metadata.MetadataConnection connection, String type, List<Map<String,Object>> request) throws SalesforceException
SalesforceException
@NotNull public static List<com.sforce.soap.metadata.DeleteResult> callDeleteService(@NotNull com.sforce.soap.metadata.MetadataConnection connection, @NotNull String type, @NotNull List<String> fullNames) throws SalesforceConnectionException
SalesforceConnectionException
@NotNull public static com.sforce.soap.metadata.ReadResult callReadService(@NotNull com.sforce.soap.metadata.MetadataConnection connection, @NotNull String type, @NotNull List<String> fullNames) throws SalesforceConnectionException
SalesforceConnectionException
@NotNull public static com.sforce.soap.metadata.SaveResult callRenameService(@NotNull com.sforce.soap.metadata.MetadataConnection connection, @NotNull String type, @NotNull String oldFullName, @NotNull String newFullName) throws SalesforceConnectionException
SalesforceConnectionException
@NotNull public static void callDeployService(@NotNull com.sforce.soap.metadata.MetadataConnection connection, @NotNull InputStream stream, boolean ignoreWarnings, boolean purgeOnDelete, boolean rollbackOnError) throws SalesforceException
SalesforceException
@NotNull public static InputStream callRetrieveService(@NotNull com.sforce.soap.metadata.MetadataConnection connection, @NotNull Double apiVersion, @NotNull List<String> packageNames, @NotNull List<String> specificFiles, @NotNull InputStream unpackaged) throws SalesforceException, com.sforce.ws.ConnectionException, InterruptedException
SalesforceException
com.sforce.ws.ConnectionException
InterruptedException
public static com.sforce.soap.metadata.Metadata[] getMetadataObjects(MetadataType metadataType, List<Map<String,Object>> objects) throws InvocationTargetException, NoSuchMethodException, SalesforceException, IllegalAccessException
Copyright © 2010–2020. All rights reserved.