From 2ccb6179a948e6fdd057feaf2e2b926c0ca5dd98 Mon Sep 17 00:00:00 2001 From: Steven Hayhurst Date: Mon, 10 Jul 2017 13:55:17 +0100 Subject: [PATCH 01/93] Stop overwriting fieldNameSet and fieldValueList with each loop (issue #18) --- custom_md_loader/classes/MetadataUtil.cls | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom_md_loader/classes/MetadataUtil.cls b/custom_md_loader/classes/MetadataUtil.cls index 94ba939..03748a8 100644 --- a/custom_md_loader/classes/MetadataUtil.cls +++ b/custom_md_loader/classes/MetadataUtil.cls @@ -62,13 +62,13 @@ public class MetadataUtil { MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[fieldValues.size()]; // separated out columns as they were coming as string like: "DeveloperName;Label;Description;" // it would pass the conditions under isHeadervalid() - Set fieldNameSet; + Set fieldNameSet = new Set(); for (String fieldNames :header) { if (String.isBlank(fieldNames)) { continue; } - fieldNameSet = new Set(fieldNames.split(';')); + fieldNameSet.addAll(fieldNames.split(';')); } for(List singleRowOfValues : fieldValues) { @@ -84,14 +84,14 @@ public class MetadataUtil { Map fieldsAndValues = new Map(); // separated out field values as they were coming as string like: "XXX;YYY;ZZZZ;" - List fieldValueList; + ist fieldValueList = new List(); for (String singleRowFieldValues :singleRowOfValues) { if (String.isBlank(singleRowFieldValues)) { continue; } - fieldValueList = new List(singleRowFieldValues.split(';')); + fieldValueList.addAll(singleRowFieldValues.split(';')); } for(String fieldName : fieldNameSet) { if(fieldName.equals(AppConstants.DEV_NAME_ATTRIBUTE)) { From 75c879ace6638b28ca9bd228245ae550c6a19412 Mon Sep 17 00:00:00 2001 From: sricharananand Date: Wed, 9 Aug 2017 22:55:52 -0700 Subject: [PATCH 02/93] Update MetadataUtil.cls Fixed typo on line 87 - missing L in List --- custom_md_loader/classes/MetadataUtil.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_md_loader/classes/MetadataUtil.cls b/custom_md_loader/classes/MetadataUtil.cls index 03748a8..db3de61 100644 --- a/custom_md_loader/classes/MetadataUtil.cls +++ b/custom_md_loader/classes/MetadataUtil.cls @@ -84,7 +84,7 @@ public class MetadataUtil { Map fieldsAndValues = new Map(); // separated out field values as they were coming as string like: "XXX;YYY;ZZZZ;" - ist fieldValueList = new List(); + List fieldValueList = new List(); for (String singleRowFieldValues :singleRowOfValues) { if (String.isBlank(singleRowFieldValues)) { From 97876cffd816d1bfb65103699cede933cd03616c Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 15 Sep 2017 10:42:34 -0700 Subject: [PATCH 03/93] Add files via upload Added support for Custom Settings/Custom Object data to Custom Metadata Types Migration: Do you have a need to migrate Custom Settings/Custom Object data to Custom Metadata Type records and looking for a solution that does this migration? Migration of Custom Settings/Custom Object data to Custom Metadata Types records can be painful. With this updated apex solution this migration is simplified. --- .../applications/Custom_Metadata_Loader.app | 1 + custom_md_loader/classes/AppConstants.cls | 10 +- custom_md_loader/classes/JsonUtilities.cls | 53 ++++ .../classes/JsonUtilities.cls-meta.xml | 6 + .../classes/MetadataApexApiLoader.cls | 229 +++++++++++++++ .../MetadataApexApiLoader.cls-meta.xml | 6 + custom_md_loader/classes/MetadataLoader.cls | 159 +++++++++++ .../classes/MetadataLoader.cls-meta.xml | 5 + .../classes/MetadataLoaderClient.cls | 73 +++++ .../classes/MetadataLoaderClient.cls-meta.xml | 5 + .../classes/MetadataLoaderFactory.cls | 22 ++ .../MetadataLoaderFactory.cls-meta.xml | 5 + custom_md_loader/classes/MetadataMapper.cls | 14 + .../classes/MetadataMapper.cls-meta.xml | 5 + .../classes/MetadataMapperCustom.cls | 77 +++++ .../classes/MetadataMapperCustom.cls-meta.xml | 5 + .../classes/MetadataMapperDefault.cls | 86 ++++++ .../MetadataMapperDefault.cls-meta.xml | 5 + .../classes/MetadataMapperFactory.cls | 24 ++ .../MetadataMapperFactory.cls-meta.xml | 5 + .../classes/MetadataMapperSimple.cls | 83 ++++++ .../classes/MetadataMapperSimple.cls-meta.xml | 5 + .../classes/MetadataMapperType.cls | 8 + .../classes/MetadataMapperType.cls-meta.xml | 5 + .../classes/MetadataMappingInfo.cls | 81 ++++++ .../classes/MetadataMappingInfo.cls-meta.xml | 5 + .../classes/MetadataMigrationController.cls | 222 +++++++++++++++ .../MetadataMigrationController.cls-meta.xml | 5 + .../classes/MetadataObjectCreator.cls | 269 ++++++++++++++++++ .../MetadataObjectCreator.cls-meta.xml | 5 + custom_md_loader/classes/MetadataOpType.cls | 8 + .../classes/MetadataOpType.cls-meta.xml | 5 + custom_md_loader/classes/MetadataResponse.cls | 62 ++++ .../classes/MetadataResponse.cls-meta.xml | 5 + .../classes/MetadataWrapperApiLoader.cls | 242 ++++++++++++++++ .../MetadataWrapperApiLoader.cls-meta.xml | 5 + custom_md_loader/package.xml | 20 ++ custom_md_loader/pages/CMTMigrator.page | 256 +++++++++++++++++ .../pages/CMTMigrator.page-meta.xml | 7 + .../pages/CustomMetadataLoader.page | 2 +- .../Custom_Metadata_Loader.permissionset | 12 + custom_md_loader/tabs/CMT_Migrator.tab | 7 + 42 files changed, 2112 insertions(+), 2 deletions(-) create mode 100644 custom_md_loader/classes/JsonUtilities.cls create mode 100644 custom_md_loader/classes/JsonUtilities.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataApexApiLoader.cls create mode 100644 custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataLoader.cls create mode 100644 custom_md_loader/classes/MetadataLoader.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataLoaderClient.cls create mode 100644 custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataLoaderFactory.cls create mode 100644 custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataMapper.cls create mode 100644 custom_md_loader/classes/MetadataMapper.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataMapperCustom.cls create mode 100644 custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataMapperDefault.cls create mode 100644 custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataMapperFactory.cls create mode 100644 custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataMapperSimple.cls create mode 100644 custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataMapperType.cls create mode 100644 custom_md_loader/classes/MetadataMapperType.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataMappingInfo.cls create mode 100644 custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataMigrationController.cls create mode 100644 custom_md_loader/classes/MetadataMigrationController.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataObjectCreator.cls create mode 100644 custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataOpType.cls create mode 100644 custom_md_loader/classes/MetadataOpType.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataResponse.cls create mode 100644 custom_md_loader/classes/MetadataResponse.cls-meta.xml create mode 100644 custom_md_loader/classes/MetadataWrapperApiLoader.cls create mode 100644 custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml create mode 100644 custom_md_loader/pages/CMTMigrator.page create mode 100644 custom_md_loader/pages/CMTMigrator.page-meta.xml create mode 100644 custom_md_loader/tabs/CMT_Migrator.tab diff --git a/custom_md_loader/applications/Custom_Metadata_Loader.app b/custom_md_loader/applications/Custom_Metadata_Loader.app index 60220a5..e9a1194 100755 --- a/custom_md_loader/applications/Custom_Metadata_Loader.app +++ b/custom_md_loader/applications/Custom_Metadata_Loader.app @@ -4,4 +4,5 @@ Custom metadata record loader from a CSV file. Custom_Metadata_Loader + CMT_Migrator diff --git a/custom_md_loader/classes/AppConstants.cls b/custom_md_loader/classes/AppConstants.cls index b0a298b..5d3ab9d 100644 --- a/custom_md_loader/classes/AppConstants.cls +++ b/custom_md_loader/classes/AppConstants.cls @@ -1,3 +1,9 @@ +/** + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ public class AppConstants { public static final String QUALIFIED_API_NAME_ATTRIBUTE = 'QualifiedApiName'; @@ -7,11 +13,13 @@ public class AppConstants { public static final String DESC_ATTRIBUTE = 'Description'; public static final String MDT_SUFFIX = '__mdt'; + public static final String CS_NAME_ATTRIBURE = 'Name'; + public static final String SELECT_STRING = 'Select type'; //error messages - public static final String FILE_MISSING = 'Please provide a comma seperated file.'; + public static final String FILE_MISSING = 'Please provide a comma separated file.'; public static final String EMPTY_FILE = 'CSV file is empty.'; public static final String TYPE_OPTION_NOT_SELECTED = 'Please choose a valid custom metadata type.'; public static final String HEADER_MISSING_DEVNAME_AND_LABEL = 'Header must contain atleast one of these two fields - '+ DEV_NAME_ATTRIBUTE + ', ' + LABEL_ATTRIBUTE +'.'; diff --git a/custom_md_loader/classes/JsonUtilities.cls b/custom_md_loader/classes/JsonUtilities.cls new file mode 100644 index 0000000..08452fb --- /dev/null +++ b/custom_md_loader/classes/JsonUtilities.cls @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +/** + * Utilities class for common manipulation of json format data + * + */ + +public with sharing class JsonUtilities { + + public class JsonUtilException extends Exception {} + + public static String JSON_BAD_FORMAT = 'The provided Json String was badly formatted.'; + public static String JSON_EMPTY = 'No field values were found in the Json String.'; + + + /** + * This basic method takes a string formatted as json and returns a map + * containing the name/value pairs. If the input is empty or is not formatted correctly + * the method throws a JsonUtilException exception. + **/ + Public static Map getValuesFromJson(String jsonString) { + Map jsonObjMap; + Map jsonMap = new Map(); + if (TextUtil.isEmpty(jsonString) ){ + throw new JsonUtilException(JSON_EMPTY); + } + try { + jsonObjMap = (Map)JSON.deserializeUntyped(jsonString); + if(jsonObjMap == null || jsonObjMap.size() == 0) { + throw new JsonUtilException(JSON_EMPTY); + } else { + for (String pKey : jsonObjMap.keySet() ) { + try { + String pVal = (String)jsonObjMap.get(pKey); + jsonMap.put(pKey, pVal); + } catch (exception e) { + throw new JsonUtilException(JSON_BAD_FORMAT, e); + } + } + } + return jsonMap; + } catch (Exception e) { + throw new JsonUtilException(JSON_BAD_FORMAT, e); + } + } + + +} diff --git a/custom_md_loader/classes/JsonUtilities.cls-meta.xml b/custom_md_loader/classes/JsonUtilities.cls-meta.xml new file mode 100644 index 0000000..36cfacb --- /dev/null +++ b/custom_md_loader/classes/JsonUtilities.cls-meta.xml @@ -0,0 +1,6 @@ + + + 39.0 + Active + + diff --git a/custom_md_loader/classes/MetadataApexApiLoader.cls b/custom_md_loader/classes/MetadataApexApiLoader.cls new file mode 100644 index 0000000..c2a5bcd --- /dev/null +++ b/custom_md_loader/classes/MetadataApexApiLoader.cls @@ -0,0 +1,229 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataApexApiLoader extends MetadataLoader { + + public MetadataDeployStatus mdDeployStatus {get;set;} + public MetadataDeployCallback callback {get;set;} + + public static Id jobId1 {get;set;} + public static Metadata.DeployStatus deployStatus1 {get;set;} + public static boolean success1 {get;set;} + + public MetadataApexApiLoader() { + this.mdDeployStatus = new MetadataApexApiLoader.MetadataDeployStatus(); + this.callback = new MetadataDeployCallback(); + } + + public MetadataApexApiLoader.MetadataDeployStatus getMdDeployStatus() { + return this.mdDeployStatus; + } + + public MetadataApexApiLoader.MetadataDeployCallback getCallback() { + return this.callback; + } + + public override void migrateAsIsWithObjCreation(String csName, String cmtName) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Not Supported!!!')); + response.setIsSuccess(false); + response.setMessages(messages); + } + + public override void migrateAsIsMapping(String csName, String cmtName) { + super.migrateAsIsMapping(csName, cmtName); + buildResponse(); + } + + public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { + super.migrateSimpleMapping(csNameWithField, cmtNameWithField); + buildResponse(); + } + + public override void migrateCustomMapping(String csName, String cmtName, String mapping) { + super.migrateCustomMapping(csName, cmtName, mapping); + buildResponse(); + } + + private void buildResponse() { + if(response.IsSuccess()) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Migration In Progress... Job Id: ' + getMdDeployStatus().getJobId())); + response.setIsSuccess(true); + response.setMessages(messages); + } + } + + public override void migrate(MetadataMappingInfo mappingInfo) { + + System.debug('MetadataApexApiLoader.migrate -->'); + try{ + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + String typeDevName = mappingInfo.getCustomMetadadataTypeName() + .subString(0, mappingInfo.getCustomMetadadataTypeName().indexOf(AppConstants.MDT_SUFFIX)); + List records = new List(); + for(sObject csRecord : mappingInfo.getRecordList()) { + + Metadata.CustomMetadata customMetadataRecord = new Metadata.CustomMetadata(); + customMetadataRecord.values = new List(); + + if(csRecord.get(AppConstants.CS_NAME_ATTRIBURE) != null) { + String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); + String tempVal = strippedLabel.substring(0, 1); + + if(tempVal.isNumeric()) { + strippedLabel = 'X' + strippedLabel; + } + strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + // default fullName to type_dev_name.label + customMetadataRecord.fullName = typeDevName + '.'+ strippedLabel; + customMetadataRecord.label = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); + } + for(String fieldName : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(fieldName.toLowerCase()); + + if(mappingInfo.getCSToMDT_fieldMapping().get(fieldName).endsWith('__c')){ + Metadata.CustomMetadataValue cmv = new Metadata.CustomMetadataValue(); + cmv.field = mappingInfo.getCSToMDT_fieldMapping().get(fieldName); + if(descCSFieldResult.getType().name() == 'DATETIME') { + + if(csRecord.get(fieldName) != null) { + Datetime dt = DateTime.valueOf(csRecord.get(fieldName)); + String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); // 12/22/2014 7:05 AM (MM/DD/YYYY HH:MM PERIOD) + cmv.value = csRecord.get(formattedDateTime); + } + else { + cmv.value = null; + } + + } + else{ + cmv.value = csRecord.get(fieldName); + } + + customMetadataRecord.values.add(cmv); + } + } + records.add(customMetadataRecord); + } + + + callback.setMdDeployStatus(mdDeployStatus); + + Metadata.DeployContainer deployContainer = new Metadata.DeployContainer(); + for(Metadata.CustomMetadata record : records) { + deployContainer.addMetadata(record); + } + + // Enqueue custom metadata deployment + Id jobId = Metadata.Operations.enqueueDeployment(deployContainer, callback); + jobId1 = jobId; + + mdDeployStatus.setJobId(jobId); + + System.debug('jobId-->' + jobId); + System.debug('mdDeployStatus-->' + mdDeployStatus); + System.debug('mdDeployStatus.getJobId()-->' + mdDeployStatus.getJobId()); + } + catch(Exception e) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, e.getMessage())); + + response.setIsSuccess(false); + response.setMessages(messages); + } + } + + + + public class MetadataDeployStatus { + public Id jobId {get;set;} + public Metadata.DeployStatus deployStatus {get;set;} + public boolean success {get;set;} + + public MetadataDeployStatus() {} + + public Id getJobId() { + return this.jobId; + } + public void setJobId(Id jobId) { + this.jobId = jobId; + } + + public Metadata.DeployStatus getDeployStatus() { + return this.deployStatus; + } + public void setDeployStatus(Metadata.DeployStatus deployStatus) { + System.debug('setDeployStatus deployStatus ===>'+ deployStatus); + this.deployStatus = deployStatus; + } + + public boolean getSuccess() { + return this.success; + } + public void setSuccess(boolean success) { + System.debug('setDeployStatus success ===>'+ success); + this.success = success; + } + + } + + public class MetadataDeployCallback implements Metadata.DeployCallback { + + public MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus1 {get;set;} + + public void setMdDeployStatus(MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus) { + this.mdDeployStatus1 = mdDeployStatus; + } + + public MetadataDeployCallback() { + } + + public void handleResult(Metadata.DeployResult result, + Metadata.DeployCallbackContext context) { + + deployStatus1 = result.status; + success1 = result.success; + + if (result.status == Metadata.DeployStatus.Succeeded) { + + mdDeployStatus1.setSuccess(true); + mdDeployStatus1.setDeployStatus(result.status); + + System.debug(' ===>'+ result); + } + else if (result.status == Metadata.DeployStatus.InProgress) { + // Deployment In Progress + + mdDeployStatus1.setSuccess(false); + mdDeployStatus1.setDeployStatus(result.status); + + System.debug(' ===> fail '+ result); + } + else { + + mdDeployStatus1.setSuccess(false); + mdDeployStatus1.setDeployStatus(result.status); + + // Deployment was not successful + System.debug(' ===> fail '+ result); + } + + /*if (result.success) { + success = true; + System.debug(' ===>'+ result); + } + */ + + } + } + + + +} diff --git a/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml b/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml new file mode 100644 index 0000000..36cfacb --- /dev/null +++ b/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml @@ -0,0 +1,6 @@ + + + 39.0 + Active + + diff --git a/custom_md_loader/classes/MetadataLoader.cls b/custom_md_loader/classes/MetadataLoader.cls new file mode 100644 index 0000000..848d3ee --- /dev/null +++ b/custom_md_loader/classes/MetadataLoader.cls @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public virtual class MetadataLoader { + + public MetadataResponse response; + public MetadataMapperDefault mapper; + + public MetadataLoader() { + response = new MetadataResponse(true, null, null); + } + + /** + * This will first create custom object and then migrates the records. + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateAsIsWithObjCreation(String csName, String cmtName) { + + System.debug('MetadataLoader.migrateAsIsObjCreation --> csName=' + csName); + System.debug('MetadataLoader.migrateAsIsObjCreation --> cmtName=' + cmtName); + + MetadataMappingInfo mappingInfo = null; + try{ + System.debug('MetadataLoader.migrateAsIsObjCreation --> 1'); + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); + mappingInfo = mapper.mapper(csName, cmtName, null); + System.debug('MetadataLoader.migrateAsIsObjCreation --> 2'); + } + catch(Exception e) { + System.debug('Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); + messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } + + /** + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateAsIsMapping(String csName, String cmtName) { + + System.debug('MetadataLoader.migrateAsIsMapping --> csName=' + csName); + System.debug('MetadataLoader.migrateAsIsMapping --> cmtName=' + cmtName); + + MetadataMappingInfo mappingInfo = null; + try{ + System.debug('MetadataLoader.migrateAsIsMapping --> 1'); + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); + mappingInfo = mapper.mapper(csName, cmtName, null); + System.debug('MetadataLoader.migrateAsIsMapping --> 2'); + } + catch(Exception e) { + System.debug('Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); + messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + System.debug('MetadataLoader.migrateAsIsMapping --> 3'); + migrate(mappingInfo); + System.debug('MetadataLoader.migrateAsIsMapping --> 4'); + + } + + + /** + * csNameAndField: Label, DeveloperName, Description (We might need it for migration) + * cmtNameAndField: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateSimpleMapping(String csNameAndField, String cmtNameAndField) { + + MetadataMappingInfo mappingInfo = null; + try{ + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.SIMPLE); + mappingInfo = mapper.mapper(csNameAndField, cmtNameAndField, null); + } + catch(Exception e) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name/Field Name and Custom Metadata Types/Field Name names are required!')); + messages.add(new MetadataResponse.Message(200, 'Please check the format, . and .')); + messages.add(new MetadataResponse.Message(300, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(400, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + + System.debug('mappingInfo.getStandardFields() ->' + mappingInfo.getStandardFields()); + System.debug('mappingInfo ->' + mappingInfo.getSrcFieldNames()); + System.debug('cmtNameAndField ->' + cmtNameAndField); + System.debug('mappingInfo.getSrcFieldResultMap() ->' + mappingInfo.getSrcFieldResultMap()); + System.debug('mappingInfo.getCSToMDT_fieldMapping() ->' + mappingInfo.getCSToMDT_fieldMapping()); + + migrate(mappingInfo); + } + + /** + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + * mapping: e.g. Json mapping between CS field Api and CMT field Api names + */ + public virtual void migrateCustomMapping(String csName, String cmtName, String mapping) { + System.debug('MetadataLoader.migrateCustomMapping -->'); + MetadataMappingInfo mappingInfo = null; + try{ + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.CUSTOM); + mappingInfo = mapper.mapper(csName, cmtName, mapping); + + System.debug('MetadataLoader.migrateCustomMapping --> 2'); + } + catch(Exception e) { + System.debug('MetadataLoader.migrateCustomMapping --> E' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name, Custom Metadata Types Api and Json Mapping names are required!')); + messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(200, 'Please check the Json format!')); + messages.add(new MetadataResponse.Message(300, 'Please check the Api names in Json!')); + messages.add(new MetadataResponse.Message(400, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + System.debug('MetadataLoader.migrateCustomMapping --> 3'); + migrate(mappingInfo); + System.debug('MetadataLoader.migrateCustomMapping --> 4'); + } + + public virtual void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataLoader.migrate -->'); + } + + public MetadataMapperDefault getMapper() { + return mapper; + } + + public MetadataResponse getMetadataResponse() { + return response; + } + +} diff --git a/custom_md_loader/classes/MetadataLoader.cls-meta.xml b/custom_md_loader/classes/MetadataLoader.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/classes/MetadataLoader.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/classes/MetadataLoaderClient.cls b/custom_md_loader/classes/MetadataLoaderClient.cls new file mode 100644 index 0000000..1ef09e8 --- /dev/null +++ b/custom_md_loader/classes/MetadataLoaderClient.cls @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class MetadataLoaderClient { + + /********************************************************* + * Desc This will create custom object and then migrate + Custom Settings data to Custom Metadata Types records as is + * @param Name of Custom Setting Api (VAT_Settings_CS__c) + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) + * @return + *********************************************************/ + public void migrateAsIsWithObjCreation() { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateAsIsWithObjCreation('VAT_Settings_CS__c', 'VAT_Settings__mdt'); + } + + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records as is + * @param Name of Custom Setting Api (VAT_Settings_CS__c) + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) + * @return + *********************************************************/ + public void migrateAsIsMapping() { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateAsIsMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt'); + } + + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records if you have only + * one field mapping + * @param Name of Custom Setting Api.fieldName (VAT_Settings_CS__c.Active__c) + * @param Name of Custom Metadata Types Api.fieldMame (VAT_Settings__mdt.IsActive__c) + * @return + *********************************************************/ + public void migrateSimpleMapping() { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateSimpleMapping('VAT_Settings_CS__c.Active__c', 'VAT_Settings__mdt.IsActive__c'); + } + + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records if you have only + * different Api names in Custom Settings and Custom Metadata Types + * @param Name of Custom Setting Api (VAT_Settings_CS__c) + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) + * @param Json Mapping (Sample below) + { + "Active__c" : "IsActive__c", + "Timeout__c" : "GlobalTimeout__c", + "EndPointURL__c" : "URL__c", + } + + * @return + *********************************************************/ + public void migrateCustomMapping() { + String jsonMapping = '{'+ + '"Active__c" : "Active__c",'+ + '"Timeout__c" : "Timeout__c",'+ + '"EndPointURL__c" : "EndPointURL__c",'+ + '};'; + + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateCustomMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt', jsonMapping); + } + + public void migrateMetatdataApex() { + } + +} diff --git a/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml b/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/classes/MetadataLoaderFactory.cls b/custom_md_loader/classes/MetadataLoaderFactory.cls new file mode 100644 index 0000000..2c5f3d3 --- /dev/null +++ b/custom_md_loader/classes/MetadataLoaderFactory.cls @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataLoaderFactory { + + public static MetadataLoader getLoader(MetadataOpType mt) { + MetadataLoader loader = null; + + if(mt == MetadataOpType.APEXWRAPPER) { + loader = new MetadataWrapperApiLoader(); + } + if(mt == MetadataOpType.METADATAAPEX) { + loader = new MetadataApexApiLoader(); + } + return loader; + } + +} \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml b/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataMapper.cls b/custom_md_loader/classes/MetadataMapper.cls new file mode 100644 index 0000000..db60f06 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapper.cls @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public interface MetadataMapper { + MetadataMappingInfo mapper(String sFrom, String sTo, String mapping); + + boolean validate(); + + void mapSourceTarget(); +} \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapper.cls-meta.xml b/custom_md_loader/classes/MetadataMapper.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapper.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataMapperCustom.cls b/custom_md_loader/classes/MetadataMapperCustom.cls new file mode 100644 index 0000000..416b55e --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperCustom.cls @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataMapperCustom extends MetadataMapperDefault { + + private String csFieldName; + private String mdtFieldName; + private Map fieldsMap; + + public MetadataMapperCustom() { + super(); + } + + /** + * sFrom: e.g. VAT_Settings__c.Field_Name_CS__c + * sTo: e.g. VAT_Settings__mdt.Field_Name_MDT__c + * mapping: e.g. {"Field_cs_1__c", "Field_mdt_1__c"} + */ + public override MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { + fetchSourceMetadataAndRecords(sFrom, sTo, mapping); + mapSourceTarget(); + + return mappingInfo; + } + + private void fetchSourceMetadataAndRecords(String csName, String mdtName, String mapping) { + List srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + try{ + mappingInfo.setCustomSettingName(csName); + mappingInfo.setCustomMetadadataTypeName(mdtName); + + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csName).getDescribe(); + Map fields = objDef.fields.getMap(); + + this.fieldsMap = JsonUtilities.getValuesFromJson(mapping); + System.debug('fieldsMap->' + fieldsMap); + + for(String fieldName: fieldsMap.keySet()) { + srcFieldNames.add(fieldName); + DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); + srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); + } + System.debug('srcFieldNames->' + srcFieldNames); + + String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; + String query = selectClause + ' FROM ' + csName; + + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + + System.debug(recordList); + } + catch(Exception e) { + System.debug('Error Message=' + e.getMessage()); + throw e; + } + + } + + public override boolean validate(){ + return true; + } + + public override void mapSourceTarget() { + mappingInfo.setCSToMDT_fieldMapping(this.fieldsMap); + } + +} \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml b/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataMapperDefault.cls b/custom_md_loader/classes/MetadataMapperDefault.cls new file mode 100644 index 0000000..b88f933 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperDefault.cls @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public virtual with sharing class MetadataMapperDefault implements MetadataMapper { + + protected MetadataMappingInfo mappingInfo; // {get;set;} + private List srcFieldNames; + + public MetadataMapperDefault() { + this.mappingInfo = new MetadataMappingInfo(); + } + + /** + * sFrom: e.g. VAT_Settings__c + * sTo: e.g. VAT_Settings__mdt + * mapping: e.g. {} + */ + public virtual MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { + System.debug('MetadataMappingInfo mapper.sFrom-->' + sFrom); + System.debug('MetadataMappingInfo mapper.sTo-->' + sTo); + + fetchSourceMetadataAndRecords(sFrom); + + mappingInfo.setCustomSettingName(sFrom); + mappingInfo.setCustomMetadadataTypeName(sTo); + + mapSourceTarget(); + return mappingInfo; + } + + private void fetchSourceMetadataAndRecords(String customSettingApiName) { + System.debug('MetadataMappingInfo fetchSourceMetadataAndRecords.customSettingApiName-->' + customSettingApiName); + + srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + try { + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(customSettingApiName).getDescribe(); + Map fields = objDef.fields.getMap(); + + String selectFields = ''; + for(String fieldName : fields.keySet()) { + DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); + String fieldQualifiedApiName = fieldDesc.getName(); + if(fieldQualifiedApiName.endsWith('__c')){ + srcFieldNames.add(fieldQualifiedApiName); + } + srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); + + } + + String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; + String query = selectClause + ' FROM ' + customSettingApiName; + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + } + catch(Exception e) { + System.debug('Error Message=' + e.getMessage()); + throw e; + } + } + + public virtual boolean validate(){ + return true; + } + + public virtual void mapSourceTarget() { + System.debug('MetadataMapperDefault.mapSourceTarget -->'); + Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); + for(String fieldName: srcFieldNames) { + csToMDT_fieldMapping.put(fieldName, fieldName); + } + } + + public MetadataMappingInfo getMappingInfo() { + return mappingInfo; + } + +} \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml b/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataMapperFactory.cls b/custom_md_loader/classes/MetadataMapperFactory.cls new file mode 100644 index 0000000..1457184 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperFactory.cls @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataMapperFactory { + + public static MetadataMapperDefault getMapper(MetadataMapperType mt) { + MetadataMapperDefault mapper = null; + if(mt == MetadataMapperType.ASIS) { + mapper = new MetadataMapperDefault(); + } + if(mt == MetadataMapperType.SIMPLE) { + mapper = new MetadataMapperSimple(); + } + else if(mt == MetadataMapperType.CUSTOM) { + mapper = new MetadataMapperCustom(); + } + return mapper; + } + +} \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml b/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataMapperSimple.cls b/custom_md_loader/classes/MetadataMapperSimple.cls new file mode 100644 index 0000000..741d1b7 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperSimple.cls @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataMapperSimple extends MetadataMapperDefault { + + private String csFieldName; + private String mdtFieldName; + + public MetadataMapperSimple() { + super(); + } + + /** + * sFrom: e.g. VAT_Settings__c.Field_Name_CS__c + * sTo: e.g. VAT_Settings__mdt.Field_Name_MDT__c + * mapping: e.g. null + */ + public override MetadataMappingInfo mapper(String csName, String cmtName, String mapping) { + fetchSourceMetadataAndRecords(csName, cmtName); + mapSourceTarget(); + + return mappingInfo; + } + + private void fetchSourceMetadataAndRecords(String csNameWithField, String mdtNameWithField) { + try{ + List srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + System.debug('csNameWithField->' + csNameWithField); + System.debug('mdtNameWithField->' + mdtNameWithField); + + String[] csArray = csNameWithField.split('\\.'); + String[] mdtArray = mdtNameWithField.split('\\.'); + + mappingInfo.setCustomSettingName(csArray[0]); + mappingInfo.setCustomMetadadataTypeName(mdtArray[0]); + + System.debug('csArray->' + csArray); + System.debug('mdtArray->' + mdtArray); + + csFieldName = csArray[1]; + mdtFieldName = mdtArray[1]; + + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csArray[0]).getDescribe(); + Map fields = objDef.fields.getMap(); + DescribeFieldResult fieldDesc = fields.get(csFieldName).getDescribe(); + srcFieldResultMap.put(csFieldName.toLowerCase(), fieldDesc); + + srcFieldNames.add(csFieldName); + + String selectClause = 'SELECT ' + csArray[1] + ' ,Name '; + String query = selectClause + ' FROM ' + csArray[0]; + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + + System.debug(recordList); + } + catch(Exception e) { + System.debug('Error Message=' + e.getMessage()); + throw e; + } + } + + public override boolean validate(){ + return true; + } + + public override void mapSourceTarget() { + System.debug('MetadataMapperSimple.mapSourceTarget -->'); + + Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); + csToMDT_fieldMapping.put(csFieldName, mdtFieldName); + } + +} \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml b/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataMapperType.cls b/custom_md_loader/classes/MetadataMapperType.cls new file mode 100644 index 0000000..c0e4c8e --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperType.cls @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public enum MetadataMapperType { ASIS, SIMPLE, CUSTOM } diff --git a/custom_md_loader/classes/MetadataMapperType.cls-meta.xml b/custom_md_loader/classes/MetadataMapperType.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataMapperType.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataMappingInfo.cls b/custom_md_loader/classes/MetadataMappingInfo.cls new file mode 100644 index 0000000..e1be6f9 --- /dev/null +++ b/custom_md_loader/classes/MetadataMappingInfo.cls @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataMappingInfo { + + private final Set standardFields = new Set(); + private String customSettingName; + private String customMetadadataTypeName; + + private List srcFieldNames; + private List recordList; + private Map srcFieldResultMap; + + private Map csToMDT_fieldMapping = new Map(); + + public MetadataMappingInfo() { + standardFields.add(AppConstants.DEV_NAME_ATTRIBUTE); + standardFields.add(AppConstants.LABEL_ATTRIBUTE); + standardFields.add(AppConstants.DESC_ATTRIBUTE); + } + + public Set getStandardFields() { + return standardFields; + } + + public List getSrcFieldNames() { + return srcFieldNames; + } + + public List getRecordList() { + return recordList; + } + + public void setSrcFieldNames(List names) { + this.srcFieldNames = names; + } + + public void setRecordList(List records) { + this.recordList = records; + } + + public Map getCSToMDT_fieldMapping() { + System.debug('MetadataMappingInfo.getCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); + return this.csToMDT_fieldMapping; + } + + public void setCSToMDT_fieldMapping(Map csToMDT_fieldMapping) { + System.debug('BEFORE MetadataMappingInfo.setCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); + this.csToMDT_fieldMapping = csToMDT_fieldMapping; + System.debug('AFTER MetadataMappingInfo.setCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); + } + + public String getCustomSettingName() { + return this.customSettingName; + } + + public void setCustomSettingName(String customSettingName) { + this.customSettingName = customSettingName; + } + + public String getCustomMetadadataTypeName() { + return this.customMetadadataTypeName; + } + + public void setCustomMetadadataTypeName(String customMetadadataTypeName) { + this.customMetadadataTypeName = customMetadadataTypeName; + } + + public Map getSrcFieldResultMap() { + return this.srcFieldResultMap; + } + + public void setSrcFieldResultMap(Map fieldResult) { + this.srcFieldResultMap = fieldResult; + } + +} \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml b/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataMigrationController.cls b/custom_md_loader/classes/MetadataMigrationController.cls new file mode 100644 index 0000000..3675c4e --- /dev/null +++ b/custom_md_loader/classes/MetadataMigrationController.cls @@ -0,0 +1,222 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class MetadataMigrationController { + static MetadataService.MetadataPort service = MetadataUtil.getPort(); + + private final Set standardFieldsInHeader = new Set(); + private List nonSortedApiNames; + + public boolean showRecordsTable{get;set;} + public String selectedType{get;set;} + public Blob csvFileBody{get;set;} + public SObject[] records{get;set;} + public List cmdTypes{public get;set;} + public String selectedOpType1{get;set;} + public String selectedOpType2{get;set;} + public String selectedOpType3{get;set;} + public List opTypes{public get;set;} + public List objCreationOpTypes{public get;set;} + + public List fieldNamesForDisplay{public get;set;} + + public String customSettingFromFieldAsIs{public get;set;} + public String customSettingFromFieldSimple{public get;set;} + public String cmdToFieldSimple{public get;set;} + public String customSettingFromFieldJson{public get;set;} + public String cmdToFieldJson{public get;set;} + + public String csFieldObjCreation {public get;set;} + public String cmtFieldObjCreation {public get;set;} + public String opTypeFieldObjCreation {public get;set;} + + public String csNameApexMetadata{public get;set;} + public String cmdNameApexMetadata{public get;set;} + public String jsonMappingApexMetadata{public get;set;} + + public String jsonMapping{public get;set;} + + public boolean asyncDeployInProgress{get;set;} + + public boolean isMessage {get;set;} + + public MetadataOpType opType = MetadataOpType.APEXWRAPPER; + //public MetadataOpType opType = MetadataOpType.METADATAAPEX; + + public MetadataMigrationController() { + + service.timeout_x = 40000; + + isMessage = false; + asyncDeployInProgress = false; + + showRecordsTable = false; + loadCustomMetadataMetadata(); + + //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. + standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); + + jsonMapping = '{' + + ' \"customsetting_field1__c\" : \"cmd_field1__c\",' + + ' \"customsetting_field2__c\" : \"cmd_field2__c\",' + + ' \"customsetting_field3__c\" : \"cmd_field3__c\"' + + '}'; + + opTypes = new List(); + opTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); + opTypes.add(new SelectOption(MetadataOpType.METADATAAPEX.name(), 'Async Operation')); + + objCreationOpTypes = new List(); + objCreationOpTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); + + } + + public PageReference onLoad () { + System.debug('onLoad-->' ); + + return null; + } + + + /** + * Queries to find all custom metadata types in the org and make it available to the VF page as drop down + */ + private void loadCustomMetadataMetadata(){ + List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; + for(SObject entityDefinition : entityDefinitions){ + String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); + if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)){ + if(cmdTypes == null) { + cmdTypes = new List(); + cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); + } + cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); + } + } + } + + private void init(String selectedOpType) { + System.debug('migrateAsIsMapping.selectedOpType-->' + selectedOpType); + + opType = MetadataOpType.APEXWRAPPER; + if(selectedOpType == MetadataOpType.METADATAAPEX.name()) { + System.debug('selectedOpType == MetadataOpType.METADATAAPEX.name()'); + opType = MetadataOpType.METADATAAPEX; + } + System.debug('opType' + opType); + } + + public PageReference migrateAsIsWithObjCreation() { + init(opTypeFieldObjCreation); + + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateAsIsWithObjCreation(csFieldObjCreation, cmtFieldObjCreation); + + MetadataResponse response = loader.getMetadataResponse(); + + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateAsIsMapping() { + init(selectedOpType1); + + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateAsIsMapping(customSettingFromFieldAsIs, selectedType); + MetadataResponse response = loader.getMetadataResponse(); + + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateSimpleMapping() { + init(selectedOpType2); + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateSimpleMapping(customSettingFromFieldSimple, cmdToFieldSimple); + MetadataResponse response = loader.getMetadataResponse(); + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + + public PageReference migrateCustomMapping() { + init(selectedOpType3); + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateCustomMapping(customSettingFromFieldJson, cmdToFieldJson, jsonMapping); + MetadataResponse response = loader.getMetadataResponse(); + List messages = response.getMessages(); + + if(response.isSuccess()) { + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + +} diff --git a/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml b/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/classes/MetadataObjectCreator.cls b/custom_md_loader/classes/MetadataObjectCreator.cls new file mode 100644 index 0000000..8d462c5 --- /dev/null +++ b/custom_md_loader/classes/MetadataObjectCreator.cls @@ -0,0 +1,269 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataObjectCreator { + + static MetadataService.MetadataPort service = MetadataUtil.getPort(); + static String endPoint = URL.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/m/40.0'; + + private static String objectRequestBodySnippet = + '' + + ''+ + '' + + '' + + '{0}' + + '' + + '' + + '' + + '' + + '' + + '{1}' + + // '{2}' + + '' + + '{3}' + + '' + + '' + + '' + + ''; + + private static String fieldRequestBodySnippet = + '' + + ''+ + '' + + '' + + '{0}' + + '' + + '' + + '' + + '' + + '{1}' + + '' + + '' + + ''; + + private static String fieldRequestSnippet = + '' + + '{0}' + + '{1}' + + '' + + '{3}' + // length + '{4}' + // defaultValue + '{5}' + // precisionValue + ''; + + private static String fieldLengthSnippet = + '{0}'; + private static String fieldDefaultValueSnippet = + '{0}'; + + public static void createCustomObject(MetadataMappingInfo mappingInfo) { + System.debug('createCustomObject ***************'); + String fullName = mappingInfo.getCustomMetadadataTypeName(); + + System.debug('fullName ->' + fullName); + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); + + String label = pluralLabel; + pluralLabel = pluralLabel + 's'; + + System.debug('label ->' + label); + System.debug('pluralLabel ->' + pluralLabel); + + String objectRequest = String.format(objectRequestBodySnippet, new String[]{UserInfo.getSessionId(), fullName, label, pluralLabel}); + + System.debug('objectRequest-->' + objectRequest); + HttpRequest httpReq = initHttpRequest('POST'); + httpReq.setBody(objectRequest); + + httpReq.setEndpoint(endPoint); + System.debug('httpReq-->' + httpReq); + getResponse(httpReq); + } + + public static void createCustomField(MetadataMappingInfo mappingInfo) { + System.debug('createCustomField ***************'); + + String fullName = mappingInfo.getCustomMetadadataTypeName(); + + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + String fieldFullName = ''; + String label = ''; + String type_x = ''; + String length_x = ''; + String defaultValue = ''; + String precisionValue = ''; + + String fieldRequest = ''; + String reqBody = ''; + + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + System.debug('descFieldResultMap-->' + descFieldResultMap); + + integer counter = 0; + for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ + length_x = ''; + + System.debug('csField-->' + csField); + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); + System.debug('descCSFieldResult-->' + descCSFieldResult); + + String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); + + System.debug('cmtField-->' + cmtField); + System.debug('fullName--> 2' + fullName); + + fieldFullName = fullName + '.' + cmtField; + System.debug('fieldFullName--> 3' + fieldFullName); + label = descCSFieldResult.getLabel(); + type_x = getConvertedType(descCSFieldResult.getType().name()); + length_x = String.valueOf(descCSFieldResult.getLength()); + + if(descCSFieldResult.getLength() != 0 ) { + length_x = String.format(fieldLengthSnippet, new String[]{length_x}); + } + else { + length_x = ''; + } + if(type_x == 'Checkbox') { + defaultValue = '' + descCSFieldResult.getDefaultValue() +''; + } + else{ + defaultValue = ''; + } + if(type_x == 'Number' || type_x == 'Percent') { + precisionValue = '' + descCSFieldResult.getPrecision() +'' + + '' + descCSFieldResult.getScale() +''; + } + else{ + precisionValue = ''; + } + // Length is set to 80 for Email/Phone/URL fields but no length field? + if(type_x == 'Email' || type_x == 'Phone' || type_x == 'URL' || type_x == 'Url' || type_x == 'TextArea' ) { + length_x = ''; + } + + fieldRequest = fieldRequest + String.format(fieldRequestSnippet, new String[]{fieldFullName, type_x, label, length_x, defaultValue, precisionValue}); + + System.debug('fieldFullName-->' + fieldFullName); + System.debug('label-->' + label); + System.debug('type_x-->' + type_x); + System.debug('length_x-->' + length_x); + + if(counter == 9) { + + reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); + + System.debug('reqBody-->' + reqBody); + HttpRequest httpReq = initHttpRequest('POST'); + httpReq.setBody(reqBody); + httpReq.setEndpoint(endPoint); + System.debug('httpReq-->' + httpReq); + getResponse(httpReq); + + fieldRequest = ''; + } + + counter++; + + } + } + System.debug('fieldRequest-->' + fieldRequest); + + if(fieldRequest != '') { + reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); + + System.debug('reqBody-->' + reqBody); + HttpRequest httpReq = initHttpRequest('POST'); + httpReq.setBody(reqBody); + httpReq.setEndpoint(endPoint); + System.debug('httpReq-->' + httpReq); + getResponse(httpReq); + } + } + + private static HttpRequest initHttpRequest(String httpMethod){ + HttpRequest req = new HttpRequest(); + req.setHeader('Accept', 'application/xml'); + req.setHeader('SOAPAction','""'); + req.setHeader('Content-Type', 'text/xml'); + req.setMethod(httpMethod); + return req; + } + + private static String getResponse(HttpRequest request) { + Http http = new Http(); + HttpResponse response = new HttpResponse(); + + response = http.send(request); + + System.debug('---- RESPONSE RECEIVED------'); + System.debug(response); + + if (response.getStatusCode() == 200 || response.getStatusCode() == 201){ + System.debug('Ok Received!'); + } + else{ + System.debug('Error Received!'); + } + String responseBody = response.getBody(); + System.debug('responseBody-->' + responseBody); + + return responseBody; + } + + + private static String getConvertedType(String type_x) { + String newtType = 'Text'; + if(type_x == 'STRING') { + newtType = 'Text'; + } + else if(type_x == 'BOOLEAN') { + newtType = 'Checkbox'; + } + else if(type_x == 'DOUBLE' || type_x == 'INTEGER') { + newtType = 'Number'; + } + else if(type_x == 'PERCENT' || type_x == 'Percent') { + newtType = 'Percent'; + } + else if(type_x == 'DATETIME') { + newtType = 'DateTime'; + } + else if(type_x == 'DATE') { + newtType = 'Date'; + } + else if(type_x == 'TEXTAREA') { + newtType = 'TextArea'; + } + else if(type_x == 'PICKLIST') { + newtType = 'Picklist'; + } + else if(type_x == 'EMAIL') { + newtType = 'Email'; + } + else if(type_x == 'PHONE') { + newtType = 'Phone'; + } + else if(type_x == 'URL') { + newtType = 'Url'; + } + + else { + newtType = type_x; + } + + return newtType; + + } + +} diff --git a/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml b/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataOpType.cls b/custom_md_loader/classes/MetadataOpType.cls new file mode 100644 index 0000000..1953cd2 --- /dev/null +++ b/custom_md_loader/classes/MetadataOpType.cls @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public enum MetadataOpType { APEXWRAPPER, METADATAAPEX } diff --git a/custom_md_loader/classes/MetadataOpType.cls-meta.xml b/custom_md_loader/classes/MetadataOpType.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataOpType.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataResponse.cls b/custom_md_loader/classes/MetadataResponse.cls new file mode 100644 index 0000000..96dd34d --- /dev/null +++ b/custom_md_loader/classes/MetadataResponse.cls @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataResponse { + + private boolean isSuccess; + private List messages; + private MetadataMappingInfo mappingInfo; + + public MetadataResponse() { + } + + public MetadataResponse(boolean bIsSuccess, MetadataMappingInfo info, List messagesList) { + this.isSuccess = bIsSuccess; + this.messages = messagesList; + this.mappingInfo = info; + } + + public boolean isSuccess() { + return this.isSuccess; + } + + public void setIsSuccess(boolean isSuccess) { + this.isSuccess = isSuccess; + } + + public void setMappingInfo(MetadataMappingInfo info) { + this.mappingInfo = info; + } + public MetadataMappingInfo getMappingInfo() { + return this.mappingInfo; + } + + public List getMessages() { + return this.messages; + } + + public void setMessages(List msg) { + this.messages = msg; + } + + public with sharing class Message { + public Integer messageCode; + public String messageDetail; + + public Message() { + } + + public Message(Integer code, String message) { + this.messageCode = code; + this.messageDetail = message; + } + } + + public String debug() { + return 'MetadataResponse{' + 'success=' + isSuccess() + ', messages=' + getMessages() + ', mapping info=' + getMappingInfo() + '}'; + } +} diff --git a/custom_md_loader/classes/MetadataResponse.cls-meta.xml b/custom_md_loader/classes/MetadataResponse.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/classes/MetadataResponse.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/classes/MetadataWrapperApiLoader.cls b/custom_md_loader/classes/MetadataWrapperApiLoader.cls new file mode 100644 index 0000000..bc1af86 --- /dev/null +++ b/custom_md_loader/classes/MetadataWrapperApiLoader.cls @@ -0,0 +1,242 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataWrapperApiLoader extends MetadataLoader { + static MetadataService.MetadataPort port; + //public for testing purposes only; + public static MetadataWrapperApiLoader.Status mdApiStatus = Status.NOT_CHECKED; + + //public for testing purposes + public enum Status { + NOT_CHECKED, + AVAILABLE, + UNAVAILABLE + } + + public Boolean checkMetadataAPIConnection() { + if (mdApiStatus == Status.NOT_CHECKED) { + boolean success = true; + MetadataService.FileProperties[] allCmdProps; + try { + MetadataService.MetadataPort service = getPort(); + List queries = new List(); + MetadataService.ListMetadataQuery customMetadata = new MetadataService.ListMetadataQuery(); + customMetadata.type_x = 'CustomMetadata'; + queries.add(customMetadata); + allCmdProps = service.listMetadata(queries, 40); + mdApiStatus = Status.AVAILABLE; + } catch (CalloutException e) { + if (!e.getMessage().contains('Unauthorized endpoint, please check Setup')) { + throw e; + } + mdApiStatus = Status.UNAVAILABLE; + } + } + return mdApiStatus == Status.AVAILABLE; + } + + public static MetadataService.MetadataPort getPort() { + if (port == null) { + port = new MetadataService.MetadataPort(); + port.sessionHeader = new MetadataService.SessionHeader_element(); + port.sessionHeader.sessionId = UserInfo.getSessionId(); + } + return port; + } + + public override void migrateAsIsWithObjCreation(String csName, String cmtName) { + super.migrateAsIsWithObjCreation(csName, cmtName); + MetadataMappingInfo mappingInfo = getMapper().getMappingInfo(); + + MetadataObjectCreator.createCustomObject(mappingInfo); + MetadataObjectCreator.createCustomField(mappingInfo); + + migrate(mappingInfo); + + buildResponse(); + } + + public override void migrateAsIsMapping(String csName, String cmtName) { + super.migrateAsIsMapping(csName, cmtName); + buildResponse(); + } + + public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { + super.migrateSimpleMapping(csNameWithField, cmtNameWithField); + buildResponse(); + } + + public override void migrateCustomMapping(String csName, String cmtName, String mapping) { + super.migrateCustomMapping(csName, cmtName, mapping); + buildResponse(); + } + + private void buildResponse() { + if(response.IsSuccess()) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Migration Completed!')); + response.setIsSuccess(true); + response.setMessages(messages); + } + } + + public override void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataWrapperApiLoader.migrate -->'); + + try{ + String devName; + String label; + Integer rowCount = 0; + + String cmdName = mappingInfo.getCustomMetadadataTypeName(); + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + + MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[mappingInfo.getRecordList().size()]; + Map fieldsAndValues = new Map(); + + for(sObject csRecord : mappingInfo.getRecordList()) { + + String typeDevName = cmdName.subString(0, cmdName.indexOf(AppConstants.MDT_SUFFIX)); + System.debug('typeDevName ->' + typeDevName); + + Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); + System.debug('srcTgtFieldsMap ->' + srcTgtFieldsMap); + + for(String csField : srcTgtFieldsMap.keySet()) { + // Set Target, Source + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); + System.debug('descCSFieldResult ->' + descCSFieldResult); + System.debug('csField ->' + csField); + System.debug('csRecord ->' + csRecord); + + if(descCSFieldResult.getType().name() == 'DATETIME') { + + System.debug('csRecord.get(csField) ->' + csRecord.get(csField)); + //System.debug('String.valueOf(csRecord.get(csField)) ->' + String.valueOf(csRecord.get(csField))); + + if(csRecord.get(csField) != null) { + Datetime dt = DateTime.valueOf(csRecord.get(csField)); + System.debug('Datetime dt ->' + dt); + String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); // 12/22/2014 7:05 AM (MM/DD/YYYY HH:MM PERIOD) + System.debug('formattedDateTime-->' + formattedDateTime); + + fieldsAndValues.put(srcTgtFieldsMap.get(csField), formattedDateTime); + } + } + else{ + fieldsAndValues.put(srcTgtFieldsMap.get(csField), String.valueOf(csRecord.get(csField))); + } + } + + if(csRecord.get(AppConstants.CS_NAME_ATTRIBURE) != null) { + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); + fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); + + String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); + String tempVal = strippedLabel.substring(0, 1); + + if(tempVal.isNumeric() || tempVal == '-') { + strippedLabel = 'X' + strippedLabel; + } + + System.debug('strippedLabel -> 1 *' + strippedLabel); + strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel -> 2 *' + strippedLabel); + + //default fullName to type_dev_name.label + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); + + System.debug(AppConstants.FULL_NAME_ATTRIBUTE + ' ::: ' + typeDevName + '.' + strippedLabel); + } + System.debug('fieldsAndValues ->' + fieldsAndValues); + + customMetadataRecords[rowCount++] = transformToCustomMetadata(mappingInfo.getStandardFields(), fieldsAndValues); + } + upsertMetadataAndValidate(customMetadataRecords); + + } + catch(Exception e) { + System.debug('Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, e.getMessage())); + + response.setIsSuccess(false); + response.setMessages(messages); + + } + } + + /* + * Transformation utility to turn the configuration values into custom metadata values + * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata + * values which can be passed in one update has been increased to 200 values (just for custom metadata) + * We recommend to create new type if more fields are needed. + * Using https://github.com/financialforcedev/apex-mdapi + */ + private MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ + MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); + customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); + customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); + customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); + + System.debug('customMetadata.label->' + customMetadata.label); + System.debug('customMetadata.fullName->' + customMetadata.fullName); + System.debug('customMetadata.description->' + customMetadata.description); + + + //custom fields + MetadataService.CustomMetadataValue[] customMetadataValues = new List(); + if(fieldsAndValues != null){ + for (String fieldName : fieldsAndValues.keySet()) { + if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ + MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); + cmRecordValue.field=fieldName; + cmRecordValue.value= fieldsAndValues.get(fieldName); + customMetadataValues.add(cmRecordValue); + } + } + } + customMetadata.values = customMetadataValues; + + System.debug('customMetadata ->' + customMetadata); + + return customMetadata; + } + + + private void upsertMetadataAndValidate(MetadataService.Metadata[] records) { + List results = getPort().upsertMetadata(records); + if(results!=null){ + for(MetadataService.UpsertResult upsertResult : results){ + if(upsertResult==null || upsertResult.success){ + continue; + } + // Construct error message and throw an exception + if(upsertResult.errors!=null){ + List messages = new List(); + messages.add( + (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + + 'occured processing component ' + upsertResult.fullName + '.'); + for(MetadataService.Error error : upsertResult.errors){ + messages.add(error.message + ' (' + error.statusCode + ').' + + ( error.fields!=null && error.fields.size()>0 ? + ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); + } + if(messages.size()>0){ + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); + return; + } + } + if(!upsertResult.success){ + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Request failed with no specified error.')); + return; + } + } + } + } +} diff --git a/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml b/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/package.xml b/custom_md_loader/package.xml index 5470b27..15ea182 100755 --- a/custom_md_loader/package.xml +++ b/custom_md_loader/package.xml @@ -11,11 +11,30 @@ MetadataService MetadataServiceTest MetadataUtil + + MetadataLoader + MetadataMapper + MetadataMapperDefault + MetadataMapperCustom + MetadataMapperSimple + MetadataMappingInfo + MetadataMapperFactory + MetadataMapperType + MetadataLoaderClient + MetadataWrapperApiLoader + MetadataApexApiLoader + MetadataOpType + MetadataLoaderFactory + MetadataResponse + MetadataMigrationController + MetadataObjectCreator + JsonUtilities ApexClass CustomMetadataLoader CustomMetadataRecordUploader + CMTMigrator ApexPage @@ -33,6 +52,7 @@ Custom_Metadata_Loader + CMT_Migrator CustomTab diff --git a/custom_md_loader/pages/CMTMigrator.page b/custom_md_loader/pages/CMTMigrator.page new file mode 100644 index 0000000..6cbddc5 --- /dev/null +++ b/custom_md_loader/pages/CMTMigrator.page @@ -0,0 +1,256 @@ + + + + + + + + + + + + +
    + +
  1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types
    +
  2. +
    +
  3. Custom Metadata Types label and names
  4. +
    +
      +
    • Custom Setting record name converted into Custom Metadata Types label and name
      +
    • + +
    • e.g. Custom Setting name special character replaced with "_" in Custom Metadata Type names
      +
    • + +
    • e.g. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X"
      +
    • +
    +
    +
  5. Currency field on Custom Settings can't be migrated
    +
  6. +
    + +
  7. Migrate - As Is (with object creation)
  8. +
    +
      +
    • As Is (with object creation)
      + /*********************************************************
      + * Desc Creates Custom object and migrate Custom Settings data to
      + Custom Metadata Types records as is
      + * @param Name of Custom Setting Api (VAT_Settings_CS__c)
      + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      + * @return
      + *********************************************************/

      + + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      + loader.migrateAsIsWithObjCreation('VAT_Settings_CS__c', 'VAT_Settings__mdt');
      + +

      +
    • + +
    +
  9. Migrate - As Is
  10. +
    +
      +
    • As Is Mapping
      + /*********************************************************
      + * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records as is
      + * @param Name of Custom Setting/Custom Objects Api (VAT_Settings_CS__c)
      + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      + * @return
      + *********************************************************/

      + + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      + loader.migrateAsIsMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt');
      +

      +
    • + +
    +
  11. Migrate - Simple Mapping
    +
  12. +
    +
      +

    • + /*********************************************************
      + * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records if you have only
      + * one field mapping
      + * @param Name of Custom Setting/Custom Objects Api.fieldName (VAT_Settings_CS__c.Active__c)
      + * @param Name of Custom Metadata Types Api.fieldMame (VAT_Settings__mdt.IsActive__c)
      + * @return
      + *********************************************************/

      + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      + loader.migrateSimpleMapping('VAT_Settings_CS__c.Active__c', 'VAT_Settings__mdt.IsActive__c');
      +

      +
    • +
    + +
  13. Migrate - Custom Mapping
    +
  14. +
    +
      +

    • + + /*********************************************************
      + * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records if you have only
      + * different Api names in Custom Settings and Custom Metadata Types
      + * @param Name of Custom Setting/Custom Objects Api (VAT_Settings_CS__c)
      + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      + * @param Json Mapping (Sample below)
      + {
      + "Active__c" : "IsActive__c",
      + "Timeout__c" : "GlobalTimeout__c",
      + "EndPointURL__c" : "URL__c",
      + }
      +
      + * @return
      + *********************************************************/

      +
      + String jsonMapping = '{'+
      + '"Active__c" : "Active__c",'+
      + '"Timeout__c" : "Timeout__c",'+
      + '"EndPointURL__c" : "EndPointURL__c",'+
      + '};';
      + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      + loader.migrateCustomMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt', jsonMapping);
      +
      +
    • +
    + +
    + +
+
+ + + + + + + + + + + + + + + + + + +
Custom Setting/Custom Objects Name (From)
Custom Metadata Type Name (To)
Operation Type + + +
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + +
Custom Setting/Custom Objects Name (From)
Custom Metadata Type Name (To) + + +
Operation Type + + +
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + +
Custom Setting/Custom Objects, Format: CS.fieldName
Custom Metadata Type, Format: CMT.fieldName
Operation Type + + +
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + +
Custom Setting/Custom Objects Name
Custom Metadata Type Name
Custom Setting, JSON, example: + +
Operation Type + + +
+ +
+
+ +
+
+
+ + + +
+ +
diff --git a/custom_md_loader/pages/CMTMigrator.page-meta.xml b/custom_md_loader/pages/CMTMigrator.page-meta.xml new file mode 100644 index 0000000..035ffad --- /dev/null +++ b/custom_md_loader/pages/CMTMigrator.page-meta.xml @@ -0,0 +1,7 @@ + + + 40.0 + false + false + + diff --git a/custom_md_loader/pages/CustomMetadataLoader.page b/custom_md_loader/pages/CustomMetadataLoader.page index 3474b63..29e3324 100644 --- a/custom_md_loader/pages/CustomMetadataLoader.page +++ b/custom_md_loader/pages/CustomMetadataLoader.page @@ -35,7 +35,7 @@ '' + '' + ''; - binding.open('POST', protocol + '//{!host}/services/Soap/m/34.0'); + binding.open('POST', protocol + '//{!host}/services/Soap/m/40.0'); binding.setRequestHeader('SOAPAction','""'); binding.setRequestHeader('Content-Type', 'text/xml'); binding.onreadystatechange = diff --git a/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset b/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset index d8d0135..4f9ab89 100755 --- a/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset +++ b/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset @@ -24,6 +24,10 @@ CustomMetadataUploadController true + + CustomMetadataUploadController + true + CustomMetadataUploadControllerTest true @@ -53,8 +57,16 @@ CustomMetadataRecordUploader true + + CMTMigrator + true + Custom_Metadata_Loader Visible + + CMT_Migrator + Visible + diff --git a/custom_md_loader/tabs/CMT_Migrator.tab b/custom_md_loader/tabs/CMT_Migrator.tab new file mode 100644 index 0000000..925e470 --- /dev/null +++ b/custom_md_loader/tabs/CMT_Migrator.tab @@ -0,0 +1,7 @@ + + + + false + Custom68: Gears + CMTMigrator + From b3b063c895cf18be8c1bbd036791f337cdd607f3 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 15 Sep 2017 12:54:38 -0700 Subject: [PATCH 04/93] Add files via upload Custom Settings/Custom Objects to Custom Metadata Types migrator --- .../applications/Custom_Metadata_Loader.app | 8 + .../custom_md_loader/classes/AppConstants.cls | 27 + .../classes/AppConstants.cls-meta.xml | 5 + .../custom_md_loader/classes/CSVFileUtil.cls | 71 + .../classes/CSVFileUtil.cls-meta.xml | 5 + .../CustomMetadataLoaderController.cls | 46 + ...ustomMetadataLoaderController.cls-meta.xml | 5 + .../CustomMetadataLoaderControllerTest.cls | 44 + ...mMetadataLoaderControllerTest.cls-meta.xml | 5 + .../CustomMetadataUploadController.cls | 205 + ...ustomMetadataUploadController.cls-meta.xml | 5 + .../CustomMetadataUploadControllerTest.cls | 85 + ...mMetadataUploadControllerTest.cls-meta.xml | 5 + .../classes/JsonUtilities.cls | 53 + .../classes/JsonUtilities.cls-meta.xml | 6 + .../classes/MDWrapperWebServiceMock.cls | 35 + .../MDWrapperWebServiceMock.cls-meta.xml | 5 + .../classes/MetadataApexApiLoader.cls | 230 + .../MetadataApexApiLoader.cls-meta.xml | 6 + .../classes/MetadataLoader.cls | 138 + .../classes/MetadataLoader.cls-meta.xml | 5 + .../classes/MetadataLoaderClient.cls | 73 + .../classes/MetadataLoaderClient.cls-meta.xml | 5 + .../classes/MetadataLoaderFactory.cls | 22 + .../MetadataLoaderFactory.cls-meta.xml | 5 + .../classes/MetadataMapper.cls | 14 + .../classes/MetadataMapper.cls-meta.xml | 5 + .../classes/MetadataMapperCustom.cls | 82 + .../classes/MetadataMapperCustom.cls-meta.xml | 5 + .../classes/MetadataMapperDefault.cls | 89 + .../MetadataMapperDefault.cls-meta.xml | 5 + .../classes/MetadataMapperFactory.cls | 24 + .../MetadataMapperFactory.cls-meta.xml | 5 + .../classes/MetadataMapperSimple.cls | 80 + .../classes/MetadataMapperSimple.cls-meta.xml | 5 + .../classes/MetadataMapperType.cls | 8 + .../classes/MetadataMapperType.cls-meta.xml | 5 + .../classes/MetadataMappingInfo.cls | 81 + .../classes/MetadataMappingInfo.cls-meta.xml | 5 + .../classes/MetadataMigrationController.cls | 222 + .../MetadataMigrationController.cls-meta.xml | 5 + .../classes/MetadataMigrationException.cls | 8 + .../MetadataMigrationException.cls-meta.xml | 5 + .../classes/MetadataObjectCreator.cls | 279 + .../MetadataObjectCreator.cls-meta.xml | 5 + .../classes/MetadataOpType.cls | 8 + .../classes/MetadataOpType.cls-meta.xml | 5 + .../classes/MetadataResponse.cls | 62 + .../classes/MetadataResponse.cls-meta.xml | 5 + .../classes/MetadataService.cls | 9384 +++++++++++++++++ .../classes/MetadataService.cls-meta.xml | 5 + .../classes/MetadataServiceTest.cls | 875 ++ .../classes/MetadataServiceTest.cls-meta.xml | 5 + .../custom_md_loader/classes/MetadataUtil.cls | 187 + .../classes/MetadataUtil.cls-meta.xml | 5 + .../classes/MetadataWrapperApiLoader.cls | 254 + .../MetadataWrapperApiLoader.cls-meta.xml | 5 + .../objects/CountryMapping__mdt.object | 26 + custom_md_loader/custom_md_loader/package.xml | 64 + .../custom_md_loader/pages/CMTMigrator.page | 256 + .../pages/CMTMigrator.page-meta.xml | 7 + .../pages/CustomMetadataLoader.page | 71 + .../pages/CustomMetadataLoader.page-meta.xml | 9 + .../pages/CustomMetadataRecordUploader.page | 51 + ...CustomMetadataRecordUploader.page-meta.xml | 9 + .../Custom_Metadata_Loader.permissionset | 72 + .../custom_md_loader/tabs/CMT_Migrator.tab | 7 + .../tabs/Custom_Metadata_Loader.tab | 7 + 68 files changed, 13415 insertions(+) create mode 100644 custom_md_loader/custom_md_loader/applications/Custom_Metadata_Loader.app create mode 100644 custom_md_loader/custom_md_loader/classes/AppConstants.cls create mode 100644 custom_md_loader/custom_md_loader/classes/AppConstants.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls create mode 100644 custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls create mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls create mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls create mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls create mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/JsonUtilities.cls create mode 100644 custom_md_loader/custom_md_loader/classes/JsonUtilities.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoader.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoader.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapper.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapper.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataOpType.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataOpType.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataResponse.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataResponse.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataService.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataService.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataUtil.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataUtil.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls create mode 100644 custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml create mode 100644 custom_md_loader/custom_md_loader/objects/CountryMapping__mdt.object create mode 100644 custom_md_loader/custom_md_loader/package.xml create mode 100644 custom_md_loader/custom_md_loader/pages/CMTMigrator.page create mode 100644 custom_md_loader/custom_md_loader/pages/CMTMigrator.page-meta.xml create mode 100644 custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page create mode 100644 custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml create mode 100644 custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page create mode 100644 custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml create mode 100644 custom_md_loader/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset create mode 100644 custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab create mode 100644 custom_md_loader/custom_md_loader/tabs/Custom_Metadata_Loader.tab diff --git a/custom_md_loader/custom_md_loader/applications/Custom_Metadata_Loader.app b/custom_md_loader/custom_md_loader/applications/Custom_Metadata_Loader.app new file mode 100644 index 0000000..e9a1194 --- /dev/null +++ b/custom_md_loader/custom_md_loader/applications/Custom_Metadata_Loader.app @@ -0,0 +1,8 @@ + + + standard-home + Custom metadata record loader from a CSV file. + + Custom_Metadata_Loader + CMT_Migrator + diff --git a/custom_md_loader/custom_md_loader/classes/AppConstants.cls b/custom_md_loader/custom_md_loader/classes/AppConstants.cls new file mode 100644 index 0000000..5d3ab9d --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/AppConstants.cls @@ -0,0 +1,27 @@ +/** + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ +public class AppConstants { + + public static final String QUALIFIED_API_NAME_ATTRIBUTE = 'QualifiedApiName'; + public static final String FULL_NAME_ATTRIBUTE = 'FullName'; + public static final String LABEL_ATTRIBUTE = 'Label'; + public static final String DEV_NAME_ATTRIBUTE = 'DeveloperName'; + public static final String DESC_ATTRIBUTE = 'Description'; + public static final String MDT_SUFFIX = '__mdt'; + + public static final String CS_NAME_ATTRIBURE = 'Name'; + + public static final String SELECT_STRING = 'Select type'; + + + //error messages + public static final String FILE_MISSING = 'Please provide a comma separated file.'; + public static final String EMPTY_FILE = 'CSV file is empty.'; + public static final String TYPE_OPTION_NOT_SELECTED = 'Please choose a valid custom metadata type.'; + public static final String HEADER_MISSING_DEVNAME_AND_LABEL = 'Header must contain atleast one of these two fields - '+ DEV_NAME_ATTRIBUTE + ', ' + LABEL_ATTRIBUTE +'.'; + public static final String INVALID_FILE_ROW_SIZE_DOESNT_MATCH = 'The number of field values does not match the number of header fields on line '; +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/AppConstants.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/AppConstants.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/AppConstants.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls b/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls new file mode 100644 index 0000000..34c345e --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class CSVFileUtil { + //from https://developer.salesforce.com/page/Code_Samples#Parse_a_CSV_with_APEX + public static List> parseCSV(Blob csvFileBody,Boolean skipHeaders) { + if(csvFileBody == null) { + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.FILE_MISSING); + ApexPages.addMessage(errorMessage); + return null; + } + + String contents = csvFileBody.toString(); + + List> allFields = new List>(); + + // replace instances where a double quote begins a field containing a comma + // in this case you get a double quote followed by a doubled double quote + // do this for beginning and end of a field + contents = contents.replaceAll(',"""',',"DBLQT').replaceall('""",','DBLQT",'); + // now replace all remaining double quotes - we do this so that we can reconstruct + // fields with commas inside assuming they begin and end with a double quote + contents = contents.replaceAll('""','DBLQT'); + //windows case - replace all carriage + new line character to just new line character + contents = contents.replaceAll('\r\n','\n'); + //now replace all return char to new line character + contents = contents.replaceAll('\r','\n'); + // we are not attempting to handle fields with a newline inside of them + // so, split on newline to get the spreadsheet rows + List lines = new List(); + try { + lines = contents.split('\n'); + } catch (System.ListException e) { + System.debug('Limits exceeded?' + e.getMessage()); + } + Integer num = 0; + for(String line : lines) { + // check for blank CSV lines (only commas) + if (line.replaceAll(',','').trim().length() == 0) break; + + List fields = line.split(','); + List cleanFields = new List(); + String compositeField; + Boolean makeCompositeField = false; + for(String field : fields) { + if (field.startsWith('"') && field.endsWith('"')) { + cleanFields.add(field.replaceAll('DBLQT','"').trim()); + } else if (field.startsWith('"')) { + makeCompositeField = true; + compositeField = field; + } else if (field.endsWith('"')) { + compositeField += ',' + field; + cleanFields.add(compositeField.replaceAll('DBLQT','"').trim()); + makeCompositeField = false; + } else if (makeCompositeField) { + compositeField += ',' + field; + } else { + cleanFields.add(field.replaceAll('DBLQT','"').trim()); + } + } + + allFields.add(cleanFields); + } + if (skipHeaders) allFields.remove(0); + return allFields; + } +} diff --git a/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls new file mode 100644 index 0000000..108bac5 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class CustomMetadataLoaderController { + public String host {get; set;} + public String metadataResponse {get; set;} + public Boolean metadataConnectionWarning {get; set;} + public String prefixOrLocal {get; set;} + + public PageReference checkMdApi() { + + if (MetadataUtil.checkMetadataAPIConnection()) { + return continueToUploader(); + } + // Get Host Domain + host = ApexPages.currentPage().getHeaders().get('Host'); + // Get namespace prefix for picklist package or placeholder for pre-packaging + prefixOrLocal = host.substringBefore('.').replaceAll('-', '_'); + metadataConnectionWarning = true; + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Unable to connect to the Salesforce Metadata API.')); + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'A Remote Site Setting must be created in your org before you can use this tool.')); + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Press the Create Remote Site Setting button to perform this step or refer to the post install step below to perform this manually.')); + return null; + } + + public PageReference continueToUploader() { + return Page.CustomMetadataRecordUploader; + } + + public PageReference displayMetadataResponse() + { + // Display the response from the client side Metadata API callout + if(metadataResponse.length()==0){ + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Info, 'Remote Site Setting dlrs_mdapi has been created.' )); + metadataConnectionWarning = false; + } else { + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, metadataResponse)); + metadataConnectionWarning = true; + } + return null; + } +} diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls new file mode 100644 index 0000000..4d8bf9a --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +@IsTest +public class CustomMetadataLoaderControllerTest { + + public static testmethod void testCheckMdApiSucceeds() { + CustomMetadataLoaderController cntlr = setup(); + PageReference result = cntlr.checkMdApi(); + System.assertEquals(Page.CustomMetadataRecordUploader.getUrl(), result.getUrl()); + } + + public static testmethod void testCheckMdApiFails() { + CustomMetadataLoaderController cntlr = setup(); + ApexPages.currentPage().getHeaders().put('Host', 'na1.salesforce.com'); + MetadataUtil.mdApiStatus = MetadataUtil.Status.UNAVAILABLE; + try { + PageReference result = cntlr.checkMdApi(); + System.assertEquals(result, null); + System.assertEquals('na1', cntlr.prefixOrLocal); + } finally { + MetadataUtil.mdApiStatus = MetadataUtil.Status.NOT_CHECKED; + } + } + + public static testmethod void testDisplayMetadataResponse() { + CustomMetadataLoaderController cntlr = setup(); + cntlr.metadataResponse = ''; + cntlr.displayMetadataResponse(); + System.assert(!cntlr.metadataConnectionWarning); + cntlr.metadataResponse = 'Danger, Will Robinson!'; + cntlr.displayMetadataResponse(); + System.assert(cntlr.metadataConnectionWarning); + } + + static CustomMetadataLoaderController setup() { + Test.setMock(WebServiceMock.class, new MDWrapperWebServiceMock()); + return new CustomMetadataLoaderController(); + } +} diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls new file mode 100644 index 0000000..e236417 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls @@ -0,0 +1,205 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class CustomMetadataUploadController { + static MetadataService.MetadataPort service = MetadataUtil.getPort(); + + private final Set standardFieldsInHeader = new Set(); + private List nonSortedApiNames; + + public boolean showRecordsTable{get;set;} + public String selectedType{get;set;} + public Blob csvFileBody{get;set;} + public SObject[] records{get;set;} + public List cmdTypes{public get;set;} + public List fieldNamesForDisplay{public get;set;} + + public CustomMetadataUploadController() { + showRecordsTable = false; + loadCustomMetadataMetadata(); + + //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. + standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); + } + + /** + * Queries to find all custom metadata types in the org and make it available to the VF page as drop down + */ + private void loadCustomMetadataMetadata(){ + List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; + for(SObject entityDefinition : entityDefinitions){ + String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); + if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)){ + if(cmdTypes == null) { + cmdTypes = new List(); + cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); + } + cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); + } + } + } + + public PageReference upsertCustomMetadata() { + ApexPages.getMessages().clear(); + showRecordsTable = false; + + importCSVFileAndCreateUpdateCmdRecords(); + System.debug(ApexPages.getMessages()); + if(ApexPages.getMessages().size() > 0) { + if(!(ApexPages.getMessages().size() == 1 && ApexPages.getMessages()[0].getDetail().contains('DUPLICATE_DEVELOPER_NAME'))) { + return null; + } + } + + //reset the file variable + csvFileBody = null; + + if(nonSortedApiNames == null) { + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, + 'Insert/Update was successful but something went wrong fetching the records.'); + ApexPages.addMessage(errorMessage); + return null; + } + + fieldNamesForDisplay = new List(); + String selectQuery = 'SELECT '; + Integer count = 0; + for(String selectField : nonSortedApiNames) { + if(!selectField.equals(AppConstants.DESC_ATTRIBUTE)) { //not supported in soql + if(count != 0) { + selectQuery = selectQuery + ', '; + } + selectQuery = selectQuery + selectField; + fieldNamesForDisplay.add(selectField); + count++; + } + } + selectQuery = selectQuery + ' FROM ' + selectedType; + records = Database.query(selectQuery); + showRecordsTable = true; + return null; + } + + public void importCSVFileAndCreateUpdateCmdRecords(){ + List> fields; + try{ + fields = CSVFileUtil.parseCSV(csvFileBody, false); + } catch (Exception e) { + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, + 'An error has occured while importin data.'+ + ' Please make sure input csv file is correct' + + '
' + e.getMessage() + '
' + e.getCause()); + ApexPages.addMessage(errorMessage); + return; + } + + if(ApexPages.getMessages().size() > 0) { + return; + } + + if(fields == null || (fields != null && fields.size() < 1)) { + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.EMPTY_FILE); + ApexPages.addMessage(errorMessage); + return; + } + + if(selectedType == AppConstants.SELECT_STRING) { + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR,AppConstants.TYPE_OPTION_NOT_SELECTED); + ApexPages.addMessage(errorMessage); + return; + } + + //validate header fields + List header = fields[0]; + /*if(!isHeaderValid(new Set(header), selectedType)) { + return; + }*/ + // separated out columns as they were coming as string like: "DeveloperName;Label;Description;" + // it would pass the conditions under isHeadervalid() + Set columnSet = new Set(); + + for(String headerColumn :header) { + if (headerColumn == null) { + continue; + } + + for (String column :headerColumn.split(';')) { + columnSet.add(column); + } + } + + if(!isHeaderValid(columnSet, selectedType)) { + return; + } + + //transform to custom metadata - bulk size = 200 records + Integer maxLoadSize = 200; + for(Integer i = 1; i < fields.size(); i = i + maxLoadSize) { + MetadataUtil.transformToCustomMetadataAndCreateUpdate(standardFieldsInHeader, subset(fields, i, maxLoadSize), header, selectedType, i); + } + } + + private boolean isHeaderValid(Set fieldNamesInHeader, String selectedType) { + //label or devName - atleast one of the two must be specified + if(!fieldNamesInHeader.contains(AppConstants.DEV_NAME_ATTRIBUTE) && !fieldNamesInHeader.contains(AppConstants.LABEL_ATTRIBUTE)) { + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.HEADER_MISSING_DEVNAME_AND_LABEL); + ApexPages.addMessage(errorMessage); + return false; + } + + System.debug(selectedType); + + + + Set fieldApiNames = new Set(standardFieldsInHeader); + nonSortedApiNames = new List(standardFieldsInHeader); + + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(selectedType).getDescribe(); + Map fields = objDef.fields.getMap(); + + for(String fieldName : fields.keySet()) { + DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); + String fieldQualifiedApiName = fieldDesc.getName(); + + if(fieldQualifiedApiName.endsWith('__c')){ + fieldApiNames.add(fieldQualifiedApiName); + nonSortedApiNames.add(fieldQualifiedApiName); + } + } + + if(!fieldApiNames.containsAll(fieldNamesInHeader)) { + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR,'Header must contain the api names of the fields. ' + '
' + + 'Fields allowed for this type: ' + nonSortedApiNames + '
' + + 'Fields in file header: ' + fieldNamesInHeader); + ApexPages.addMessage(errorMessage); + return false; + } + return true; + } + + //https://gist.github.com/fractastical/989792 + public static List> subset(List> list1, Integer startIndex, Integer count) { + List> returnList = new List>(); + if(list1 != null && list1.size() > 0 && startIndex >= 0 && startIndex <= list1.size()-1 && count > 0){ + for(Integer i = startIndex; i < list1.size() && i - startIndex < count; i++){ + returnList.add(list1.get(i)); + } + } + return returnList; + } + + //for tests + public void setCsvBlobForTest(Blob file) { + this.csvFileBody = file; + } + + public void setSelectedTypeForTest(String selectedType) { + this.selectedType = selectedType; + } +} diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls new file mode 100644 index 0000000..49106e4 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +@isTest(SeeAllData=true) +public class CustomMetadataUploadControllerTest { + + public static testmethod void testUploadNoFile() { + CustomMetadataUploadController ctrl = setup(null); + invokeCreateCMAndValidateError(ctrl, AppConstants.FILE_MISSING); + } + + public static testmethod void testUploadEmptyFile() { + CustomMetadataUploadController ctrl = setup(Blob.valueOf('')); + invokeCreateCMAndValidateError(ctrl, AppConstants.EMPTY_FILE); + } + + public static testmethod void testSelectedTypeMissing() { + CustomMetadataUploadController ctrl = setup(Blob.valueOf('Text__c'), AppConstants.SELECT_STRING); + invokeCreateCMAndValidateError(ctrl, AppConstants.TYPE_OPTION_NOT_SELECTED); + } + + public static testmethod void testInvalidHeaderMissingFields() { + CustomMetadataUploadController ctrl = setup(Blob.valueOf('Text__c')); + invokeCreateCMAndValidateError(ctrl, AppConstants.HEADER_MISSING_DEVNAME_AND_LABEL); + } + + public static testmethod void testInvalidHeaderWrongFields() { + CustomMetadataUploadController ctrl = setup(Blob.valueOf('Label,Text__c')); + + ctrl.upsertCustomMetadata(); + ApexPages.Message[] msgs=ApexPages.getMessages(); + System.assert(msgs.size() == 1); + System.assert(msgs[0].getSummary().contains('Header must contain the api names of the fields.'), 'Actual message:' + msgs[0]); + } + + public static testmethod void testCreateCustomMetadata() { + String countryLabel = 'AmericaTest'+Math.random(); + CustomMetadataUploadController ctrl = setup(Blob.valueOf('Label,CountryCode__c,CountryName__c\n'+countryLabel+',US,America')); + + ctrl.upsertCustomMetadata(); + + ApexPages.Message[] msgs = ApexPages.getMessages(); + System.assert(msgs.size() == 0, 'Error messages:' + msgs); + } + + public static testmethod void testCreateCustomMetadataWithDevName() { + String countryLabel = 'AmericaTest'+Math.random(); + CustomMetadataUploadController ctrl = setup(Blob.valueOf('DeveloperName,CountryCode__c,CountryName__c\n'+countryLabel+',US,America')); + + ctrl.upsertCustomMetadata(); + + ApexPages.Message[] msgs = ApexPages.getMessages(); + System.assert(msgs.size() == 0, 'Error messages:' + msgs); + } + + public static testmethod void testInvalidFileRowSizeDoesntMatch() { + String countryLabel = 'AmericaTest'+Math.random(); + CustomMetadataUploadController ctrl = setup(Blob.valueOf('DeveloperName,CountryCode__c,CountryName__c\n'+countryLabel+',US')); + + invokeCreateCMAndValidateError(ctrl, AppConstants.INVALID_FILE_ROW_SIZE_DOESNT_MATCH + '1'); + } + + static CustomMetadataUploadController setup(Blob file) { + return setup(file, 'CountryMapping__mdt'); + } + + static CustomMetadataUploadController setup(Blob file, String selectedType) { + Test.setMock(WebServiceMock.class, new MDWrapperWebServiceMock()); + CustomMetadataUploadController ctrl = new CustomMetadataUploadController(); + ctrl.setSelectedTypeForTest(selectedType); + ctrl.setCsvBlobForTest(file); + return ctrl; + } + + static void invokeCreateCMAndValidateError(CustomMetadataUploadController ctrl, String errorMsg) { + ctrl.upsertCustomMetadata(); + ApexPages.Message[] msgs = ApexPages.getMessages(); + System.assert(msgs.size() == 1); + System.assert(msgs[0].getSummary().equals(errorMsg), 'Actual message:' + msgs[0]); + } +} diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls b/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls new file mode 100644 index 0000000..08452fb --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +/** + * Utilities class for common manipulation of json format data + * + */ + +public with sharing class JsonUtilities { + + public class JsonUtilException extends Exception {} + + public static String JSON_BAD_FORMAT = 'The provided Json String was badly formatted.'; + public static String JSON_EMPTY = 'No field values were found in the Json String.'; + + + /** + * This basic method takes a string formatted as json and returns a map + * containing the name/value pairs. If the input is empty or is not formatted correctly + * the method throws a JsonUtilException exception. + **/ + Public static Map getValuesFromJson(String jsonString) { + Map jsonObjMap; + Map jsonMap = new Map(); + if (TextUtil.isEmpty(jsonString) ){ + throw new JsonUtilException(JSON_EMPTY); + } + try { + jsonObjMap = (Map)JSON.deserializeUntyped(jsonString); + if(jsonObjMap == null || jsonObjMap.size() == 0) { + throw new JsonUtilException(JSON_EMPTY); + } else { + for (String pKey : jsonObjMap.keySet() ) { + try { + String pVal = (String)jsonObjMap.get(pKey); + jsonMap.put(pKey, pVal); + } catch (exception e) { + throw new JsonUtilException(JSON_BAD_FORMAT, e); + } + } + } + return jsonMap; + } catch (Exception e) { + throw new JsonUtilException(JSON_BAD_FORMAT, e); + } + } + + +} diff --git a/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls-meta.xml new file mode 100644 index 0000000..36cfacb --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls-meta.xml @@ -0,0 +1,6 @@ + + + 39.0 + Active + + diff --git a/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls b/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls new file mode 100644 index 0000000..6b42dd2 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +@isTest +global class MDWrapperWebServiceMock implements WebServiceMock { + global void doInvoke( + Object stub, + Object request, + Map response, + String endpoint, + String soapAction, + String requestName, + String responseNS, + String responseName, + String responseType) { + if(responseType == 'MetadataService.listMetadataResponse_element'){ + response.put('response_x', new MetadataService.listMetadataResponse_element()); + } else if (responseType == 'MetadataService.createMetadataResponse_element') { + MetadataService.createMetadataResponse_element respElt = + new MetadataService.createMetadataResponse_element(); + respElt.result = new List(); + MetadataService.SaveResult sr = new MetadataService.SaveResult(); + sr.success = true; + respElt.result.add(sr); + response.put('response_x', respElt); + } else if (responseType == 'MetadataService.upsertMetadataResponse_element') { + MetadataService.upsertMetadataResponse_element respElt = new MetadataService.upsertMetadataResponse_element(); + response.put('response_x', respElt); + } + } +} diff --git a/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls b/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls new file mode 100644 index 0000000..f06e497 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls @@ -0,0 +1,230 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataApexApiLoader extends MetadataLoader { + + public MetadataDeployStatus mdDeployStatus {get;set;} + public MetadataDeployCallback callback {get;set;} + + public static Id jobId1 {get;set;} + public static Metadata.DeployStatus deployStatus1 {get;set;} + public static boolean success1 {get;set;} + + public MetadataApexApiLoader() { + this.mdDeployStatus = new MetadataApexApiLoader.MetadataDeployStatus(); + this.callback = new MetadataDeployCallback(); + } + + public MetadataApexApiLoader.MetadataDeployStatus getMdDeployStatus() { + return this.mdDeployStatus; + } + + public MetadataApexApiLoader.MetadataDeployCallback getCallback() { + return this.callback; + } + + public override void migrateAsIsWithObjCreation(String csName, String cmtName) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Not Supported!!!')); + response.setIsSuccess(false); + response.setMessages(messages); + } + + public override void migrateAsIsMapping(String csName, String cmtName) { + super.migrateAsIsMapping(csName, cmtName); + buildResponse(); + } + + public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { + super.migrateSimpleMapping(csNameWithField, cmtNameWithField); + buildResponse(); + } + + public override void migrateCustomMapping(String csName, String cmtName, String mapping) { + super.migrateCustomMapping(csName, cmtName, mapping); + buildResponse(); + } + + private void buildResponse() { + if(response.IsSuccess()) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Migration In Progress... Job Id: ' + getMdDeployStatus().getJobId())); + response.setIsSuccess(true); + response.setMessages(messages); + } + } + + public override void migrate(MetadataMappingInfo mappingInfo) { + + System.debug('MetadataApexApiLoader.migrate -->'); + try{ + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + String typeDevName = mappingInfo.getCustomMetadadataTypeName() + .subString(0, mappingInfo.getCustomMetadadataTypeName().indexOf(AppConstants.MDT_SUFFIX)); + List records = new List(); + for(sObject csRecord : mappingInfo.getRecordList()) { + + Metadata.CustomMetadata customMetadataRecord = new Metadata.CustomMetadata(); + customMetadataRecord.values = new List(); + + if(csRecord.get(AppConstants.CS_NAME_ATTRIBURE) != null) { + String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); + String tempVal = strippedLabel.substring(0, 1); + + if(tempVal.isNumeric()) { + strippedLabel = 'X' + strippedLabel; + } + strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + // default fullName to type_dev_name.label + customMetadataRecord.fullName = typeDevName + '.'+ strippedLabel; + customMetadataRecord.label = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); + } + for(String fieldName : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(fieldName.toLowerCase()); + + if(mappingInfo.getCSToMDT_fieldMapping().get(fieldName).endsWith('__c')){ + Metadata.CustomMetadataValue cmv = new Metadata.CustomMetadataValue(); + cmv.field = mappingInfo.getCSToMDT_fieldMapping().get(fieldName); + if(descCSFieldResult.getType().name() == 'DATETIME') { + + if(csRecord.get(fieldName) != null) { + Datetime dt = DateTime.valueOf(csRecord.get(fieldName)); + String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); + cmv.value = csRecord.get(formattedDateTime); + } + else { + cmv.value = null; + } + + } + else{ + cmv.value = csRecord.get(fieldName); + } + + customMetadataRecord.values.add(cmv); + } + } + records.add(customMetadataRecord); + } + + + callback.setMdDeployStatus(mdDeployStatus); + + Metadata.DeployContainer deployContainer = new Metadata.DeployContainer(); + for(Metadata.CustomMetadata record : records) { + deployContainer.addMetadata(record); + } + + // Enqueue custom metadata deployment + Id jobId = Metadata.Operations.enqueueDeployment(deployContainer, callback); + jobId1 = jobId; + + mdDeployStatus.setJobId(jobId); + + System.debug('jobId-->' + jobId); + System.debug('mdDeployStatus-->' + mdDeployStatus); + System.debug('mdDeployStatus.getJobId()-->' + mdDeployStatus.getJobId()); + } + catch(Exception e) { + System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, e.getMessage())); + + response.setIsSuccess(false); + response.setMessages(messages); + } + } + + + + public class MetadataDeployStatus { + public Id jobId {get;set;} + public Metadata.DeployStatus deployStatus {get;set;} + public boolean success {get;set;} + + public MetadataDeployStatus() {} + + public Id getJobId() { + return this.jobId; + } + public void setJobId(Id jobId) { + this.jobId = jobId; + } + + public Metadata.DeployStatus getDeployStatus() { + return this.deployStatus; + } + public void setDeployStatus(Metadata.DeployStatus deployStatus) { + System.debug('setDeployStatus deployStatus ===>'+ deployStatus); + this.deployStatus = deployStatus; + } + + public boolean getSuccess() { + return this.success; + } + public void setSuccess(boolean success) { + System.debug('setDeployStatus success ===>'+ success); + this.success = success; + } + + } + + public class MetadataDeployCallback implements Metadata.DeployCallback { + + public MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus1 {get;set;} + + public void setMdDeployStatus(MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus) { + this.mdDeployStatus1 = mdDeployStatus; + } + + public MetadataDeployCallback() { + } + + public void handleResult(Metadata.DeployResult result, + Metadata.DeployCallbackContext context) { + + deployStatus1 = result.status; + success1 = result.success; + + if (result.status == Metadata.DeployStatus.Succeeded) { + + mdDeployStatus1.setSuccess(true); + mdDeployStatus1.setDeployStatus(result.status); + + System.debug(' ===>'+ result); + } + else if (result.status == Metadata.DeployStatus.InProgress) { + // Deployment In Progress + + mdDeployStatus1.setSuccess(false); + mdDeployStatus1.setDeployStatus(result.status); + + System.debug(' ===> fail '+ result); + } + else { + + mdDeployStatus1.setSuccess(false); + mdDeployStatus1.setDeployStatus(result.status); + + // Deployment was not successful + System.debug(' ===> fail '+ result); + } + + /*if (result.success) { + success = true; + System.debug(' ===>'+ result); + } + */ + + } + } + + + +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml new file mode 100644 index 0000000..36cfacb --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml @@ -0,0 +1,6 @@ + + + 39.0 + Active + + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls b/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls new file mode 100644 index 0000000..93e8d1f --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public virtual class MetadataLoader { + + public MetadataResponse response; + public MetadataMapperDefault mapper; + + public MetadataLoader() { + response = new MetadataResponse(true, null, null); + } + + /** + * This will first create custom object and then migrates the records. + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateAsIsWithObjCreation(String csName, String cmtName) { + + MetadataMappingInfo mappingInfo = null; + try{ + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); + mappingInfo = mapper.mapper(csName, cmtName, null); + } + catch(Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting exists in the org!')); + messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); + messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + } + } + + /** + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateAsIsMapping(String csName, String cmtName) { + MetadataMappingInfo mappingInfo = null; + try{ + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); + mappingInfo = mapper.mapper(csName, cmtName, null); + migrate(mappingInfo); + } + catch(Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); + messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); + messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } + + + /** + * csNameAndField: Label, DeveloperName, Description (We might need it for migration) + * cmtNameAndField: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateSimpleMapping(String csNameAndField, String cmtNameAndField) { + + MetadataMappingInfo mappingInfo = null; + try{ + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.SIMPLE); + mappingInfo = mapper.mapper(csNameAndField, cmtNameAndField, null); + migrate(mappingInfo); + } + catch(Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); + messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name/Field Name and Custom Metadata Types/Field Name names are required!')); + messages.add(new MetadataResponse.Message(200, 'Please check the format, . and .')); + messages.add(new MetadataResponse.Message(300, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(400, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } + + /** + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + * mapping: e.g. Json mapping between CS field Api and CMT field Api names + */ + public virtual void migrateCustomMapping(String csName, String cmtName, String mapping) { + MetadataMappingInfo mappingInfo = null; + try{ + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.CUSTOM); + mappingInfo = mapper.mapper(csName, cmtName, mapping); + migrate(mappingInfo); + } + catch(Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + System.debug('MetadataLoader.migrateCustomMapping --> E' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); + messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name, Custom Metadata Types Api and Json Mapping names are required!')); + messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(200, 'Please check the Json format!')); + messages.add(new MetadataResponse.Message(300, 'Please check the Api names in Json!')); + messages.add(new MetadataResponse.Message(400, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } + + public virtual void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataLoader.migrate -->'); + } + + public MetadataMapperDefault getMapper() { + return mapper; + } + + public MetadataResponse getMetadataResponse() { + return response; + } + +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls b/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls new file mode 100644 index 0000000..1ef09e8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class MetadataLoaderClient { + + /********************************************************* + * Desc This will create custom object and then migrate + Custom Settings data to Custom Metadata Types records as is + * @param Name of Custom Setting Api (VAT_Settings_CS__c) + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) + * @return + *********************************************************/ + public void migrateAsIsWithObjCreation() { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateAsIsWithObjCreation('VAT_Settings_CS__c', 'VAT_Settings__mdt'); + } + + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records as is + * @param Name of Custom Setting Api (VAT_Settings_CS__c) + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) + * @return + *********************************************************/ + public void migrateAsIsMapping() { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateAsIsMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt'); + } + + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records if you have only + * one field mapping + * @param Name of Custom Setting Api.fieldName (VAT_Settings_CS__c.Active__c) + * @param Name of Custom Metadata Types Api.fieldMame (VAT_Settings__mdt.IsActive__c) + * @return + *********************************************************/ + public void migrateSimpleMapping() { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateSimpleMapping('VAT_Settings_CS__c.Active__c', 'VAT_Settings__mdt.IsActive__c'); + } + + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records if you have only + * different Api names in Custom Settings and Custom Metadata Types + * @param Name of Custom Setting Api (VAT_Settings_CS__c) + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) + * @param Json Mapping (Sample below) + { + "Active__c" : "IsActive__c", + "Timeout__c" : "GlobalTimeout__c", + "EndPointURL__c" : "URL__c", + } + + * @return + *********************************************************/ + public void migrateCustomMapping() { + String jsonMapping = '{'+ + '"Active__c" : "Active__c",'+ + '"Timeout__c" : "Timeout__c",'+ + '"EndPointURL__c" : "EndPointURL__c",'+ + '};'; + + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateCustomMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt', jsonMapping); + } + + public void migrateMetatdataApex() { + } + +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls b/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls new file mode 100644 index 0000000..2c5f3d3 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataLoaderFactory { + + public static MetadataLoader getLoader(MetadataOpType mt) { + MetadataLoader loader = null; + + if(mt == MetadataOpType.APEXWRAPPER) { + loader = new MetadataWrapperApiLoader(); + } + if(mt == MetadataOpType.METADATAAPEX) { + loader = new MetadataApexApiLoader(); + } + return loader; + } + +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls new file mode 100644 index 0000000..db60f06 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls @@ -0,0 +1,14 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public interface MetadataMapper { + MetadataMappingInfo mapper(String sFrom, String sTo, String mapping); + + boolean validate(); + + void mapSourceTarget(); +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls new file mode 100644 index 0000000..38bae38 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataMapperCustom extends MetadataMapperDefault { + + private String csFieldName; + private String mdtFieldName; + private Map fieldsMap; + + public MetadataMapperCustom() { + super(); + } + + /** + * sFrom: e.g. VAT_Settings__c.Field_Name_CS__c + * sTo: e.g. VAT_Settings__mdt.Field_Name_MDT__c + * mapping: e.g. {"Field_cs_1__c", "Field_mdt_1__c"} + */ + public override MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { + try{ + fetchSourceMetadataAndRecords(sFrom, sTo, mapping); + mapSourceTarget(); + } + catch(Exception e) { + throw e; + } + return mappingInfo; + } + + private void fetchSourceMetadataAndRecords(String csName, String mdtName, String mapping) { + if(!mdtName.endsWith(AppConstants.MDT_SUFFIX)){ + throw new MetadataMigrationException('Custom Metadata Types name should ends with ' + AppConstants.MDT_SUFFIX); + } + + List srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + try{ + mappingInfo.setCustomSettingName(csName); + mappingInfo.setCustomMetadadataTypeName(mdtName); + + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csName).getDescribe(); + Map fields = objDef.fields.getMap(); + + this.fieldsMap = JsonUtilities.getValuesFromJson(mapping); + + for(String fieldName: fieldsMap.keySet()) { + srcFieldNames.add(fieldName); + DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); + srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); + } + + String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; + String query = selectClause + ' FROM ' + csName; + + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + + } + catch(Exception e) { + System.debug('MetadataMapperCustom.Error Message=' + e.getMessage()); + throw e; + } + + } + + public override boolean validate(){ + return true; + } + + public override void mapSourceTarget() { + mappingInfo.setCSToMDT_fieldMapping(this.fieldsMap); + } + +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls new file mode 100644 index 0000000..fb93c01 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public virtual with sharing class MetadataMapperDefault implements MetadataMapper { + + protected MetadataMappingInfo mappingInfo; // {get;set;} + private List srcFieldNames; + + public MetadataMapperDefault() { + this.mappingInfo = new MetadataMappingInfo(); + } + + /** + * sFrom: e.g. VAT_Settings__c + * sTo: e.g. VAT_Settings__mdt + * mapping: e.g. {} + */ + public virtual MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { + try{ + mappingInfo.setCustomSettingName(sFrom); + mappingInfo.setCustomMetadadataTypeName(sTo); + + fetchSourceMetadataAndRecords(sFrom); + mapSourceTarget(); + } + catch(Exception e) { + throw e; + } + return mappingInfo; + } + + private void fetchSourceMetadataAndRecords(String customSettingApiName) { + + if(!mappingInfo.getCustomMetadadataTypeName().endsWith(AppConstants.MDT_SUFFIX)){ + throw new MetadataMigrationException('Custom Metadata Types name should ends with ' + AppConstants.MDT_SUFFIX); + } + + srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + try { + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(customSettingApiName).getDescribe(); + Map fields = objDef.fields.getMap(); + + String selectFields = ''; + for(String fieldName : fields.keySet()) { + DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); + String fieldQualifiedApiName = fieldDesc.getName(); + if(fieldQualifiedApiName.endsWith('__c')){ + srcFieldNames.add(fieldQualifiedApiName); + } + srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); + + } + + String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; + String query = selectClause + ' FROM ' + customSettingApiName; + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + } + catch(Exception e) { + System.debug('MetadataMapperDefault.Error Message=' + e.getMessage()); + throw e; + } + } + + public virtual boolean validate(){ + return true; + } + + public virtual void mapSourceTarget() { + Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); + for(String fieldName: srcFieldNames) { + csToMDT_fieldMapping.put(fieldName, fieldName); + } + } + + public MetadataMappingInfo getMappingInfo() { + return mappingInfo; + } + +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls new file mode 100644 index 0000000..1457184 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataMapperFactory { + + public static MetadataMapperDefault getMapper(MetadataMapperType mt) { + MetadataMapperDefault mapper = null; + if(mt == MetadataMapperType.ASIS) { + mapper = new MetadataMapperDefault(); + } + if(mt == MetadataMapperType.SIMPLE) { + mapper = new MetadataMapperSimple(); + } + else if(mt == MetadataMapperType.CUSTOM) { + mapper = new MetadataMapperCustom(); + } + return mapper; + } + +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls new file mode 100644 index 0000000..ca7893a --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataMapperSimple extends MetadataMapperDefault { + + private String csFieldName; + private String mdtFieldName; + + public MetadataMapperSimple() { + super(); + } + + /** + * sFrom: e.g. VAT_Settings__c.Field_Name_CS__c + * sTo: e.g. VAT_Settings__mdt.Field_Name_MDT__c + * mapping: e.g. null + */ + public override MetadataMappingInfo mapper(String csName, String cmtName, String mapping) { + fetchSourceMetadataAndRecords(csName, cmtName); + mapSourceTarget(); + + return mappingInfo; + } + + private void fetchSourceMetadataAndRecords(String csNameWithField, String mdtNameWithField) { + try{ + List srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + System.debug('csNameWithField->' + csNameWithField); + System.debug('mdtNameWithField->' + mdtNameWithField); + + String[] csArray = csNameWithField.split('\\.'); + String[] mdtArray = mdtNameWithField.split('\\.'); + + mappingInfo.setCustomSettingName(csArray[0]); + mappingInfo.setCustomMetadadataTypeName(mdtArray[0]); + + System.debug('csArray->' + csArray); + System.debug('mdtArray->' + mdtArray); + + csFieldName = csArray[1]; + mdtFieldName = mdtArray[1]; + + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csArray[0]).getDescribe(); + Map fields = objDef.fields.getMap(); + DescribeFieldResult fieldDesc = fields.get(csFieldName).getDescribe(); + srcFieldResultMap.put(csFieldName.toLowerCase(), fieldDesc); + + srcFieldNames.add(csFieldName); + + String selectClause = 'SELECT ' + csArray[1] + ' ,Name '; + String query = selectClause + ' FROM ' + csArray[0]; + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + + } + catch(Exception e) { + System.debug('MetadataMapperSimple.Error Message=' + e.getMessage()); + throw e; + } + } + + public override boolean validate(){ + return true; + } + + public override void mapSourceTarget() { + Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); + csToMDT_fieldMapping.put(csFieldName, mdtFieldName); + } + +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls new file mode 100644 index 0000000..c0e4c8e --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public enum MetadataMapperType { ASIS, SIMPLE, CUSTOM } diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls b/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls new file mode 100644 index 0000000..e1be6f9 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataMappingInfo { + + private final Set standardFields = new Set(); + private String customSettingName; + private String customMetadadataTypeName; + + private List srcFieldNames; + private List recordList; + private Map srcFieldResultMap; + + private Map csToMDT_fieldMapping = new Map(); + + public MetadataMappingInfo() { + standardFields.add(AppConstants.DEV_NAME_ATTRIBUTE); + standardFields.add(AppConstants.LABEL_ATTRIBUTE); + standardFields.add(AppConstants.DESC_ATTRIBUTE); + } + + public Set getStandardFields() { + return standardFields; + } + + public List getSrcFieldNames() { + return srcFieldNames; + } + + public List getRecordList() { + return recordList; + } + + public void setSrcFieldNames(List names) { + this.srcFieldNames = names; + } + + public void setRecordList(List records) { + this.recordList = records; + } + + public Map getCSToMDT_fieldMapping() { + System.debug('MetadataMappingInfo.getCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); + return this.csToMDT_fieldMapping; + } + + public void setCSToMDT_fieldMapping(Map csToMDT_fieldMapping) { + System.debug('BEFORE MetadataMappingInfo.setCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); + this.csToMDT_fieldMapping = csToMDT_fieldMapping; + System.debug('AFTER MetadataMappingInfo.setCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); + } + + public String getCustomSettingName() { + return this.customSettingName; + } + + public void setCustomSettingName(String customSettingName) { + this.customSettingName = customSettingName; + } + + public String getCustomMetadadataTypeName() { + return this.customMetadadataTypeName; + } + + public void setCustomMetadadataTypeName(String customMetadadataTypeName) { + this.customMetadadataTypeName = customMetadadataTypeName; + } + + public Map getSrcFieldResultMap() { + return this.srcFieldResultMap; + } + + public void setSrcFieldResultMap(Map fieldResult) { + this.srcFieldResultMap = fieldResult; + } + +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls b/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls new file mode 100644 index 0000000..3675c4e --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls @@ -0,0 +1,222 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class MetadataMigrationController { + static MetadataService.MetadataPort service = MetadataUtil.getPort(); + + private final Set standardFieldsInHeader = new Set(); + private List nonSortedApiNames; + + public boolean showRecordsTable{get;set;} + public String selectedType{get;set;} + public Blob csvFileBody{get;set;} + public SObject[] records{get;set;} + public List cmdTypes{public get;set;} + public String selectedOpType1{get;set;} + public String selectedOpType2{get;set;} + public String selectedOpType3{get;set;} + public List opTypes{public get;set;} + public List objCreationOpTypes{public get;set;} + + public List fieldNamesForDisplay{public get;set;} + + public String customSettingFromFieldAsIs{public get;set;} + public String customSettingFromFieldSimple{public get;set;} + public String cmdToFieldSimple{public get;set;} + public String customSettingFromFieldJson{public get;set;} + public String cmdToFieldJson{public get;set;} + + public String csFieldObjCreation {public get;set;} + public String cmtFieldObjCreation {public get;set;} + public String opTypeFieldObjCreation {public get;set;} + + public String csNameApexMetadata{public get;set;} + public String cmdNameApexMetadata{public get;set;} + public String jsonMappingApexMetadata{public get;set;} + + public String jsonMapping{public get;set;} + + public boolean asyncDeployInProgress{get;set;} + + public boolean isMessage {get;set;} + + public MetadataOpType opType = MetadataOpType.APEXWRAPPER; + //public MetadataOpType opType = MetadataOpType.METADATAAPEX; + + public MetadataMigrationController() { + + service.timeout_x = 40000; + + isMessage = false; + asyncDeployInProgress = false; + + showRecordsTable = false; + loadCustomMetadataMetadata(); + + //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. + standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); + + jsonMapping = '{' + + ' \"customsetting_field1__c\" : \"cmd_field1__c\",' + + ' \"customsetting_field2__c\" : \"cmd_field2__c\",' + + ' \"customsetting_field3__c\" : \"cmd_field3__c\"' + + '}'; + + opTypes = new List(); + opTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); + opTypes.add(new SelectOption(MetadataOpType.METADATAAPEX.name(), 'Async Operation')); + + objCreationOpTypes = new List(); + objCreationOpTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); + + } + + public PageReference onLoad () { + System.debug('onLoad-->' ); + + return null; + } + + + /** + * Queries to find all custom metadata types in the org and make it available to the VF page as drop down + */ + private void loadCustomMetadataMetadata(){ + List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; + for(SObject entityDefinition : entityDefinitions){ + String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); + if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)){ + if(cmdTypes == null) { + cmdTypes = new List(); + cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); + } + cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); + } + } + } + + private void init(String selectedOpType) { + System.debug('migrateAsIsMapping.selectedOpType-->' + selectedOpType); + + opType = MetadataOpType.APEXWRAPPER; + if(selectedOpType == MetadataOpType.METADATAAPEX.name()) { + System.debug('selectedOpType == MetadataOpType.METADATAAPEX.name()'); + opType = MetadataOpType.METADATAAPEX; + } + System.debug('opType' + opType); + } + + public PageReference migrateAsIsWithObjCreation() { + init(opTypeFieldObjCreation); + + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateAsIsWithObjCreation(csFieldObjCreation, cmtFieldObjCreation); + + MetadataResponse response = loader.getMetadataResponse(); + + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateAsIsMapping() { + init(selectedOpType1); + + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateAsIsMapping(customSettingFromFieldAsIs, selectedType); + MetadataResponse response = loader.getMetadataResponse(); + + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateSimpleMapping() { + init(selectedOpType2); + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateSimpleMapping(customSettingFromFieldSimple, cmdToFieldSimple); + MetadataResponse response = loader.getMetadataResponse(); + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + + public PageReference migrateCustomMapping() { + init(selectedOpType3); + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateCustomMapping(customSettingFromFieldJson, cmdToFieldJson, jsonMapping); + MetadataResponse response = loader.getMetadataResponse(); + List messages = response.getMessages(); + + if(response.isSuccess()) { + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls b/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls new file mode 100644 index 0000000..c3e8b36 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls @@ -0,0 +1,8 @@ +/** + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class MetadataMigrationException extends Exception{} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml new file mode 100644 index 0000000..94f6f06 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml @@ -0,0 +1,5 @@ + + + 40.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls b/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls new file mode 100644 index 0000000..58641c0 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls @@ -0,0 +1,279 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataObjectCreator { + + static MetadataService.MetadataPort service = MetadataUtil.getPort(); + static String endPoint = URL.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/m/40.0'; + + private static String objectRequestBodySnippet = + '' + + ''+ + '' + + '' + + '{0}' + + '' + + '' + + '' + + '' + + '' + + '{1}' + + // '{2}' + + '' + + '{3}' + + '' + + '' + + '' + + ''; + + private static String fieldRequestBodySnippet = + '' + + ''+ + '' + + '' + + '{0}' + + '' + + '' + + '' + + '' + + '{1}' + + '' + + '' + + ''; + + private static String fieldRequestSnippet = + '' + + '{0}' + + '{1}' + + '' + + '{3}' + // length + '{4}' + // defaultValue + '{5}' + // precisionValue + ''; + + private static String fieldLengthSnippet = + '{0}'; + private static String fieldDefaultValueSnippet = + '{0}'; + + public static void createCustomObject(MetadataMappingInfo mappingInfo) { + try{ + System.debug('createCustomObject -->'); + String fullName = mappingInfo.getCustomMetadadataTypeName(); + + System.debug('fullName ->' + fullName); + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); + + String label = pluralLabel; + pluralLabel = pluralLabel + 's'; + + System.debug('label ->' + label); + System.debug('pluralLabel ->' + pluralLabel); + + String objectRequest = String.format(objectRequestBodySnippet, new String[]{UserInfo.getSessionId(), fullName, label, pluralLabel}); + + System.debug('objectRequest-->' + objectRequest); + HttpRequest httpReq = initHttpRequest('POST'); + httpReq.setBody(objectRequest); + + httpReq.setEndpoint(endPoint); + System.debug('httpReq-->' + httpReq); + getResponse(httpReq); + } + catch(Exception e) { + throw e; + } + } + + public static void createCustomField(MetadataMappingInfo mappingInfo) { + try{ + System.debug('createCustomField -->'); + + String fullName = mappingInfo.getCustomMetadadataTypeName(); + + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + String fieldFullName = ''; + String label = ''; + String type_x = ''; + String length_x = ''; + String defaultValue = ''; + String precisionValue = ''; + + String fieldRequest = ''; + String reqBody = ''; + + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + System.debug('descFieldResultMap-->' + descFieldResultMap); + + integer counter = 0; + for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ + length_x = ''; + + System.debug('csField-->' + csField); + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); + System.debug('descCSFieldResult-->' + descCSFieldResult); + + String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); + + System.debug('cmtField-->' + cmtField); + System.debug('fullName--> 2' + fullName); + + fieldFullName = fullName + '.' + cmtField; + System.debug('fieldFullName--> 3' + fieldFullName); + label = descCSFieldResult.getLabel(); + type_x = getConvertedType(descCSFieldResult.getType().name()); + length_x = String.valueOf(descCSFieldResult.getLength()); + + if(descCSFieldResult.getLength() != 0 ) { + length_x = String.format(fieldLengthSnippet, new String[]{length_x}); + } + else { + length_x = ''; + } + if(type_x == 'Checkbox') { + defaultValue = '' + descCSFieldResult.getDefaultValue() +''; + } + else{ + defaultValue = ''; + } + if(type_x == 'Number' || type_x == 'Percent') { + precisionValue = '' + descCSFieldResult.getPrecision() +'' + + '' + descCSFieldResult.getScale() +''; + } + else{ + precisionValue = ''; + } + // Length is set to 80 for Email/Phone/URL fields but no length field? + if(type_x == 'Email' || type_x == 'Phone' || type_x == 'URL' || type_x == 'Url' || type_x == 'TextArea' ) { + length_x = ''; + } + + fieldRequest = fieldRequest + String.format(fieldRequestSnippet, new String[]{fieldFullName, type_x, label, length_x, defaultValue, precisionValue}); + + System.debug('fieldFullName-->' + fieldFullName); + System.debug('label-->' + label); + System.debug('type_x-->' + type_x); + System.debug('length_x-->' + length_x); + + if(counter == 9) { + + reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); + + System.debug('reqBody-->' + reqBody); + HttpRequest httpReq = initHttpRequest('POST'); + httpReq.setBody(reqBody); + httpReq.setEndpoint(endPoint); + System.debug('httpReq-->' + httpReq); + getResponse(httpReq); + + fieldRequest = ''; + } + + counter++; + + } + } + System.debug('fieldRequest-->' + fieldRequest); + + if(fieldRequest != '') { + reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); + + System.debug('reqBody-->' + reqBody); + HttpRequest httpReq = initHttpRequest('POST'); + httpReq.setBody(reqBody); + httpReq.setEndpoint(endPoint); + System.debug('httpReq-->' + httpReq); + getResponse(httpReq); + } + } + catch(Exception e) { + throw e; + } + } + + private static HttpRequest initHttpRequest(String httpMethod){ + HttpRequest req = new HttpRequest(); + req.setHeader('Accept', 'application/xml'); + req.setHeader('SOAPAction','""'); + req.setHeader('Content-Type', 'text/xml'); + req.setMethod(httpMethod); + return req; + } + + private static String getResponse(HttpRequest request) { + Http http = new Http(); + HttpResponse response = new HttpResponse(); + + response = http.send(request); + + System.debug('---- RESPONSE RECEIVED------'); + System.debug(response); + + if (response.getStatusCode() == 200 || response.getStatusCode() == 201){ + System.debug('Ok Received!'); + } + else{ + System.debug('Error Received!'); + } + String responseBody = response.getBody(); + System.debug('responseBody-->' + responseBody); + + return responseBody; + } + + + private static String getConvertedType(String type_x) { + String newtType = 'Text'; + if(type_x == 'STRING') { + newtType = 'Text'; + } + else if(type_x == 'BOOLEAN') { + newtType = 'Checkbox'; + } + else if(type_x == 'DOUBLE' || type_x == 'INTEGER') { + newtType = 'Number'; + } + else if(type_x == 'PERCENT' || type_x == 'Percent') { + newtType = 'Percent'; + } + else if(type_x == 'DATETIME') { + newtType = 'DateTime'; + } + else if(type_x == 'DATE') { + newtType = 'Date'; + } + else if(type_x == 'TEXTAREA') { + newtType = 'TextArea'; + } + else if(type_x == 'PICKLIST') { + newtType = 'Picklist'; + } + else if(type_x == 'EMAIL') { + newtType = 'Email'; + } + else if(type_x == 'PHONE') { + newtType = 'Phone'; + } + else if(type_x == 'URL') { + newtType = 'Url'; + } + + else { + newtType = type_x; + } + + return newtType; + + } + +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls b/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls new file mode 100644 index 0000000..1953cd2 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls @@ -0,0 +1,8 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public enum MetadataOpType { APEXWRAPPER, METADATAAPEX } diff --git a/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls b/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls new file mode 100644 index 0000000..96dd34d --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataResponse { + + private boolean isSuccess; + private List messages; + private MetadataMappingInfo mappingInfo; + + public MetadataResponse() { + } + + public MetadataResponse(boolean bIsSuccess, MetadataMappingInfo info, List messagesList) { + this.isSuccess = bIsSuccess; + this.messages = messagesList; + this.mappingInfo = info; + } + + public boolean isSuccess() { + return this.isSuccess; + } + + public void setIsSuccess(boolean isSuccess) { + this.isSuccess = isSuccess; + } + + public void setMappingInfo(MetadataMappingInfo info) { + this.mappingInfo = info; + } + public MetadataMappingInfo getMappingInfo() { + return this.mappingInfo; + } + + public List getMessages() { + return this.messages; + } + + public void setMessages(List msg) { + this.messages = msg; + } + + public with sharing class Message { + public Integer messageCode; + public String messageDetail; + + public Message() { + } + + public Message(Integer code, String message) { + this.messageCode = code; + this.messageDetail = message; + } + } + + public String debug() { + return 'MetadataResponse{' + 'success=' + isSuccess() + ', messages=' + getMessages() + ', mapping info=' + getMappingInfo() + '}'; + } +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls-meta.xml new file mode 100644 index 0000000..8b061c8 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls-meta.xml @@ -0,0 +1,5 @@ + + + 39.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataService.cls b/custom_md_loader/custom_md_loader/classes/MetadataService.cls new file mode 100644 index 0000000..13dad0c --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataService.cls @@ -0,0 +1,9384 @@ +/** + * Copyright (c), FinancialForce.com, inc + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * - Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * - Neither the name of the FinancialForce.com, inc nor the names of its contributors + * may be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +**/ + +//Generated by wsdl2apex + +public class MetadataService { + public class listMetadataResponse_element { + public MetadataService.FileProperties[] result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class WorkflowRule extends Metadata { + public String type = 'WorkflowRule'; + public String fullName; + public MetadataService.WorkflowActionReference[] actions; + public Boolean active; + public String booleanFilter; + public MetadataService.FilterItem[] criteriaItems; + public String description; + public String formula; + public String triggerType; + public MetadataService.WorkflowTimeTrigger[] workflowTimeTriggers; + private String[] actions_type_info = new String[]{'actions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] triggerType_type_info = new String[]{'triggerType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] workflowTimeTriggers_type_info = new String[]{'workflowTimeTriggers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'actions','active','booleanFilter','criteriaItems','description','formula','triggerType','workflowTimeTriggers'}; + } + public class FieldOverride { + public String field; + public String formula; + public String literalValue; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] literalValue_type_info = new String[]{'literalValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','formula','literalValue'}; + } + public class AccountOwnerSharingRule { + public String accountAccessLevel; + public String caseAccessLevel; + public String contactAccessLevel; + public String description; + public String name; + public String opportunityAccessLevel; + private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accountAccessLevel','caseAccessLevel','contactAccessLevel','description','name','opportunityAccessLevel'}; + } + public class QuotasSettings { + public Boolean showQuotas; + private String[] showQuotas_type_info = new String[]{'showQuotas','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'showQuotas'}; + } + public class checkDeployStatus_element { + public String asyncProcessId; + public Boolean includeDetails; + private String[] asyncProcessId_type_info = new String[]{'asyncProcessId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] includeDetails_type_info = new String[]{'includeDetails','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'asyncProcessId','includeDetails'}; + } + public class Skill extends Metadata { + public String type = 'Skill'; + public String fullName; + public MetadataService.SkillAssignments assignments; + public String label; + private String[] assignments_type_info = new String[]{'assignments','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'assignments','label'}; + } + public class CodeCoverageWarning { + public String id; + public String message; + public String name; + public String namespace; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] message_type_info = new String[]{'message','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'id','message','name','namespace'}; + } + public class FlowInputValidationRule { + public String errorMessage; + public String formulaExpression; + private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] formulaExpression_type_info = new String[]{'formulaExpression','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'errorMessage','formulaExpression'}; + } + public class FlowApexPluginCall { + public String apexClass; + public MetadataService.FlowConnector connector; + public MetadataService.FlowConnector faultConnector; + public MetadataService.FlowApexPluginCallInputParameter[] inputParameters; + public MetadataService.FlowApexPluginCallOutputParameter[] outputParameters; + private String[] apexClass_type_info = new String[]{'apexClass','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inputParameters_type_info = new String[]{'inputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] outputParameters_type_info = new String[]{'outputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'apexClass','connector','faultConnector','inputParameters','outputParameters'}; + } + public class CustomObjectCriteriaBasedSharingRule { + public String accessLevel; + public String booleanFilter; + public String description; + public String name; + private String[] accessLevel_type_info = new String[]{'accessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accessLevel','booleanFilter','description','name'}; + } + public class KnowledgeAnswerSettings { + public String assignTo; + public String defaultArticleType; + public Boolean enableArticleCreation; + private String[] assignTo_type_info = new String[]{'assignTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultArticleType_type_info = new String[]{'defaultArticleType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableArticleCreation_type_info = new String[]{'enableArticleCreation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignTo','defaultArticleType','enableArticleCreation'}; + } + public class PasswordPolicies { + public String apiOnlyUserHomePageURL; + public String complexity; + public String expiration; + public String historyRestriction; + public String lockoutInterval; + public String maxLoginAttempts; + public String minPasswordLength; + public Boolean minimumPasswordLifetime; + public Boolean obscureSecretAnswer; + public String passwordAssistanceMessage; + public String passwordAssistanceURL; + public String questionRestriction; + private String[] apiOnlyUserHomePageURL_type_info = new String[]{'apiOnlyUserHomePageURL','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] complexity_type_info = new String[]{'complexity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] expiration_type_info = new String[]{'expiration','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] historyRestriction_type_info = new String[]{'historyRestriction','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lockoutInterval_type_info = new String[]{'lockoutInterval','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] maxLoginAttempts_type_info = new String[]{'maxLoginAttempts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] minPasswordLength_type_info = new String[]{'minPasswordLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] minimumPasswordLifetime_type_info = new String[]{'minimumPasswordLifetime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] obscureSecretAnswer_type_info = new String[]{'obscureSecretAnswer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] passwordAssistanceMessage_type_info = new String[]{'passwordAssistanceMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] passwordAssistanceURL_type_info = new String[]{'passwordAssistanceURL','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] questionRestriction_type_info = new String[]{'questionRestriction','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'apiOnlyUserHomePageURL','complexity','expiration','historyRestriction','lockoutInterval','maxLoginAttempts','minPasswordLength','minimumPasswordLifetime','obscureSecretAnswer','passwordAssistanceMessage','passwordAssistanceURL','questionRestriction'}; + } + public class QueueSobject { + public String sobjectType; + private String[] sobjectType_type_info = new String[]{'sobjectType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'sobjectType'}; + } + public class CaseSharingRules { + public MetadataService.CaseCriteriaBasedSharingRule[] criteriaBasedRules; + public MetadataService.CaseOwnerSharingRule[] ownerRules; + private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; + } + public class AgentConfigProfileAssignments { + public String[] profile; + private String[] profile_type_info = new String[]{'profile','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'profile'}; + } + public class OpportunityOwnerSharingRule { + public String description; + public String name; + public String opportunityAccessLevel; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','name','opportunityAccessLevel'}; + } + public class ExternalDataSource extends Metadata { + public String type = 'ExternalDataSource'; + public String fullName; + public String apiKey; + public String authProvider; + public String certificate; + public String customConfiguration; + public String endpoint; + public String label; + public String oauthRefreshToken; + public String oauthScope; + public String oauthToken; + public String password; + public String principalType; + public String protocol; + public String repository; + public String type_x; + public String username; + public String version; + private String[] apiKey_type_info = new String[]{'apiKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] authProvider_type_info = new String[]{'authProvider','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] certificate_type_info = new String[]{'certificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customConfiguration_type_info = new String[]{'customConfiguration','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] endpoint_type_info = new String[]{'endpoint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] oauthRefreshToken_type_info = new String[]{'oauthRefreshToken','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] oauthScope_type_info = new String[]{'oauthScope','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] oauthToken_type_info = new String[]{'oauthToken','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] password_type_info = new String[]{'password','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] principalType_type_info = new String[]{'principalType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] protocol_type_info = new String[]{'protocol','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] repository_type_info = new String[]{'repository','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] username_type_info = new String[]{'username','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] version_type_info = new String[]{'version','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'apiKey','authProvider','certificate','customConfiguration','endpoint','label','oauthRefreshToken','oauthScope','oauthToken','password','principalType','protocol','repository','type_x','username','version'}; + } + public class WorkflowEmailRecipient { + public String field; + public String recipient; + public String type_x; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recipient_type_info = new String[]{'recipient','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','recipient','type_x'}; + } + public class DescribeMetadataResult { + public MetadataService.DescribeMetadataObject[] metadataObjects; + public String organizationNamespace; + public Boolean partialSaveAllowed; + public Boolean testRequired; + private String[] metadataObjects_type_info = new String[]{'metadataObjects','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] organizationNamespace_type_info = new String[]{'organizationNamespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] partialSaveAllowed_type_info = new String[]{'partialSaveAllowed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] testRequired_type_info = new String[]{'testRequired','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'metadataObjects','organizationNamespace','partialSaveAllowed','testRequired'}; + } + public class Scontrol extends MetadataWithContent { + public String type = 'Scontrol'; + public String fullName; + public String content; + public String contentSource; + public String description; + public String encodingKey; + public String fileContent; + public String fileName; + public String name; + public Boolean supportsCaching; + private String[] contentSource_type_info = new String[]{'contentSource','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] encodingKey_type_info = new String[]{'encodingKey','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fileContent_type_info = new String[]{'fileContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fileName_type_info = new String[]{'fileName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] supportsCaching_type_info = new String[]{'supportsCaching','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'contentSource','description','encodingKey','fileContent','fileName','name','supportsCaching'}; + } + public class DashboardComponent { + public Boolean autoselectColumnsFromReport; + public String chartAxisRange; + public Double chartAxisRangeMax; + public Double chartAxisRangeMin; + public MetadataService.ChartSummary[] chartSummary; + public String componentType; + public MetadataService.DashboardFilterColumn[] dashboardFilterColumns; + public MetadataService.DashboardTableColumn[] dashboardTableColumn; + public String displayUnits; + public String drillDownUrl; + public Boolean drillEnabled; + public Boolean drillToDetailEnabled; + public Boolean enableHover; + public Boolean expandOthers; + public String footer; + public Double gaugeMax; + public Double gaugeMin; + public String[] groupingColumn; + public String header; + public Double indicatorBreakpoint1; + public Double indicatorBreakpoint2; + public String indicatorHighColor; + public String indicatorLowColor; + public String indicatorMiddleColor; + public String legendPosition; + public Integer maxValuesDisplayed; + public String metricLabel; + public String page_x; + public Integer pageHeightInPixels; + public String report; + public String scontrol; + public Integer scontrolHeightInPixels; + public Boolean showPercentage; + public Boolean showPicturesOnCharts; + public Boolean showPicturesOnTables; + public Boolean showTotal; + public Boolean showValues; + public String sortBy; + public String title; + public Boolean useReportChart; + private String[] autoselectColumnsFromReport_type_info = new String[]{'autoselectColumnsFromReport','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chartAxisRange_type_info = new String[]{'chartAxisRange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chartAxisRangeMax_type_info = new String[]{'chartAxisRangeMax','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chartAxisRangeMin_type_info = new String[]{'chartAxisRangeMin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chartSummary_type_info = new String[]{'chartSummary','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] componentType_type_info = new String[]{'componentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] dashboardFilterColumns_type_info = new String[]{'dashboardFilterColumns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] dashboardTableColumn_type_info = new String[]{'dashboardTableColumn','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] displayUnits_type_info = new String[]{'displayUnits','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] drillDownUrl_type_info = new String[]{'drillDownUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] drillEnabled_type_info = new String[]{'drillEnabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] drillToDetailEnabled_type_info = new String[]{'drillToDetailEnabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableHover_type_info = new String[]{'enableHover','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] expandOthers_type_info = new String[]{'expandOthers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] footer_type_info = new String[]{'footer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] gaugeMax_type_info = new String[]{'gaugeMax','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] gaugeMin_type_info = new String[]{'gaugeMin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] groupingColumn_type_info = new String[]{'groupingColumn','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] header_type_info = new String[]{'header','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] indicatorBreakpoint1_type_info = new String[]{'indicatorBreakpoint1','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] indicatorBreakpoint2_type_info = new String[]{'indicatorBreakpoint2','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] indicatorHighColor_type_info = new String[]{'indicatorHighColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] indicatorLowColor_type_info = new String[]{'indicatorLowColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] indicatorMiddleColor_type_info = new String[]{'indicatorMiddleColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] legendPosition_type_info = new String[]{'legendPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] maxValuesDisplayed_type_info = new String[]{'maxValuesDisplayed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] metricLabel_type_info = new String[]{'metricLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] pageHeightInPixels_type_info = new String[]{'pageHeightInPixels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] report_type_info = new String[]{'report','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scontrolHeightInPixels_type_info = new String[]{'scontrolHeightInPixels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showPercentage_type_info = new String[]{'showPercentage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showPicturesOnCharts_type_info = new String[]{'showPicturesOnCharts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showPicturesOnTables_type_info = new String[]{'showPicturesOnTables','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showTotal_type_info = new String[]{'showTotal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showValues_type_info = new String[]{'showValues','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortBy_type_info = new String[]{'sortBy','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] title_type_info = new String[]{'title','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] useReportChart_type_info = new String[]{'useReportChart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'autoselectColumnsFromReport','chartAxisRange','chartAxisRangeMax','chartAxisRangeMin','chartSummary','componentType','dashboardFilterColumns','dashboardTableColumn','displayUnits','drillDownUrl','drillEnabled','drillToDetailEnabled','enableHover','expandOthers','footer','gaugeMax','gaugeMin','groupingColumn','header','indicatorBreakpoint1','indicatorBreakpoint2','indicatorHighColor','indicatorLowColor','indicatorMiddleColor','legendPosition','maxValuesDisplayed','metricLabel','page_x','pageHeightInPixels','report','scontrol','scontrolHeightInPixels','showPercentage','showPicturesOnCharts','showPicturesOnTables','showTotal','showValues','sortBy','title','useReportChart'}; + } + public class WorkflowFlowActionParameter { + public String name; + public String value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class IdeasSettings extends Metadata { + public String type = 'IdeasSettings'; + public String fullName; + public Boolean enableChatterProfile; + public Boolean enableIdeaThemes; + public Boolean enableIdeas; + public Boolean enableIdeasReputation; + public Double halfLife; + public String ideasProfilePage; + private String[] enableChatterProfile_type_info = new String[]{'enableChatterProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableIdeaThemes_type_info = new String[]{'enableIdeaThemes','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableIdeas_type_info = new String[]{'enableIdeas','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableIdeasReputation_type_info = new String[]{'enableIdeasReputation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] halfLife_type_info = new String[]{'halfLife','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] ideasProfilePage_type_info = new String[]{'ideasProfilePage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'enableChatterProfile','enableIdeaThemes','enableIdeas','enableIdeasReputation','halfLife','ideasProfilePage'}; + } + public class Country { + public Boolean active; + public String integrationValue; + public String isoCode; + public String label; + public Boolean orgDefault; + public Boolean standard; + public MetadataService.State[] states; + public Boolean visible; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] integrationValue_type_info = new String[]{'integrationValue','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isoCode_type_info = new String[]{'isoCode','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] orgDefault_type_info = new String[]{'orgDefault','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] standard_type_info = new String[]{'standard','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] states_type_info = new String[]{'states','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'active','integrationValue','isoCode','label','orgDefault','standard','states','visible'}; + } + public class ConnectedAppOauthConfig { + public String callbackUrl; + public String certificate; + public String consumerKey; + public String consumerSecret; + public String[] scopes; + private String[] callbackUrl_type_info = new String[]{'callbackUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] certificate_type_info = new String[]{'certificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] consumerKey_type_info = new String[]{'consumerKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] consumerSecret_type_info = new String[]{'consumerSecret','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scopes_type_info = new String[]{'scopes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'callbackUrl','certificate','consumerKey','consumerSecret','scopes'}; + } + public class LiveAgentSettings extends Metadata { + public String type = 'LiveAgentSettings'; + public String fullName; + public Boolean enableLiveAgent; + private String[] enableLiveAgent_type_info = new String[]{'enableLiveAgent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'enableLiveAgent'}; + } + public class PermissionSetApexClassAccess { + public String apexClass; + public Boolean enabled; + private String[] apexClass_type_info = new String[]{'apexClass','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'apexClass','enabled'}; + } + public class LogInfo { + public String category; + public String level; + private String[] category_type_info = new String[]{'category','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] level_type_info = new String[]{'level','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'category','level'}; + } + public class SkillAssignments { + public MetadataService.SkillProfileAssignments profiles; + public MetadataService.SkillUserAssignments users; + private String[] profiles_type_info = new String[]{'profiles','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] users_type_info = new String[]{'users','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'profiles','users'}; + } + public class ReputationLevels { + public MetadataService.ChatterAnswersReputationLevel[] chatterAnswersReputationLevels; + public MetadataService.IdeaReputationLevel[] ideaReputationLevels; + private String[] chatterAnswersReputationLevels_type_info = new String[]{'chatterAnswersReputationLevels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] ideaReputationLevels_type_info = new String[]{'ideaReputationLevels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'chatterAnswersReputationLevels','ideaReputationLevels'}; + } + public class ActivitiesSettings extends Metadata { + public String type = 'ActivitiesSettings'; + public String fullName; + public Boolean allowUsersToRelateMultipleContactsToTasksAndEvents; + public Boolean enableActivityReminders; + public Boolean enableClickCreateEvents; + public Boolean enableDragAndDropScheduling; + public Boolean enableEmailTracking; + public Boolean enableEventScheduler; + public Boolean enableGroupTasks; + public Boolean enableListViewScheduling; + public Boolean enableLogNote; + public Boolean enableMultidayEvents; + public Boolean enableRecurringEvents; + public Boolean enableRecurringTasks; + public Boolean enableSidebarCalendarShortcut; + public Boolean enableSimpleTaskCreateUI; + public Boolean enableUNSTaskDelegatedToNotifications; + public String meetingRequestsLogo; + public Boolean showCustomLogoMeetingRequests; + public Boolean showEventDetailsMultiUserCalendar; + public Boolean showHomePageHoverLinksForEvents; + public Boolean showMyTasksHoverLinks; + public Boolean showRequestedMeetingsOnHomePage; + private String[] allowUsersToRelateMultipleContactsToTasksAndEvents_type_info = new String[]{'allowUsersToRelateMultipleContactsToTasksAndEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableActivityReminders_type_info = new String[]{'enableActivityReminders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableClickCreateEvents_type_info = new String[]{'enableClickCreateEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableDragAndDropScheduling_type_info = new String[]{'enableDragAndDropScheduling','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableEmailTracking_type_info = new String[]{'enableEmailTracking','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableEventScheduler_type_info = new String[]{'enableEventScheduler','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableGroupTasks_type_info = new String[]{'enableGroupTasks','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableListViewScheduling_type_info = new String[]{'enableListViewScheduling','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableLogNote_type_info = new String[]{'enableLogNote','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableMultidayEvents_type_info = new String[]{'enableMultidayEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableRecurringEvents_type_info = new String[]{'enableRecurringEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableRecurringTasks_type_info = new String[]{'enableRecurringTasks','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSidebarCalendarShortcut_type_info = new String[]{'enableSidebarCalendarShortcut','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSimpleTaskCreateUI_type_info = new String[]{'enableSimpleTaskCreateUI','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableUNSTaskDelegatedToNotifications_type_info = new String[]{'enableUNSTaskDelegatedToNotifications','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] meetingRequestsLogo_type_info = new String[]{'meetingRequestsLogo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showCustomLogoMeetingRequests_type_info = new String[]{'showCustomLogoMeetingRequests','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showEventDetailsMultiUserCalendar_type_info = new String[]{'showEventDetailsMultiUserCalendar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showHomePageHoverLinksForEvents_type_info = new String[]{'showHomePageHoverLinksForEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showMyTasksHoverLinks_type_info = new String[]{'showMyTasksHoverLinks','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showRequestedMeetingsOnHomePage_type_info = new String[]{'showRequestedMeetingsOnHomePage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'allowUsersToRelateMultipleContactsToTasksAndEvents','enableActivityReminders','enableClickCreateEvents','enableDragAndDropScheduling','enableEmailTracking','enableEventScheduler','enableGroupTasks','enableListViewScheduling','enableLogNote','enableMultidayEvents','enableRecurringEvents','enableRecurringTasks','enableSidebarCalendarShortcut','enableSimpleTaskCreateUI','enableUNSTaskDelegatedToNotifications','meetingRequestsLogo','showCustomLogoMeetingRequests','showEventDetailsMultiUserCalendar','showHomePageHoverLinksForEvents','showMyTasksHoverLinks','showRequestedMeetingsOnHomePage'}; + } + public class WorkflowTaskTranslation { + public String description; + public String name; + public String subject; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] subject_type_info = new String[]{'subject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','name','subject'}; + } + public class FlowElement { + public String description; + public String name; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','name'}; + } + public class FlowInputFieldAssignment { + public String field; + public MetadataService.FlowElementReferenceOrValue value; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','value'}; + } + public class DashboardComponentSection { + public String columnSize; + public MetadataService.DashboardComponent[] components; + private String[] columnSize_type_info = new String[]{'columnSize','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] components_type_info = new String[]{'components','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'columnSize','components'}; + } + public class FlowLoop { + public String assignNextValueToReference; + public String collectionReference; + public String iterationOrder; + public MetadataService.FlowConnector nextValueConnector; + public MetadataService.FlowConnector noMoreValuesConnector; + private String[] assignNextValueToReference_type_info = new String[]{'assignNextValueToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] collectionReference_type_info = new String[]{'collectionReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] iterationOrder_type_info = new String[]{'iterationOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] nextValueConnector_type_info = new String[]{'nextValueConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] noMoreValuesConnector_type_info = new String[]{'noMoreValuesConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignNextValueToReference','collectionReference','iterationOrder','nextValueConnector','noMoreValuesConnector'}; + } + public class ReputationPointsRule { + public String eventType; + public Integer points; + private String[] eventType_type_info = new String[]{'eventType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] points_type_info = new String[]{'points','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'eventType','points'}; + } + public class FlowActionCallInputParameter { + public String name; + public MetadataService.FlowElementReferenceOrValue value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class ReportTypeColumn { + public Boolean checkedByDefault; + public String displayNameOverride; + public String field; + public String table; + private String[] checkedByDefault_type_info = new String[]{'checkedByDefault','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] displayNameOverride_type_info = new String[]{'displayNameOverride','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] table_type_info = new String[]{'table','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'checkedByDefault','displayNameOverride','field','table'}; + } + public class LiveAgentConfig { + public Boolean enableLiveChat; + public Boolean openNewAccountSubtab; + public Boolean openNewCaseSubtab; + public Boolean openNewContactSubtab; + public Boolean openNewLeadSubtab; + public Boolean openNewVFPageSubtab; + public MetadataService.PagesToOpen pagesToOpen; + public Boolean showKnowledgeArticles; + private String[] enableLiveChat_type_info = new String[]{'enableLiveChat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] openNewAccountSubtab_type_info = new String[]{'openNewAccountSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] openNewCaseSubtab_type_info = new String[]{'openNewCaseSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] openNewContactSubtab_type_info = new String[]{'openNewContactSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] openNewLeadSubtab_type_info = new String[]{'openNewLeadSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] openNewVFPageSubtab_type_info = new String[]{'openNewVFPageSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] pagesToOpen_type_info = new String[]{'pagesToOpen','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showKnowledgeArticles_type_info = new String[]{'showKnowledgeArticles','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enableLiveChat','openNewAccountSubtab','openNewCaseSubtab','openNewContactSubtab','openNewLeadSubtab','openNewVFPageSubtab','pagesToOpen','showKnowledgeArticles'}; + } + public class KnowledgeSitesSettings { + public String[] site; + private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'site'}; + } + public class UserSharingRules { + public MetadataService.UserCriteriaBasedSharingRule[] criteriaBasedRules; + public MetadataService.UserMembershipSharingRule[] membershipRules; + private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] membershipRules_type_info = new String[]{'membershipRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaBasedRules','membershipRules'}; + } + public class CustomMetadata extends Metadata { + public String type = 'CustomMetadata'; + public String fullName; + public String description; + public String label; + public MetadataService.CustomMetadataValue[] values; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','label','values'}; + } + public class VisualizationPlugin extends Metadata { + public String type = 'VisualizationPlugin'; + public String fullName; + public String description; + public String developerName; + public String icon; + public String masterLabel; + public MetadataService.VisualizationResource[] visualizationResources; + public MetadataService.VisualizationType[] visualizationTypes; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] developerName_type_info = new String[]{'developerName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] icon_type_info = new String[]{'icon','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visualizationResources_type_info = new String[]{'visualizationResources','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] visualizationTypes_type_info = new String[]{'visualizationTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','developerName','icon','masterLabel','visualizationResources','visualizationTypes'}; + } + public class ApprovalPageField { + public String[] field; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field'}; + } + public class FlowRule { + public String conditionLogic; + public MetadataService.FlowCondition[] conditions; + public MetadataService.FlowConnector connector; + public String label; + private String[] conditionLogic_type_info = new String[]{'conditionLogic','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] conditions_type_info = new String[]{'conditions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'conditionLogic','conditions','connector','label'}; + } + public class FlowRecordUpdate { + public MetadataService.FlowConnector connector; + public MetadataService.FlowConnector faultConnector; + public MetadataService.FlowRecordFilter[] filters; + public MetadataService.FlowInputFieldAssignment[] inputAssignments; + public String inputReference; + public String object_x; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] inputAssignments_type_info = new String[]{'inputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] inputReference_type_info = new String[]{'inputReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'connector','faultConnector','filters','inputAssignments','inputReference','object_x'}; + } + public class CustomSite extends Metadata { + public String type = 'CustomSite'; + public String fullName; + public Boolean active; + public Boolean allowHomePage; + public Boolean allowStandardAnswersPages; + public Boolean allowStandardIdeasPages; + public Boolean allowStandardLookups; + public Boolean allowStandardSearch; + public String analyticsTrackingCode; + public String authorizationRequiredPage; + public String bandwidthExceededPage; + public String changePasswordPage; + public String chatterAnswersForgotPasswordConfirmPage; + public String chatterAnswersForgotPasswordPage; + public String chatterAnswersHelpPage; + public String chatterAnswersLoginPage; + public String chatterAnswersRegistrationPage; + public String clickjackProtectionLevel; + public MetadataService.SiteWebAddress[] customWebAddresses; + public String description; + public String favoriteIcon; + public String fileNotFoundPage; + public String genericErrorPage; + public String guestProfile; + public String inMaintenancePage; + public String inactiveIndexPage; + public String indexPage; + public String masterLabel; + public String myProfilePage; + public String portal; + public Boolean requireHttps; + public Boolean requireInsecurePortalAccess; + public String robotsTxtPage; + public String rootComponent; + public String selfRegPage; + public String serverIsDown; + public String siteAdmin; + public MetadataService.SiteRedirectMapping[] siteRedirectMappings; + public String siteTemplate; + public String siteType; + public String subdomain; + public String urlPathPrefix; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] allowHomePage_type_info = new String[]{'allowHomePage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] allowStandardAnswersPages_type_info = new String[]{'allowStandardAnswersPages','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] allowStandardIdeasPages_type_info = new String[]{'allowStandardIdeasPages','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] allowStandardLookups_type_info = new String[]{'allowStandardLookups','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] allowStandardSearch_type_info = new String[]{'allowStandardSearch','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] analyticsTrackingCode_type_info = new String[]{'analyticsTrackingCode','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] authorizationRequiredPage_type_info = new String[]{'authorizationRequiredPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] bandwidthExceededPage_type_info = new String[]{'bandwidthExceededPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] changePasswordPage_type_info = new String[]{'changePasswordPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chatterAnswersForgotPasswordConfirmPage_type_info = new String[]{'chatterAnswersForgotPasswordConfirmPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chatterAnswersForgotPasswordPage_type_info = new String[]{'chatterAnswersForgotPasswordPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chatterAnswersHelpPage_type_info = new String[]{'chatterAnswersHelpPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chatterAnswersLoginPage_type_info = new String[]{'chatterAnswersLoginPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chatterAnswersRegistrationPage_type_info = new String[]{'chatterAnswersRegistrationPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] clickjackProtectionLevel_type_info = new String[]{'clickjackProtectionLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] customWebAddresses_type_info = new String[]{'customWebAddresses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] favoriteIcon_type_info = new String[]{'favoriteIcon','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fileNotFoundPage_type_info = new String[]{'fileNotFoundPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] genericErrorPage_type_info = new String[]{'genericErrorPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] guestProfile_type_info = new String[]{'guestProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inMaintenancePage_type_info = new String[]{'inMaintenancePage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inactiveIndexPage_type_info = new String[]{'inactiveIndexPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] indexPage_type_info = new String[]{'indexPage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] myProfilePage_type_info = new String[]{'myProfilePage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] portal_type_info = new String[]{'portal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] requireHttps_type_info = new String[]{'requireHttps','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] requireInsecurePortalAccess_type_info = new String[]{'requireInsecurePortalAccess','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] robotsTxtPage_type_info = new String[]{'robotsTxtPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] rootComponent_type_info = new String[]{'rootComponent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] selfRegPage_type_info = new String[]{'selfRegPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] serverIsDown_type_info = new String[]{'serverIsDown','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] siteAdmin_type_info = new String[]{'siteAdmin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] siteRedirectMappings_type_info = new String[]{'siteRedirectMappings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] siteTemplate_type_info = new String[]{'siteTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] siteType_type_info = new String[]{'siteType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] subdomain_type_info = new String[]{'subdomain','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] urlPathPrefix_type_info = new String[]{'urlPathPrefix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','allowHomePage','allowStandardAnswersPages','allowStandardIdeasPages','allowStandardLookups','allowStandardSearch','analyticsTrackingCode','authorizationRequiredPage','bandwidthExceededPage','changePasswordPage','chatterAnswersForgotPasswordConfirmPage','chatterAnswersForgotPasswordPage','chatterAnswersHelpPage','chatterAnswersLoginPage','chatterAnswersRegistrationPage','clickjackProtectionLevel','customWebAddresses','description','favoriteIcon','fileNotFoundPage','genericErrorPage','guestProfile','inMaintenancePage','inactiveIndexPage','indexPage','masterLabel','myProfilePage','portal','requireHttps','requireInsecurePortalAccess','robotsTxtPage','rootComponent','selfRegPage','serverIsDown','siteAdmin','siteRedirectMappings','siteTemplate','siteType','subdomain','urlPathPrefix'}; + } + public class ReportBlockInfo { + public MetadataService.ReportAggregateReference[] aggregateReferences; + public String blockId; + public String joinTable; + private String[] aggregateReferences_type_info = new String[]{'aggregateReferences','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] blockId_type_info = new String[]{'blockId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] joinTable_type_info = new String[]{'joinTable','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'aggregateReferences','blockId','joinTable'}; + } + public class describeMetadataResponse_element { + public MetadataService.DescribeMetadataResult result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class CaseOwnerSharingRule { + public String caseAccessLevel; + public String description; + public String name; + private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'caseAccessLevel','description','name'}; + } + public class DeployMessage { + public Boolean changed; + public Integer columnNumber; + public String componentType; + public Boolean created; + public DateTime createdDate; + public Boolean deleted; + public String fileName; + public String fullName; + public String id; + public Integer lineNumber; + public String problem; + public String problemType; + public Boolean success; + private String[] changed_type_info = new String[]{'changed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] columnNumber_type_info = new String[]{'columnNumber','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] componentType_type_info = new String[]{'componentType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] created_type_info = new String[]{'created','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] createdDate_type_info = new String[]{'createdDate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] deleted_type_info = new String[]{'deleted','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fileName_type_info = new String[]{'fileName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lineNumber_type_info = new String[]{'lineNumber','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] problem_type_info = new String[]{'problem','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] problemType_type_info = new String[]{'problemType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'changed','columnNumber','componentType','created','createdDate','deleted','fileName','fullName','id','lineNumber','problem','problemType','success'}; + } + public class FlowSubflowInputAssignment { + public String name; + public MetadataService.FlowElementReferenceOrValue value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class ReportType extends Metadata { + public String type = 'ReportType'; + public String fullName; + public Boolean autogenerated; + public String baseObject; + public String category; + public Boolean deployed; + public String description; + public MetadataService.ObjectRelationship join_x; + public String label; + public MetadataService.ReportLayoutSection[] sections; + private String[] autogenerated_type_info = new String[]{'autogenerated','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] baseObject_type_info = new String[]{'baseObject','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] category_type_info = new String[]{'category','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] deployed_type_info = new String[]{'deployed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] join_x_type_info = new String[]{'join','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sections_type_info = new String[]{'sections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'autogenerated','baseObject','category','deployed','description','join_x','label','sections'}; + } + public class CustomPageWebLink extends Metadata { + public String type = 'CustomPageWebLink'; + public String fullName; + public String availability; + public String description; + public String displayType; + public String encodingKey; + public Boolean hasMenubar; + public Boolean hasScrollbars; + public Boolean hasToolbar; + public Integer height; + public Boolean isResizable; + public String linkType; + public String masterLabel; + public String openType; + public String page_x; + public String position; + public Boolean protected_x; + public Boolean requireRowSelection; + public String scontrol; + public Boolean showsLocation; + public Boolean showsStatus; + public String url; + public Integer width; + private String[] availability_type_info = new String[]{'availability','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] displayType_type_info = new String[]{'displayType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] encodingKey_type_info = new String[]{'encodingKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hasMenubar_type_info = new String[]{'hasMenubar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hasScrollbars_type_info = new String[]{'hasScrollbars','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hasToolbar_type_info = new String[]{'hasToolbar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isResizable_type_info = new String[]{'isResizable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] linkType_type_info = new String[]{'linkType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] openType_type_info = new String[]{'openType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] position_type_info = new String[]{'position','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] requireRowSelection_type_info = new String[]{'requireRowSelection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showsLocation_type_info = new String[]{'showsLocation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showsStatus_type_info = new String[]{'showsStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] url_type_info = new String[]{'url','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'availability','description','displayType','encodingKey','hasMenubar','hasScrollbars','hasToolbar','height','isResizable','linkType','masterLabel','openType','page_x','position','protected_x','requireRowSelection','scontrol','showsLocation','showsStatus','url','width'}; + } + public class CodeCoverageResult { + public MetadataService.CodeLocation[] dmlInfo; + public String id; + public MetadataService.CodeLocation[] locationsNotCovered; + public MetadataService.CodeLocation[] methodInfo; + public String name; + public String namespace; + public Integer numLocations; + public Integer numLocationsNotCovered; + public MetadataService.CodeLocation[] soqlInfo; + public MetadataService.CodeLocation[] soslInfo; + public String type_x; + private String[] dmlInfo_type_info = new String[]{'dmlInfo','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] locationsNotCovered_type_info = new String[]{'locationsNotCovered','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] methodInfo_type_info = new String[]{'methodInfo','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] numLocations_type_info = new String[]{'numLocations','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numLocationsNotCovered_type_info = new String[]{'numLocationsNotCovered','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] soqlInfo_type_info = new String[]{'soqlInfo','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] soslInfo_type_info = new String[]{'soslInfo','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dmlInfo','id','locationsNotCovered','methodInfo','name','namespace','numLocations','numLocationsNotCovered','soqlInfo','soslInfo','type_x'}; + } + public class renameMetadata_element { + public String type_x; + public String oldFullName; + public String newFullName; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] oldFullName_type_info = new String[]{'oldFullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] newFullName_type_info = new String[]{'newFullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'type_x','oldFullName','newFullName'}; + } + public class NetworkAccess { + public MetadataService.IpRange[] ipRanges; + private String[] ipRanges_type_info = new String[]{'ipRanges','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'ipRanges'}; + } + public class RecordTypePicklistValue { + public String picklist; + public MetadataService.PicklistValue[] values; + private String[] picklist_type_info = new String[]{'picklist','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'picklist','values'}; + } + public class describeMetadata_element { + public Double asOfVersion; + private String[] asOfVersion_type_info = new String[]{'asOfVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'asOfVersion'}; + } + public class DashboardFilterColumn { + public String column; + private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'column'}; + } + public class Territory2RuleAssociation { + public Boolean inherited; + public String ruleName; + private String[] inherited_type_info = new String[]{'inherited','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] ruleName_type_info = new String[]{'ruleName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'inherited','ruleName'}; + } + public class ReportParam { + public String name; + public String value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class RoleOrTerritory extends Metadata { + public String type = 'RoleOrTerritory'; + public String fullName; + public String caseAccessLevel; + public String contactAccessLevel; + public String description; + public Boolean mayForecastManagerShare; + public String name; + public String opportunityAccessLevel; + private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mayForecastManagerShare_type_info = new String[]{'mayForecastManagerShare','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'caseAccessLevel','contactAccessLevel','description','mayForecastManagerShare','name','opportunityAccessLevel'}; + } + public class ForecastingTypeSettings { + public Boolean active; + public MetadataService.AdjustmentsSettings adjustmentsSettings; + public MetadataService.ForecastRangeSettings forecastRangeSettings; + public String name; + public MetadataService.OpportunityListFieldsSelectedSettings opportunityListFieldsSelectedSettings; + public MetadataService.QuotasSettings quotasSettings; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] adjustmentsSettings_type_info = new String[]{'adjustmentsSettings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] forecastRangeSettings_type_info = new String[]{'forecastRangeSettings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] opportunityListFieldsSelectedSettings_type_info = new String[]{'opportunityListFieldsSelectedSettings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] quotasSettings_type_info = new String[]{'quotasSettings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'active','adjustmentsSettings','forecastRangeSettings','name','opportunityListFieldsSelectedSettings','quotasSettings'}; + } + public class FlowApexPluginCallInputParameter { + public String name; + public MetadataService.FlowElementReferenceOrValue value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class WorkflowActionReference { + public String name; + public String type_x; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','type_x'}; + } + public class Role { + public String parentRole; + private String[] parentRole_type_info = new String[]{'parentRole','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'parentRole'}; + } + public class RetrieveResult { + public Boolean done; + public String errorMessage; + public String errorStatusCode; + public MetadataService.FileProperties[] fileProperties; + public String id; + public MetadataService.RetrieveMessage[] messages; + public String status; + public Boolean success; + public String zipFile; + private String[] done_type_info = new String[]{'done','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] errorStatusCode_type_info = new String[]{'errorStatusCode','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fileProperties_type_info = new String[]{'fileProperties','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] messages_type_info = new String[]{'messages','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] zipFile_type_info = new String[]{'zipFile','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'done','errorMessage','errorStatusCode','fileProperties','id','messages','status','success','zipFile'}; + } + public class CustomObjectSharingRules { + public MetadataService.CustomObjectCriteriaBasedSharingRule[] criteriaBasedRules; + public MetadataService.CustomObjectOwnerSharingRule[] ownerRules; + private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; + } + public class QuickActionList { + public MetadataService.QuickActionListItem[] quickActionListItems; + private String[] quickActionListItems_type_info = new String[]{'quickActionListItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'quickActionListItems'}; + } + public class RelatedList { + public Boolean hideOnDetail; + public String name; + private String[] hideOnDetail_type_info = new String[]{'hideOnDetail','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'hideOnDetail','name'}; + } + public class FlowActionCallOutputParameter { + public String assignToReference; + public String name; + private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignToReference','name'}; + } + public class DashboardFilterOption { + public String operator; + public String[] values; + private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'operator','values'}; + } + public class WorkflowOutboundMessage extends WorkflowAction { + public String type = 'WorkflowOutboundMessage'; + public String fullName; + public Double apiVersion; + public String description; + public String endpointUrl; + public String[] fields; + public Boolean includeSessionId; + public String integrationUser; + public String name; + public Boolean protected_x; + public Boolean useDeadLetterQueue; + private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] endpointUrl_type_info = new String[]{'endpointUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] includeSessionId_type_info = new String[]{'includeSessionId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] integrationUser_type_info = new String[]{'integrationUser','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] useDeadLetterQueue_type_info = new String[]{'useDeadLetterQueue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'apiVersion','description','endpointUrl','fields','includeSessionId','integrationUser','name','protected_x','useDeadLetterQueue'}; + } + public class RunTestSuccess { + public String id; + public String methodName; + public String name; + public String namespace; + public Double time_x; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] methodName_type_info = new String[]{'methodName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] time_x_type_info = new String[]{'time','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'id','methodName','name','namespace','time_x'}; + } + public class LiveChatButtonDeployments { + public String[] deployment; + private String[] deployment_type_info = new String[]{'deployment','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'deployment'}; + } + public class PermissionSetApplicationVisibility { + public String application; + public Boolean visible; + private String[] application_type_info = new String[]{'application','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'application','visible'}; + } + public class InstalledPackage extends Metadata { + public String type = 'InstalledPackage'; + public String fullName; + public String password; + public String versionNumber; + private String[] password_type_info = new String[]{'password','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] versionNumber_type_info = new String[]{'versionNumber','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'password','versionNumber'}; + } + public class LeadSharingRules { + public MetadataService.LeadCriteriaBasedSharingRule[] criteriaBasedRules; + public MetadataService.LeadOwnerSharingRule[] ownerRules; + private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; + } + public class Queue extends Metadata { + public String type = 'Queue'; + public String fullName; + public Boolean doesSendEmailToMembers; + public String email; + public String name; + public MetadataService.QueueSobject[] queueSobject; + private String[] doesSendEmailToMembers_type_info = new String[]{'doesSendEmailToMembers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] email_type_info = new String[]{'email','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] queueSobject_type_info = new String[]{'queueSobject','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'doesSendEmailToMembers','email','name','queueSobject'}; + } + public class ListViewFilter { + public String field; + public String operation; + public String value; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','operation','value'}; + } + public class CampaignOwnerSharingRule { + public String campaignAccessLevel; + public String description; + public String name; + private String[] campaignAccessLevel_type_info = new String[]{'campaignAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'campaignAccessLevel','description','name'}; + } + public class FeedLayout { + public Boolean autocollapsePublisher; + public Boolean compactFeed; + public String feedFilterPosition; + public MetadataService.FeedLayoutFilter[] feedFilters; + public Boolean fullWidthFeed; + public Boolean hideSidebar; + public MetadataService.FeedLayoutComponent[] leftComponents; + public MetadataService.FeedLayoutComponent[] rightComponents; + private String[] autocollapsePublisher_type_info = new String[]{'autocollapsePublisher','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] compactFeed_type_info = new String[]{'compactFeed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] feedFilterPosition_type_info = new String[]{'feedFilterPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] feedFilters_type_info = new String[]{'feedFilters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fullWidthFeed_type_info = new String[]{'fullWidthFeed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hideSidebar_type_info = new String[]{'hideSidebar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] leftComponents_type_info = new String[]{'leftComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] rightComponents_type_info = new String[]{'rightComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'autocollapsePublisher','compactFeed','feedFilterPosition','feedFilters','fullWidthFeed','hideSidebar','leftComponents','rightComponents'}; + } + public class CustomField extends Metadata { + public String type = 'CustomField'; + public String fullName; + public Boolean caseSensitive; + public String customDataType; + public String defaultValue; + public String deleteConstraint; + public Boolean deprecated; + public String description; + public String displayFormat; + public Boolean escapeMarkup; + public String externalDeveloperName; + public Boolean externalId; + public String formula; + public String formulaTreatBlanksAs; + public String inlineHelpText; + public Boolean isFilteringDisabled; + public Boolean isNameField; + public Boolean isSortingDisabled; + public String label; + public Integer length; + public MetadataService.LookupFilter lookupFilter; + public String maskChar; + public String maskType; + public MetadataService.Picklist picklist; + public Boolean populateExistingRows; + public Integer precision; + public String referenceTargetField; + public String referenceTo; + public String relationshipLabel; + public String relationshipName; + public Integer relationshipOrder; + public Boolean reparentableMasterDetail; + public Boolean required; + public Boolean restrictedAdminField; + public Integer scale; + public Integer startingNumber; + public Boolean stripMarkup; + public String summarizedField; + public MetadataService.FilterItem[] summaryFilterItems; + public String summaryForeignKey; + public String summaryOperation; + public Boolean trackFeedHistory; + public Boolean trackHistory; + public Boolean trackTrending; + public String type_x; + public Boolean unique; + public Integer visibleLines; + public Boolean writeRequiresMasterRead; + private String[] caseSensitive_type_info = new String[]{'caseSensitive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customDataType_type_info = new String[]{'customDataType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultValue_type_info = new String[]{'defaultValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] deleteConstraint_type_info = new String[]{'deleteConstraint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] deprecated_type_info = new String[]{'deprecated','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] displayFormat_type_info = new String[]{'displayFormat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] escapeMarkup_type_info = new String[]{'escapeMarkup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] externalDeveloperName_type_info = new String[]{'externalDeveloperName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] externalId_type_info = new String[]{'externalId','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] formulaTreatBlanksAs_type_info = new String[]{'formulaTreatBlanksAs','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inlineHelpText_type_info = new String[]{'inlineHelpText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isFilteringDisabled_type_info = new String[]{'isFilteringDisabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isNameField_type_info = new String[]{'isNameField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isSortingDisabled_type_info = new String[]{'isSortingDisabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] length_type_info = new String[]{'length','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lookupFilter_type_info = new String[]{'lookupFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] maskChar_type_info = new String[]{'maskChar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] maskType_type_info = new String[]{'maskType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] picklist_type_info = new String[]{'picklist','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] populateExistingRows_type_info = new String[]{'populateExistingRows','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] precision_type_info = new String[]{'precision','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] referenceTargetField_type_info = new String[]{'referenceTargetField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] referenceTo_type_info = new String[]{'referenceTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] relationshipLabel_type_info = new String[]{'relationshipLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] relationshipName_type_info = new String[]{'relationshipName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] relationshipOrder_type_info = new String[]{'relationshipOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] reparentableMasterDetail_type_info = new String[]{'reparentableMasterDetail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] required_type_info = new String[]{'required','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] restrictedAdminField_type_info = new String[]{'restrictedAdminField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] startingNumber_type_info = new String[]{'startingNumber','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] stripMarkup_type_info = new String[]{'stripMarkup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] summarizedField_type_info = new String[]{'summarizedField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] summaryFilterItems_type_info = new String[]{'summaryFilterItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] summaryForeignKey_type_info = new String[]{'summaryForeignKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] summaryOperation_type_info = new String[]{'summaryOperation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] trackFeedHistory_type_info = new String[]{'trackFeedHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] trackHistory_type_info = new String[]{'trackHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] trackTrending_type_info = new String[]{'trackTrending','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] unique_type_info = new String[]{'unique','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] visibleLines_type_info = new String[]{'visibleLines','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] writeRequiresMasterRead_type_info = new String[]{'writeRequiresMasterRead','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'caseSensitive','customDataType','defaultValue','deleteConstraint','deprecated','description','displayFormat','escapeMarkup','externalDeveloperName','externalId','formula','formulaTreatBlanksAs','inlineHelpText','isFilteringDisabled','isNameField','isSortingDisabled','label','length','lookupFilter','maskChar','maskType','picklist','populateExistingRows','precision','referenceTargetField','referenceTo','relationshipLabel','relationshipName','relationshipOrder','reparentableMasterDetail','required','restrictedAdminField','scale','startingNumber','stripMarkup','summarizedField','summaryFilterItems','summaryForeignKey','summaryOperation','trackFeedHistory','trackHistory','trackTrending','type_x','unique','visibleLines','writeRequiresMasterRead'}; + } + public class PushNotification { + public String[] fieldNames; + public String objectName; + private String[] fieldNames_type_info = new String[]{'fieldNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] objectName_type_info = new String[]{'objectName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fieldNames','objectName'}; + } + public class EmailToCaseSettings { + public Boolean enableEmailToCase; + public Boolean enableHtmlEmail; + public Boolean enableOnDemandEmailToCase; + public Boolean enableThreadIDInBody; + public Boolean enableThreadIDInSubject; + public Boolean notifyOwnerOnNewCaseEmail; + public String overEmailLimitAction; + public MetadataService.EmailToCaseRoutingAddress[] routingAddresses; + public String unauthorizedSenderAction; + private String[] enableEmailToCase_type_info = new String[]{'enableEmailToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableHtmlEmail_type_info = new String[]{'enableHtmlEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableOnDemandEmailToCase_type_info = new String[]{'enableOnDemandEmailToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableThreadIDInBody_type_info = new String[]{'enableThreadIDInBody','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableThreadIDInSubject_type_info = new String[]{'enableThreadIDInSubject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyOwnerOnNewCaseEmail_type_info = new String[]{'notifyOwnerOnNewCaseEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] overEmailLimitAction_type_info = new String[]{'overEmailLimitAction','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] routingAddresses_type_info = new String[]{'routingAddresses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] unauthorizedSenderAction_type_info = new String[]{'unauthorizedSenderAction','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enableEmailToCase','enableHtmlEmail','enableOnDemandEmailToCase','enableThreadIDInBody','enableThreadIDInSubject','notifyOwnerOnNewCaseEmail','overEmailLimitAction','routingAddresses','unauthorizedSenderAction'}; + } + public class deployResponse_element { + public MetadataService.AsyncResult result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class DataCategory { + public MetadataService.DataCategory[] dataCategory; + public String label; + public String name; + private String[] dataCategory_type_info = new String[]{'dataCategory','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dataCategory','label','name'}; + } + public class EscalationAction { + public String assignedTo; + public String assignedToTemplate; + public String assignedToType; + public Integer minutesToEscalation; + public Boolean notifyCaseOwner; + public String[] notifyEmail; + public String notifyTo; + public String notifyToTemplate; + private String[] assignedTo_type_info = new String[]{'assignedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assignedToTemplate_type_info = new String[]{'assignedToTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assignedToType_type_info = new String[]{'assignedToType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] minutesToEscalation_type_info = new String[]{'minutesToEscalation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyCaseOwner_type_info = new String[]{'notifyCaseOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyEmail_type_info = new String[]{'notifyEmail','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] notifyTo_type_info = new String[]{'notifyTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyToTemplate_type_info = new String[]{'notifyToTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignedTo','assignedToTemplate','assignedToType','minutesToEscalation','notifyCaseOwner','notifyEmail','notifyTo','notifyToTemplate'}; + } + public class FlowOutputFieldAssignment { + public String assignToReference; + public String field; + private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignToReference','field'}; + } + public class AppMenuItem { + public String name; + public String type_x; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','type_x'}; + } + public class EmailTemplate extends MetadataWithContent { + public String type = 'EmailTemplate'; + public String fullName; + public String content; + public Double apiVersion; + public String[] attachedDocuments; + public MetadataService.Attachment[] attachments; + public Boolean available; + public String description; + public String encodingKey; + public String letterhead; + public String name; + public MetadataService.PackageVersion[] packageVersions; + public String style; + public String subject; + public String textOnly; + public String type_x; + private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] attachedDocuments_type_info = new String[]{'attachedDocuments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] attachments_type_info = new String[]{'attachments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] available_type_info = new String[]{'available','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] encodingKey_type_info = new String[]{'encodingKey','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] letterhead_type_info = new String[]{'letterhead','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] style_type_info = new String[]{'style','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] subject_type_info = new String[]{'subject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] textOnly_type_info = new String[]{'textOnly','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','attachedDocuments','attachments','available','description','encodingKey','letterhead','name','packageVersions','style','subject','textOnly','type_x'}; + } + public class ObjectUsage { + public String[] object_x; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'object_x'}; + } + public class AssignmentRule extends Metadata { + public String type = 'AssignmentRule'; + public String fullName; + public Boolean active; + public MetadataService.RuleEntry[] ruleEntry; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] ruleEntry_type_info = new String[]{'ruleEntry','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','ruleEntry'}; + } + public class deleteMetadataResponse_element { + public MetadataService.DeleteResult[] result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class CustomTabTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class LiveChatAgentConfig extends Metadata { + public String type = 'LiveChatAgentConfig'; + public String fullName; + public MetadataService.AgentConfigAssignments assignments; + public String autoGreeting; + public Integer capacity; + public Integer criticalWaitTime; + public String customAgentName; + public Boolean enableAgentFileTransfer; + public Boolean enableAgentSneakPeek; + public Boolean enableAutoAwayOnDecline; + public Boolean enableChatMonitoring; + public Boolean enableChatTransfer; + public Boolean enableLogoutSound; + public Boolean enableNotifications; + public Boolean enableRequestSound; + public Boolean enableSneakPeek; + public Boolean enableWhisperMessage; + public String label; + public String supervisorDefaultAgentStatusFilter; + public String supervisorDefaultButtonFilter; + public String supervisorDefaultSkillFilter; + public MetadataService.SupervisorAgentConfigSkills supervisorSkills; + public MetadataService.AgentConfigButtons transferableButtons; + public MetadataService.AgentConfigSkills transferableSkills; + private String[] assignments_type_info = new String[]{'assignments','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] autoGreeting_type_info = new String[]{'autoGreeting','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] capacity_type_info = new String[]{'capacity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] criticalWaitTime_type_info = new String[]{'criticalWaitTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customAgentName_type_info = new String[]{'customAgentName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableAgentFileTransfer_type_info = new String[]{'enableAgentFileTransfer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableAgentSneakPeek_type_info = new String[]{'enableAgentSneakPeek','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableAutoAwayOnDecline_type_info = new String[]{'enableAutoAwayOnDecline','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableChatMonitoring_type_info = new String[]{'enableChatMonitoring','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableChatTransfer_type_info = new String[]{'enableChatTransfer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableLogoutSound_type_info = new String[]{'enableLogoutSound','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableNotifications_type_info = new String[]{'enableNotifications','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableRequestSound_type_info = new String[]{'enableRequestSound','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSneakPeek_type_info = new String[]{'enableSneakPeek','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableWhisperMessage_type_info = new String[]{'enableWhisperMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] supervisorDefaultAgentStatusFilter_type_info = new String[]{'supervisorDefaultAgentStatusFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] supervisorDefaultButtonFilter_type_info = new String[]{'supervisorDefaultButtonFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] supervisorDefaultSkillFilter_type_info = new String[]{'supervisorDefaultSkillFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] supervisorSkills_type_info = new String[]{'supervisorSkills','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] transferableButtons_type_info = new String[]{'transferableButtons','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] transferableSkills_type_info = new String[]{'transferableSkills','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'assignments','autoGreeting','capacity','criticalWaitTime','customAgentName','enableAgentFileTransfer','enableAgentSneakPeek','enableAutoAwayOnDecline','enableChatMonitoring','enableChatTransfer','enableLogoutSound','enableNotifications','enableRequestSound','enableSneakPeek','enableWhisperMessage','label','supervisorDefaultAgentStatusFilter','supervisorDefaultButtonFilter','supervisorDefaultSkillFilter','supervisorSkills','transferableButtons','transferableSkills'}; + } + public class AdjustmentsSettings { + public Boolean enableAdjustments; + private String[] enableAdjustments_type_info = new String[]{'enableAdjustments','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enableAdjustments'}; + } + public class BusinessProcess extends Metadata { + public String type = 'BusinessProcess'; + public String fullName; + public String description; + public Boolean isActive; + public MetadataService.PicklistValue[] values; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','isActive','values'}; + } + public class PermissionSet extends Metadata { + public String type = 'PermissionSet'; + public String fullName; + public MetadataService.PermissionSetApplicationVisibility[] applicationVisibilities; + public MetadataService.PermissionSetApexClassAccess[] classAccesses; + public MetadataService.PermissionSetCustomPermissions[] customPermissions; + public String description; + public MetadataService.PermissionSetExternalDataSourceAccess[] externalDataSourceAccesses; + public MetadataService.PermissionSetFieldPermissions[] fieldPermissions; + public String label; + public MetadataService.PermissionSetObjectPermissions[] objectPermissions; + public MetadataService.PermissionSetApexPageAccess[] pageAccesses; + public MetadataService.PermissionSetRecordTypeVisibility[] recordTypeVisibilities; + public MetadataService.PermissionSetTabSetting[] tabSettings; + public String userLicense; + public MetadataService.PermissionSetUserPermission[] userPermissions; + private String[] applicationVisibilities_type_info = new String[]{'applicationVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] classAccesses_type_info = new String[]{'classAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] customPermissions_type_info = new String[]{'customPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] externalDataSourceAccesses_type_info = new String[]{'externalDataSourceAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fieldPermissions_type_info = new String[]{'fieldPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] objectPermissions_type_info = new String[]{'objectPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] pageAccesses_type_info = new String[]{'pageAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] recordTypeVisibilities_type_info = new String[]{'recordTypeVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] tabSettings_type_info = new String[]{'tabSettings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] userLicense_type_info = new String[]{'userLicense','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] userPermissions_type_info = new String[]{'userPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'applicationVisibilities','classAccesses','customPermissions','description','externalDataSourceAccesses','fieldPermissions','label','objectPermissions','pageAccesses','recordTypeVisibilities','tabSettings','userLicense','userPermissions'}; + } + public class ConnectedAppAttribute { + public String formula; + public String key; + private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] key_type_info = new String[]{'key','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'formula','key'}; + } + public class ManagedTopics extends Metadata { + public String type = 'ManagedTopics'; + public String fullName; + public MetadataService.ManagedTopic[] managedTopic; + private String[] managedTopic_type_info = new String[]{'managedTopic','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'managedTopic'}; + } + public class ForecastingSettings extends Metadata { + public String type = 'ForecastingSettings'; + public String fullName; + public String displayCurrency; + public Boolean enableForecasts; + public MetadataService.ForecastingTypeSettings[] forecastingTypeSettings; + private String[] displayCurrency_type_info = new String[]{'displayCurrency','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableForecasts_type_info = new String[]{'enableForecasts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] forecastingTypeSettings_type_info = new String[]{'forecastingTypeSettings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'displayCurrency','enableForecasts','forecastingTypeSettings'}; + } + public class ReportChartComponentLayoutItem { + public Boolean cacheData; + public String contextFilterableField; + public String error; + public Boolean hideOnError; + public Boolean includeContext; + public String reportName; + public Boolean showTitle; + public String size; + private String[] cacheData_type_info = new String[]{'cacheData','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] contextFilterableField_type_info = new String[]{'contextFilterableField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] error_type_info = new String[]{'error','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hideOnError_type_info = new String[]{'hideOnError','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] includeContext_type_info = new String[]{'includeContext','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] reportName_type_info = new String[]{'reportName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] showTitle_type_info = new String[]{'showTitle','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] size_type_info = new String[]{'size','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'cacheData','contextFilterableField','error','hideOnError','includeContext','reportName','showTitle','size'}; + } + public class AppMenu extends Metadata { + public String type = 'AppMenu'; + public String fullName; + public MetadataService.AppMenuItem[] appMenuItems; + private String[] appMenuItems_type_info = new String[]{'appMenuItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'appMenuItems'}; + } + public class FlowSubflowOutputAssignment { + public String assignToReference; + public String name; + private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignToReference','name'}; + } + public class ContactSharingRules { + public MetadataService.ContactCriteriaBasedSharingRule[] criteriaBasedRules; + public MetadataService.ContactOwnerSharingRule[] ownerRules; + private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; + } + public class AccountTerritorySharingRules { + public MetadataService.AccountTerritorySharingRule[] rules; + private String[] rules_type_info = new String[]{'rules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'rules'}; + } + public class ConnectedAppIpRange { + public String description; + public String end_x; + public String start; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] end_x_type_info = new String[]{'end','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] start_type_info = new String[]{'start','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','end_x','start'}; + } + public class Package_x extends Metadata { + public String type = 'Package_x'; + public String fullName; + public String apiAccessLevel; + public String description; + public String namespacePrefix; + public MetadataService.ProfileObjectPermissions[] objectPermissions; + public String postInstallClass; + public String setupWeblink; + public MetadataService.PackageTypeMembers[] types; + public String uninstallClass; + public String version; + private String[] apiAccessLevel_type_info = new String[]{'apiAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] namespacePrefix_type_info = new String[]{'namespacePrefix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] objectPermissions_type_info = new String[]{'objectPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] postInstallClass_type_info = new String[]{'postInstallClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] setupWeblink_type_info = new String[]{'setupWeblink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] types_type_info = new String[]{'types','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] uninstallClass_type_info = new String[]{'uninstallClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] version_type_info = new String[]{'version','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'apiAccessLevel','description','namespacePrefix','objectPermissions','postInstallClass','setupWeblink','types','uninstallClass','version'}; + } + public class FlowActionCall { + public String actionName; + public String actionType; + public MetadataService.FlowConnector connector; + public MetadataService.FlowConnector faultConnector; + public MetadataService.FlowActionCallInputParameter[] inputParameters; + public MetadataService.FlowActionCallOutputParameter[] outputParameters; + private String[] actionName_type_info = new String[]{'actionName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] actionType_type_info = new String[]{'actionType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inputParameters_type_info = new String[]{'inputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] outputParameters_type_info = new String[]{'outputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'actionName','actionType','connector','faultConnector','inputParameters','outputParameters'}; + } + public virtual class MetadataWithContent extends Metadata { + public String content; + private String[] content_type_info = new String[]{'content','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'content'}; + } + public class RetrieveRequest { + public Double apiVersion; + public String[] packageNames; + public Boolean singlePackage; + public String[] specificFiles; + public MetadataService.Package_x unpackaged; + private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] packageNames_type_info = new String[]{'packageNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] singlePackage_type_info = new String[]{'singlePackage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] specificFiles_type_info = new String[]{'specificFiles','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] unpackaged_type_info = new String[]{'unpackaged','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'apiVersion','packageNames','singlePackage','specificFiles','unpackaged'}; + } + public class ListMetadataQuery { + public String folder; + public String type_x; + private String[] folder_type_info = new String[]{'folder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'folder','type_x'}; + } + public class FlowConnector { + public String targetReference; + private String[] targetReference_type_info = new String[]{'targetReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'targetReference'}; + } + public class CustomApplicationComponent extends Metadata { + public String type = 'CustomApplicationComponent'; + public String fullName; + public String buttonIconUrl; + public String buttonStyle; + public String buttonText; + public Integer buttonWidth; + public Integer height; + public Boolean isHeightFixed; + public Boolean isHidden; + public Boolean isWidthFixed; + public String visualforcePage; + public Integer width; + private String[] buttonIconUrl_type_info = new String[]{'buttonIconUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] buttonStyle_type_info = new String[]{'buttonStyle','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] buttonText_type_info = new String[]{'buttonText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] buttonWidth_type_info = new String[]{'buttonWidth','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isHeightFixed_type_info = new String[]{'isHeightFixed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isHidden_type_info = new String[]{'isHidden','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isWidthFixed_type_info = new String[]{'isWidthFixed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visualforcePage_type_info = new String[]{'visualforcePage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'buttonIconUrl','buttonStyle','buttonText','buttonWidth','height','isHeightFixed','isHidden','isWidthFixed','visualforcePage','width'}; + } + public class FlowRecordLookup { + public Boolean assignNullValuesIfNoRecordsFound; + public MetadataService.FlowConnector connector; + public MetadataService.FlowConnector faultConnector; + public MetadataService.FlowRecordFilter[] filters; + public String object_x; + public MetadataService.FlowOutputFieldAssignment[] outputAssignments; + public String outputReference; + public String[] queriedFields; + public String sortField; + public String sortOrder; + private String[] assignNullValuesIfNoRecordsFound_type_info = new String[]{'assignNullValuesIfNoRecordsFound','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] outputAssignments_type_info = new String[]{'outputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] outputReference_type_info = new String[]{'outputReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] queriedFields_type_info = new String[]{'queriedFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] sortField_type_info = new String[]{'sortField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignNullValuesIfNoRecordsFound','connector','faultConnector','filters','object_x','outputAssignments','outputReference','queriedFields','sortField','sortOrder'}; + } + public class FieldSet extends Metadata { + public String type = 'FieldSet'; + public String fullName; + public MetadataService.FieldSetItem[] availableFields; + public String description; + public MetadataService.FieldSetItem[] displayedFields; + public String label; + private String[] availableFields_type_info = new String[]{'availableFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] displayedFields_type_info = new String[]{'displayedFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'availableFields','description','displayedFields','label'}; + } + public class Error { + public String[] fields; + public String message; + public String statusCode; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] message_type_info = new String[]{'message','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] statusCode_type_info = new String[]{'statusCode','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fields','message','statusCode'}; + } + public class AccountCriteriaBasedSharingRule { + public String accountAccessLevel; + public String booleanFilter; + public String caseAccessLevel; + public String contactAccessLevel; + public String description; + public String name; + public String opportunityAccessLevel; + private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accountAccessLevel','booleanFilter','caseAccessLevel','contactAccessLevel','description','name','opportunityAccessLevel'}; + } + public class DebuggingHeader_element { + public MetadataService.LogInfo[] categories; + public String debugLevel; + private String[] categories_type_info = new String[]{'categories','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] debugLevel_type_info = new String[]{'debugLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'categories','debugLevel'}; + } + public class ComponentInstanceProperty { + public String name; + public String value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class FlowRecordDelete { + public MetadataService.FlowConnector connector; + public MetadataService.FlowConnector faultConnector; + public MetadataService.FlowRecordFilter[] filters; + public String inputReference; + public String object_x; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] inputReference_type_info = new String[]{'inputReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'connector','faultConnector','filters','inputReference','object_x'}; + } + public class FlowDecision { + public MetadataService.FlowConnector defaultConnector; + public String defaultConnectorLabel; + public MetadataService.FlowRule[] rules; + private String[] defaultConnector_type_info = new String[]{'defaultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultConnectorLabel_type_info = new String[]{'defaultConnectorLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] rules_type_info = new String[]{'rules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'defaultConnector','defaultConnectorLabel','rules'}; + } + public class QuickActionListItem { + public String quickActionName; + private String[] quickActionName_type_info = new String[]{'quickActionName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'quickActionName'}; + } + public class Branding { + public String loginFooterText; + public String loginLogo; + public String pageFooter; + public String pageHeader; + public String primaryColor; + public String primaryComplementColor; + public String quaternaryColor; + public String quaternaryComplementColor; + public String secondaryColor; + public String tertiaryColor; + public String tertiaryComplementColor; + public String zeronaryColor; + public String zeronaryComplementColor; + private String[] loginFooterText_type_info = new String[]{'loginFooterText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] loginLogo_type_info = new String[]{'loginLogo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] pageFooter_type_info = new String[]{'pageFooter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] pageHeader_type_info = new String[]{'pageHeader','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] primaryColor_type_info = new String[]{'primaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] primaryComplementColor_type_info = new String[]{'primaryComplementColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] quaternaryColor_type_info = new String[]{'quaternaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] quaternaryComplementColor_type_info = new String[]{'quaternaryComplementColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] secondaryColor_type_info = new String[]{'secondaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] tertiaryColor_type_info = new String[]{'tertiaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] tertiaryComplementColor_type_info = new String[]{'tertiaryComplementColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] zeronaryColor_type_info = new String[]{'zeronaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] zeronaryComplementColor_type_info = new String[]{'zeronaryComplementColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'loginFooterText','loginLogo','pageFooter','pageHeader','primaryColor','primaryComplementColor','quaternaryColor','quaternaryComplementColor','secondaryColor','tertiaryColor','tertiaryComplementColor','zeronaryColor','zeronaryComplementColor'}; + } + public class CustomLabel extends Metadata { + public String type = 'CustomLabel'; + public String fullName; + public String categories; + public String language; + public Boolean protected_x; + public String shortDescription; + public String value; + private String[] categories_type_info = new String[]{'categories','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] shortDescription_type_info = new String[]{'shortDescription','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'categories','language','protected_x','shortDescription','value'}; + } + public class Attachment { + public String content; + public String name; + private String[] content_type_info = new String[]{'content','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'content','name'}; + } + public class BusinessHoursEntry extends Metadata { + public String type = 'BusinessHoursEntry'; + public String fullName; + public Boolean active; + public Boolean default_x; + public DateTime fridayEndTime; + public DateTime fridayStartTime; + public DateTime mondayEndTime; + public DateTime mondayStartTime; + public String name; + public DateTime saturdayEndTime; + public DateTime saturdayStartTime; + public DateTime sundayEndTime; + public DateTime sundayStartTime; + public DateTime thursdayEndTime; + public DateTime thursdayStartTime; + public String timeZoneId; + public DateTime tuesdayEndTime; + public DateTime tuesdayStartTime; + public DateTime wednesdayEndTime; + public DateTime wednesdayStartTime; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fridayEndTime_type_info = new String[]{'fridayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fridayStartTime_type_info = new String[]{'fridayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mondayEndTime_type_info = new String[]{'mondayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mondayStartTime_type_info = new String[]{'mondayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] saturdayEndTime_type_info = new String[]{'saturdayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] saturdayStartTime_type_info = new String[]{'saturdayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sundayEndTime_type_info = new String[]{'sundayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sundayStartTime_type_info = new String[]{'sundayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] thursdayEndTime_type_info = new String[]{'thursdayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] thursdayStartTime_type_info = new String[]{'thursdayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] timeZoneId_type_info = new String[]{'timeZoneId','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] tuesdayEndTime_type_info = new String[]{'tuesdayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] tuesdayStartTime_type_info = new String[]{'tuesdayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] wednesdayEndTime_type_info = new String[]{'wednesdayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] wednesdayStartTime_type_info = new String[]{'wednesdayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','default_x','fridayEndTime','fridayStartTime','mondayEndTime','mondayStartTime','name','saturdayEndTime','saturdayStartTime','sundayEndTime','sundayStartTime','thursdayEndTime','thursdayStartTime','timeZoneId','tuesdayEndTime','tuesdayStartTime','wednesdayEndTime','wednesdayStartTime'}; + } + public class FiscalYearSettings { + public String fiscalYearNameBasedOn; + public String startMonth; + private String[] fiscalYearNameBasedOn_type_info = new String[]{'fiscalYearNameBasedOn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] startMonth_type_info = new String[]{'startMonth','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fiscalYearNameBasedOn','startMonth'}; + } + public class SharingRules extends Metadata { + public String type = 'SharingRules'; + public String fullName; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName'}; + } + public class ChatterAnswersSettings extends Metadata { + public String type = 'ChatterAnswersSettings'; + public String fullName; + public Boolean emailFollowersOnBestAnswer; + public Boolean emailFollowersOnReply; + public Boolean emailOwnerOnPrivateReply; + public Boolean emailOwnerOnReply; + public Boolean enableAnswerViaEmail; + public Boolean enableChatterAnswers; + public Boolean enableFacebookSSO; + public Boolean enableInlinePublisher; + public Boolean enableReputation; + public Boolean enableRichTextEditor; + public String facebookAuthProvider; + public Boolean showInPortals; + private String[] emailFollowersOnBestAnswer_type_info = new String[]{'emailFollowersOnBestAnswer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailFollowersOnReply_type_info = new String[]{'emailFollowersOnReply','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailOwnerOnPrivateReply_type_info = new String[]{'emailOwnerOnPrivateReply','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailOwnerOnReply_type_info = new String[]{'emailOwnerOnReply','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableAnswerViaEmail_type_info = new String[]{'enableAnswerViaEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableChatterAnswers_type_info = new String[]{'enableChatterAnswers','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enableFacebookSSO_type_info = new String[]{'enableFacebookSSO','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableInlinePublisher_type_info = new String[]{'enableInlinePublisher','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableReputation_type_info = new String[]{'enableReputation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableRichTextEditor_type_info = new String[]{'enableRichTextEditor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] facebookAuthProvider_type_info = new String[]{'facebookAuthProvider','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showInPortals_type_info = new String[]{'showInPortals','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'emailFollowersOnBestAnswer','emailFollowersOnReply','emailOwnerOnPrivateReply','emailOwnerOnReply','enableAnswerViaEmail','enableChatterAnswers','enableFacebookSSO','enableInlinePublisher','enableReputation','enableRichTextEditor','facebookAuthProvider','showInPortals'}; + } + public class CustomConsoleComponents { + public MetadataService.PrimaryTabComponents primaryTabComponents; + public MetadataService.SubtabComponents subtabComponents; + private String[] primaryTabComponents_type_info = new String[]{'primaryTabComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] subtabComponents_type_info = new String[]{'subtabComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'primaryTabComponents','subtabComponents'}; + } + public class ChartSummary { + public String aggregate; + public String axisBinding; + public String column; + private String[] aggregate_type_info = new String[]{'aggregate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] axisBinding_type_info = new String[]{'axisBinding','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'aggregate','axisBinding','column'}; + } + public class QuickActionLayoutItem { + public Boolean emptySpace; + public String field; + public String uiBehavior; + private String[] emptySpace_type_info = new String[]{'emptySpace','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] uiBehavior_type_info = new String[]{'uiBehavior','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'emptySpace','field','uiBehavior'}; + } + public class Picklist { + public String controllingField; + public MetadataService.PicklistValue[] picklistValues; + public Boolean sorted; + private String[] controllingField_type_info = new String[]{'controllingField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] picklistValues_type_info = new String[]{'picklistValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] sorted_type_info = new String[]{'sorted','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'controllingField','picklistValues','sorted'}; + } + public class ReportLayoutSection { + public MetadataService.ReportTypeColumn[] columns; + public String masterLabel; + private String[] columns_type_info = new String[]{'columns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'columns','masterLabel'}; + } + public class SummaryLayoutItem { + public String customLink; + public String field; + public Integer posX; + public Integer posY; + public Integer posZ; + private String[] customLink_type_info = new String[]{'customLink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] posX_type_info = new String[]{'posX','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] posY_type_info = new String[]{'posY','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] posZ_type_info = new String[]{'posZ','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'customLink','field','posX','posY','posZ'}; + } + public class LayoutSection { + public Boolean customLabel; + public Boolean detailHeading; + public Boolean editHeading; + public String label; + public MetadataService.LayoutColumn[] layoutColumns; + public String style; + private String[] customLabel_type_info = new String[]{'customLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] detailHeading_type_info = new String[]{'detailHeading','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] editHeading_type_info = new String[]{'editHeading','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] layoutColumns_type_info = new String[]{'layoutColumns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] style_type_info = new String[]{'style','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'customLabel','detailHeading','editHeading','label','layoutColumns','style'}; + } + public class CountriesAndStates { + public MetadataService.Country[] countries; + private String[] countries_type_info = new String[]{'countries','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'countries'}; + } + public class OpportunityListFieldsSelectedSettings { + public String[] field; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field'}; + } + public class ReportTimeFrameFilter { + public String dateColumn; + public Date endDate; + public String interval; + public Date startDate; + private String[] dateColumn_type_info = new String[]{'dateColumn','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] endDate_type_info = new String[]{'endDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] interval_type_info = new String[]{'interval','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] startDate_type_info = new String[]{'startDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dateColumn','endDate','interval','startDate'}; + } + public class XOrgHub extends Metadata { + public String type = 'XOrgHub'; + public String fullName; + public String label; + public Boolean lockSharedObjects; + public String[] permissionSets; + public MetadataService.XOrgHubSharedObject[] sharedObjects; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] lockSharedObjects_type_info = new String[]{'lockSharedObjects','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] permissionSets_type_info = new String[]{'permissionSets','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] sharedObjects_type_info = new String[]{'sharedObjects','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'label','lockSharedObjects','permissionSets','sharedObjects'}; + } + public class ApprovalStepRejectBehavior { + public String type_x; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'type_x'}; + } + public class EmailToCaseRoutingAddress { + public String addressType; + public String authorizedSenders; + public String caseOrigin; + public String caseOwner; + public String caseOwnerType; + public String casePriority; + public Boolean createTask; + public String emailAddress; + public String routingName; + public Boolean saveEmailHeaders; + public String taskStatus; + private String[] addressType_type_info = new String[]{'addressType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] authorizedSenders_type_info = new String[]{'authorizedSenders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseOrigin_type_info = new String[]{'caseOrigin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseOwner_type_info = new String[]{'caseOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseOwnerType_type_info = new String[]{'caseOwnerType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] casePriority_type_info = new String[]{'casePriority','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] createTask_type_info = new String[]{'createTask','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailAddress_type_info = new String[]{'emailAddress','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] routingName_type_info = new String[]{'routingName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] saveEmailHeaders_type_info = new String[]{'saveEmailHeaders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] taskStatus_type_info = new String[]{'taskStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'addressType','authorizedSenders','caseOrigin','caseOwner','caseOwnerType','casePriority','createTask','emailAddress','routingName','saveEmailHeaders','taskStatus'}; + } + public class FlowWaitEventInputParameter { + public String name; + public MetadataService.FlowElementReferenceOrValue value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class FolderShare { + public String accessLevel; + public String sharedTo; + public String sharedToType; + private String[] accessLevel_type_info = new String[]{'accessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sharedToType_type_info = new String[]{'sharedToType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accessLevel','sharedTo','sharedToType'}; + } + public class ManagedTopic { + public String managedTopicType; + public String name; + public Integer position; + public String topicDescription; + private String[] managedTopicType_type_info = new String[]{'managedTopicType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] position_type_info = new String[]{'position','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] topicDescription_type_info = new String[]{'topicDescription','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'managedTopicType','name','position','topicDescription'}; + } + public class ApprovalEntryCriteria { + public String booleanFilter; + public MetadataService.FilterItem[] criteriaItems; + public String formula; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanFilter','criteriaItems','formula'}; + } + public class Territory2RuleItem { + public String field; + public String operation; + public String value; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','operation','value'}; + } + public class WorkspaceMapping { + public String fieldName; + public String tab; + private String[] fieldName_type_info = new String[]{'fieldName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] tab_type_info = new String[]{'tab','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fieldName','tab'}; + } + public class ApexPage extends MetadataWithContent { + public String type = 'ApexPage'; + public String fullName; + public String content; + public Double apiVersion; + public Boolean availableInTouch; + public Boolean confirmationTokenRequired; + public String description; + public String label; + public MetadataService.PackageVersion[] packageVersions; + private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] availableInTouch_type_info = new String[]{'availableInTouch','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] confirmationTokenRequired_type_info = new String[]{'confirmationTokenRequired','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','availableInTouch','confirmationTokenRequired','description','label','packageVersions'}; + } + public class ProductSettings extends Metadata { + public String type = 'ProductSettings'; + public String fullName; + public Boolean enableCascadeActivateToRelatedPrices; + public Boolean enableQuantitySchedule; + public Boolean enableRevenueSchedule; + private String[] enableCascadeActivateToRelatedPrices_type_info = new String[]{'enableCascadeActivateToRelatedPrices','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableQuantitySchedule_type_info = new String[]{'enableQuantitySchedule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableRevenueSchedule_type_info = new String[]{'enableRevenueSchedule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'enableCascadeActivateToRelatedPrices','enableQuantitySchedule','enableRevenueSchedule'}; + } + public class OpportunitySettings extends Metadata { + public String type = 'OpportunitySettings'; + public String fullName; + public Boolean autoActivateNewReminders; + public Boolean enableFindSimilarOpportunities; + public Boolean enableOpportunityTeam; + public Boolean enableUpdateReminders; + public MetadataService.FindSimilarOppFilter findSimilarOppFilter; + public Boolean promptToAddProducts; + private String[] autoActivateNewReminders_type_info = new String[]{'autoActivateNewReminders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableFindSimilarOpportunities_type_info = new String[]{'enableFindSimilarOpportunities','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableOpportunityTeam_type_info = new String[]{'enableOpportunityTeam','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableUpdateReminders_type_info = new String[]{'enableUpdateReminders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] findSimilarOppFilter_type_info = new String[]{'findSimilarOppFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] promptToAddProducts_type_info = new String[]{'promptToAddProducts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'autoActivateNewReminders','enableFindSimilarOpportunities','enableOpportunityTeam','enableUpdateReminders','findSimilarOppFilter','promptToAddProducts'}; + } + public class LiveChatDeployment extends Metadata { + public String type = 'LiveChatDeployment'; + public String fullName; + public String brandingImage; + public Boolean displayQueuePosition; + public MetadataService.LiveChatDeploymentDomainWhitelist domainWhiteList; + public Boolean enablePrechatApi; + public Boolean enableTranscriptSave; + public String label; + public String mobileBrandingImage; + public String site; + public String windowTitle; + private String[] brandingImage_type_info = new String[]{'brandingImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] displayQueuePosition_type_info = new String[]{'displayQueuePosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] domainWhiteList_type_info = new String[]{'domainWhiteList','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enablePrechatApi_type_info = new String[]{'enablePrechatApi','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableTranscriptSave_type_info = new String[]{'enableTranscriptSave','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] mobileBrandingImage_type_info = new String[]{'mobileBrandingImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] windowTitle_type_info = new String[]{'windowTitle','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'brandingImage','displayQueuePosition','domainWhiteList','enablePrechatApi','enableTranscriptSave','label','mobileBrandingImage','site','windowTitle'}; + } + public class RelatedContent { + public MetadataService.RelatedContentItem[] relatedContentItems; + private String[] relatedContentItems_type_info = new String[]{'relatedContentItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'relatedContentItems'}; + } + public class SupervisorAgentConfigSkills { + public String[] skill; + private String[] skill_type_info = new String[]{'skill','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'skill'}; + } + public class QuickActionLayoutColumn { + public MetadataService.QuickActionLayoutItem[] quickActionLayoutItems; + private String[] quickActionLayoutItems_type_info = new String[]{'quickActionLayoutItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'quickActionLayoutItems'}; + } + public class CustomPermission extends Metadata { + public String type = 'CustomPermission'; + public String fullName; + public String connectedApp; + public String description; + public String label; + public MetadataService.CustomPermissionDependencyRequired[] requiredPermission; + private String[] connectedApp_type_info = new String[]{'connectedApp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] requiredPermission_type_info = new String[]{'requiredPermission','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'connectedApp','description','label','requiredPermission'}; + } + public class AccountTerritorySharingRule { + public String accountAccessLevel; + public String caseAccessLevel; + public String contactAccessLevel; + public String description; + public String name; + public String opportunityAccessLevel; + private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accountAccessLevel','caseAccessLevel','contactAccessLevel','description','name','opportunityAccessLevel'}; + } + public class DataPipeline { + public Double apiVersion; + public String label; + public String scriptType; + private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] scriptType_type_info = new String[]{'scriptType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'apiVersion','label','scriptType'}; + } + public class CompanySettings extends Metadata { + public String type = 'CompanySettings'; + public String fullName; + public MetadataService.FiscalYearSettings fiscalYear; + private String[] fiscalYear_type_info = new String[]{'fiscalYear','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'fiscalYear'}; + } + public class OpportunitySharingRules { + public MetadataService.OpportunityCriteriaBasedSharingRule[] criteriaBasedRules; + public MetadataService.OpportunityOwnerSharingRule[] ownerRules; + private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; + } + public class HomePageLayout extends Metadata { + public String type = 'HomePageLayout'; + public String fullName; + public String[] narrowComponents; + public String[] wideComponents; + private String[] narrowComponents_type_info = new String[]{'narrowComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] wideComponents_type_info = new String[]{'wideComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'narrowComponents','wideComponents'}; + } + public class UiPlugin { + public String description; + public String extensionPointIdentifier; + public Boolean isEnabled; + public String language; + public String masterLabel; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] extensionPointIdentifier_type_info = new String[]{'extensionPointIdentifier','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isEnabled_type_info = new String[]{'isEnabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','extensionPointIdentifier','isEnabled','language','masterLabel'}; + } + public class SiteWebAddress { + public String certificate; + public String domainName; + public Boolean primary; + private String[] certificate_type_info = new String[]{'certificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] domainName_type_info = new String[]{'domainName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] primary_type_info = new String[]{'primary','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'certificate','domainName','primary'}; + } + public class RetrieveMessage { + public String fileName; + public String problem; + private String[] fileName_type_info = new String[]{'fileName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] problem_type_info = new String[]{'problem','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fileName','problem'}; + } + public class AssignmentRules extends Metadata { + public String type = 'AssignmentRules'; + public String fullName; + public MetadataService.AssignmentRule[] assignmentRule; + private String[] assignmentRule_type_info = new String[]{'assignmentRule','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'assignmentRule'}; + } + public class EmailFolder extends Folder { + public String type = 'EmailFolder'; + public String fullName; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName'}; + } + public class Territory2Rule { + public Boolean active; + public String booleanFilter; + public String name; + public String objectType; + public MetadataService.Territory2RuleItem[] ruleItems; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] objectType_type_info = new String[]{'objectType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] ruleItems_type_info = new String[]{'ruleItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'active','booleanFilter','name','objectType','ruleItems'}; + } + public class ComponentInstance { + public MetadataService.ComponentInstanceProperty[] componentInstanceProperties; + public String componentName; + private String[] componentInstanceProperties_type_info = new String[]{'componentInstanceProperties','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] componentName_type_info = new String[]{'componentName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'componentInstanceProperties','componentName'}; + } + public class WebToCaseSettings { + public String caseOrigin; + public String defaultResponseTemplate; + public Boolean enableWebToCase; + private String[] caseOrigin_type_info = new String[]{'caseOrigin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultResponseTemplate_type_info = new String[]{'defaultResponseTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableWebToCase_type_info = new String[]{'enableWebToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'caseOrigin','defaultResponseTemplate','enableWebToCase'}; + } + public class SessionHeader_element { + public String sessionId; + private String[] sessionId_type_info = new String[]{'sessionId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'sessionId'}; + } + public class EscalationRule extends Metadata { + public String type = 'EscalationRule'; + public String fullName; + public Boolean active; + public MetadataService.RuleEntry[] ruleEntry; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] ruleEntry_type_info = new String[]{'ruleEntry','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','ruleEntry'}; + } + public class SidebarComponent { + public String componentType; + public Integer height; + public String label; + public String lookup; + public String page_x; + public MetadataService.RelatedList[] relatedLists; + public String unit; + public Integer width; + private String[] componentType_type_info = new String[]{'componentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lookup_type_info = new String[]{'lookup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] relatedLists_type_info = new String[]{'relatedLists','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] unit_type_info = new String[]{'unit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'componentType','height','label','lookup','page_x','relatedLists','unit','width'}; + } + public class SummaryLayout { + public String masterLabel; + public Integer sizeX; + public Integer sizeY; + public Integer sizeZ; + public MetadataService.SummaryLayoutItem[] summaryLayoutItems; + public String summaryLayoutStyle; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sizeX_type_info = new String[]{'sizeX','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sizeY_type_info = new String[]{'sizeY','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sizeZ_type_info = new String[]{'sizeZ','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] summaryLayoutItems_type_info = new String[]{'summaryLayoutItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] summaryLayoutStyle_type_info = new String[]{'summaryLayoutStyle','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'masterLabel','sizeX','sizeY','sizeZ','summaryLayoutItems','summaryLayoutStyle'}; + } + public class FlowCondition { + public String leftValueReference; + public String operator; + public MetadataService.FlowElementReferenceOrValue rightValue; + private String[] leftValueReference_type_info = new String[]{'leftValueReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] rightValue_type_info = new String[]{'rightValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'leftValueReference','operator','rightValue'}; + } + public class DeployOptions { + public Boolean allowMissingFiles; + public Boolean autoUpdatePackage; + public Boolean checkOnly; + public Boolean ignoreWarnings; + public Boolean performRetrieve; + public Boolean purgeOnDelete; + public Boolean rollbackOnError; + public Boolean runAllTests; + public String[] runTests; + public Boolean singlePackage; + private String[] allowMissingFiles_type_info = new String[]{'allowMissingFiles','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] autoUpdatePackage_type_info = new String[]{'autoUpdatePackage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] checkOnly_type_info = new String[]{'checkOnly','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] ignoreWarnings_type_info = new String[]{'ignoreWarnings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] performRetrieve_type_info = new String[]{'performRetrieve','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] purgeOnDelete_type_info = new String[]{'purgeOnDelete','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] rollbackOnError_type_info = new String[]{'rollbackOnError','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] runAllTests_type_info = new String[]{'runAllTests','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] runTests_type_info = new String[]{'runTests','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] singlePackage_type_info = new String[]{'singlePackage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'allowMissingFiles','autoUpdatePackage','checkOnly','ignoreWarnings','performRetrieve','purgeOnDelete','rollbackOnError','runAllTests','runTests','singlePackage'}; + } + public class ProfileApplicationVisibility { + public String application; + public Boolean default_x; + public Boolean visible; + private String[] application_type_info = new String[]{'application','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'application','default_x','visible'}; + } + public class Holiday { + public Date activityDate; + public String[] businessHours; + public String description; + public DateTime endTime; + public Boolean isRecurring; + public String name; + public Integer recurrenceDayOfMonth; + public String[] recurrenceDayOfWeek; + public Integer recurrenceDayOfWeekMask; + public Date recurrenceEndDate; + public String recurrenceInstance; + public Integer recurrenceInterval; + public String recurrenceMonthOfYear; + public Date recurrenceStartDate; + public String recurrenceType; + public DateTime startTime; + private String[] activityDate_type_info = new String[]{'activityDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] endTime_type_info = new String[]{'endTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isRecurring_type_info = new String[]{'isRecurring','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceDayOfMonth_type_info = new String[]{'recurrenceDayOfMonth','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceDayOfWeek_type_info = new String[]{'recurrenceDayOfWeek','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] recurrenceDayOfWeekMask_type_info = new String[]{'recurrenceDayOfWeekMask','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceEndDate_type_info = new String[]{'recurrenceEndDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceInstance_type_info = new String[]{'recurrenceInstance','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceInterval_type_info = new String[]{'recurrenceInterval','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceMonthOfYear_type_info = new String[]{'recurrenceMonthOfYear','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceStartDate_type_info = new String[]{'recurrenceStartDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceType_type_info = new String[]{'recurrenceType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] startTime_type_info = new String[]{'startTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'activityDate','businessHours','description','endTime','isRecurring','name','recurrenceDayOfMonth','recurrenceDayOfWeek','recurrenceDayOfWeekMask','recurrenceEndDate','recurrenceInstance','recurrenceInterval','recurrenceMonthOfYear','recurrenceStartDate','recurrenceType','startTime'}; + } + public class FlowElementReferenceOrValue { + public Boolean booleanValue; + public DateTime dateTimeValue; + public Date dateValue; + public String elementReference; + public Double numberValue; + public String stringValue; + private String[] booleanValue_type_info = new String[]{'booleanValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','true'}; + private String[] dateTimeValue_type_info = new String[]{'dateTimeValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] dateValue_type_info = new String[]{'dateValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] elementReference_type_info = new String[]{'elementReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] numberValue_type_info = new String[]{'numberValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','true'}; + private String[] stringValue_type_info = new String[]{'stringValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanValue','dateTimeValue','dateValue','elementReference','numberValue','stringValue'}; + } + public class EntitlementTemplate extends Metadata { + public String type = 'EntitlementTemplate'; + public String fullName; + public String businessHours; + public Integer casesPerEntitlement; + public String entitlementProcess; + public Boolean isPerIncident; + public Integer term; + public String type_x; + private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] casesPerEntitlement_type_info = new String[]{'casesPerEntitlement','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] entitlementProcess_type_info = new String[]{'entitlementProcess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isPerIncident_type_info = new String[]{'isPerIncident','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] term_type_info = new String[]{'term','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'businessHours','casesPerEntitlement','entitlementProcess','isPerIncident','term','type_x'}; + } + public class ProfileTabVisibility { + public String tab; + public String visibility; + private String[] tab_type_info = new String[]{'tab','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visibility_type_info = new String[]{'visibility','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'tab','visibility'}; + } + public class ActionOverride { + public String actionName; + public String comment; + public String content; + public Boolean skipRecordTypeSelect; + public String type_x; + private String[] actionName_type_info = new String[]{'actionName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] comment_type_info = new String[]{'comment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] content_type_info = new String[]{'content','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] skipRecordTypeSelect_type_info = new String[]{'skipRecordTypeSelect','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'actionName','comment','content','skipRecordTypeSelect','type_x'}; + } + public class SaveResult { + public MetadataService.Error[] errors; + public String fullName; + public Boolean success; + private String[] errors_type_info = new String[]{'errors','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'errors','fullName','success'}; + } + public class readMetadataResponse_element { + public MetadataService.ReadResult result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public virtual class WorkflowAction extends Metadata{ + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{}; + } + public class WorkspaceMappings { + public MetadataService.WorkspaceMapping[] mapping; + private String[] mapping_type_info = new String[]{'mapping','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'mapping'}; + } + public class ContractSettings extends Metadata { + public String type = 'ContractSettings'; + public String fullName; + public Boolean autoCalculateEndDate; + public String autoExpirationDelay; + public String autoExpirationRecipient; + public Boolean autoExpireContracts; + public Boolean enableContractHistoryTracking; + public Boolean notifyOwnersOnContractExpiration; + private String[] autoCalculateEndDate_type_info = new String[]{'autoCalculateEndDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] autoExpirationDelay_type_info = new String[]{'autoExpirationDelay','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] autoExpirationRecipient_type_info = new String[]{'autoExpirationRecipient','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] autoExpireContracts_type_info = new String[]{'autoExpireContracts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableContractHistoryTracking_type_info = new String[]{'enableContractHistoryTracking','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyOwnersOnContractExpiration_type_info = new String[]{'notifyOwnersOnContractExpiration','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'autoCalculateEndDate','autoExpirationDelay','autoExpirationRecipient','autoExpireContracts','enableContractHistoryTracking','notifyOwnersOnContractExpiration'}; + } + public class GlobalQuickActionTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class ReputationLevelDefinitions { + public MetadataService.ReputationLevel[] level; + private String[] level_type_info = new String[]{'level','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'level'}; + } + public class LayoutTranslation { + public String layout; + public String layoutType; + public MetadataService.LayoutSectionTranslation[] sections; + private String[] layout_type_info = new String[]{'layout','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] layoutType_type_info = new String[]{'layoutType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sections_type_info = new String[]{'sections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'layout','layoutType','sections'}; + } + public class ApexTrigger extends MetadataWithContent { + public String type = 'ApexTrigger'; + public String fullName; + public String content; + public Double apiVersion; + public MetadataService.PackageVersion[] packageVersions; + public String status; + private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','packageVersions','status'}; + } + public class CustomApplicationTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class ApprovalStepApprover { + public MetadataService.Approver[] approver; + public String whenMultipleApprovers; + private String[] approver_type_info = new String[]{'approver','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] whenMultipleApprovers_type_info = new String[]{'whenMultipleApprovers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'approver','whenMultipleApprovers'}; + } + public class CallCenter extends Metadata { + public String type = 'CallCenter'; + public String fullName; + public String adapterUrl; + public String customSettings; + public String displayName; + public String displayNameLabel; + public String internalNameLabel; + public MetadataService.CallCenterSection[] sections; + public String version; + private String[] adapterUrl_type_info = new String[]{'adapterUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customSettings_type_info = new String[]{'customSettings','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] displayName_type_info = new String[]{'displayName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] displayNameLabel_type_info = new String[]{'displayNameLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] internalNameLabel_type_info = new String[]{'internalNameLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sections_type_info = new String[]{'sections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] version_type_info = new String[]{'version','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'adapterUrl','customSettings','displayName','displayNameLabel','internalNameLabel','sections','version'}; + } + public class FlexiPageRegion { + public MetadataService.ComponentInstance[] componentInstances; + public String name; + private String[] componentInstances_type_info = new String[]{'componentInstances','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'componentInstances','name'}; + } + public class PicklistValue extends Metadata { + public String type = 'PicklistValue'; + public String fullName; + public Boolean allowEmail; + public Boolean closed; + public String color; + public String[] controllingFieldValues; + public Boolean converted; + public Boolean cssExposed; + public Boolean default_x; + public String description; + public String forecastCategory; + public Boolean highPriority; + public Integer probability; + public String reverseRole; + public Boolean reviewed; + public Boolean won; + private String[] allowEmail_type_info = new String[]{'allowEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] closed_type_info = new String[]{'closed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] color_type_info = new String[]{'color','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] controllingFieldValues_type_info = new String[]{'controllingFieldValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] converted_type_info = new String[]{'converted','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] cssExposed_type_info = new String[]{'cssExposed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] forecastCategory_type_info = new String[]{'forecastCategory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] highPriority_type_info = new String[]{'highPriority','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] probability_type_info = new String[]{'probability','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] reverseRole_type_info = new String[]{'reverseRole','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] reviewed_type_info = new String[]{'reviewed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] won_type_info = new String[]{'won','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'allowEmail','closed','color','controllingFieldValues','converted','cssExposed','default_x','description','forecastCategory','highPriority','probability','reverseRole','reviewed','won'}; + } + public class RemoteSiteSetting extends Metadata { + public String type = 'RemoteSiteSetting'; + public String fullName; + public String description; + public Boolean disableProtocolSecurity; + public Boolean isActive; + public String url; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] disableProtocolSecurity_type_info = new String[]{'disableProtocolSecurity','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] url_type_info = new String[]{'url','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','disableProtocolSecurity','isActive','url'}; + } + public class retrieveResponse_element { + public MetadataService.AsyncResult result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class deploy_element { + public String ZipFile; + public MetadataService.DeployOptions DeployOptions; + private String[] ZipFile_type_info = new String[]{'ZipFile','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] DeployOptions_type_info = new String[]{'DeployOptions','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'ZipFile','DeployOptions'}; + } + public class XOrgHubSharedObject { + public String[] fields; + public String name; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fields','name'}; + } + public class Territory2Type extends Metadata { + public String type = 'Territory2Type'; + public String fullName; + public String description; + public String name; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','name'}; + } + public class SharingRecalculation { + public String className; + private String[] className_type_info = new String[]{'className','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'className'}; + } + public class QuoteSettings extends Metadata { + public String type = 'QuoteSettings'; + public String fullName; + public Boolean enableQuote; + private String[] enableQuote_type_info = new String[]{'enableQuote','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'enableQuote'}; + } + public class WebLinkTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class ProfileLoginIpRange { + public String description; + public String endAddress; + public String startAddress; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] endAddress_type_info = new String[]{'endAddress','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] startAddress_type_info = new String[]{'startAddress','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','endAddress','startAddress'}; + } + public class ObjectRelationship { + public MetadataService.ObjectRelationship join_x; + public Boolean outerJoin; + public String relationship; + private String[] join_x_type_info = new String[]{'join','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] outerJoin_type_info = new String[]{'outerJoin','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] relationship_type_info = new String[]{'relationship','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'join_x','outerJoin','relationship'}; + } + public class RuleEntry { + public String assignedTo; + public String assignedToType; + public String booleanFilter; + public String businessHours; + public String businessHoursSource; + public MetadataService.FilterItem[] criteriaItems; + public Boolean disableEscalationWhenModified; + public MetadataService.EscalationAction[] escalationAction; + public String escalationStartTime; + public String formula; + public Boolean notifyCcRecipients; + public Boolean overrideExistingTeams; + public String replyToEmail; + public String senderEmail; + public String senderName; + public String[] team; + public String template; + private String[] assignedTo_type_info = new String[]{'assignedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assignedToType_type_info = new String[]{'assignedToType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] businessHoursSource_type_info = new String[]{'businessHoursSource','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] disableEscalationWhenModified_type_info = new String[]{'disableEscalationWhenModified','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] escalationAction_type_info = new String[]{'escalationAction','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] escalationStartTime_type_info = new String[]{'escalationStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyCcRecipients_type_info = new String[]{'notifyCcRecipients','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] overrideExistingTeams_type_info = new String[]{'overrideExistingTeams','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] replyToEmail_type_info = new String[]{'replyToEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] senderEmail_type_info = new String[]{'senderEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] senderName_type_info = new String[]{'senderName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] team_type_info = new String[]{'team','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] template_type_info = new String[]{'template','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignedTo','assignedToType','booleanFilter','businessHours','businessHoursSource','criteriaItems','disableEscalationWhenModified','escalationAction','escalationStartTime','formula','notifyCcRecipients','overrideExistingTeams','replyToEmail','senderEmail','senderName','team','template'}; + } + public class deleteMetadata_element { + public String type_x; + public String[] fullNames; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fullNames_type_info = new String[]{'fullNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'type_x','fullNames'}; + } + public class ListPlacement { + public Integer height; + public String location; + public String units; + public Integer width; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] location_type_info = new String[]{'location','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] units_type_info = new String[]{'units','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'height','location','units','width'}; + } + public class SiteRedirectMapping { + public String action; + public Boolean isActive; + public String source; + public String target; + private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] source_type_info = new String[]{'source','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] target_type_info = new String[]{'target','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'action','isActive','source','target'}; + } + public class OwnerSharingRule { + public MetadataService.SharedTo sharedFrom; + private String[] sharedFrom_type_info = new String[]{'sharedFrom','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'sharedFrom'}; + } + public class WorkflowFieldUpdate extends WorkflowAction { + public String type = 'WorkflowFieldUpdate'; + public String fullName; + public String description; + public String field; + public String formula; + public String literalValue; + public String lookupValue; + public String lookupValueType; + public String name; + public Boolean notifyAssignee; + public String operation; + public Boolean protected_x; + public Boolean reevaluateOnChange; + public String targetObject; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] literalValue_type_info = new String[]{'literalValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lookupValue_type_info = new String[]{'lookupValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lookupValueType_type_info = new String[]{'lookupValueType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] notifyAssignee_type_info = new String[]{'notifyAssignee','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] reevaluateOnChange_type_info = new String[]{'reevaluateOnChange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] targetObject_type_info = new String[]{'targetObject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','field','formula','literalValue','lookupValue','lookupValueType','name','notifyAssignee','operation','protected_x','reevaluateOnChange','targetObject'}; + } + public class OpportunityCriteriaBasedSharingRule { + public String booleanFilter; + public String description; + public String name; + public String opportunityAccessLevel; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanFilter','description','name','opportunityAccessLevel'}; + } + public class LetterheadLine { + public String color; + public Integer height; + private String[] color_type_info = new String[]{'color','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'color','height'}; + } + public class FlowChoiceUserInput { + public Boolean isRequired; + public String promptText; + public MetadataService.FlowInputValidationRule validationRule; + private String[] isRequired_type_info = new String[]{'isRequired','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] promptText_type_info = new String[]{'promptText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] validationRule_type_info = new String[]{'validationRule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'isRequired','promptText','validationRule'}; + } + public class ConnectedAppMobileDetailConfig { + public String applicationBinaryFile; + public String applicationBinaryFileName; + public String applicationBundleIdentifier; + public Integer applicationFileLength; + public String applicationIconFile; + public String applicationIconFileName; + public String applicationInstallUrl; + public String devicePlatform; + public String deviceType; + public String minimumOsVersion; + public Boolean privateApp; + public String version; + private String[] applicationBinaryFile_type_info = new String[]{'applicationBinaryFile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] applicationBinaryFileName_type_info = new String[]{'applicationBinaryFileName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] applicationBundleIdentifier_type_info = new String[]{'applicationBundleIdentifier','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] applicationFileLength_type_info = new String[]{'applicationFileLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] applicationIconFile_type_info = new String[]{'applicationIconFile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] applicationIconFileName_type_info = new String[]{'applicationIconFileName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] applicationInstallUrl_type_info = new String[]{'applicationInstallUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] devicePlatform_type_info = new String[]{'devicePlatform','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] deviceType_type_info = new String[]{'deviceType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] minimumOsVersion_type_info = new String[]{'minimumOsVersion','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] privateApp_type_info = new String[]{'privateApp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] version_type_info = new String[]{'version','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'applicationBinaryFile','applicationBinaryFileName','applicationBundleIdentifier','applicationFileLength','applicationIconFile','applicationIconFileName','applicationInstallUrl','devicePlatform','deviceType','minimumOsVersion','privateApp','version'}; + } + public class CriteriaBasedSharingRule { + public MetadataService.FilterItem[] criteriaItems; + private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaItems'}; + } + public class ProfileRecordTypeVisibility { + public Boolean default_x; + public Boolean personAccountDefault; + public String recordType; + public Boolean visible; + private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] personAccountDefault_type_info = new String[]{'personAccountDefault','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recordType_type_info = new String[]{'recordType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'default_x','personAccountDefault','recordType','visible'}; + } + public class PackageVersion { + public Integer majorNumber; + public Integer minorNumber; + public String namespace; + private String[] majorNumber_type_info = new String[]{'majorNumber','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] minorNumber_type_info = new String[]{'minorNumber','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'majorNumber','minorNumber','namespace'}; + } + public class PermissionSetCustomPermissions { + public Boolean enabled; + public String name; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enabled','name'}; + } + public class CustomLabelTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class LeadOwnerSharingRule { + public String description; + public String leadAccessLevel; + public String name; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] leadAccessLevel_type_info = new String[]{'leadAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','leadAccessLevel','name'}; + } + public class CorsWhitelistOrigin extends Metadata { + public String type = 'CorsWhitelistOrigin'; + public String fullName; + public String urlPattern; + private String[] urlPattern_type_info = new String[]{'urlPattern','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'urlPattern'}; + } + public class StaticResource extends MetadataWithContent { + public String type = 'StaticResource'; + public String fullName; + public String content; + public String cacheControl; + public String contentType; + public String description; + private String[] cacheControl_type_info = new String[]{'cacheControl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] contentType_type_info = new String[]{'contentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'cacheControl','contentType','description'}; + } + public class LiveChatButton extends Metadata { + public String type = 'LiveChatButton'; + public String fullName; + public String animation; + public String autoGreeting; + public String chatPage; + public String customAgentName; + public MetadataService.LiveChatButtonDeployments deployments; + public Boolean enableQueue; + public String inviteEndPosition; + public String inviteImage; + public String inviteStartPosition; + public Boolean isActive; + public String label; + public Integer numberOfReroutingAttempts; + public String offlineImage; + public String onlineImage; + public Boolean optionsCustomRoutingIsEnabled; + public Boolean optionsHasInviteAfterAccept; + public Boolean optionsHasInviteAfterReject; + public Boolean optionsHasRerouteDeclinedRequest; + public Boolean optionsIsAutoAccept; + public Boolean optionsIsInviteAutoRemove; + public Integer overallQueueLength; + public Integer perAgentQueueLength; + public String postChatPage; + public String postChatUrl; + public String preChatFormPage; + public String preChatFormUrl; + public Integer pushTimeOut; + public String routingType; + public String site; + public MetadataService.LiveChatButtonSkills skills; + public Integer timeToRemoveInvite; + public String type_x; + public String windowLanguage; + private String[] animation_type_info = new String[]{'animation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] autoGreeting_type_info = new String[]{'autoGreeting','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chatPage_type_info = new String[]{'chatPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customAgentName_type_info = new String[]{'customAgentName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] deployments_type_info = new String[]{'deployments','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableQueue_type_info = new String[]{'enableQueue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inviteEndPosition_type_info = new String[]{'inviteEndPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inviteImage_type_info = new String[]{'inviteImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inviteStartPosition_type_info = new String[]{'inviteStartPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numberOfReroutingAttempts_type_info = new String[]{'numberOfReroutingAttempts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] offlineImage_type_info = new String[]{'offlineImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] onlineImage_type_info = new String[]{'onlineImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] optionsCustomRoutingIsEnabled_type_info = new String[]{'optionsCustomRoutingIsEnabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] optionsHasInviteAfterAccept_type_info = new String[]{'optionsHasInviteAfterAccept','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] optionsHasInviteAfterReject_type_info = new String[]{'optionsHasInviteAfterReject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] optionsHasRerouteDeclinedRequest_type_info = new String[]{'optionsHasRerouteDeclinedRequest','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] optionsIsAutoAccept_type_info = new String[]{'optionsIsAutoAccept','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] optionsIsInviteAutoRemove_type_info = new String[]{'optionsIsInviteAutoRemove','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] overallQueueLength_type_info = new String[]{'overallQueueLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] perAgentQueueLength_type_info = new String[]{'perAgentQueueLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] postChatPage_type_info = new String[]{'postChatPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] postChatUrl_type_info = new String[]{'postChatUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] preChatFormPage_type_info = new String[]{'preChatFormPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] preChatFormUrl_type_info = new String[]{'preChatFormUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] pushTimeOut_type_info = new String[]{'pushTimeOut','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] routingType_type_info = new String[]{'routingType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] skills_type_info = new String[]{'skills','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] timeToRemoveInvite_type_info = new String[]{'timeToRemoveInvite','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] windowLanguage_type_info = new String[]{'windowLanguage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'animation','autoGreeting','chatPage','customAgentName','deployments','enableQueue','inviteEndPosition','inviteImage','inviteStartPosition','isActive','label','numberOfReroutingAttempts','offlineImage','onlineImage','optionsCustomRoutingIsEnabled','optionsHasInviteAfterAccept','optionsHasInviteAfterReject','optionsHasRerouteDeclinedRequest','optionsIsAutoAccept','optionsIsInviteAutoRemove','overallQueueLength','perAgentQueueLength','postChatPage','postChatUrl','preChatFormPage','preChatFormUrl','pushTimeOut','routingType','site','skills','timeToRemoveInvite','type_x','windowLanguage'}; + } + public class RunTestsResult { + public MetadataService.CodeCoverageResult[] codeCoverage; + public MetadataService.CodeCoverageWarning[] codeCoverageWarnings; + public MetadataService.RunTestFailure[] failures; + public Integer numFailures; + public Integer numTestsRun; + public MetadataService.RunTestSuccess[] successes; + public Double totalTime; + private String[] codeCoverage_type_info = new String[]{'codeCoverage','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] codeCoverageWarnings_type_info = new String[]{'codeCoverageWarnings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] failures_type_info = new String[]{'failures','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] numFailures_type_info = new String[]{'numFailures','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numTestsRun_type_info = new String[]{'numTestsRun','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] successes_type_info = new String[]{'successes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] totalTime_type_info = new String[]{'totalTime','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'codeCoverage','codeCoverageWarnings','failures','numFailures','numTestsRun','successes','totalTime'}; + } + public class Network extends Metadata { + public String type = 'Network'; + public String fullName; + public Boolean allowMembersToFlag; + public MetadataService.Branding branding; + public String caseCommentEmailTemplate; + public String changePasswordTemplate; + public String description; + public String emailSenderAddress; + public String emailSenderName; + public Boolean enableGuestChatter; + public Boolean enableInvitation; + public Boolean enableKnowledgeable; + public Boolean enableNicknameDisplay; + public Boolean enablePrivateMessages; + public Boolean enableReputation; + public String feedChannel; + public String forgotPasswordTemplate; + public String logoutUrl; + public MetadataService.NetworkMemberGroup networkMemberGroups; + public String newSenderAddress; + public String picassoSite; + public MetadataService.ReputationLevelDefinitions reputationLevels; + public MetadataService.ReputationPointsRules reputationPointsRules; + public String selfRegProfile; + public Boolean selfRegistration; + public Boolean sendWelcomeEmail; + public String site; + public String status; + public MetadataService.NetworkTabSet tabs; + public String urlPathPrefix; + public String welcomeTemplate; + private String[] allowMembersToFlag_type_info = new String[]{'allowMembersToFlag','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] branding_type_info = new String[]{'branding','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseCommentEmailTemplate_type_info = new String[]{'caseCommentEmailTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] changePasswordTemplate_type_info = new String[]{'changePasswordTemplate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailSenderAddress_type_info = new String[]{'emailSenderAddress','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] emailSenderName_type_info = new String[]{'emailSenderName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enableGuestChatter_type_info = new String[]{'enableGuestChatter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableInvitation_type_info = new String[]{'enableInvitation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableKnowledgeable_type_info = new String[]{'enableKnowledgeable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableNicknameDisplay_type_info = new String[]{'enableNicknameDisplay','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enablePrivateMessages_type_info = new String[]{'enablePrivateMessages','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableReputation_type_info = new String[]{'enableReputation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] feedChannel_type_info = new String[]{'feedChannel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] forgotPasswordTemplate_type_info = new String[]{'forgotPasswordTemplate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] logoutUrl_type_info = new String[]{'logoutUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] networkMemberGroups_type_info = new String[]{'networkMemberGroups','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] newSenderAddress_type_info = new String[]{'newSenderAddress','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] picassoSite_type_info = new String[]{'picassoSite','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] reputationLevels_type_info = new String[]{'reputationLevels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] reputationPointsRules_type_info = new String[]{'reputationPointsRules','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] selfRegProfile_type_info = new String[]{'selfRegProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] selfRegistration_type_info = new String[]{'selfRegistration','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sendWelcomeEmail_type_info = new String[]{'sendWelcomeEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] tabs_type_info = new String[]{'tabs','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] urlPathPrefix_type_info = new String[]{'urlPathPrefix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] welcomeTemplate_type_info = new String[]{'welcomeTemplate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'allowMembersToFlag','branding','caseCommentEmailTemplate','changePasswordTemplate','description','emailSenderAddress','emailSenderName','enableGuestChatter','enableInvitation','enableKnowledgeable','enableNicknameDisplay','enablePrivateMessages','enableReputation','feedChannel','forgotPasswordTemplate','logoutUrl','networkMemberGroups','newSenderAddress','picassoSite','reputationLevels','reputationPointsRules','selfRegProfile','selfRegistration','sendWelcomeEmail','site','status','tabs','urlPathPrefix','welcomeTemplate'}; + } + public class PermissionSetUserPermission { + public Boolean enabled; + public String name; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enabled','name'}; + } + public class FlowVariable { + public String dataType; + public Boolean isCollection; + public Boolean isInput; + public Boolean isOutput; + public String objectType; + public Integer scale; + public MetadataService.FlowElementReferenceOrValue value; + private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isCollection_type_info = new String[]{'isCollection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isInput_type_info = new String[]{'isInput','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isOutput_type_info = new String[]{'isOutput','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] objectType_type_info = new String[]{'objectType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dataType','isCollection','isInput','isOutput','objectType','scale','value'}; + } + public class AccountSettings extends Metadata { + public String type = 'AccountSettings'; + public String fullName; + public Boolean enableAccountOwnerReport; + public Boolean enableAccountTeams; + public Boolean showViewHierarchyLink; + private String[] enableAccountOwnerReport_type_info = new String[]{'enableAccountOwnerReport','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableAccountTeams_type_info = new String[]{'enableAccountTeams','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showViewHierarchyLink_type_info = new String[]{'showViewHierarchyLink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'enableAccountOwnerReport','enableAccountTeams','showViewHierarchyLink'}; + } + public class ChatterAnswersReputationLevel { + public String name; + public Integer value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class LiveChatDeploymentDomainWhitelist { + public String[] domain; + private String[] domain_type_info = new String[]{'domain','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'domain'}; + } + public class DashboardFilter { + public MetadataService.DashboardFilterOption[] dashboardFilterOptions; + public String name; + private String[] dashboardFilterOptions_type_info = new String[]{'dashboardFilterOptions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dashboardFilterOptions','name'}; + } + public class ProfileLoginHours { + public String fridayEnd; + public String fridayStart; + public String mondayEnd; + public String mondayStart; + public String saturdayEnd; + public String saturdayStart; + public String sundayEnd; + public String sundayStart; + public String thursdayEnd; + public String thursdayStart; + public String tuesdayEnd; + public String tuesdayStart; + public String wednesdayEnd; + public String wednesdayStart; + private String[] fridayEnd_type_info = new String[]{'fridayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fridayStart_type_info = new String[]{'fridayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mondayEnd_type_info = new String[]{'mondayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mondayStart_type_info = new String[]{'mondayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] saturdayEnd_type_info = new String[]{'saturdayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] saturdayStart_type_info = new String[]{'saturdayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sundayEnd_type_info = new String[]{'sundayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sundayStart_type_info = new String[]{'sundayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] thursdayEnd_type_info = new String[]{'thursdayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] thursdayStart_type_info = new String[]{'thursdayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] tuesdayEnd_type_info = new String[]{'tuesdayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] tuesdayStart_type_info = new String[]{'tuesdayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] wednesdayEnd_type_info = new String[]{'wednesdayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] wednesdayStart_type_info = new String[]{'wednesdayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fridayEnd','fridayStart','mondayEnd','mondayStart','saturdayEnd','saturdayStart','sundayEnd','sundayStart','thursdayEnd','thursdayStart','tuesdayEnd','tuesdayStart','wednesdayEnd','wednesdayStart'}; + } + public class CodeLocation { + public Integer column; + public Integer line; + public Integer numExecutions; + public Double time_x; + private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] line_type_info = new String[]{'line','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numExecutions_type_info = new String[]{'numExecutions','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] time_x_type_info = new String[]{'time','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'column','line','numExecutions','time_x'}; + } + public class PermissionSetRecordTypeVisibility { + public String recordType; + public Boolean visible; + private String[] recordType_type_info = new String[]{'recordType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'recordType','visible'}; + } + public class FieldSetItem { + public String field; + public Boolean isFieldManaged; + public Boolean isRequired; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isFieldManaged_type_info = new String[]{'isFieldManaged','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isRequired_type_info = new String[]{'isRequired','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','isFieldManaged','isRequired'}; + } + public class KnowledgeLanguageSettings { + public MetadataService.KnowledgeLanguage[] language; + private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'language'}; + } + public class OrderSettings extends Metadata { + public String type = 'OrderSettings'; + public String fullName; + public Boolean enableNegativeQuantity; + public Boolean enableOrders; + public Boolean enableReductionOrders; + private String[] enableNegativeQuantity_type_info = new String[]{'enableNegativeQuantity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableOrders_type_info = new String[]{'enableOrders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableReductionOrders_type_info = new String[]{'enableReductionOrders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'enableNegativeQuantity','enableOrders','enableReductionOrders'}; + } + public class ProfileUserPermission { + public Boolean enabled; + public String name; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enabled','name'}; + } + public class ReportFilterItem { + public String column; + public Boolean columnToColumn; + public String operator; + public String snapshot; + public String value; + private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] columnToColumn_type_info = new String[]{'columnToColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] snapshot_type_info = new String[]{'snapshot','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'column','columnToColumn','operator','snapshot','value'}; + } + public class FlowDynamicChoiceSet { + public String dataType; + public String displayField; + public MetadataService.FlowRecordFilter[] filters; + public Integer limit_x; + public String object_x; + public MetadataService.FlowOutputFieldAssignment[] outputAssignments; + public String sortField; + public String sortOrder; + public String valueField; + private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] displayField_type_info = new String[]{'displayField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] limit_x_type_info = new String[]{'limit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] outputAssignments_type_info = new String[]{'outputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] sortField_type_info = new String[]{'sortField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] valueField_type_info = new String[]{'valueField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dataType','displayField','filters','limit_x','object_x','outputAssignments','sortField','sortOrder','valueField'}; + } + public class KnowledgeSettings extends Metadata { + public String type = 'KnowledgeSettings'; + public String fullName; + public MetadataService.KnowledgeAnswerSettings answers; + public MetadataService.KnowledgeCaseSettings cases; + public String defaultLanguage; + public Boolean enableChatterQuestionKBDeflection; + public Boolean enableCreateEditOnArticlesTab; + public Boolean enableExternalMediaContent; + public Boolean enableKnowledge; + public MetadataService.KnowledgeLanguageSettings languages; + public Boolean showArticleSummariesCustomerPortal; + public Boolean showArticleSummariesInternalApp; + public Boolean showArticleSummariesPartnerPortal; + public Boolean showValidationStatusField; + private String[] answers_type_info = new String[]{'answers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] cases_type_info = new String[]{'cases','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultLanguage_type_info = new String[]{'defaultLanguage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableChatterQuestionKBDeflection_type_info = new String[]{'enableChatterQuestionKBDeflection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableCreateEditOnArticlesTab_type_info = new String[]{'enableCreateEditOnArticlesTab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableExternalMediaContent_type_info = new String[]{'enableExternalMediaContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableKnowledge_type_info = new String[]{'enableKnowledge','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] languages_type_info = new String[]{'languages','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showArticleSummariesCustomerPortal_type_info = new String[]{'showArticleSummariesCustomerPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showArticleSummariesInternalApp_type_info = new String[]{'showArticleSummariesInternalApp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showArticleSummariesPartnerPortal_type_info = new String[]{'showArticleSummariesPartnerPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showValidationStatusField_type_info = new String[]{'showValidationStatusField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'answers','cases','defaultLanguage','enableChatterQuestionKBDeflection','enableCreateEditOnArticlesTab','enableExternalMediaContent','enableKnowledge','languages','showArticleSummariesCustomerPortal','showArticleSummariesInternalApp','showArticleSummariesPartnerPortal','showValidationStatusField'}; + } + public class StandardFieldTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class upsertMetadata_element { + public MetadataService.Metadata[] metadata; + private String[] metadata_type_info = new String[]{'metadata','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'metadata'}; + } + public class ApexClass extends MetadataWithContent { + public String type = 'ApexClass'; + public String fullName; + public String content; + public Double apiVersion; + public MetadataService.PackageVersion[] packageVersions; + public String status; + private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','packageVersions','status'}; + } + public class SessionSettings { + public Boolean disableTimeoutWarning; + public Boolean enableCSRFOnGet; + public Boolean enableCSRFOnPost; + public Boolean enableCacheAndAutocomplete; + public Boolean enableClickjackNonsetupSFDC; + public Boolean enableClickjackNonsetupUser; + public Boolean enableClickjackSetup; + public Boolean enablePostForSessions; + public Boolean enableSMSIdentity; + public Boolean forceLogoutOnSessionTimeout; + public Boolean forceRelogin; + public Boolean lockSessionsToIp; + public String sessionTimeout; + private String[] disableTimeoutWarning_type_info = new String[]{'disableTimeoutWarning','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableCSRFOnGet_type_info = new String[]{'enableCSRFOnGet','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableCSRFOnPost_type_info = new String[]{'enableCSRFOnPost','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableCacheAndAutocomplete_type_info = new String[]{'enableCacheAndAutocomplete','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableClickjackNonsetupSFDC_type_info = new String[]{'enableClickjackNonsetupSFDC','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableClickjackNonsetupUser_type_info = new String[]{'enableClickjackNonsetupUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableClickjackSetup_type_info = new String[]{'enableClickjackSetup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enablePostForSessions_type_info = new String[]{'enablePostForSessions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSMSIdentity_type_info = new String[]{'enableSMSIdentity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] forceLogoutOnSessionTimeout_type_info = new String[]{'forceLogoutOnSessionTimeout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] forceRelogin_type_info = new String[]{'forceRelogin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lockSessionsToIp_type_info = new String[]{'lockSessionsToIp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sessionTimeout_type_info = new String[]{'sessionTimeout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'disableTimeoutWarning','enableCSRFOnGet','enableCSRFOnPost','enableCacheAndAutocomplete','enableClickjackNonsetupSFDC','enableClickjackNonsetupUser','enableClickjackSetup','enablePostForSessions','enableSMSIdentity','forceLogoutOnSessionTimeout','forceRelogin','lockSessionsToIp','sessionTimeout'}; + } + public class Document extends MetadataWithContent { + public String type = 'Document'; + public String fullName; + public String content; + public String description; + public Boolean internalUseOnly; + public String keywords; + public String name; + public Boolean public_x; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] internalUseOnly_type_info = new String[]{'internalUseOnly','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] keywords_type_info = new String[]{'keywords','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] public_x_type_info = new String[]{'public','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'description','internalUseOnly','keywords','name','public_x'}; + } + public class AutoResponseRules extends Metadata { + public String type = 'AutoResponseRules'; + public String fullName; + public MetadataService.AutoResponseRule[] autoResponseRule; + private String[] autoResponseRule_type_info = new String[]{'autoResponseRule','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'autoResponseRule'}; + } + public virtual class Folder extends Metadata{ + public String accessType; + public MetadataService.FolderShare[] folderShares; + public String name; + public String publicFolderAccess; + public MetadataService.SharedTo sharedTo; + private String[] accessType_type_info = new String[]{'accessType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] folderShares_type_info = new String[]{'folderShares','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] publicFolderAccess_type_info = new String[]{'publicFolderAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accessType','folderShares','name','publicFolderAccess','sharedTo'}; + } + public class Territory2Model extends Metadata { + public String type = 'Territory2Model'; + public String fullName; + public MetadataService.FieldValue[] customFields; + public String description; + public String name; + private String[] customFields_type_info = new String[]{'customFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'customFields','description','name'}; + } + public class DeployResult { + public String canceledBy; + public String canceledByName; + public Boolean checkOnly; + public DateTime completedDate; + public String createdBy; + public String createdByName; + public DateTime createdDate; + public MetadataService.DeployDetails details; + public Boolean done; + public String errorMessage; + public String errorStatusCode; + public String id; + public Boolean ignoreWarnings; + public DateTime lastModifiedDate; + public Integer numberComponentErrors; + public Integer numberComponentsDeployed; + public Integer numberComponentsTotal; + public Integer numberTestErrors; + public Integer numberTestsCompleted; + public Integer numberTestsTotal; + public Boolean rollbackOnError; + public Boolean runTestsEnabled; + public DateTime startDate; + public String stateDetail; + public String status; + public Boolean success; + private String[] canceledBy_type_info = new String[]{'canceledBy','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] canceledByName_type_info = new String[]{'canceledByName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] checkOnly_type_info = new String[]{'checkOnly','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] completedDate_type_info = new String[]{'completedDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] createdBy_type_info = new String[]{'createdBy','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] createdByName_type_info = new String[]{'createdByName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] createdDate_type_info = new String[]{'createdDate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] details_type_info = new String[]{'details','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] done_type_info = new String[]{'done','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] errorStatusCode_type_info = new String[]{'errorStatusCode','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] ignoreWarnings_type_info = new String[]{'ignoreWarnings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] lastModifiedDate_type_info = new String[]{'lastModifiedDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] numberComponentErrors_type_info = new String[]{'numberComponentErrors','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numberComponentsDeployed_type_info = new String[]{'numberComponentsDeployed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numberComponentsTotal_type_info = new String[]{'numberComponentsTotal','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numberTestErrors_type_info = new String[]{'numberTestErrors','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numberTestsCompleted_type_info = new String[]{'numberTestsCompleted','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] numberTestsTotal_type_info = new String[]{'numberTestsTotal','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] rollbackOnError_type_info = new String[]{'rollbackOnError','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] runTestsEnabled_type_info = new String[]{'runTestsEnabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] startDate_type_info = new String[]{'startDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] stateDetail_type_info = new String[]{'stateDetail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'canceledBy','canceledByName','checkOnly','completedDate','createdBy','createdByName','createdDate','details','done','errorMessage','errorStatusCode','id','ignoreWarnings','lastModifiedDate','numberComponentErrors','numberComponentsDeployed','numberComponentsTotal','numberTestErrors','numberTestsCompleted','numberTestsTotal','rollbackOnError','runTestsEnabled','startDate','stateDetail','status','success'}; + } + public class CampaignCriteriaBasedSharingRule { + public String booleanFilter; + public String campaignAccessLevel; + public String description; + public String name; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] campaignAccessLevel_type_info = new String[]{'campaignAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanFilter','campaignAccessLevel','description','name'}; + } + public class ProfileApexPageAccess { + public String apexPage; + public Boolean enabled; + private String[] apexPage_type_info = new String[]{'apexPage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'apexPage','enabled'}; + } + public class UserCriteriaBasedSharingRule { + public String booleanFilter; + public String description; + public String name; + public String userAccessLevel; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] userAccessLevel_type_info = new String[]{'userAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanFilter','description','name','userAccessLevel'}; + } + public class Approver { + public String name; + public String type_x; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','type_x'}; + } + public class LetterheadHeaderFooter { + public String backgroundColor; + public Integer height; + public String horizontalAlignment; + public String logo; + public String verticalAlignment; + private String[] backgroundColor_type_info = new String[]{'backgroundColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] horizontalAlignment_type_info = new String[]{'horizontalAlignment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] logo_type_info = new String[]{'logo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] verticalAlignment_type_info = new String[]{'verticalAlignment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'backgroundColor','height','horizontalAlignment','logo','verticalAlignment'}; + } + public class HomePageComponent extends Metadata { + public String type = 'HomePageComponent'; + public String fullName; + public String body; + public Integer height; + public String[] links; + public String page_x; + public String pageComponentType; + public Boolean showLabel; + public Boolean showScrollbars; + public String width; + private String[] body_type_info = new String[]{'body','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] links_type_info = new String[]{'links','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] pageComponentType_type_info = new String[]{'pageComponentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] showLabel_type_info = new String[]{'showLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showScrollbars_type_info = new String[]{'showScrollbars','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'body','height','links','page_x','pageComponentType','showLabel','showScrollbars','width'}; + } + public class ProfileCustomPermissions { + public Boolean enabled; + public String name; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enabled','name'}; + } + public class LookupFilterTranslation { + public String errorMessage; + public String informationalMessage; + private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] informationalMessage_type_info = new String[]{'informationalMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'errorMessage','informationalMessage'}; + } + public class SamlSsoConfig extends Metadata { + public String type = 'SamlSsoConfig'; + public String fullName; + public String attributeName; + public String attributeNameIdFormat; + public String decryptionCertificate; + public String errorUrl; + public String identityLocation; + public String identityMapping; + public String issuer; + public String loginUrl; + public String logoutUrl; + public String name; + public String oauthTokenEndpoint; + public Boolean redirectBinding; + public String salesforceLoginUrl; + public String samlEntityId; + public String samlVersion; + public Boolean userProvisioning; + public String validationCert; + private String[] attributeName_type_info = new String[]{'attributeName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] attributeNameIdFormat_type_info = new String[]{'attributeNameIdFormat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] decryptionCertificate_type_info = new String[]{'decryptionCertificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] errorUrl_type_info = new String[]{'errorUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] identityLocation_type_info = new String[]{'identityLocation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] identityMapping_type_info = new String[]{'identityMapping','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] issuer_type_info = new String[]{'issuer','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] loginUrl_type_info = new String[]{'loginUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] logoutUrl_type_info = new String[]{'logoutUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] oauthTokenEndpoint_type_info = new String[]{'oauthTokenEndpoint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] redirectBinding_type_info = new String[]{'redirectBinding','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] salesforceLoginUrl_type_info = new String[]{'salesforceLoginUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] samlEntityId_type_info = new String[]{'samlEntityId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] samlVersion_type_info = new String[]{'samlVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] userProvisioning_type_info = new String[]{'userProvisioning','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] validationCert_type_info = new String[]{'validationCert','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'attributeName','attributeNameIdFormat','decryptionCertificate','errorUrl','identityLocation','identityMapping','issuer','loginUrl','logoutUrl','name','oauthTokenEndpoint','redirectBinding','salesforceLoginUrl','samlEntityId','samlVersion','userProvisioning','validationCert'}; + } + public class RecordTypeTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class WorkflowFlowAction { + public String description; + public String flow; + public MetadataService.WorkflowFlowActionParameter[] flowInputs; + public String label; + public String language; + public Boolean protected_x; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] flow_type_info = new String[]{'flow','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] flowInputs_type_info = new String[]{'flowInputs','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','flow','flowInputs','label','language','protected_x'}; + } + public class MobileSettings extends Metadata { + public String type = 'MobileSettings'; + public String fullName; + public MetadataService.ChatterMobileSettings chatterMobile; + public MetadataService.DashboardMobileSettings dashboardMobile; + public MetadataService.SFDCMobileSettings salesforceMobile; + public MetadataService.TouchMobileSettings touchMobile; + private String[] chatterMobile_type_info = new String[]{'chatterMobile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] dashboardMobile_type_info = new String[]{'dashboardMobile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] salesforceMobile_type_info = new String[]{'salesforceMobile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] touchMobile_type_info = new String[]{'touchMobile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'chatterMobile','dashboardMobile','salesforceMobile','touchMobile'}; + } + public class PersonListSettings { + public Boolean enablePersonList; + private String[] enablePersonList_type_info = new String[]{'enablePersonList','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enablePersonList'}; + } + public class FlowFormula { + public String dataType; + public String expression; + public Integer scale; + private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] expression_type_info = new String[]{'expression','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dataType','expression','scale'}; + } + public class EscalationRules extends Metadata { + public String type = 'EscalationRules'; + public String fullName; + public MetadataService.EscalationRule[] escalationRule; + private String[] escalationRule_type_info = new String[]{'escalationRule','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'escalationRule'}; + } + public class ApprovalSubmitter { + public String submitter; + public String type_x; + private String[] submitter_type_info = new String[]{'submitter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'submitter','type_x'}; + } + public class AgentConfigButtons { + public String[] button; + private String[] button_type_info = new String[]{'button','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'button'}; + } + public class PicklistValueTranslation { + public String masterLabel; + public String translation; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] translation_type_info = new String[]{'translation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'masterLabel','translation'}; + } + public class ContactOwnerSharingRule { + public String contactAccessLevel; + public String description; + public String name; + private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'contactAccessLevel','description','name'}; + } + public class CustomDataType extends Metadata { + public String type = 'CustomDataType'; + public String fullName; + public MetadataService.CustomDataTypeComponent[] customDataTypeComponents; + public String description; + public String displayFormula; + public Boolean editComponentsOnSeparateLines; + public String label; + public Boolean rightAligned; + public Boolean supportComponentsInReports; + private String[] customDataTypeComponents_type_info = new String[]{'customDataTypeComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] displayFormula_type_info = new String[]{'displayFormula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] editComponentsOnSeparateLines_type_info = new String[]{'editComponentsOnSeparateLines','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] rightAligned_type_info = new String[]{'rightAligned','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] supportComponentsInReports_type_info = new String[]{'supportComponentsInReports','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'customDataTypeComponents','description','displayFormula','editComponentsOnSeparateLines','label','rightAligned','supportComponentsInReports'}; + } + public class PrimaryTabComponents { + public MetadataService.Container[] containers; + private String[] containers_type_info = new String[]{'containers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'containers'}; + } + public class AgentConfigSkills { + public String[] skill; + private String[] skill_type_info = new String[]{'skill','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'skill'}; + } + public class EntitlementProcess extends Metadata { + public String type = 'EntitlementProcess'; + public String fullName; + public Boolean active; + public String businessHours; + public String description; + public String entryStartDateField; + public String exitCriteriaBooleanFilter; + public MetadataService.FilterItem[] exitCriteriaFilterItems; + public String exitCriteriaFormula; + public Boolean isVersionDefault; + public MetadataService.EntitlementProcessMilestoneItem[] milestones; + public String name; + public String versionMaster; + public String versionNotes; + public Integer versionNumber; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] entryStartDateField_type_info = new String[]{'entryStartDateField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] exitCriteriaBooleanFilter_type_info = new String[]{'exitCriteriaBooleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] exitCriteriaFilterItems_type_info = new String[]{'exitCriteriaFilterItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] exitCriteriaFormula_type_info = new String[]{'exitCriteriaFormula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isVersionDefault_type_info = new String[]{'isVersionDefault','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] milestones_type_info = new String[]{'milestones','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] versionMaster_type_info = new String[]{'versionMaster','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] versionNotes_type_info = new String[]{'versionNotes','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] versionNumber_type_info = new String[]{'versionNumber','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','businessHours','description','entryStartDateField','exitCriteriaBooleanFilter','exitCriteriaFilterItems','exitCriteriaFormula','isVersionDefault','milestones','name','versionMaster','versionNotes','versionNumber'}; + } + public class RecordType extends Metadata { + public String type = 'RecordType'; + public String fullName; + public Boolean active; + public String businessProcess; + public String compactLayoutAssignment; + public String description; + public String label; + public MetadataService.RecordTypePicklistValue[] picklistValues; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] businessProcess_type_info = new String[]{'businessProcess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] compactLayoutAssignment_type_info = new String[]{'compactLayoutAssignment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] picklistValues_type_info = new String[]{'picklistValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','businessProcess','compactLayoutAssignment','description','label','picklistValues'}; + } + public class ContactCriteriaBasedSharingRule { + public String booleanFilter; + public String contactAccessLevel; + public String description; + public String name; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanFilter','contactAccessLevel','description','name'}; + } + public class FilterItem { + public String field; + public String operation; + public String value; + public String valueField; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] valueField_type_info = new String[]{'valueField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','operation','value','valueField'}; + } + public class Profile extends Metadata { + public String type = 'Profile'; + public String fullName; + public MetadataService.ProfileApplicationVisibility[] applicationVisibilities; + public MetadataService.ProfileApexClassAccess[] classAccesses; + public Boolean custom; + public MetadataService.ProfileCustomPermissions[] customPermissions; + public String description; + public MetadataService.ProfileExternalDataSourceAccess[] externalDataSourceAccesses; + public MetadataService.ProfileFieldLevelSecurity[] fieldPermissions; + public MetadataService.ProfileLayoutAssignment[] layoutAssignments; + public MetadataService.ProfileLoginHours loginHours; + public MetadataService.ProfileLoginIpRange[] loginIpRanges; + public MetadataService.ProfileObjectPermissions[] objectPermissions; + public MetadataService.ProfileApexPageAccess[] pageAccesses; + public MetadataService.ProfileRecordTypeVisibility[] recordTypeVisibilities; + public MetadataService.ProfileTabVisibility[] tabVisibilities; + public String userLicense; + public MetadataService.ProfileUserPermission[] userPermissions; + private String[] applicationVisibilities_type_info = new String[]{'applicationVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] classAccesses_type_info = new String[]{'classAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] custom_type_info = new String[]{'custom','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customPermissions_type_info = new String[]{'customPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] externalDataSourceAccesses_type_info = new String[]{'externalDataSourceAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fieldPermissions_type_info = new String[]{'fieldPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] layoutAssignments_type_info = new String[]{'layoutAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] loginHours_type_info = new String[]{'loginHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] loginIpRanges_type_info = new String[]{'loginIpRanges','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] objectPermissions_type_info = new String[]{'objectPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] pageAccesses_type_info = new String[]{'pageAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] recordTypeVisibilities_type_info = new String[]{'recordTypeVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] tabVisibilities_type_info = new String[]{'tabVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] userLicense_type_info = new String[]{'userLicense','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] userPermissions_type_info = new String[]{'userPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'applicationVisibilities','classAccesses','custom','customPermissions','description','externalDataSourceAccesses','fieldPermissions','layoutAssignments','loginHours','loginIpRanges','objectPermissions','pageAccesses','recordTypeVisibilities','tabVisibilities','userLicense','userPermissions'}; + } + public class ConnectedApp extends Metadata { + public String type = 'ConnectedApp'; + public String fullName; + public MetadataService.ConnectedAppAttribute[] attributes; + public MetadataService.ConnectedAppCanvasConfig canvasConfig; + public String contactEmail; + public String contactPhone; + public String description; + public String iconUrl; + public String infoUrl; + public MetadataService.ConnectedAppIpRange[] ipRanges; + public String label; + public String logoUrl; + public MetadataService.ConnectedAppMobileDetailConfig mobileAppConfig; + public String mobileStartUrl; + public MetadataService.ConnectedAppOauthConfig oauthConfig; + public MetadataService.ConnectedAppSamlConfig samlConfig; + public String startUrl; + private String[] attributes_type_info = new String[]{'attributes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] canvasConfig_type_info = new String[]{'canvasConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] contactEmail_type_info = new String[]{'contactEmail','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] contactPhone_type_info = new String[]{'contactPhone','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] iconUrl_type_info = new String[]{'iconUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] infoUrl_type_info = new String[]{'infoUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] ipRanges_type_info = new String[]{'ipRanges','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] logoUrl_type_info = new String[]{'logoUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mobileAppConfig_type_info = new String[]{'mobileAppConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mobileStartUrl_type_info = new String[]{'mobileStartUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] oauthConfig_type_info = new String[]{'oauthConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] samlConfig_type_info = new String[]{'samlConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] startUrl_type_info = new String[]{'startUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'attributes','canvasConfig','contactEmail','contactPhone','description','iconUrl','infoUrl','ipRanges','label','logoUrl','mobileAppConfig','mobileStartUrl','oauthConfig','samlConfig','startUrl'}; + } + public class ReportFilter { + public String booleanFilter; + public MetadataService.ReportFilterItem[] criteriaItems; + public String language; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanFilter','criteriaItems','language'}; + } + public class Layout extends Metadata { + public String type = 'Layout'; + public String fullName; + public String[] customButtons; + public MetadataService.CustomConsoleComponents customConsoleComponents; + public Boolean emailDefault; + public String[] excludeButtons; + public MetadataService.FeedLayout feedLayout; + public String[] headers; + public MetadataService.LayoutSection[] layoutSections; + public MetadataService.MiniLayout miniLayout; + public String[] multilineLayoutFields; + public MetadataService.QuickActionList quickActionList; + public MetadataService.RelatedContent relatedContent; + public MetadataService.RelatedListItem[] relatedLists; + public String[] relatedObjects; + public Boolean runAssignmentRulesDefault; + public Boolean showEmailCheckbox; + public Boolean showHighlightsPanel; + public Boolean showInteractionLogPanel; + public Boolean showKnowledgeComponent; + public Boolean showRunAssignmentRulesCheckbox; + public Boolean showSolutionSection; + public Boolean showSubmitAndAttachButton; + public MetadataService.SummaryLayout summaryLayout; + private String[] customButtons_type_info = new String[]{'customButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] customConsoleComponents_type_info = new String[]{'customConsoleComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailDefault_type_info = new String[]{'emailDefault','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] excludeButtons_type_info = new String[]{'excludeButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] feedLayout_type_info = new String[]{'feedLayout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] headers_type_info = new String[]{'headers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] layoutSections_type_info = new String[]{'layoutSections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] miniLayout_type_info = new String[]{'miniLayout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] multilineLayoutFields_type_info = new String[]{'multilineLayoutFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] quickActionList_type_info = new String[]{'quickActionList','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] relatedContent_type_info = new String[]{'relatedContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] relatedLists_type_info = new String[]{'relatedLists','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] relatedObjects_type_info = new String[]{'relatedObjects','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] runAssignmentRulesDefault_type_info = new String[]{'runAssignmentRulesDefault','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showEmailCheckbox_type_info = new String[]{'showEmailCheckbox','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showHighlightsPanel_type_info = new String[]{'showHighlightsPanel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showInteractionLogPanel_type_info = new String[]{'showInteractionLogPanel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showKnowledgeComponent_type_info = new String[]{'showKnowledgeComponent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showRunAssignmentRulesCheckbox_type_info = new String[]{'showRunAssignmentRulesCheckbox','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showSolutionSection_type_info = new String[]{'showSolutionSection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showSubmitAndAttachButton_type_info = new String[]{'showSubmitAndAttachButton','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] summaryLayout_type_info = new String[]{'summaryLayout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'customButtons','customConsoleComponents','emailDefault','excludeButtons','feedLayout','headers','layoutSections','miniLayout','multilineLayoutFields','quickActionList','relatedContent','relatedLists','relatedObjects','runAssignmentRulesDefault','showEmailCheckbox','showHighlightsPanel','showInteractionLogPanel','showKnowledgeComponent','showRunAssignmentRulesCheckbox','showSolutionSection','showSubmitAndAttachButton','summaryLayout'}; + } + public class KeyboardShortcuts { + public MetadataService.CustomShortcut[] customShortcut; + public MetadataService.DefaultShortcut[] defaultShortcut; + private String[] customShortcut_type_info = new String[]{'customShortcut','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] defaultShortcut_type_info = new String[]{'defaultShortcut','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'customShortcut','defaultShortcut'}; + } + public class WebLink extends Metadata { + public String type = 'WebLink'; + public String fullName; + public String availability; + public String description; + public String displayType; + public String encodingKey; + public Boolean hasMenubar; + public Boolean hasScrollbars; + public Boolean hasToolbar; + public Integer height; + public Boolean isResizable; + public String linkType; + public String masterLabel; + public String openType; + public String page_x; + public String position; + public Boolean protected_x; + public Boolean requireRowSelection; + public String scontrol; + public Boolean showsLocation; + public Boolean showsStatus; + public String url; + public Integer width; + private String[] availability_type_info = new String[]{'availability','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] displayType_type_info = new String[]{'displayType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] encodingKey_type_info = new String[]{'encodingKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hasMenubar_type_info = new String[]{'hasMenubar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hasScrollbars_type_info = new String[]{'hasScrollbars','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hasToolbar_type_info = new String[]{'hasToolbar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isResizable_type_info = new String[]{'isResizable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] linkType_type_info = new String[]{'linkType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] openType_type_info = new String[]{'openType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] position_type_info = new String[]{'position','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] requireRowSelection_type_info = new String[]{'requireRowSelection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showsLocation_type_info = new String[]{'showsLocation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showsStatus_type_info = new String[]{'showsStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] url_type_info = new String[]{'url','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'availability','description','displayType','encodingKey','hasMenubar','hasScrollbars','hasToolbar','height','isResizable','linkType','masterLabel','openType','page_x','position','protected_x','requireRowSelection','scontrol','showsLocation','showsStatus','url','width'}; + } + public class ApprovalStep { + public Boolean allowDelegate; + public MetadataService.ApprovalAction approvalActions; + public MetadataService.ApprovalStepApprover assignedApprover; + public String description; + public MetadataService.ApprovalEntryCriteria entryCriteria; + public String ifCriteriaNotMet; + public String label; + public String name; + public MetadataService.ApprovalStepRejectBehavior rejectBehavior; + public MetadataService.ApprovalAction rejectionActions; + private String[] allowDelegate_type_info = new String[]{'allowDelegate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] approvalActions_type_info = new String[]{'approvalActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assignedApprover_type_info = new String[]{'assignedApprover','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] entryCriteria_type_info = new String[]{'entryCriteria','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] ifCriteriaNotMet_type_info = new String[]{'ifCriteriaNotMet','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] rejectBehavior_type_info = new String[]{'rejectBehavior','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] rejectionActions_type_info = new String[]{'rejectionActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'allowDelegate','approvalActions','assignedApprover','description','entryCriteria','ifCriteriaNotMet','label','name','rejectBehavior','rejectionActions'}; + } + public class ObjectNameCaseValue { + public String article; + public String caseType; + public Boolean plural; + public String possessive; + public String value; + private String[] article_type_info = new String[]{'article','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseType_type_info = new String[]{'caseType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] plural_type_info = new String[]{'plural','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] possessive_type_info = new String[]{'possessive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'article','caseType','plural','possessive','value'}; + } + public class ChannelLayoutItem { + public String field; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field'}; + } + public class upsertMetadataResponse_element { + public MetadataService.UpsertResult[] result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class CustomDataTypeTranslation { + public MetadataService.CustomDataTypeComponentTranslation[] components; + public String customDataTypeName; + public String description; + public String label; + private String[] components_type_info = new String[]{'components','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] customDataTypeName_type_info = new String[]{'customDataTypeName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'components','customDataTypeName','description','label'}; + } + public class SiteDotCom extends MetadataWithContent { + public String type = 'SiteDotCom'; + public String fullName; + public String content; + public String label; + public String siteType; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] siteType_type_info = new String[]{'siteType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'label','siteType'}; + } + public class CallOptions_element { + public String client; + private String[] client_type_info = new String[]{'client','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'client'}; + } + public class AgentConfigAssignments { + public MetadataService.AgentConfigProfileAssignments profiles; + public MetadataService.AgentConfigUserAssignments users; + private String[] profiles_type_info = new String[]{'profiles','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] users_type_info = new String[]{'users','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'profiles','users'}; + } + public class createMetadataResponse_element { + public MetadataService.SaveResult[] result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + + + public class CustomFieldTranslation { + public MetadataService.ObjectNameCaseValue[] caseValues; + public String gender; + public String help; + public String label; + public MetadataService.LookupFilterTranslation lookupFilter; + public String name; + public MetadataService.PicklistValueTranslation[] picklistValues; + public String relationshipLabel; + public String startsWith; + private String[] caseValues_type_info = new String[]{'caseValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] gender_type_info = new String[]{'gender','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] help_type_info = new String[]{'help','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lookupFilter_type_info = new String[]{'lookupFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] picklistValues_type_info = new String[]{'picklistValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] relationshipLabel_type_info = new String[]{'relationshipLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] startsWith_type_info = new String[]{'startsWith','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'caseValues','gender','help','label','lookupFilter','name','picklistValues','relationshipLabel','startsWith'}; + } + public class CustomObjectOwnerSharingRule { + public String accessLevel; + public String description; + public String name; + private String[] accessLevel_type_info = new String[]{'accessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accessLevel','description','name'}; + } + public class updateMetadata_element { + public MetadataService.Metadata[] metadata; + private String[] metadata_type_info = new String[]{'metadata','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'metadata'}; + } + public class AnalyticSnapshot extends Metadata { + public String type = 'AnalyticSnapshot'; + public String fullName; + public String description; + public String groupColumn; + public MetadataService.AnalyticSnapshotMapping[] mappings; + public String name; + public String runningUser; + public String sourceReport; + public String targetObject; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] groupColumn_type_info = new String[]{'groupColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mappings_type_info = new String[]{'mappings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] runningUser_type_info = new String[]{'runningUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sourceReport_type_info = new String[]{'sourceReport','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] targetObject_type_info = new String[]{'targetObject','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','groupColumn','mappings','name','runningUser','sourceReport','targetObject'}; + } + public class LookupFilter { + public Boolean active; + public String booleanFilter; + public String description; + public String errorMessage; + public MetadataService.FilterItem[] filterItems; + public String infoMessage; + public Boolean isOptional; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] filterItems_type_info = new String[]{'filterItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] infoMessage_type_info = new String[]{'infoMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isOptional_type_info = new String[]{'isOptional','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'active','booleanFilter','description','errorMessage','filterItems','infoMessage','isOptional'}; + } + public class ScontrolTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class ReportColumn { + public String[] aggregateTypes; + public String field; + public Boolean reverseColors; + public Boolean showChanges; + private String[] aggregateTypes_type_info = new String[]{'aggregateTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] reverseColors_type_info = new String[]{'reverseColors','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showChanges_type_info = new String[]{'showChanges','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'aggregateTypes','field','reverseColors','showChanges'}; + } + public class QuickAction extends Metadata { + public String type = 'QuickAction'; + public String fullName; + public String canvas; + public String description; + public MetadataService.FieldOverride[] fieldOverrides; + public Integer height; + public String icon; + public Boolean isProtected; + public String label; + public String page_x; + public MetadataService.QuickActionLayout quickActionLayout; + public String standardLabel; + public String targetObject; + public String targetParentField; + public String targetRecordType; + public String type_x; + public Integer width; + private String[] canvas_type_info = new String[]{'canvas','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fieldOverrides_type_info = new String[]{'fieldOverrides','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] icon_type_info = new String[]{'icon','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isProtected_type_info = new String[]{'isProtected','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] quickActionLayout_type_info = new String[]{'quickActionLayout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] standardLabel_type_info = new String[]{'standardLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] targetObject_type_info = new String[]{'targetObject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] targetParentField_type_info = new String[]{'targetParentField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] targetRecordType_type_info = new String[]{'targetRecordType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'canvas','description','fieldOverrides','height','icon','isProtected','label','page_x','quickActionLayout','standardLabel','targetObject','targetParentField','targetRecordType','type_x','width'}; + } + public class DefaultShortcut { + public String action; + public Boolean active; + public String keyCommand; + private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] keyCommand_type_info = new String[]{'keyCommand','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'action','active','keyCommand'}; + } + public class ApexComponent extends MetadataWithContent { + public String type = 'ApexComponent'; + public String fullName; + public String content; + public Double apiVersion; + public String description; + public String label; + public MetadataService.PackageVersion[] packageVersions; + private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','description','label','packageVersions'}; + } + public class updateMetadataResponse_element { + public MetadataService.SaveResult[] result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class BaseSharingRule extends Metadata { + public String type = 'BaseSharingRule'; + public String fullName; + public MetadataService.SharedTo sharedTo; + private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'sharedTo'}; + } + public class WorkflowKnowledgePublish extends WorkflowAction { + public String type = 'WorkflowKnowledgePublish'; + public String fullName; + public String action; + public String description; + public String label; + public String language; + public Boolean protected_x; + private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'action','description','label','language','protected_x'}; + } + public class FlexiPage extends Metadata { + public String type = 'FlexiPage'; + public String fullName; + public String description; + public MetadataService.FlexiPageRegion[] flexiPageRegions; + public String masterLabel; + public MetadataService.QuickActionList quickActionList; + public String type_x; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] flexiPageRegions_type_info = new String[]{'flexiPageRegions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] quickActionList_type_info = new String[]{'quickActionList','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','flexiPageRegions','masterLabel','quickActionList','type_x'}; + } + public class ConnectedAppSamlConfig { + public String acsUrl; + public String certificate; + public String encryptionCertificate; + public String encryptionType; + public String entityUrl; + public String issuer; + public String samlNameIdFormat; + public String samlSubjectCustomAttr; + public String samlSubjectType; + private String[] acsUrl_type_info = new String[]{'acsUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] certificate_type_info = new String[]{'certificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] encryptionCertificate_type_info = new String[]{'encryptionCertificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] encryptionType_type_info = new String[]{'encryptionType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] entityUrl_type_info = new String[]{'entityUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] issuer_type_info = new String[]{'issuer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] samlNameIdFormat_type_info = new String[]{'samlNameIdFormat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] samlSubjectCustomAttr_type_info = new String[]{'samlSubjectCustomAttr','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] samlSubjectType_type_info = new String[]{'samlSubjectType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'acsUrl','certificate','encryptionCertificate','encryptionType','entityUrl','issuer','samlNameIdFormat','samlSubjectCustomAttr','samlSubjectType'}; + } + public class FlowWait { + public MetadataService.FlowConnector defaultConnector; + public String defaultConnectorLabel; + public MetadataService.FlowConnector faultConnector; + public MetadataService.FlowWaitEvent[] waitEvents; + private String[] defaultConnector_type_info = new String[]{'defaultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultConnectorLabel_type_info = new String[]{'defaultConnectorLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] waitEvents_type_info = new String[]{'waitEvents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'defaultConnector','defaultConnectorLabel','faultConnector','waitEvents'}; + } + public class createMetadata_element { + public MetadataService.Metadata[] metadata; + private String[] metadata_type_info = new String[]{'metadata','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'metadata'}; + } + public class Workflow extends Metadata { + public String type = 'Workflow'; + public String fullName; + public MetadataService.WorkflowAlert[] alerts; + public MetadataService.WorkflowFieldUpdate[] fieldUpdates; + public MetadataService.WorkflowFlowAction[] flowActions; + public MetadataService.WorkflowKnowledgePublish[] knowledgePublishes; + public MetadataService.WorkflowOutboundMessage[] outboundMessages; + public MetadataService.WorkflowRule[] rules; + public MetadataService.WorkflowSend[] send; + public MetadataService.WorkflowTask[] tasks; + private String[] alerts_type_info = new String[]{'alerts','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fieldUpdates_type_info = new String[]{'fieldUpdates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] flowActions_type_info = new String[]{'flowActions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] knowledgePublishes_type_info = new String[]{'knowledgePublishes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] outboundMessages_type_info = new String[]{'outboundMessages','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] rules_type_info = new String[]{'rules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] send_type_info = new String[]{'send','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] tasks_type_info = new String[]{'tasks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'alerts','fieldUpdates','flowActions','knowledgePublishes','outboundMessages','rules','send','tasks'}; + } + public class AddressSettings extends Metadata { + public String type = 'AddressSettings'; + public String fullName; + public MetadataService.CountriesAndStates countriesAndStates; + private String[] countriesAndStates_type_info = new String[]{'countriesAndStates','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'countriesAndStates'}; + } + public class FlowChoice { + public String choiceText; + public String dataType; + public MetadataService.FlowChoiceUserInput userInput; + public MetadataService.FlowElementReferenceOrValue value; + private String[] choiceText_type_info = new String[]{'choiceText','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] userInput_type_info = new String[]{'userInput','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'choiceText','dataType','userInput','value'}; + } + public class ProfileExternalDataSourceAccess { + public Boolean enabled; + public String externalDataSource; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] externalDataSource_type_info = new String[]{'externalDataSource','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enabled','externalDataSource'}; + } + public class FeedLayoutComponent { + public String componentType; + public Integer height; + public String page_x; + private String[] componentType_type_info = new String[]{'componentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'componentType','height','page_x'}; + } + public class Territory2Settings extends Metadata { + public String type = 'Territory2Settings'; + public String fullName; + public String defaultAccountAccessLevel; + public String defaultCaseAccessLevel; + public String defaultContactAccessLevel; + public String defaultOpportunityAccessLevel; + private String[] defaultAccountAccessLevel_type_info = new String[]{'defaultAccountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultCaseAccessLevel_type_info = new String[]{'defaultCaseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultContactAccessLevel_type_info = new String[]{'defaultContactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultOpportunityAccessLevel_type_info = new String[]{'defaultOpportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'defaultAccountAccessLevel','defaultCaseAccessLevel','defaultContactAccessLevel','defaultOpportunityAccessLevel'}; + } + public class CallCenterItem { + public String label; + public String name; + public String value; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name','value'}; + } + public class ApprovalAction { + public MetadataService.WorkflowActionReference[] action; + private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'action'}; + } + public class FlowStep { + public MetadataService.FlowConnector[] connectors; + private String[] connectors_type_info = new String[]{'connectors','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'connectors'}; + } + public class ProfileObjectPermissions { + public Boolean allowCreate; + public Boolean allowDelete; + public Boolean allowEdit; + public Boolean allowRead; + public Boolean modifyAllRecords; + public String object_x; + public Boolean viewAllRecords; + private String[] allowCreate_type_info = new String[]{'allowCreate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] allowDelete_type_info = new String[]{'allowDelete','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] allowEdit_type_info = new String[]{'allowEdit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] allowRead_type_info = new String[]{'allowRead','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] modifyAllRecords_type_info = new String[]{'modifyAllRecords','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] viewAllRecords_type_info = new String[]{'viewAllRecords','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'allowCreate','allowDelete','allowEdit','allowRead','modifyAllRecords','object_x','viewAllRecords'}; + } + public class SecuritySettings extends Metadata { + public String type = 'SecuritySettings'; + public String fullName; + public MetadataService.NetworkAccess networkAccess; + public MetadataService.PasswordPolicies passwordPolicies; + public MetadataService.SessionSettings sessionSettings; + private String[] networkAccess_type_info = new String[]{'networkAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] passwordPolicies_type_info = new String[]{'passwordPolicies','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sessionSettings_type_info = new String[]{'sessionSettings','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'networkAccess','passwordPolicies','sessionSettings'}; + } + public class WorkflowTimeTrigger { + public MetadataService.WorkflowActionReference[] actions; + public String offsetFromField; + public String timeLength; + public String workflowTimeTriggerUnit; + private String[] actions_type_info = new String[]{'actions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] offsetFromField_type_info = new String[]{'offsetFromField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] timeLength_type_info = new String[]{'timeLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] workflowTimeTriggerUnit_type_info = new String[]{'workflowTimeTriggerUnit','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'actions','offsetFromField','timeLength','workflowTimeTriggerUnit'}; + } + public class retrieve_element { + public MetadataService.RetrieveRequest retrieveRequest; + private String[] retrieveRequest_type_info = new String[]{'retrieveRequest','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'retrieveRequest'}; + } + public class KnowledgeLanguage { + public Boolean active; + public String defaultAssignee; + public String defaultAssigneeType; + public String defaultReviewer; + public String defaultReviewerType; + public String name; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultAssignee_type_info = new String[]{'defaultAssignee','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultAssigneeType_type_info = new String[]{'defaultAssigneeType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultReviewer_type_info = new String[]{'defaultReviewer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultReviewerType_type_info = new String[]{'defaultReviewerType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'active','defaultAssignee','defaultAssigneeType','defaultReviewer','defaultReviewerType','name'}; + } + public class PermissionSetExternalDataSourceAccess { + public Boolean enabled; + public String externalDataSource; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] externalDataSource_type_info = new String[]{'externalDataSource','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enabled','externalDataSource'}; + } + public class DescribeMetadataObject { + public String[] childXmlNames; + public String directoryName; + public Boolean inFolder; + public Boolean metaFile; + public String suffix; + public String xmlName; + private String[] childXmlNames_type_info = new String[]{'childXmlNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] directoryName_type_info = new String[]{'directoryName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] inFolder_type_info = new String[]{'inFolder','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] metaFile_type_info = new String[]{'metaFile','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] suffix_type_info = new String[]{'suffix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] xmlName_type_info = new String[]{'xmlName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'childXmlNames','directoryName','inFolder','metaFile','suffix','xmlName'}; + } + public class LiveChatButtonSkills { + public String[] skill; + private String[] skill_type_info = new String[]{'skill','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'skill'}; + } + public class LayoutColumn { + public MetadataService.LayoutItem[] layoutItems; + public String reserved; + private String[] layoutItems_type_info = new String[]{'layoutItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] reserved_type_info = new String[]{'reserved','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'layoutItems','reserved'}; + } + public class PermissionSetTabSetting { + public String tab; + public String visibility; + private String[] tab_type_info = new String[]{'tab','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visibility_type_info = new String[]{'visibility','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'tab','visibility'}; + } + public class SkillUserAssignments { + public String[] user_x; + private String[] user_x_type_info = new String[]{'user','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'user_x'}; + } + public class PostTemplate extends Metadata { + public String type = 'PostTemplate'; + public String fullName; + public Boolean default_x; + public String description; + public String[] fields; + public String label; + private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'default_x','description','fields','label'}; + } + public class RelatedContentItem { + public MetadataService.LayoutItem layoutItem; + private String[] layoutItem_type_info = new String[]{'layoutItem','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'layoutItem'}; + } + public class FieldValue { + public String name; + public String value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class AuthProvider extends Metadata { + public String type = 'AuthProvider'; + public String fullName; + public String authorizeUrl; + public String consumerKey; + public String consumerSecret; + public String defaultScopes; + public String errorUrl; + public String executionUser; + public String friendlyName; + public String iconUrl; + public String idTokenIssuer; + public Boolean includeOrgIdInIdentifier; + public String portal; + public String providerType; + public String registrationHandler; + public Boolean sendAccessTokenInHeader; + public Boolean sendClientCredentialsInHeader; + public String tokenUrl; + public String userInfoUrl; + private String[] authorizeUrl_type_info = new String[]{'authorizeUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] consumerKey_type_info = new String[]{'consumerKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] consumerSecret_type_info = new String[]{'consumerSecret','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] defaultScopes_type_info = new String[]{'defaultScopes','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] errorUrl_type_info = new String[]{'errorUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] executionUser_type_info = new String[]{'executionUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] friendlyName_type_info = new String[]{'friendlyName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] iconUrl_type_info = new String[]{'iconUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] idTokenIssuer_type_info = new String[]{'idTokenIssuer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] includeOrgIdInIdentifier_type_info = new String[]{'includeOrgIdInIdentifier','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] portal_type_info = new String[]{'portal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] providerType_type_info = new String[]{'providerType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] registrationHandler_type_info = new String[]{'registrationHandler','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sendAccessTokenInHeader_type_info = new String[]{'sendAccessTokenInHeader','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sendClientCredentialsInHeader_type_info = new String[]{'sendClientCredentialsInHeader','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] tokenUrl_type_info = new String[]{'tokenUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] userInfoUrl_type_info = new String[]{'userInfoUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'authorizeUrl','consumerKey','consumerSecret','defaultScopes','errorUrl','executionUser','friendlyName','iconUrl','idTokenIssuer','includeOrgIdInIdentifier','portal','providerType','registrationHandler','sendAccessTokenInHeader','sendClientCredentialsInHeader','tokenUrl','userInfoUrl'}; + } + public class ReputationLevel { + public MetadataService.ReputationBranding branding; + public String label; + public Double lowerThreshold; + private String[] branding_type_info = new String[]{'branding','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lowerThreshold_type_info = new String[]{'lowerThreshold','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'branding','label','lowerThreshold'}; + } + public class WorkflowTask extends WorkflowAction { + public String type = 'WorkflowTask'; + public String fullName; + public String assignedTo; + public String assignedToType; + public String description; + public Integer dueDateOffset; + public Boolean notifyAssignee; + public String offsetFromField; + public String priority; + public Boolean protected_x; + public String status; + public String subject; + private String[] assignedTo_type_info = new String[]{'assignedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assignedToType_type_info = new String[]{'assignedToType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] dueDateOffset_type_info = new String[]{'dueDateOffset','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] notifyAssignee_type_info = new String[]{'notifyAssignee','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] offsetFromField_type_info = new String[]{'offsetFromField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] priority_type_info = new String[]{'priority','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] subject_type_info = new String[]{'subject','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'assignedTo','assignedToType','description','dueDateOffset','notifyAssignee','offsetFromField','priority','protected_x','status','subject'}; + } + public class NextAutomatedApprover { + public Boolean useApproverFieldOfRecordOwner; + public String userHierarchyField; + private String[] useApproverFieldOfRecordOwner_type_info = new String[]{'useApproverFieldOfRecordOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] userHierarchyField_type_info = new String[]{'userHierarchyField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'useApproverFieldOfRecordOwner','userHierarchyField'}; + } + public class ChannelLayout { + public String[] enabledChannels; + public String label; + public MetadataService.ChannelLayoutItem[] layoutItems; + private String[] enabledChannels_type_info = new String[]{'enabledChannels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] layoutItems_type_info = new String[]{'layoutItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enabledChannels','label','layoutItems'}; + } + public class readMetadata_element { + public String type_x; + public String[] fullNames; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fullNames_type_info = new String[]{'fullNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'type_x','fullNames'}; + } + public class ReportAggregateReference { + public String aggregate; + private String[] aggregate_type_info = new String[]{'aggregate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'aggregate'}; + } + public interface IReadResult { + MetadataService.Metadata[] getRecords(); + } + public interface IReadResponseElement { + IReadResult getResult(); + } + public class ReadWorkflowRuleResult implements IReadResult { + public MetadataService.WorkflowRule[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowRuleResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowRuleResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadSamlSsoConfigResult implements IReadResult { + public MetadataService.SamlSsoConfig[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readSamlSsoConfigResponse_element implements IReadResponseElement { + public MetadataService.ReadSamlSsoConfigResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomLabelResult implements IReadResult { + public MetadataService.CustomLabel[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomLabelResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomLabelResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadBusinessHoursEntryResult implements IReadResult { + public MetadataService.BusinessHoursEntry[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readBusinessHoursEntryResponse_element implements IReadResponseElement { + public MetadataService.ReadBusinessHoursEntryResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadMobileSettingsResult implements IReadResult { + public MetadataService.MobileSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readMobileSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadMobileSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadChatterAnswersSettingsResult implements IReadResult { + public MetadataService.ChatterAnswersSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readChatterAnswersSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadChatterAnswersSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadSharingRulesResult implements IReadResult { + public MetadataService.SharingRules[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readSharingRulesResponse_element implements IReadResponseElement { + public MetadataService.ReadSharingRulesResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadPortalResult implements IReadResult { + public MetadataService.Portal[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readPortalResponse_element implements IReadResponseElement { + public MetadataService.ReadPortalResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadSkillResult implements IReadResult { + public MetadataService.Skill[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readSkillResponse_element implements IReadResponseElement { + public MetadataService.ReadSkillResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadEscalationRulesResult implements IReadResult { + public MetadataService.EscalationRules[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readEscalationRulesResponse_element implements IReadResponseElement { + public MetadataService.ReadEscalationRulesResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWorkflowAlertResult implements IReadResult { + public MetadataService.WorkflowAlert[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowAlertResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowAlertResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomDataTypeResult implements IReadResult { + public MetadataService.CustomDataType[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomDataTypeResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomDataTypeResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadExternalDataSourceResult implements IReadResult { + public MetadataService.ExternalDataSource[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readExternalDataSourceResponse_element implements IReadResponseElement { + public MetadataService.ReadExternalDataSourceResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadXOrgHubResult implements IReadResult { + public MetadataService.XOrgHub[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readXOrgHubResponse_element implements IReadResponseElement { + public MetadataService.ReadXOrgHubResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadEntitlementProcessResult implements IReadResult { + public MetadataService.EntitlementProcess[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readEntitlementProcessResponse_element implements IReadResponseElement { + public MetadataService.ReadEntitlementProcessResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadRecordTypeResult implements IReadResult { + public MetadataService.RecordType[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readRecordTypeResponse_element implements IReadResponseElement { + public MetadataService.ReadRecordTypeResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadScontrolResult implements IReadResult { + public MetadataService.Scontrol[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readScontrolResponse_element implements IReadResponseElement { + public MetadataService.ReadScontrolResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadDataCategoryGroupResult implements IReadResult { + public MetadataService.DataCategoryGroup[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readDataCategoryGroupResponse_element implements IReadResponseElement { + public MetadataService.ReadDataCategoryGroupResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadValidationRuleResult implements IReadResult { + public MetadataService.ValidationRule[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readValidationRuleResponse_element implements IReadResponseElement { + public MetadataService.ReadValidationRuleResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAuraDefinitionBundleResult implements IReadResult { + public MetadataService.AuraDefinitionBundle[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAuraDefinitionBundleResponse_element implements IReadResponseElement { + public MetadataService.ReadAuraDefinitionBundleResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadProfileResult implements IReadResult { + public MetadataService.Profile[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readProfileResponse_element implements IReadResponseElement { + public MetadataService.ReadProfileResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadIdeasSettingsResult implements IReadResult { + public MetadataService.IdeasSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readIdeasSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadIdeasSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadConnectedAppResult implements IReadResult { + public MetadataService.ConnectedApp[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readConnectedAppResponse_element implements IReadResponseElement { + public MetadataService.ReadConnectedAppResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadApexPageResult implements IReadResult { + public MetadataService.ApexPage[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readApexPageResponse_element implements IReadResponseElement { + public MetadataService.ReadApexPageResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadLiveAgentSettingsResult implements IReadResult { + public MetadataService.LiveAgentSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readLiveAgentSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadLiveAgentSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadProductSettingsResult implements IReadResult { + public MetadataService.ProductSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readProductSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadProductSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadOpportunitySettingsResult implements IReadResult { + public MetadataService.OpportunitySettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readOpportunitySettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadOpportunitySettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadLiveChatDeploymentResult implements IReadResult { + public MetadataService.LiveChatDeployment[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readLiveChatDeploymentResponse_element implements IReadResponseElement { + public MetadataService.ReadLiveChatDeploymentResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadActivitiesSettingsResult implements IReadResult { + public MetadataService.ActivitiesSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readActivitiesSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadActivitiesSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadLayoutResult implements IReadResult { + public MetadataService.Layout[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readLayoutResponse_element implements IReadResponseElement { + public MetadataService.ReadLayoutResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWebLinkResult implements IReadResult { + public MetadataService.WebLink[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWebLinkResponse_element implements IReadResponseElement { + public MetadataService.ReadWebLinkResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomPermissionResult implements IReadResult { + public MetadataService.CustomPermission[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomPermissionResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomPermissionResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadSiteDotComResult implements IReadResult { + public MetadataService.SiteDotCom[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readSiteDotComResponse_element implements IReadResponseElement { + public MetadataService.ReadSiteDotComResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCompanySettingsResult implements IReadResult { + public MetadataService.CompanySettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCompanySettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadCompanySettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadHomePageLayoutResult implements IReadResult { + public MetadataService.HomePageLayout[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readHomePageLayoutResponse_element implements IReadResponseElement { + public MetadataService.ReadHomePageLayoutResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadDashboardResult implements IReadResult { + public MetadataService.Dashboard[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readDashboardResponse_element implements IReadResponseElement { + public MetadataService.ReadDashboardResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAssignmentRulesResult implements IReadResult { + public MetadataService.AssignmentRules[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAssignmentRulesResponse_element implements IReadResponseElement { + public MetadataService.ReadAssignmentRulesResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadEmailFolderResult implements IReadResult { + public MetadataService.EmailFolder[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readEmailFolderResponse_element implements IReadResponseElement { + public MetadataService.ReadEmailFolderResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomMetadataResult implements IReadResult { + public MetadataService.CustomMetadata[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomMetadataResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomMetadataResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAnalyticSnapshotResult implements IReadResult { + public MetadataService.AnalyticSnapshot[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAnalyticSnapshotResponse_element implements IReadResponseElement { + public MetadataService.ReadAnalyticSnapshotResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadVisualizationPluginResult implements IReadResult { + public MetadataService.VisualizationPlugin[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readVisualizationPluginResponse_element implements IReadResponseElement { + public MetadataService.ReadVisualizationPluginResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadEscalationRuleResult implements IReadResult { + public MetadataService.EscalationRule[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readEscalationRuleResponse_element implements IReadResponseElement { + public MetadataService.ReadEscalationRuleResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomSiteResult implements IReadResult { + public MetadataService.CustomSite[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomSiteResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomSiteResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadMarketingActionSettingsResult implements IReadResult { + public MetadataService.MarketingActionSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readMarketingActionSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadMarketingActionSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadGroupResult implements IReadResult { + public MetadataService.Group_x[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readGroupResponse_element implements IReadResponseElement { + public MetadataService.ReadGroupResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadReportTypeResult implements IReadResult { + public MetadataService.ReportType[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readReportTypeResponse_element implements IReadResponseElement { + public MetadataService.ReadReportTypeResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadQuickActionResult implements IReadResult { + public MetadataService.QuickAction[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readQuickActionResponse_element implements IReadResponseElement { + public MetadataService.ReadQuickActionResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomPageWebLinkResult implements IReadResult { + public MetadataService.CustomPageWebLink[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomPageWebLinkResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomPageWebLinkResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadApexComponentResult implements IReadResult { + public MetadataService.ApexComponent[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readApexComponentResponse_element implements IReadResponseElement { + public MetadataService.ReadApexComponentResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadBaseSharingRuleResult implements IReadResult { + public MetadataService.BaseSharingRule[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readBaseSharingRuleResponse_element implements IReadResponseElement { + public MetadataService.ReadBaseSharingRuleResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWorkflowKnowledgePublishResult implements IReadResult { + public MetadataService.WorkflowKnowledgePublish[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowKnowledgePublishResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowKnowledgePublishResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadEntitlementTemplateResult implements IReadResult { + public MetadataService.EntitlementTemplate[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readEntitlementTemplateResponse_element implements IReadResponseElement { + public MetadataService.ReadEntitlementTemplateResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadFlexiPageResult implements IReadResult { + public MetadataService.FlexiPage[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readFlexiPageResponse_element implements IReadResponseElement { + public MetadataService.ReadFlexiPageResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWorkflowActionResult implements IReadResult { + public MetadataService.WorkflowAction[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowActionResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowActionResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWorkflowResult implements IReadResult { + public MetadataService.Workflow[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAddressSettingsResult implements IReadResult { + public MetadataService.AddressSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAddressSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadAddressSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadContractSettingsResult implements IReadResult { + public MetadataService.ContractSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readContractSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadContractSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadDashboardFolderResult implements IReadResult { + public MetadataService.DashboardFolder[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readDashboardFolderResponse_element implements IReadResponseElement { + public MetadataService.ReadDashboardFolderResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadTerritory2SettingsResult implements IReadResult { + public MetadataService.Territory2Settings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readTerritory2SettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadTerritory2SettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomObjectResult implements IReadResult { + public MetadataService.CustomObject[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomObjectResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomObjectResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadTranslationsResult implements IReadResult { + public MetadataService.Translations[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readTranslationsResponse_element implements IReadResponseElement { + public MetadataService.ReadTranslationsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadRoleOrTerritoryResult implements IReadResult { + public MetadataService.RoleOrTerritory[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readRoleOrTerritoryResponse_element implements IReadResponseElement { + public MetadataService.ReadRoleOrTerritoryResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadApexTriggerResult implements IReadResult { + public MetadataService.ApexTrigger[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readApexTriggerResponse_element implements IReadResponseElement { + public MetadataService.ReadApexTriggerResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomLabelsResult implements IReadResult { + public MetadataService.CustomLabels[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomLabelsResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomLabelsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadSecuritySettingsResult implements IReadResult { + public MetadataService.SecuritySettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readSecuritySettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadSecuritySettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCallCenterResult implements IReadResult { + public MetadataService.CallCenter[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCallCenterResponse_element implements IReadResponseElement { + public MetadataService.ReadCallCenterResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadPicklistValueResult implements IReadResult { + public MetadataService.PicklistValue[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readPicklistValueResponse_element implements IReadResponseElement { + public MetadataService.ReadPicklistValueResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadRemoteSiteSettingResult implements IReadResult { + public MetadataService.RemoteSiteSetting[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readRemoteSiteSettingResponse_element implements IReadResponseElement { + public MetadataService.ReadRemoteSiteSettingResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWorkflowSendResult implements IReadResult { + public MetadataService.WorkflowSend[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowSendResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowSendResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadTerritory2TypeResult implements IReadResult { + public MetadataService.Territory2Type[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readTerritory2TypeResponse_element implements IReadResponseElement { + public MetadataService.ReadTerritory2TypeResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadQuoteSettingsResult implements IReadResult { + public MetadataService.QuoteSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readQuoteSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadQuoteSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadSynonymDictionaryResult implements IReadResult { + public MetadataService.SynonymDictionary[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readSynonymDictionaryResponse_element implements IReadResponseElement { + public MetadataService.ReadSynonymDictionaryResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWorkflowOutboundMessageResult implements IReadResult { + public MetadataService.WorkflowOutboundMessage[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowOutboundMessageResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowOutboundMessageResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadPostTemplateResult implements IReadResult { + public MetadataService.PostTemplate[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readPostTemplateResponse_element implements IReadResponseElement { + public MetadataService.ReadPostTemplateResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWorkflowFieldUpdateResult implements IReadResult { + public MetadataService.WorkflowFieldUpdate[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowFieldUpdateResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowFieldUpdateResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomTabResult implements IReadResult { + public MetadataService.CustomTab[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomTabResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomTabResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadLetterheadResult implements IReadResult { + public MetadataService.Letterhead[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readLetterheadResponse_element implements IReadResponseElement { + public MetadataService.ReadLetterheadResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadInstalledPackageResult implements IReadResult { + public MetadataService.InstalledPackage[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readInstalledPackageResponse_element implements IReadResponseElement { + public MetadataService.ReadInstalledPackageResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadQueueResult implements IReadResult { + public MetadataService.Queue[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readQueueResponse_element implements IReadResponseElement { + public MetadataService.ReadQueueResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAuthProviderResult implements IReadResult { + public MetadataService.AuthProvider[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAuthProviderResponse_element implements IReadResponseElement { + public MetadataService.ReadAuthProviderResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadEntitlementSettingsResult implements IReadResult { + public MetadataService.EntitlementSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readEntitlementSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadEntitlementSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadDocumentFolderResult implements IReadResult { + public MetadataService.DocumentFolder[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readDocumentFolderResponse_element implements IReadResponseElement { + public MetadataService.ReadDocumentFolderResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomFieldResult implements IReadResult { + public MetadataService.CustomField[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomFieldResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomFieldResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadWorkflowTaskResult implements IReadResult { + public MetadataService.WorkflowTask[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readWorkflowTaskResponse_element implements IReadResponseElement { + public MetadataService.ReadWorkflowTaskResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCorsWhitelistOriginResult implements IReadResult { + public MetadataService.CorsWhitelistOrigin[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCorsWhitelistOriginResponse_element implements IReadResponseElement { + public MetadataService.ReadCorsWhitelistOriginResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadStaticResourceResult implements IReadResult { + public MetadataService.StaticResource[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readStaticResourceResponse_element implements IReadResponseElement { + public MetadataService.ReadStaticResourceResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadEmailTemplateResult implements IReadResult { + public MetadataService.EmailTemplate[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readEmailTemplateResponse_element implements IReadResponseElement { + public MetadataService.ReadEmailTemplateResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadSharingReasonResult implements IReadResult { + public MetadataService.SharingReason[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readSharingReasonResponse_element implements IReadResponseElement { + public MetadataService.ReadSharingReasonResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadLiveChatButtonResult implements IReadResult { + public MetadataService.LiveChatButton[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readLiveChatButtonResponse_element implements IReadResponseElement { + public MetadataService.ReadLiveChatButtonResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadNetworkResult implements IReadResult { + public MetadataService.Network[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readNetworkResponse_element implements IReadResponseElement { + public MetadataService.ReadNetworkResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadApprovalProcessResult implements IReadResult { + public MetadataService.ApprovalProcess[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readApprovalProcessResponse_element implements IReadResponseElement { + public MetadataService.ReadApprovalProcessResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadMilestoneTypeResult implements IReadResult { + public MetadataService.MilestoneType[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readMilestoneTypeResponse_element implements IReadResponseElement { + public MetadataService.ReadMilestoneTypeResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAssignmentRuleResult implements IReadResult { + public MetadataService.AssignmentRule[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAssignmentRuleResponse_element implements IReadResponseElement { + public MetadataService.ReadAssignmentRuleResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCompactLayoutResult implements IReadResult { + public MetadataService.CompactLayout[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCompactLayoutResponse_element implements IReadResponseElement { + public MetadataService.ReadCompactLayoutResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadLiveChatAgentConfigResult implements IReadResult { + public MetadataService.LiveChatAgentConfig[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readLiveChatAgentConfigResponse_element implements IReadResponseElement { + public MetadataService.ReadLiveChatAgentConfigResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAccountSettingsResult implements IReadResult { + public MetadataService.AccountSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAccountSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadAccountSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadBusinessProcessResult implements IReadResult { + public MetadataService.BusinessProcess[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readBusinessProcessResponse_element implements IReadResponseElement { + public MetadataService.ReadBusinessProcessResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAutoResponseRuleResult implements IReadResult { + public MetadataService.AutoResponseRule[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAutoResponseRuleResponse_element implements IReadResponseElement { + public MetadataService.ReadAutoResponseRuleResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadFlowResult implements IReadResult { + public MetadataService.Flow[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readFlowResponse_element implements IReadResponseElement { + public MetadataService.ReadFlowResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadPermissionSetResult implements IReadResult { + public MetadataService.PermissionSet[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readPermissionSetResponse_element implements IReadResponseElement { + public MetadataService.ReadPermissionSetResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadManagedTopicsResult implements IReadResult { + public MetadataService.ManagedTopics[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readManagedTopicsResponse_element implements IReadResponseElement { + public MetadataService.ReadManagedTopicsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadForecastingSettingsResult implements IReadResult { + public MetadataService.ForecastingSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readForecastingSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadForecastingSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadBusinessHoursSettingsResult implements IReadResult { + public MetadataService.BusinessHoursSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readBusinessHoursSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadBusinessHoursSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadReportResult implements IReadResult { + public MetadataService.Report[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readReportResponse_element implements IReadResponseElement { + public MetadataService.ReadReportResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAppMenuResult implements IReadResult { + public MetadataService.AppMenu[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAppMenuResponse_element implements IReadResponseElement { + public MetadataService.ReadAppMenuResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadListViewResult implements IReadResult { + public MetadataService.ListView[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readListViewResponse_element implements IReadResponseElement { + public MetadataService.ReadListViewResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadOrderSettingsResult implements IReadResult { + public MetadataService.OrderSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readOrderSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadOrderSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomObjectTranslationResult implements IReadResult { + public MetadataService.CustomObjectTranslation[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomObjectTranslationResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomObjectTranslationResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadKnowledgeSettingsResult implements IReadResult { + public MetadataService.KnowledgeSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readKnowledgeSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadKnowledgeSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomApplicationResult implements IReadResult { + public MetadataService.CustomApplication[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomApplicationResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomApplicationResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCaseSettingsResult implements IReadResult { + public MetadataService.CaseSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCaseSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadCaseSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadNameSettingsResult implements IReadResult { + public MetadataService.NameSettings[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readNameSettingsResponse_element implements IReadResponseElement { + public MetadataService.ReadNameSettingsResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadApexClassResult implements IReadResult { + public MetadataService.ApexClass[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readApexClassResponse_element implements IReadResponseElement { + public MetadataService.ReadApexClassResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadPackageResult implements IReadResult { + public MetadataService.Package_x[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readPackageResponse_element implements IReadResponseElement { + public MetadataService.ReadPackageResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadTerritory2Result implements IReadResult { + public MetadataService.Territory2[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readTerritory2Response_element implements IReadResponseElement { + public MetadataService.ReadTerritory2Result result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCommunityResult implements IReadResult { + public MetadataService.Community[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCommunityResponse_element implements IReadResponseElement { + public MetadataService.ReadCommunityResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadDocumentResult implements IReadResult { + public MetadataService.Document[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readDocumentResponse_element implements IReadResponseElement { + public MetadataService.ReadDocumentResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadAutoResponseRulesResult implements IReadResult { + public MetadataService.AutoResponseRules[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readAutoResponseRulesResponse_element implements IReadResponseElement { + public MetadataService.ReadAutoResponseRulesResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadFolderResult implements IReadResult { + public MetadataService.Folder[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readFolderResponse_element implements IReadResponseElement { + public MetadataService.ReadFolderResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadTerritory2ModelResult implements IReadResult { + public MetadataService.Territory2Model[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readTerritory2ModelResponse_element implements IReadResponseElement { + public MetadataService.ReadTerritory2ModelResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadReportFolderResult implements IReadResult { + public MetadataService.ReportFolder[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readReportFolderResponse_element implements IReadResponseElement { + public MetadataService.ReadReportFolderResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadCustomApplicationComponentResult implements IReadResult { + public MetadataService.CustomApplicationComponent[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readCustomApplicationComponentResponse_element implements IReadResponseElement { + public MetadataService.ReadCustomApplicationComponentResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadFieldSetResult implements IReadResult { + public MetadataService.FieldSet[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readFieldSetResponse_element implements IReadResponseElement { + public MetadataService.ReadFieldSetResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadSharingSetResult implements IReadResult { + public MetadataService.SharingSet[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readSharingSetResponse_element implements IReadResponseElement { + public MetadataService.ReadSharingSetResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadHomePageComponentResult implements IReadResult { + public MetadataService.HomePageComponent[] records; + public MetadataService.Metadata[] getRecords() { return records; } + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class readHomePageComponentResponse_element implements IReadResponseElement { + public MetadataService.ReadHomePageComponentResult result; + public IReadResult getResult() { return result; } + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReadResult { + public MetadataService.Metadata[] records; + private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'records'}; + } + public class ApprovalProcess extends Metadata { + public String type = 'ApprovalProcess'; + public String fullName; + public Boolean active; + public Boolean allowRecall; + public MetadataService.ApprovalSubmitter[] allowedSubmitters; + public MetadataService.ApprovalPageField approvalPageFields; + public MetadataService.ApprovalStep[] approvalStep; + public String description; + public String emailTemplate; + public Boolean enableMobileDeviceAccess; + public MetadataService.ApprovalEntryCriteria entryCriteria; + public MetadataService.ApprovalAction finalApprovalActions; + public Boolean finalApprovalRecordLock; + public MetadataService.ApprovalAction finalRejectionActions; + public Boolean finalRejectionRecordLock; + public MetadataService.ApprovalAction initialSubmissionActions; + public String label; + public MetadataService.NextAutomatedApprover nextAutomatedApprover; + public String postTemplate; + public MetadataService.ApprovalAction recallActions; + public String recordEditability; + public Boolean showApprovalHistory; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] allowRecall_type_info = new String[]{'allowRecall','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] allowedSubmitters_type_info = new String[]{'allowedSubmitters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] approvalPageFields_type_info = new String[]{'approvalPageFields','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] approvalStep_type_info = new String[]{'approvalStep','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailTemplate_type_info = new String[]{'emailTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableMobileDeviceAccess_type_info = new String[]{'enableMobileDeviceAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] entryCriteria_type_info = new String[]{'entryCriteria','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] finalApprovalActions_type_info = new String[]{'finalApprovalActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] finalApprovalRecordLock_type_info = new String[]{'finalApprovalRecordLock','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] finalRejectionActions_type_info = new String[]{'finalRejectionActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] finalRejectionRecordLock_type_info = new String[]{'finalRejectionRecordLock','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] initialSubmissionActions_type_info = new String[]{'initialSubmissionActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] nextAutomatedApprover_type_info = new String[]{'nextAutomatedApprover','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] postTemplate_type_info = new String[]{'postTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recallActions_type_info = new String[]{'recallActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recordEditability_type_info = new String[]{'recordEditability','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] showApprovalHistory_type_info = new String[]{'showApprovalHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','allowRecall','allowedSubmitters','approvalPageFields','approvalStep','description','emailTemplate','enableMobileDeviceAccess','entryCriteria','finalApprovalActions','finalApprovalRecordLock','finalRejectionActions','finalRejectionRecordLock','initialSubmissionActions','label','nextAutomatedApprover','postTemplate','recallActions','recordEditability','showApprovalHistory'}; + } + public class MilestoneType extends Metadata { + public String type = 'MilestoneType'; + public String fullName; + public String description; + public String recurrenceType; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recurrenceType_type_info = new String[]{'recurrenceType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'description','recurrenceType'}; + } + public class FileProperties { + public String createdById; + public String createdByName; + public DateTime createdDate; + public String fileName; + public String fullName; + public String id; + public String lastModifiedById; + public String lastModifiedByName; + public DateTime lastModifiedDate; + public String manageableState; + public String namespacePrefix; + public String type_x; + private String[] createdById_type_info = new String[]{'createdById','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] createdByName_type_info = new String[]{'createdByName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] createdDate_type_info = new String[]{'createdDate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fileName_type_info = new String[]{'fileName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] lastModifiedById_type_info = new String[]{'lastModifiedById','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] lastModifiedByName_type_info = new String[]{'lastModifiedByName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] lastModifiedDate_type_info = new String[]{'lastModifiedDate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] manageableState_type_info = new String[]{'manageableState','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] namespacePrefix_type_info = new String[]{'namespacePrefix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'createdById','createdByName','createdDate','fileName','fullName','id','lastModifiedById','lastModifiedByName','lastModifiedDate','manageableState','namespacePrefix','type_x'}; + } + public class UserMembershipSharingRule { + public String description; + public String name; + public String userAccessLevel; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] userAccessLevel_type_info = new String[]{'userAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','name','userAccessLevel'}; + } + public class QuickActionLayout { + public String layoutSectionStyle; + public MetadataService.QuickActionLayoutColumn[] quickActionLayoutColumns; + private String[] layoutSectionStyle_type_info = new String[]{'layoutSectionStyle','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] quickActionLayoutColumns_type_info = new String[]{'quickActionLayoutColumns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'layoutSectionStyle','quickActionLayoutColumns'}; + } + public class Flow extends Metadata { + public String type = 'Flow'; + public String fullName; + public MetadataService.FlowActionCall[] actionCalls; + public MetadataService.FlowApexPluginCall[] apexPluginCalls; + public MetadataService.FlowAssignment[] assignments; + public MetadataService.FlowChoice[] choices; + public MetadataService.FlowConstant[] constants; + public MetadataService.FlowDecision[] decisions; + public String description; + public MetadataService.FlowDynamicChoiceSet[] dynamicChoiceSets; + public MetadataService.FlowFormula[] formulas; + public String label; + public MetadataService.FlowLoop[] loops; + public MetadataService.FlowMetadataValue[] processMetadataValues; + public String processType; + public MetadataService.FlowRecordCreate[] recordCreates; + public MetadataService.FlowRecordDelete[] recordDeletes; + public MetadataService.FlowRecordLookup[] recordLookups; + public MetadataService.FlowRecordUpdate[] recordUpdates; + public MetadataService.FlowScreen[] screens; + public String startElementReference; + public MetadataService.FlowStep[] steps; + public MetadataService.FlowSubflow[] subflows; + public MetadataService.FlowTextTemplate[] textTemplates; + public MetadataService.FlowVariable[] variables; + public MetadataService.FlowWait[] waits; + private String[] actionCalls_type_info = new String[]{'actionCalls','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apexPluginCalls_type_info = new String[]{'apexPluginCalls','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] assignments_type_info = new String[]{'assignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] choices_type_info = new String[]{'choices','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] constants_type_info = new String[]{'constants','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] decisions_type_info = new String[]{'decisions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] dynamicChoiceSets_type_info = new String[]{'dynamicChoiceSets','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] formulas_type_info = new String[]{'formulas','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] loops_type_info = new String[]{'loops','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] processMetadataValues_type_info = new String[]{'processMetadataValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] processType_type_info = new String[]{'processType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recordCreates_type_info = new String[]{'recordCreates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] recordDeletes_type_info = new String[]{'recordDeletes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] recordLookups_type_info = new String[]{'recordLookups','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] recordUpdates_type_info = new String[]{'recordUpdates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] screens_type_info = new String[]{'screens','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] startElementReference_type_info = new String[]{'startElementReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] steps_type_info = new String[]{'steps','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] subflows_type_info = new String[]{'subflows','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] textTemplates_type_info = new String[]{'textTemplates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] variables_type_info = new String[]{'variables','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] waits_type_info = new String[]{'waits','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'actionCalls','apexPluginCalls','assignments','choices','constants','decisions','description','dynamicChoiceSets','formulas','label','loops','processMetadataValues','processType','recordCreates','recordDeletes','recordLookups','recordUpdates','screens','startElementReference','steps','subflows','textTemplates','variables','waits'}; + } + public class AutoResponseRule extends Metadata { + public String type = 'AutoResponseRule'; + public String fullName; + public Boolean active; + public MetadataService.RuleEntry[] ruleEntry; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] ruleEntry_type_info = new String[]{'ruleEntry','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','ruleEntry'}; + } + public class PermissionSetObjectPermissions { + public Boolean allowCreate; + public Boolean allowDelete; + public Boolean allowEdit; + public Boolean allowRead; + public Boolean modifyAllRecords; + public String object_x; + public Boolean viewAllRecords; + private String[] allowCreate_type_info = new String[]{'allowCreate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] allowDelete_type_info = new String[]{'allowDelete','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] allowEdit_type_info = new String[]{'allowEdit','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] allowRead_type_info = new String[]{'allowRead','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] modifyAllRecords_type_info = new String[]{'modifyAllRecords','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] viewAllRecords_type_info = new String[]{'viewAllRecords','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'allowCreate','allowDelete','allowEdit','allowRead','modifyAllRecords','object_x','viewAllRecords'}; + } + public class ReportCrossFilter { + public MetadataService.ReportFilterItem[] criteriaItems; + public String operation; + public String primaryTableColumn; + public String relatedTable; + public String relatedTableJoinColumn; + private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] primaryTableColumn_type_info = new String[]{'primaryTableColumn','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] relatedTable_type_info = new String[]{'relatedTable','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] relatedTableJoinColumn_type_info = new String[]{'relatedTableJoinColumn','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaItems','operation','primaryTableColumn','relatedTable','relatedTableJoinColumn'}; + } + public class BusinessHoursSettings extends Metadata { + public String type = 'BusinessHoursSettings'; + public String fullName; + public MetadataService.BusinessHoursEntry[] businessHours; + public MetadataService.Holiday[] holidays; + private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] holidays_type_info = new String[]{'holidays','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'businessHours','holidays'}; + } + public class FlowWaitEventOutputParameter { + public String assignToReference; + public String name; + private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignToReference','name'}; + } + public class Report extends Metadata { + public String type = 'Report'; + public String fullName; + public MetadataService.ReportAggregate[] aggregates; + public MetadataService.Report[] block; + public MetadataService.ReportBlockInfo blockInfo; + public MetadataService.ReportBucketField[] buckets; + public MetadataService.ReportChart chart; + public MetadataService.ReportColorRange[] colorRanges; + public MetadataService.ReportColumn[] columns; + public MetadataService.ReportCrossFilter[] crossFilters; + public String currency_x; + public MetadataService.ReportDataCategoryFilter[] dataCategoryFilters; + public String description; + public String division; + public MetadataService.ReportFilter filter; + public String format; + public MetadataService.ReportGrouping[] groupingsAcross; + public MetadataService.ReportGrouping[] groupingsDown; + public MetadataService.ReportHistoricalSelector historicalSelector; + public String name; + public MetadataService.ReportParam[] params; + public String reportType; + public String roleHierarchyFilter; + public Integer rowLimit; + public String scope; + public Boolean showCurrentDate; + public Boolean showDetails; + public String sortColumn; + public String sortOrder; + public String territoryHierarchyFilter; + public MetadataService.ReportTimeFrameFilter timeFrameFilter; + public String userFilter; + private String[] aggregates_type_info = new String[]{'aggregates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] block_type_info = new String[]{'block','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] blockInfo_type_info = new String[]{'blockInfo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] buckets_type_info = new String[]{'buckets','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] chart_type_info = new String[]{'chart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] colorRanges_type_info = new String[]{'colorRanges','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] columns_type_info = new String[]{'columns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] crossFilters_type_info = new String[]{'crossFilters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] currency_x_type_info = new String[]{'currency','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] dataCategoryFilters_type_info = new String[]{'dataCategoryFilters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] division_type_info = new String[]{'division','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] filter_type_info = new String[]{'filter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] format_type_info = new String[]{'format','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] groupingsAcross_type_info = new String[]{'groupingsAcross','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] groupingsDown_type_info = new String[]{'groupingsDown','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] historicalSelector_type_info = new String[]{'historicalSelector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] params_type_info = new String[]{'params','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] reportType_type_info = new String[]{'reportType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] roleHierarchyFilter_type_info = new String[]{'roleHierarchyFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] rowLimit_type_info = new String[]{'rowLimit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scope_type_info = new String[]{'scope','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showCurrentDate_type_info = new String[]{'showCurrentDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showDetails_type_info = new String[]{'showDetails','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortColumn_type_info = new String[]{'sortColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] territoryHierarchyFilter_type_info = new String[]{'territoryHierarchyFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] timeFrameFilter_type_info = new String[]{'timeFrameFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] userFilter_type_info = new String[]{'userFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'aggregates','block','blockInfo','buckets','chart','colorRanges','columns','crossFilters','currency_x','dataCategoryFilters','description','division','filter','format','groupingsAcross','groupingsDown','historicalSelector','name','params','reportType','roleHierarchyFilter','rowLimit','scope','showCurrentDate','showDetails','sortColumn','sortOrder','territoryHierarchyFilter','timeFrameFilter','userFilter'}; + } + public class ListView extends Metadata { + public String type = 'ListView'; + public String fullName; + public String booleanFilter; + public String[] columns; + public String division; + public String filterScope; + public MetadataService.ListViewFilter[] filters; + public String label; + public String language; + public String queue; + public MetadataService.SharedTo sharedTo; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] columns_type_info = new String[]{'columns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] division_type_info = new String[]{'division','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] filterScope_type_info = new String[]{'filterScope','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] queue_type_info = new String[]{'queue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'booleanFilter','columns','division','filterScope','filters','label','language','queue','sharedTo'}; + } + public class FlowRecordCreate { + public String assignRecordIdToReference; + public MetadataService.FlowConnector connector; + public MetadataService.FlowConnector faultConnector; + public MetadataService.FlowInputFieldAssignment[] inputAssignments; + public String inputReference; + public String object_x; + private String[] assignRecordIdToReference_type_info = new String[]{'assignRecordIdToReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] inputAssignments_type_info = new String[]{'inputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] inputReference_type_info = new String[]{'inputReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignRecordIdToReference','connector','faultConnector','inputAssignments','inputReference','object_x'}; + } + public class DashboardTableColumn { + public String aggregateType; + public Boolean calculatePercent; + public String column; + public Integer decimalPlaces; + public Boolean showTotal; + public String sortBy; + private String[] aggregateType_type_info = new String[]{'aggregateType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] calculatePercent_type_info = new String[]{'calculatePercent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] decimalPlaces_type_info = new String[]{'decimalPlaces','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showTotal_type_info = new String[]{'showTotal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortBy_type_info = new String[]{'sortBy','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'aggregateType','calculatePercent','column','decimalPlaces','showTotal','sortBy'}; + } + public class CaseSettings extends Metadata { + public String type = 'CaseSettings'; + public String fullName; + public String caseAssignNotificationTemplate; + public String caseCloseNotificationTemplate; + public String caseCommentNotificationTemplate; + public String caseCreateNotificationTemplate; + public MetadataService.FeedItemSettings[] caseFeedItemSettings; + public Boolean closeCaseThroughStatusChange; + public String defaultCaseOwner; + public String defaultCaseOwnerType; + public String defaultCaseUser; + public MetadataService.EmailToCaseSettings emailToCase; + public Boolean enableCaseFeed; + public Boolean enableDraftEmails; + public Boolean enableEarlyEscalationRuleTriggers; + public Boolean enableNewEmailDefaultTemplate; + public Boolean enableSuggestedArticlesApplication; + public Boolean enableSuggestedArticlesCustomerPortal; + public Boolean enableSuggestedArticlesPartnerPortal; + public Boolean enableSuggestedSolutions; + public Boolean keepRecordTypeOnAssignmentRule; + public String newEmailDefaultTemplateClass; + public Boolean notifyContactOnCaseComment; + public Boolean notifyDefaultCaseOwner; + public Boolean notifyOwnerOnCaseComment; + public Boolean notifyOwnerOnCaseOwnerChange; + public Boolean showFewerCloseActions; + public Boolean useSystemEmailAddress; + public MetadataService.WebToCaseSettings webToCase; + private String[] caseAssignNotificationTemplate_type_info = new String[]{'caseAssignNotificationTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseCloseNotificationTemplate_type_info = new String[]{'caseCloseNotificationTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseCommentNotificationTemplate_type_info = new String[]{'caseCommentNotificationTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseCreateNotificationTemplate_type_info = new String[]{'caseCreateNotificationTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseFeedItemSettings_type_info = new String[]{'caseFeedItemSettings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] closeCaseThroughStatusChange_type_info = new String[]{'closeCaseThroughStatusChange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultCaseOwner_type_info = new String[]{'defaultCaseOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultCaseOwnerType_type_info = new String[]{'defaultCaseOwnerType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultCaseUser_type_info = new String[]{'defaultCaseUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailToCase_type_info = new String[]{'emailToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableCaseFeed_type_info = new String[]{'enableCaseFeed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableDraftEmails_type_info = new String[]{'enableDraftEmails','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableEarlyEscalationRuleTriggers_type_info = new String[]{'enableEarlyEscalationRuleTriggers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableNewEmailDefaultTemplate_type_info = new String[]{'enableNewEmailDefaultTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSuggestedArticlesApplication_type_info = new String[]{'enableSuggestedArticlesApplication','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSuggestedArticlesCustomerPortal_type_info = new String[]{'enableSuggestedArticlesCustomerPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSuggestedArticlesPartnerPortal_type_info = new String[]{'enableSuggestedArticlesPartnerPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSuggestedSolutions_type_info = new String[]{'enableSuggestedSolutions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] keepRecordTypeOnAssignmentRule_type_info = new String[]{'keepRecordTypeOnAssignmentRule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] newEmailDefaultTemplateClass_type_info = new String[]{'newEmailDefaultTemplateClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyContactOnCaseComment_type_info = new String[]{'notifyContactOnCaseComment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyDefaultCaseOwner_type_info = new String[]{'notifyDefaultCaseOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyOwnerOnCaseComment_type_info = new String[]{'notifyOwnerOnCaseComment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] notifyOwnerOnCaseOwnerChange_type_info = new String[]{'notifyOwnerOnCaseOwnerChange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showFewerCloseActions_type_info = new String[]{'showFewerCloseActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] useSystemEmailAddress_type_info = new String[]{'useSystemEmailAddress','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] webToCase_type_info = new String[]{'webToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'caseAssignNotificationTemplate','caseCloseNotificationTemplate','caseCommentNotificationTemplate','caseCreateNotificationTemplate','caseFeedItemSettings','closeCaseThroughStatusChange','defaultCaseOwner','defaultCaseOwnerType','defaultCaseUser','emailToCase','enableCaseFeed','enableDraftEmails','enableEarlyEscalationRuleTriggers','enableNewEmailDefaultTemplate','enableSuggestedArticlesApplication','enableSuggestedArticlesCustomerPortal','enableSuggestedArticlesPartnerPortal','enableSuggestedSolutions','keepRecordTypeOnAssignmentRule','newEmailDefaultTemplateClass','notifyContactOnCaseComment','notifyDefaultCaseOwner','notifyOwnerOnCaseComment','notifyOwnerOnCaseOwnerChange','showFewerCloseActions','useSystemEmailAddress','webToCase'}; + } + public class NameSettings extends Metadata { + public String type = 'NameSettings'; + public String fullName; + public Boolean enableMiddleName; + public Boolean enableNameSuffix; + private String[] enableMiddleName_type_info = new String[]{'enableMiddleName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableNameSuffix_type_info = new String[]{'enableNameSuffix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'enableMiddleName','enableNameSuffix'}; + } + public class AsyncResult { + public Boolean done; + public String id; + public String message; + public String state; + public String statusCode; + private String[] done_type_info = new String[]{'done','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] message_type_info = new String[]{'message','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] state_type_info = new String[]{'state','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] statusCode_type_info = new String[]{'statusCode','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'done','id','message','state','statusCode'}; + } + public class ArticleTypeChannelDisplay { + public MetadataService.ArticleTypeTemplate[] articleTypeTemplates; + private String[] articleTypeTemplates_type_info = new String[]{'articleTypeTemplates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'articleTypeTemplates'}; + } + public class checkRetrieveStatus_element { + public String asyncProcessId; + private String[] asyncProcessId_type_info = new String[]{'asyncProcessId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'asyncProcessId'}; + } + public class ProfileLayoutAssignment { + public String layout; + public String recordType; + private String[] layout_type_info = new String[]{'layout','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] recordType_type_info = new String[]{'recordType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'layout','recordType'}; + } + public class FeedLayoutFilter { + public String feedFilterType; + public String feedItemType; + private String[] feedFilterType_type_info = new String[]{'feedFilterType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] feedItemType_type_info = new String[]{'feedItemType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'feedFilterType','feedItemType'}; + } + public class ReportHistoricalSelector { + public String[] snapshot; + private String[] snapshot_type_info = new String[]{'snapshot','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'snapshot'}; + } + public class FlowTextTemplate { + public String text; + private String[] text_type_info = new String[]{'text','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'text'}; + } + public class ReportFolder extends Folder { + public String type = 'ReportFolder'; + public String fullName; + public String accessType; + public MetadataService.FolderShare[] folderShares; + public String name; + public String publicFolderAccess; + public MetadataService.SharedTo sharedTo; + private String[] accessType_type_info = new String[]{'accessType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] folderShares_type_info = new String[]{'folderShares','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] publicFolderAccess_type_info = new String[]{'publicFolderAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'accessType','folderShares','name','publicFolderAccess','sharedTo'}; + } + public class RelatedListItem { + public String[] customButtons; + public String[] excludeButtons; + public String[] fields; + public String relatedList; + public String sortField; + public String sortOrder; + private String[] customButtons_type_info = new String[]{'customButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] excludeButtons_type_info = new String[]{'excludeButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] relatedList_type_info = new String[]{'relatedList','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sortField_type_info = new String[]{'sortField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'customButtons','excludeButtons','fields','relatedList','sortField','sortOrder'}; + } + public class FlowNode { + public String label; + public Integer locationX; + public Integer locationY; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] locationX_type_info = new String[]{'locationX','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] locationY_type_info = new String[]{'locationY','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','locationX','locationY'}; + } + public class ProfileApexClassAccess { + public String apexClass; + public Boolean enabled; + private String[] apexClass_type_info = new String[]{'apexClass','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'apexClass','enabled'}; + } + public class CustomDataTypeComponentTranslation { + public String developerSuffix; + public String label; + private String[] developerSuffix_type_info = new String[]{'developerSuffix','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'developerSuffix','label'}; + } + public class ReputationPointsRules { + public MetadataService.ReputationPointsRule[] pointsRule; + private String[] pointsRule_type_info = new String[]{'pointsRule','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'pointsRule'}; + } + public class State { + public Boolean active; + public String integrationValue; + public String isoCode; + public String label; + public Boolean standard; + public Boolean visible; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] integrationValue_type_info = new String[]{'integrationValue','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isoCode_type_info = new String[]{'isoCode','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] standard_type_info = new String[]{'standard','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'active','integrationValue','isoCode','label','standard','visible'}; + } + public class PushNotifications { + public MetadataService.PushNotification[] pushNotification; + private String[] pushNotification_type_info = new String[]{'pushNotification','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'pushNotification'}; + } + public class ConnectedAppCanvasConfig { + public String accessMethod; + public String canvasUrl; + public String lifecycleClass; + public String[] locations; + public String[] options; + public String samlInitiationMethod; + private String[] accessMethod_type_info = new String[]{'accessMethod','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] canvasUrl_type_info = new String[]{'canvasUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] lifecycleClass_type_info = new String[]{'lifecycleClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] locations_type_info = new String[]{'locations','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] options_type_info = new String[]{'options','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] samlInitiationMethod_type_info = new String[]{'samlInitiationMethod','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accessMethod','canvasUrl','lifecycleClass','locations','options','samlInitiationMethod'}; + } + public class ReportTypeSectionTranslation { + public MetadataService.ReportTypeColumnTranslation[] columns; + public String label; + public String name; + private String[] columns_type_info = new String[]{'columns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'columns','label','name'}; + } + public class FlowWaitEvent { + public String conditionLogic; + public MetadataService.FlowCondition[] conditions; + public MetadataService.FlowConnector connector; + public String eventType; + public MetadataService.FlowWaitEventInputParameter[] inputParameters; + public String label; + public MetadataService.FlowWaitEventOutputParameter[] outputParameters; + private String[] conditionLogic_type_info = new String[]{'conditionLogic','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] conditions_type_info = new String[]{'conditions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] eventType_type_info = new String[]{'eventType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] inputParameters_type_info = new String[]{'inputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] outputParameters_type_info = new String[]{'outputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'conditionLogic','conditions','connector','eventType','inputParameters','label','outputParameters'}; + } + public class IpRange { + public String end_x; + public String start; + private String[] end_x_type_info = new String[]{'end','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] start_type_info = new String[]{'start','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'end_x','start'}; + } + public class FlowApexPluginCallOutputParameter { + public String assignToReference; + public String name; + private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignToReference','name'}; + } + public class ReportBucketField { + public String bucketType; + public String developerName; + public String masterLabel; + public String nullTreatment; + public String otherBucketLabel; + public String sourceColumnName; + public Boolean useOther; + public MetadataService.ReportBucketFieldValue[] values; + private String[] bucketType_type_info = new String[]{'bucketType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] developerName_type_info = new String[]{'developerName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] nullTreatment_type_info = new String[]{'nullTreatment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] otherBucketLabel_type_info = new String[]{'otherBucketLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sourceColumnName_type_info = new String[]{'sourceColumnName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] useOther_type_info = new String[]{'useOther','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'bucketType','developerName','masterLabel','nullTreatment','otherBucketLabel','sourceColumnName','useOther','values'}; + } + public class CaseCriteriaBasedSharingRule { + public String booleanFilter; + public String caseAccessLevel; + public String description; + public String name; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanFilter','caseAccessLevel','description','name'}; + } + public class Portal extends Metadata { + public String type = 'Portal'; + public String fullName; + public Boolean active; + public String admin; + public String defaultLanguage; + public String description; + public String emailSenderAddress; + public String emailSenderName; + public Boolean enableSelfCloseCase; + public String footerDocument; + public String forgotPassTemplate; + public String headerDocument; + public Boolean isSelfRegistrationActivated; + public String loginHeaderDocument; + public String logoDocument; + public String logoutUrl; + public String newCommentTemplate; + public String newPassTemplate; + public String newUserTemplate; + public String ownerNotifyTemplate; + public String selfRegNewUserUrl; + public String selfRegUserDefaultProfile; + public String selfRegUserDefaultRole; + public String selfRegUserTemplate; + public Boolean showActionConfirmation; + public String stylesheetDocument; + public String type_x; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] admin_type_info = new String[]{'admin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultLanguage_type_info = new String[]{'defaultLanguage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailSenderAddress_type_info = new String[]{'emailSenderAddress','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] emailSenderName_type_info = new String[]{'emailSenderName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enableSelfCloseCase_type_info = new String[]{'enableSelfCloseCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] footerDocument_type_info = new String[]{'footerDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] forgotPassTemplate_type_info = new String[]{'forgotPassTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] headerDocument_type_info = new String[]{'headerDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isSelfRegistrationActivated_type_info = new String[]{'isSelfRegistrationActivated','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] loginHeaderDocument_type_info = new String[]{'loginHeaderDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] logoDocument_type_info = new String[]{'logoDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] logoutUrl_type_info = new String[]{'logoutUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] newCommentTemplate_type_info = new String[]{'newCommentTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] newPassTemplate_type_info = new String[]{'newPassTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] newUserTemplate_type_info = new String[]{'newUserTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] ownerNotifyTemplate_type_info = new String[]{'ownerNotifyTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] selfRegNewUserUrl_type_info = new String[]{'selfRegNewUserUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] selfRegUserDefaultProfile_type_info = new String[]{'selfRegUserDefaultProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] selfRegUserDefaultRole_type_info = new String[]{'selfRegUserDefaultRole','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] selfRegUserTemplate_type_info = new String[]{'selfRegUserTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showActionConfirmation_type_info = new String[]{'showActionConfirmation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] stylesheetDocument_type_info = new String[]{'stylesheetDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','admin','defaultLanguage','description','emailSenderAddress','emailSenderName','enableSelfCloseCase','footerDocument','forgotPassTemplate','headerDocument','isSelfRegistrationActivated','loginHeaderDocument','logoDocument','logoutUrl','newCommentTemplate','newPassTemplate','newUserTemplate','ownerNotifyTemplate','selfRegNewUserUrl','selfRegUserDefaultProfile','selfRegUserDefaultRole','selfRegUserTemplate','showActionConfirmation','stylesheetDocument','type_x'}; + } + public class DomainWhitelist { + public String[] domain; + private String[] domain_type_info = new String[]{'domain','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'domain'}; + } + public class RunTestFailure { + public String id; + public String message; + public String methodName; + public String name; + public String namespace; + public String packageName; + public String stackTrace; + public Double time_x; + public String type_x; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] message_type_info = new String[]{'message','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] methodName_type_info = new String[]{'methodName','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] packageName_type_info = new String[]{'packageName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] stackTrace_type_info = new String[]{'stackTrace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] time_x_type_info = new String[]{'time','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'id','message','methodName','name','namespace','packageName','stackTrace','time_x','type_x'}; + } + public class Territory { + public String accountAccessLevel; + public String parentTerritory; + private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] parentTerritory_type_info = new String[]{'parentTerritory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accountAccessLevel','parentTerritory'}; + } + public class SharedTo { + public String allCustomerPortalUsers; + public String allInternalUsers; + public String allPartnerUsers; + public String[] group_x; + public String[] groups; + public String[] managerSubordinates; + public String[] managers; + public String[] portalRole; + public String[] portalRoleAndSubordinates; + public String[] queue; + public String[] role; + public String[] roleAndSubordinates; + public String[] roleAndSubordinatesInternal; + public String[] roles; + public String[] rolesAndSubordinates; + public String[] territories; + public String[] territoriesAndSubordinates; + public String[] territory; + public String[] territoryAndSubordinates; + private String[] allCustomerPortalUsers_type_info = new String[]{'allCustomerPortalUsers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] allInternalUsers_type_info = new String[]{'allInternalUsers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] allPartnerUsers_type_info = new String[]{'allPartnerUsers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] group_x_type_info = new String[]{'group','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] groups_type_info = new String[]{'groups','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] managerSubordinates_type_info = new String[]{'managerSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] managers_type_info = new String[]{'managers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] portalRole_type_info = new String[]{'portalRole','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] portalRoleAndSubordinates_type_info = new String[]{'portalRoleAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] queue_type_info = new String[]{'queue','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] role_type_info = new String[]{'role','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] roleAndSubordinates_type_info = new String[]{'roleAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] roleAndSubordinatesInternal_type_info = new String[]{'roleAndSubordinatesInternal','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] roles_type_info = new String[]{'roles','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] rolesAndSubordinates_type_info = new String[]{'rolesAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] territories_type_info = new String[]{'territories','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] territoriesAndSubordinates_type_info = new String[]{'territoriesAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] territory_type_info = new String[]{'territory','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] territoryAndSubordinates_type_info = new String[]{'territoryAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'allCustomerPortalUsers','allInternalUsers','allPartnerUsers','group_x','groups','managerSubordinates','managers','portalRole','portalRoleAndSubordinates','queue','role','roleAndSubordinates','roleAndSubordinatesInternal','roles','rolesAndSubordinates','territories','territoriesAndSubordinates','territory','territoryAndSubordinates'}; + } + public class DeployDetails { + public MetadataService.DeployMessage[] componentFailures; + public MetadataService.DeployMessage[] componentSuccesses; + public MetadataService.RetrieveResult retrieveResult; + public MetadataService.RunTestsResult runTestResult; + private String[] componentFailures_type_info = new String[]{'componentFailures','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] componentSuccesses_type_info = new String[]{'componentSuccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] retrieveResult_type_info = new String[]{'retrieveResult','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] runTestResult_type_info = new String[]{'runTestResult','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'componentFailures','componentSuccesses','retrieveResult','runTestResult'}; + } + public class FlowRecordFilter { + public String field; + public String operator; + public MetadataService.FlowElementReferenceOrValue value; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','operator','value'}; + } + public class Group_x extends Metadata { + public String type = 'Group_x'; + public String fullName; + public Boolean doesIncludeBosses; + public String name; + private String[] doesIncludeBosses_type_info = new String[]{'doesIncludeBosses','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'doesIncludeBosses','name'}; + } + public class SubtabComponents { + public MetadataService.Container[] containers; + private String[] containers_type_info = new String[]{'containers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'containers'}; + } + public class FlowScreen { + public Boolean allowBack; + public Boolean allowFinish; + public MetadataService.FlowConnector connector; + public MetadataService.FlowScreenField[] fields; + public String helpText; + private String[] allowBack_type_info = new String[]{'allowBack','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] allowFinish_type_info = new String[]{'allowFinish','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] helpText_type_info = new String[]{'helpText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'allowBack','allowFinish','connector','fields','helpText'}; + } + public class WorkflowAlert extends WorkflowAction { + public String type = 'WorkflowAlert'; + public String fullName; + public String[] ccEmails; + public String description; + public Boolean protected_x; + public MetadataService.WorkflowEmailRecipient[] recipients; + public String senderAddress; + public String senderType; + public String template; + private String[] ccEmails_type_info = new String[]{'ccEmails','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] recipients_type_info = new String[]{'recipients','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] senderAddress_type_info = new String[]{'senderAddress','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] senderType_type_info = new String[]{'senderType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] template_type_info = new String[]{'template','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'ccEmails','description','protected_x','recipients','senderAddress','senderType','template'}; + } + public class CustomPermissionDependencyRequired { + public String customPermission; + public Boolean dependency; + private String[] customPermission_type_info = new String[]{'customPermission','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] dependency_type_info = new String[]{'dependency','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'customPermission','dependency'}; + } + public class ReputationBranding { + public String smallImage; + private String[] smallImage_type_info = new String[]{'smallImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'smallImage'}; + } + public class ForecastRangeSettings { + public Integer beginning; + public Integer displaying; + public String periodType; + private String[] beginning_type_info = new String[]{'beginning','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] displaying_type_info = new String[]{'displaying','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] periodType_type_info = new String[]{'periodType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'beginning','displaying','periodType'}; + } + public class SFDCMobileSettings { + public Boolean enableMobileLite; + public Boolean enableUserToDeviceLinking; + private String[] enableMobileLite_type_info = new String[]{'enableMobileLite','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableUserToDeviceLinking_type_info = new String[]{'enableUserToDeviceLinking','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enableMobileLite','enableUserToDeviceLinking'}; + } + public class LayoutSectionTranslation { + public String label; + public String section; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] section_type_info = new String[]{'section','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','section'}; + } + public class EntitlementProcessMilestoneItem { + public String businessHours; + public String criteriaBooleanFilter; + public MetadataService.FilterItem[] milestoneCriteriaFilterItems; + public String milestoneCriteriaFormula; + public String milestoneName; + public String minutesCustomClass; + public Integer minutesToComplete; + public MetadataService.WorkflowActionReference[] successActions; + public MetadataService.EntitlementProcessMilestoneTimeTrigger[] timeTriggers; + public Boolean useCriteriaStartTime; + private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] criteriaBooleanFilter_type_info = new String[]{'criteriaBooleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] milestoneCriteriaFilterItems_type_info = new String[]{'milestoneCriteriaFilterItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] milestoneCriteriaFormula_type_info = new String[]{'milestoneCriteriaFormula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] milestoneName_type_info = new String[]{'milestoneName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] minutesCustomClass_type_info = new String[]{'minutesCustomClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] minutesToComplete_type_info = new String[]{'minutesToComplete','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] successActions_type_info = new String[]{'successActions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] timeTriggers_type_info = new String[]{'timeTriggers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] useCriteriaStartTime_type_info = new String[]{'useCriteriaStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'businessHours','criteriaBooleanFilter','milestoneCriteriaFilterItems','milestoneCriteriaFormula','milestoneName','minutesCustomClass','minutesToComplete','successActions','timeTriggers','useCriteriaStartTime'}; + } + public class DataCategoryGroup extends Metadata { + public String type = 'DataCategoryGroup'; + public String fullName; + public Boolean active; + public MetadataService.DataCategory dataCategory; + public String description; + public String label; + public MetadataService.ObjectUsage objectUsage; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] dataCategory_type_info = new String[]{'dataCategory','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] objectUsage_type_info = new String[]{'objectUsage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','dataCategory','description','label','objectUsage'}; + } + public class listMetadata_element { + public MetadataService.ListMetadataQuery[] queries; + public Double asOfVersion; + private String[] queries_type_info = new String[]{'queries','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] asOfVersion_type_info = new String[]{'asOfVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'queries','asOfVersion'}; + } + public class ValidationRule extends Metadata { + public String type = 'ValidationRule'; + public String fullName; + public Boolean active; + public String description; + public String errorConditionFormula; + public String errorDisplayField; + public String errorMessage; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] errorConditionFormula_type_info = new String[]{'errorConditionFormula','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] errorDisplayField_type_info = new String[]{'errorDisplayField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','description','errorConditionFormula','errorDisplayField','errorMessage'}; + } + public class AuraDefinitionBundle extends Metadata { + public String type = 'AuraDefinitionBundle'; + public String fullName; + public String controllerContent; + public String documentationContent; + public String helperContent; + public String markup; + public String modelContent; + public String rendererContent; + public String styleContent; + public String testsuiteContent; + public String type_x; + private String[] controllerContent_type_info = new String[]{'controllerContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] documentationContent_type_info = new String[]{'documentationContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] helperContent_type_info = new String[]{'helperContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] markup_type_info = new String[]{'markup','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] modelContent_type_info = new String[]{'modelContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] rendererContent_type_info = new String[]{'rendererContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] styleContent_type_info = new String[]{'styleContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] testsuiteContent_type_info = new String[]{'testsuiteContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'controllerContent','documentationContent','helperContent','markup','modelContent','rendererContent','styleContent','testsuiteContent','type_x'}; + } + public class FlowMetadataValue { + public String name; + public MetadataService.FlowElementReferenceOrValue value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class VisualizationResource { + public String description; + public String file; + public Integer rank; + public String type_x; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] file_type_info = new String[]{'file','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] rank_type_info = new String[]{'rank','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','file','rank','type_x'}; + } + public class ValidationRuleTranslation { + public String errorMessage; + public String name; + private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'errorMessage','name'}; + } + public virtual class Metadata { + public String fullName; + private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fullName'}; + } + public class ReportBucketFieldValue { + public MetadataService.ReportBucketFieldSourceValue[] sourceValues; + public String value; + private String[] sourceValues_type_info = new String[]{'sourceValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'sourceValues','value'}; + } + public class FeedItemSettings { + public Integer characterLimit; + public Boolean collapseThread; + public String displayFormat; + public String feedItemType; + private String[] characterLimit_type_info = new String[]{'characterLimit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] collapseThread_type_info = new String[]{'collapseThread','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] displayFormat_type_info = new String[]{'displayFormat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] feedItemType_type_info = new String[]{'feedItemType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'characterLimit','collapseThread','displayFormat','feedItemType'}; + } + public class FlowSubflow { + public MetadataService.FlowConnector connector; + public String flowName; + public MetadataService.FlowSubflowInputAssignment[] inputAssignments; + public MetadataService.FlowSubflowOutputAssignment[] outputAssignments; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] flowName_type_info = new String[]{'flowName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] inputAssignments_type_info = new String[]{'inputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] outputAssignments_type_info = new String[]{'outputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'connector','flowName','inputAssignments','outputAssignments'}; + } + public class TouchMobileSettings { + public Boolean enableTouchAppIPad; + public Boolean enableTouchAppIPhone; + public Boolean enableTouchBrowserIPad; + public Boolean enableTouchIosPhone; + public Boolean enableVisualforceInTouch; + private String[] enableTouchAppIPad_type_info = new String[]{'enableTouchAppIPad','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableTouchAppIPhone_type_info = new String[]{'enableTouchAppIPhone','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableTouchBrowserIPad_type_info = new String[]{'enableTouchBrowserIPad','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableTouchIosPhone_type_info = new String[]{'enableTouchIosPhone','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableVisualforceInTouch_type_info = new String[]{'enableVisualforceInTouch','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enableTouchAppIPad','enableTouchAppIPhone','enableTouchBrowserIPad','enableTouchIosPhone','enableVisualforceInTouch'}; + } + public class FlowScreenField { + public String[] choiceReferences; + public String dataType; + public String defaultSelectedChoiceReference; + public MetadataService.FlowElementReferenceOrValue defaultValue; + public String fieldText; + public String fieldType; + public String helpText; + public Boolean isRequired; + public Integer scale; + public MetadataService.FlowInputValidationRule validationRule; + private String[] choiceReferences_type_info = new String[]{'choiceReferences','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultSelectedChoiceReference_type_info = new String[]{'defaultSelectedChoiceReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultValue_type_info = new String[]{'defaultValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fieldText_type_info = new String[]{'fieldText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fieldType_type_info = new String[]{'fieldType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] helpText_type_info = new String[]{'helpText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isRequired_type_info = new String[]{'isRequired','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] validationRule_type_info = new String[]{'validationRule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'choiceReferences','dataType','defaultSelectedChoiceReference','defaultValue','fieldText','fieldType','helpText','isRequired','scale','validationRule'}; + } + public class Dashboard extends Metadata { + public String type = 'Dashboard'; + public String fullName; + public String backgroundEndColor; + public String backgroundFadeDirection; + public String backgroundStartColor; + public MetadataService.DashboardFilter[] dashboardFilters; + public String dashboardResultRefreshedDate; + public String dashboardResultRunningUser; + public String dashboardType; + public String description; + public MetadataService.DashboardComponentSection leftSection; + public MetadataService.DashboardComponentSection middleSection; + public MetadataService.DashboardComponentSection rightSection; + public String runningUser; + public String textColor; + public String title; + public String titleColor; + public Integer titleSize; + private String[] backgroundEndColor_type_info = new String[]{'backgroundEndColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] backgroundFadeDirection_type_info = new String[]{'backgroundFadeDirection','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] backgroundStartColor_type_info = new String[]{'backgroundStartColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] dashboardFilters_type_info = new String[]{'dashboardFilters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] dashboardResultRefreshedDate_type_info = new String[]{'dashboardResultRefreshedDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] dashboardResultRunningUser_type_info = new String[]{'dashboardResultRunningUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] dashboardType_type_info = new String[]{'dashboardType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] leftSection_type_info = new String[]{'leftSection','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] middleSection_type_info = new String[]{'middleSection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] rightSection_type_info = new String[]{'rightSection','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] runningUser_type_info = new String[]{'runningUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] textColor_type_info = new String[]{'textColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] title_type_info = new String[]{'title','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] titleColor_type_info = new String[]{'titleColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] titleSize_type_info = new String[]{'titleSize','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'backgroundEndColor','backgroundFadeDirection','backgroundStartColor','dashboardFilters','dashboardResultRefreshedDate','dashboardResultRunningUser','dashboardType','description','leftSection','middleSection','rightSection','runningUser','textColor','title','titleColor','titleSize'}; + } + public class ReportDataCategoryFilter { + public String dataCategory; + public String dataCategoryGroup; + public String operator; + private String[] dataCategory_type_info = new String[]{'dataCategory','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] dataCategoryGroup_type_info = new String[]{'dataCategoryGroup','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dataCategory','dataCategoryGroup','operator'}; + } + public class MarketingActionSettings extends Metadata { + public String type = 'MarketingActionSettings'; + public String fullName; + public Boolean enableMarketingAction; + private String[] enableMarketingAction_type_info = new String[]{'enableMarketingAction','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'enableMarketingAction'}; + } + public class FlowAssignment { + public MetadataService.FlowAssignmentItem[] assignmentItems; + public MetadataService.FlowConnector connector; + private String[] assignmentItems_type_info = new String[]{'assignmentItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignmentItems','connector'}; + } + public class IdeaReputationLevel { + public String name; + public Integer value; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'name','value'}; + } + public class NetworkTabSet { + public String[] customTab; + public String defaultTab; + public String[] standardTab; + private String[] customTab_type_info = new String[]{'customTab','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] defaultTab_type_info = new String[]{'defaultTab','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] standardTab_type_info = new String[]{'standardTab','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'customTab','defaultTab','standardTab'}; + } + public class CustomApplicationComponents { + public String alignment; + public String[] customApplicationComponent; + private String[] alignment_type_info = new String[]{'alignment','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] customApplicationComponent_type_info = new String[]{'customApplicationComponent','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'alignment','customApplicationComponent'}; + } + public class SynonymGroup { + public String[] languages; + public String[] terms; + private String[] languages_type_info = new String[]{'languages','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] terms_type_info = new String[]{'terms','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'languages','terms'}; + } + public class VisualizationType { + public String description; + public String developerName; + public String icon; + public String masterLabel; + public String scriptBootstrapMethod; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] developerName_type_info = new String[]{'developerName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] icon_type_info = new String[]{'icon','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] scriptBootstrapMethod_type_info = new String[]{'scriptBootstrapMethod','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','developerName','icon','masterLabel','scriptBootstrapMethod'}; + } + public class DashboardFolder extends Folder { + public String type = 'DashboardFolder'; + public String fullName; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName'}; + } + public class PermissionSetApexPageAccess { + public String apexPage; + public Boolean enabled; + private String[] apexPage_type_info = new String[]{'apexPage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'apexPage','enabled'}; + } + public class CustomObject extends Metadata { + public String type = 'CustomObject'; + public String fullName; + public MetadataService.ActionOverride[] actionOverrides; + public MetadataService.ArticleTypeChannelDisplay articleTypeChannelDisplay; + public MetadataService.BusinessProcess[] businessProcesses; + public String compactLayoutAssignment; + public MetadataService.CompactLayout[] compactLayouts; + public String customHelp; + public String customHelpPage; + public String customSettingsType; + public String customSettingsVisibility; + public String deploymentStatus; + public Boolean deprecated; + public String description; + public Boolean enableActivities; + public Boolean enableBulkApi; + public Boolean enableDivisions; + public Boolean enableEnhancedLookup; + public Boolean enableFeeds; + public Boolean enableHistory; + public Boolean enableReports; + public Boolean enableSharing; + public Boolean enableStreamingApi; + public String externalDataSource; + public String externalName; + public String externalRepository; + public String externalSharingModel; + public MetadataService.FieldSet[] fieldSets; + public MetadataService.CustomField[] fields; + public String gender; + public MetadataService.HistoryRetentionPolicy historyRetentionPolicy; + public Boolean household; + public String label; + public MetadataService.ListView[] listViews; + public MetadataService.CustomField nameField; + public String pluralLabel; + public Boolean recordTypeTrackFeedHistory; + public Boolean recordTypeTrackHistory; + public MetadataService.RecordType[] recordTypes; + public MetadataService.SearchLayouts searchLayouts; + public String sharingModel; + public MetadataService.SharingReason[] sharingReasons; + public MetadataService.SharingRecalculation[] sharingRecalculations; + public String startsWith; + public MetadataService.ValidationRule[] validationRules; + public MetadataService.WebLink[] webLinks; + private String[] actionOverrides_type_info = new String[]{'actionOverrides','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] articleTypeChannelDisplay_type_info = new String[]{'articleTypeChannelDisplay','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] businessProcesses_type_info = new String[]{'businessProcesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] compactLayoutAssignment_type_info = new String[]{'compactLayoutAssignment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] compactLayouts_type_info = new String[]{'compactLayouts','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] customHelp_type_info = new String[]{'customHelp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customHelpPage_type_info = new String[]{'customHelpPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customSettingsType_type_info = new String[]{'customSettingsType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customSettingsVisibility_type_info = new String[]{'customSettingsVisibility','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] deploymentStatus_type_info = new String[]{'deploymentStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] deprecated_type_info = new String[]{'deprecated','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableActivities_type_info = new String[]{'enableActivities','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableBulkApi_type_info = new String[]{'enableBulkApi','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableDivisions_type_info = new String[]{'enableDivisions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableEnhancedLookup_type_info = new String[]{'enableEnhancedLookup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableFeeds_type_info = new String[]{'enableFeeds','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableHistory_type_info = new String[]{'enableHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableReports_type_info = new String[]{'enableReports','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableSharing_type_info = new String[]{'enableSharing','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableStreamingApi_type_info = new String[]{'enableStreamingApi','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] externalDataSource_type_info = new String[]{'externalDataSource','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] externalName_type_info = new String[]{'externalName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] externalRepository_type_info = new String[]{'externalRepository','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] externalSharingModel_type_info = new String[]{'externalSharingModel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] fieldSets_type_info = new String[]{'fieldSets','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] gender_type_info = new String[]{'gender','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] historyRetentionPolicy_type_info = new String[]{'historyRetentionPolicy','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] household_type_info = new String[]{'household','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] listViews_type_info = new String[]{'listViews','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] nameField_type_info = new String[]{'nameField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] pluralLabel_type_info = new String[]{'pluralLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recordTypeTrackFeedHistory_type_info = new String[]{'recordTypeTrackFeedHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recordTypeTrackHistory_type_info = new String[]{'recordTypeTrackHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] recordTypes_type_info = new String[]{'recordTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] searchLayouts_type_info = new String[]{'searchLayouts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sharingModel_type_info = new String[]{'sharingModel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sharingReasons_type_info = new String[]{'sharingReasons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] sharingRecalculations_type_info = new String[]{'sharingRecalculations','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] startsWith_type_info = new String[]{'startsWith','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] validationRules_type_info = new String[]{'validationRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] webLinks_type_info = new String[]{'webLinks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'actionOverrides','articleTypeChannelDisplay','businessProcesses','compactLayoutAssignment','compactLayouts','customHelp','customHelpPage','customSettingsType','customSettingsVisibility','deploymentStatus','deprecated','description','enableActivities','enableBulkApi','enableDivisions','enableEnhancedLookup','enableFeeds','enableHistory','enableReports','enableSharing','enableStreamingApi','externalDataSource','externalName','externalRepository','externalSharingModel','fieldSets','fields','gender','historyRetentionPolicy','household','label','listViews','nameField','pluralLabel','recordTypeTrackFeedHistory','recordTypeTrackHistory','recordTypes','searchLayouts','sharingModel','sharingReasons','sharingRecalculations','startsWith','validationRules','webLinks'}; + } + public class CustomMetadataValue { + public String field; + public String value; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'field','value'}; + } + public class Translations extends Metadata { + public String type = 'Translations'; + public String fullName; + public MetadataService.CustomApplicationTranslation[] customApplications; + public MetadataService.CustomDataTypeTranslation[] customDataTypeTranslations; + public MetadataService.CustomLabelTranslation[] customLabels; + public MetadataService.CustomPageWebLinkTranslation[] customPageWebLinks; + public MetadataService.CustomTabTranslation[] customTabs; + public MetadataService.GlobalQuickActionTranslation[] quickActions; + public MetadataService.ReportTypeTranslation[] reportTypes; + public MetadataService.ScontrolTranslation[] scontrols; + private String[] customApplications_type_info = new String[]{'customApplications','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] customDataTypeTranslations_type_info = new String[]{'customDataTypeTranslations','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] customLabels_type_info = new String[]{'customLabels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] customPageWebLinks_type_info = new String[]{'customPageWebLinks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] customTabs_type_info = new String[]{'customTabs','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] quickActions_type_info = new String[]{'quickActions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] reportTypes_type_info = new String[]{'reportTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] scontrols_type_info = new String[]{'scontrols','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'customApplications','customDataTypeTranslations','customLabels','customPageWebLinks','customTabs','quickActions','reportTypes','scontrols'}; + } + public class ReportTypeTranslation { + public String description; + public String label; + public String name; + public MetadataService.ReportTypeSectionTranslation[] sections; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sections_type_info = new String[]{'sections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','label','name','sections'}; + } + public class FlowAssignmentItem { + public String assignToReference; + public String operator; + public MetadataService.FlowElementReferenceOrValue value; + private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'assignToReference','operator','value'}; + } + public class CustomLabels extends Metadata { + public String type = 'CustomLabels'; + public String fullName; + public MetadataService.CustomLabel[] labels; + private String[] labels_type_info = new String[]{'labels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'labels'}; + } + public class PackageTypeMembers { + public String[] members; + public String name; + private String[] members_type_info = new String[]{'members','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'members','name'}; + } + public class renameMetadataResponse_element { + public MetadataService.SaveResult result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class HistoryRetentionPolicy { + public Integer archiveAfterMonths; + public Integer archiveRetentionYears; + public String description; + private String[] archiveAfterMonths_type_info = new String[]{'archiveAfterMonths','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] archiveRetentionYears_type_info = new String[]{'archiveRetentionYears','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'archiveAfterMonths','archiveRetentionYears','description'}; + } + public class cancelDeploy_element { + public String String_x; + private String[] String_x_type_info = new String[]{'String','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'String_x'}; + } + public class WorkflowSend extends WorkflowAction { + public String type = 'WorkflowSend'; + public String fullName; + public String action; + public String description; + public String label; + public String language; + public Boolean protected_x; + private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'action','description','label','language','protected_x'}; + } + public class EntitlementProcessMilestoneTimeTrigger { + public MetadataService.WorkflowActionReference[] actions; + public Integer timeLength; + public String workflowTimeTriggerUnit; + private String[] actions_type_info = new String[]{'actions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] timeLength_type_info = new String[]{'timeLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] workflowTimeTriggerUnit_type_info = new String[]{'workflowTimeTriggerUnit','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'actions','timeLength','workflowTimeTriggerUnit'}; + } + public class ArticleTypeTemplate { + public String channel; + public String page_x; + public String template; + private String[] channel_type_info = new String[]{'channel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] template_type_info = new String[]{'template','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'channel','page_x','template'}; + } + public class AnalyticSnapshotMapping { + public String aggregateType; + public String sourceField; + public String sourceType; + public String targetField; + private String[] aggregateType_type_info = new String[]{'aggregateType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sourceField_type_info = new String[]{'sourceField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sourceType_type_info = new String[]{'sourceType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] targetField_type_info = new String[]{'targetField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'aggregateType','sourceField','sourceType','targetField'}; + } + public class PermissionSetFieldPermissions { + public Boolean editable; + public String field; + public Boolean readable; + private String[] editable_type_info = new String[]{'editable','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] readable_type_info = new String[]{'readable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'editable','field','readable'}; + } + public class ReportGrouping { + public String aggregateType; + public String dateGranularity; + public String field; + public String sortByName; + public String sortOrder; + public String sortType; + private String[] aggregateType_type_info = new String[]{'aggregateType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] dateGranularity_type_info = new String[]{'dateGranularity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sortByName_type_info = new String[]{'sortByName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sortType_type_info = new String[]{'sortType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'aggregateType','dateGranularity','field','sortByName','sortOrder','sortType'}; + } + public class SkillProfileAssignments { + public String[] profile; + private String[] profile_type_info = new String[]{'profile','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'profile'}; + } + public class CancelDeployResult { + public Boolean done; + public String id; + private String[] done_type_info = new String[]{'done','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'done','id'}; + } + public class CustomShortcut { + public String description; + public String eventName; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] eventName_type_info = new String[]{'eventName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'description','eventName'}; + } + public class LeadCriteriaBasedSharingRule { + public String booleanFilter; + public String description; + public String leadAccessLevel; + public String name; + private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] leadAccessLevel_type_info = new String[]{'leadAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'booleanFilter','description','leadAccessLevel','name'}; + } + public class SynonymDictionary extends Metadata { + public String type = 'SynonymDictionary'; + public String fullName; + public MetadataService.SynonymGroup[] groups; + public Boolean isProtected; + public String label; + private String[] groups_type_info = new String[]{'groups','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] isProtected_type_info = new String[]{'isProtected','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'groups','isProtected','label'}; + } + public class CustomTab extends Metadata { + public String type = 'CustomTab'; + public String fullName; + public String auraComponent; + public Boolean customObject; + public String description; + public String flexiPage; + public Integer frameHeight; + public Boolean hasSidebar; + public String icon; + public String label; + public Boolean mobileReady; + public String motif; + public String page_x; + public String scontrol; + public String splashPageLink; + public String url; + public String urlEncodingKey; + private String[] auraComponent_type_info = new String[]{'auraComponent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customObject_type_info = new String[]{'customObject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] flexiPage_type_info = new String[]{'flexiPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] frameHeight_type_info = new String[]{'frameHeight','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] hasSidebar_type_info = new String[]{'hasSidebar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] icon_type_info = new String[]{'icon','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] mobileReady_type_info = new String[]{'mobileReady','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] motif_type_info = new String[]{'motif','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] splashPageLink_type_info = new String[]{'splashPageLink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] url_type_info = new String[]{'url','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] urlEncodingKey_type_info = new String[]{'urlEncodingKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'auraComponent','customObject','description','flexiPage','frameHeight','hasSidebar','icon','label','mobileReady','motif','page_x','scontrol','splashPageLink','url','urlEncodingKey'}; + } + public class Letterhead extends Metadata { + public String type = 'Letterhead'; + public String fullName; + public Boolean available; + public String backgroundColor; + public String bodyColor; + public MetadataService.LetterheadLine bottomLine; + public String description; + public MetadataService.LetterheadHeaderFooter footer; + public MetadataService.LetterheadHeaderFooter header; + public MetadataService.LetterheadLine middleLine; + public String name; + public MetadataService.LetterheadLine topLine; + private String[] available_type_info = new String[]{'available','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] backgroundColor_type_info = new String[]{'backgroundColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] bodyColor_type_info = new String[]{'bodyColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] bottomLine_type_info = new String[]{'bottomLine','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] footer_type_info = new String[]{'footer','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] header_type_info = new String[]{'header','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] middleLine_type_info = new String[]{'middleLine','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] topLine_type_info = new String[]{'topLine','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'available','backgroundColor','bodyColor','bottomLine','description','footer','header','middleLine','name','topLine'}; + } + public class ReportTypeColumnTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class CustomPageWebLinkTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class EntitlementSettings extends Metadata { + public String type = 'EntitlementSettings'; + public String fullName; + public Boolean assetLookupLimitedToActiveEntitlementsOnAccount; + public Boolean assetLookupLimitedToActiveEntitlementsOnContact; + public Boolean assetLookupLimitedToSameAccount; + public Boolean assetLookupLimitedToSameContact; + public Boolean enableEntitlementVersioning; + public Boolean enableEntitlements; + public Boolean entitlementLookupLimitedToActiveStatus; + public Boolean entitlementLookupLimitedToSameAccount; + public Boolean entitlementLookupLimitedToSameAsset; + public Boolean entitlementLookupLimitedToSameContact; + private String[] assetLookupLimitedToActiveEntitlementsOnAccount_type_info = new String[]{'assetLookupLimitedToActiveEntitlementsOnAccount','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assetLookupLimitedToActiveEntitlementsOnContact_type_info = new String[]{'assetLookupLimitedToActiveEntitlementsOnContact','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assetLookupLimitedToSameAccount_type_info = new String[]{'assetLookupLimitedToSameAccount','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assetLookupLimitedToSameContact_type_info = new String[]{'assetLookupLimitedToSameContact','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableEntitlementVersioning_type_info = new String[]{'enableEntitlementVersioning','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enableEntitlements_type_info = new String[]{'enableEntitlements','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] entitlementLookupLimitedToActiveStatus_type_info = new String[]{'entitlementLookupLimitedToActiveStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] entitlementLookupLimitedToSameAccount_type_info = new String[]{'entitlementLookupLimitedToSameAccount','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] entitlementLookupLimitedToSameAsset_type_info = new String[]{'entitlementLookupLimitedToSameAsset','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] entitlementLookupLimitedToSameContact_type_info = new String[]{'entitlementLookupLimitedToSameContact','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'assetLookupLimitedToActiveEntitlementsOnAccount','assetLookupLimitedToActiveEntitlementsOnContact','assetLookupLimitedToSameAccount','assetLookupLimitedToSameContact','enableEntitlementVersioning','enableEntitlements','entitlementLookupLimitedToActiveStatus','entitlementLookupLimitedToSameAccount','entitlementLookupLimitedToSameAsset','entitlementLookupLimitedToSameContact'}; + } + public class FlowBaseElement { + public MetadataService.FlowMetadataValue[] processMetadataValues; + private String[] processMetadataValues_type_info = new String[]{'processMetadataValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'processMetadataValues'}; + } + public class cancelDeployResponse_element { + public MetadataService.CancelDeployResult result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class DocumentFolder extends Folder { + public String type = 'DocumentFolder'; + public String fullName; + public String accessType; + public MetadataService.FolderShare[] folderShares; + public String name; + public String publicFolderAccess; + public MetadataService.SharedTo sharedTo; + private String[] accessType_type_info = new String[]{'accessType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] folderShares_type_info = new String[]{'folderShares','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] publicFolderAccess_type_info = new String[]{'publicFolderAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'accessType','folderShares','name','publicFolderAccess','sharedTo'}; + } + public class FlowConstant { + public String dataType; + public MetadataService.FlowElementReferenceOrValue value; + private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'dataType','value'}; + } + public class ChatterMobileSettings { + public Boolean enablePushNotifications; + private String[] enablePushNotifications_type_info = new String[]{'enablePushNotifications','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enablePushNotifications'}; + } + public class CallCenterSection { + public MetadataService.CallCenterItem[] items; + public String label; + public String name; + private String[] items_type_info = new String[]{'items','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'items','label','name'}; + } + public class PagesToOpen { + public String[] pageToOpen; + private String[] pageToOpen_type_info = new String[]{'pageToOpen','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'pageToOpen'}; + } + public class ReportChart { + public String backgroundColor1; + public String backgroundColor2; + public String backgroundFadeDir; + public MetadataService.ChartSummary[] chartSummaries; + public String chartType; + public Boolean enableHoverLabels; + public Boolean expandOthers; + public String groupingColumn; + public String legendPosition; + public String location; + public String secondaryGroupingColumn; + public Boolean showAxisLabels; + public Boolean showPercentage; + public Boolean showTotal; + public Boolean showValues; + public String size; + public Double summaryAxisManualRangeEnd; + public Double summaryAxisManualRangeStart; + public String summaryAxisRange; + public String textColor; + public Integer textSize; + public String title; + public String titleColor; + public Integer titleSize; + private String[] backgroundColor1_type_info = new String[]{'backgroundColor1','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] backgroundColor2_type_info = new String[]{'backgroundColor2','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] backgroundFadeDir_type_info = new String[]{'backgroundFadeDir','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] chartSummaries_type_info = new String[]{'chartSummaries','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] chartType_type_info = new String[]{'chartType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enableHoverLabels_type_info = new String[]{'enableHoverLabels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] expandOthers_type_info = new String[]{'expandOthers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] groupingColumn_type_info = new String[]{'groupingColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] legendPosition_type_info = new String[]{'legendPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] location_type_info = new String[]{'location','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] secondaryGroupingColumn_type_info = new String[]{'secondaryGroupingColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showAxisLabels_type_info = new String[]{'showAxisLabels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showPercentage_type_info = new String[]{'showPercentage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showTotal_type_info = new String[]{'showTotal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showValues_type_info = new String[]{'showValues','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] size_type_info = new String[]{'size','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] summaryAxisManualRangeEnd_type_info = new String[]{'summaryAxisManualRangeEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] summaryAxisManualRangeStart_type_info = new String[]{'summaryAxisManualRangeStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] summaryAxisRange_type_info = new String[]{'summaryAxisRange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] textColor_type_info = new String[]{'textColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] textSize_type_info = new String[]{'textSize','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] title_type_info = new String[]{'title','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] titleColor_type_info = new String[]{'titleColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] titleSize_type_info = new String[]{'titleSize','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'backgroundColor1','backgroundColor2','backgroundFadeDir','chartSummaries','chartType','enableHoverLabels','expandOthers','groupingColumn','legendPosition','location','secondaryGroupingColumn','showAxisLabels','showPercentage','showTotal','showValues','size','summaryAxisManualRangeEnd','summaryAxisManualRangeStart','summaryAxisRange','textColor','textSize','title','titleColor','titleSize'}; + } + public class checkRetrieveStatusResponse_element { + public MetadataService.RetrieveResult result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class KnowledgeCaseSettings { + public String articlePDFCreationProfile; + public MetadataService.KnowledgeSitesSettings articlePublicSharingSites; + public MetadataService.KnowledgeSitesSettings articlePublicSharingSitesChatterAnswers; + public String assignTo; + public String customizationClass; + public String defaultContributionArticleType; + public String editor; + public Boolean enableArticleCreation; + public Boolean enableArticlePublicSharingSites; + public Boolean useProfileForPDFCreation; + private String[] articlePDFCreationProfile_type_info = new String[]{'articlePDFCreationProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] articlePublicSharingSites_type_info = new String[]{'articlePublicSharingSites','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] articlePublicSharingSitesChatterAnswers_type_info = new String[]{'articlePublicSharingSitesChatterAnswers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] assignTo_type_info = new String[]{'assignTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customizationClass_type_info = new String[]{'customizationClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultContributionArticleType_type_info = new String[]{'defaultContributionArticleType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] editor_type_info = new String[]{'editor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableArticleCreation_type_info = new String[]{'enableArticleCreation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableArticlePublicSharingSites_type_info = new String[]{'enableArticlePublicSharingSites','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] useProfileForPDFCreation_type_info = new String[]{'useProfileForPDFCreation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'articlePDFCreationProfile','articlePublicSharingSites','articlePublicSharingSitesChatterAnswers','assignTo','customizationClass','defaultContributionArticleType','editor','enableArticleCreation','enableArticlePublicSharingSites','useProfileForPDFCreation'}; + } + public class SharingReason extends Metadata { + public String type = 'SharingReason'; + public String fullName; + public String label; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'label'}; + } + public class ProfileFieldLevelSecurity { + public Boolean editable; + public String field; + public Boolean readable; + private String[] editable_type_info = new String[]{'editable','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] readable_type_info = new String[]{'readable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'editable','field','readable'}; + } + public class CompactLayout extends Metadata { + public String type = 'CompactLayout'; + public String fullName; + public String[] fields; + public String label; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'fields','label'}; + } + public class MiniLayout { + public String[] fields; + public MetadataService.RelatedListItem[] relatedLists; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] relatedLists_type_info = new String[]{'relatedLists','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'fields','relatedLists'}; + } + public class ReportBucketFieldSourceValue { + public String from_x; + public String sourceValue; + public String to; + private String[] from_x_type_info = new String[]{'from','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sourceValue_type_info = new String[]{'sourceValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] to_type_info = new String[]{'to','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'from_x','sourceValue','to'}; + } + public class UpsertResult { + public Boolean created; + public MetadataService.Error[] errors; + public String fullName; + public Boolean success; + private String[] created_type_info = new String[]{'created','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] errors_type_info = new String[]{'errors','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'created','errors','fullName','success'}; + } + public class AccessMapping { + public String accessLevel; + public String object_x; + public String objectField; + public String userField; + private String[] accessLevel_type_info = new String[]{'accessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] objectField_type_info = new String[]{'objectField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] userField_type_info = new String[]{'userField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'accessLevel','object_x','objectField','userField'}; + } + public class CustomDataTypeComponent { + public String developerSuffix; + public Boolean enforceFieldRequiredness; + public String label; + public Integer length; + public Integer precision; + public Integer scale; + public String sortOrder; + public Integer sortPriority; + public String type_x; + private String[] developerSuffix_type_info = new String[]{'developerSuffix','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] enforceFieldRequiredness_type_info = new String[]{'enforceFieldRequiredness','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] length_type_info = new String[]{'length','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] precision_type_info = new String[]{'precision','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] sortPriority_type_info = new String[]{'sortPriority','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'developerSuffix','enforceFieldRequiredness','label','length','precision','scale','sortOrder','sortPriority','type_x'}; + } + public class CustomObjectTranslation extends Metadata { + public String type = 'CustomObjectTranslation'; + public String fullName; + public MetadataService.ObjectNameCaseValue[] caseValues; + public MetadataService.CustomFieldTranslation[] fields; + public String gender; + public MetadataService.LayoutTranslation[] layouts; + public String nameFieldLabel; + public MetadataService.QuickActionTranslation[] quickActions; + public MetadataService.RecordTypeTranslation[] recordTypes; + public MetadataService.SharingReasonTranslation[] sharingReasons; + public MetadataService.StandardFieldTranslation[] standardFields; + public String startsWith; + public MetadataService.ValidationRuleTranslation[] validationRules; + public MetadataService.WebLinkTranslation[] webLinks; + public MetadataService.WorkflowTaskTranslation[] workflowTasks; + private String[] caseValues_type_info = new String[]{'caseValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] gender_type_info = new String[]{'gender','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] layouts_type_info = new String[]{'layouts','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] nameFieldLabel_type_info = new String[]{'nameFieldLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] quickActions_type_info = new String[]{'quickActions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] recordTypes_type_info = new String[]{'recordTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] sharingReasons_type_info = new String[]{'sharingReasons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] standardFields_type_info = new String[]{'standardFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] startsWith_type_info = new String[]{'startsWith','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] validationRules_type_info = new String[]{'validationRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] webLinks_type_info = new String[]{'webLinks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] workflowTasks_type_info = new String[]{'workflowTasks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'caseValues','fields','gender','layouts','nameFieldLabel','quickActions','recordTypes','sharingReasons','standardFields','startsWith','validationRules','webLinks','workflowTasks'}; + } + public class CustomApplication extends Metadata { + public String type = 'CustomApplication'; + public String fullName; + public MetadataService.CustomApplicationComponents customApplicationComponents; + public String defaultLandingTab; + public String description; + public String detailPageRefreshMethod; + public MetadataService.DomainWhitelist domainWhitelist; + public Boolean enableKeyboardShortcuts; + public Boolean enableMultiMonitorComponents; + public Boolean isServiceCloudConsole; + public MetadataService.KeyboardShortcuts keyboardShortcuts; + public String label; + public MetadataService.ListPlacement listPlacement; + public String listRefreshMethod; + public MetadataService.LiveAgentConfig liveAgentConfig; + public String logo; + public MetadataService.PushNotifications pushNotifications; + public Boolean saveUserSessions; + public String[] tab; + public MetadataService.WorkspaceMappings workspaceMappings; + private String[] customApplicationComponents_type_info = new String[]{'customApplicationComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] defaultLandingTab_type_info = new String[]{'defaultLandingTab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] detailPageRefreshMethod_type_info = new String[]{'detailPageRefreshMethod','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] domainWhitelist_type_info = new String[]{'domainWhitelist','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableKeyboardShortcuts_type_info = new String[]{'enableKeyboardShortcuts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableMultiMonitorComponents_type_info = new String[]{'enableMultiMonitorComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isServiceCloudConsole_type_info = new String[]{'isServiceCloudConsole','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] keyboardShortcuts_type_info = new String[]{'keyboardShortcuts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] listPlacement_type_info = new String[]{'listPlacement','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] listRefreshMethod_type_info = new String[]{'listRefreshMethod','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] liveAgentConfig_type_info = new String[]{'liveAgentConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] logo_type_info = new String[]{'logo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] pushNotifications_type_info = new String[]{'pushNotifications','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] saveUserSessions_type_info = new String[]{'saveUserSessions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] tab_type_info = new String[]{'tab','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] workspaceMappings_type_info = new String[]{'workspaceMappings','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'customApplicationComponents','defaultLandingTab','description','detailPageRefreshMethod','domainWhitelist','enableKeyboardShortcuts','enableMultiMonitorComponents','isServiceCloudConsole','keyboardShortcuts','label','listPlacement','listRefreshMethod','liveAgentConfig','logo','pushNotifications','saveUserSessions','tab','workspaceMappings'}; + } + public class ReportAggregate { + public String acrossGroupingContext; + public String calculatedFormula; + public String datatype; + public String description; + public String developerName; + public String downGroupingContext; + public Boolean isActive; + public Boolean isCrossBlock; + public String masterLabel; + public String reportType; + public Integer scale; + private String[] acrossGroupingContext_type_info = new String[]{'acrossGroupingContext','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] calculatedFormula_type_info = new String[]{'calculatedFormula','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] datatype_type_info = new String[]{'datatype','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] developerName_type_info = new String[]{'developerName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] downGroupingContext_type_info = new String[]{'downGroupingContext','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] isCrossBlock_type_info = new String[]{'isCrossBlock','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] reportType_type_info = new String[]{'reportType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'acrossGroupingContext','calculatedFormula','datatype','description','developerName','downGroupingContext','isActive','isCrossBlock','masterLabel','reportType','scale'}; + } + public class AgentConfigUserAssignments { + public String[] user_x; + private String[] user_x_type_info = new String[]{'user','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'user_x'}; + } + public class DashboardMobileSettings { + public Boolean enableDashboardIPadApp; + private String[] enableDashboardIPadApp_type_info = new String[]{'enableDashboardIPadApp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'enableDashboardIPadApp'}; + } + public class NetworkMemberGroup { + public String[] permissionSet; + public String[] profile; + private String[] permissionSet_type_info = new String[]{'permissionSet','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] profile_type_info = new String[]{'profile','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'permissionSet','profile'}; + } + public class CampaignSharingRules { + public MetadataService.CampaignCriteriaBasedSharingRule[] criteriaBasedRules; + public MetadataService.CampaignOwnerSharingRule[] ownerRules; + private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; + } + public class DebuggingInfo_element { + public String debugLog; + private String[] debugLog_type_info = new String[]{'debugLog','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'debugLog'}; + } + public class Territory2 extends Metadata { + public String type = 'Territory2'; + public String fullName; + public String accountAccessLevel; + public String caseAccessLevel; + public String contactAccessLevel; + public MetadataService.FieldValue[] customFields; + public String description; + public String name; + public String opportunityAccessLevel; + public String parentTerritory; + public MetadataService.Territory2RuleAssociation[] ruleAssociations; + public String territory2Type; + private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customFields_type_info = new String[]{'customFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] parentTerritory_type_info = new String[]{'parentTerritory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] ruleAssociations_type_info = new String[]{'ruleAssociations','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] territory2Type_type_info = new String[]{'territory2Type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'accountAccessLevel','caseAccessLevel','contactAccessLevel','customFields','description','name','opportunityAccessLevel','parentTerritory','ruleAssociations','territory2Type'}; + } + public class Container { + public Integer height; + public Boolean isContainerAutoSizeEnabled; + public String region; + public MetadataService.SidebarComponent[] sidebarComponents; + public String style; + public String unit; + public Integer width; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] isContainerAutoSizeEnabled_type_info = new String[]{'isContainerAutoSizeEnabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] region_type_info = new String[]{'region','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] sidebarComponents_type_info = new String[]{'sidebarComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] style_type_info = new String[]{'style','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] unit_type_info = new String[]{'unit','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'height','isContainerAutoSizeEnabled','region','sidebarComponents','style','unit','width'}; + } + public class FindSimilarOppFilter { + public String[] similarOpportunitiesDisplayColumns; + public String[] similarOpportunitiesMatchFields; + private String[] similarOpportunitiesDisplayColumns_type_info = new String[]{'similarOpportunitiesDisplayColumns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] similarOpportunitiesMatchFields_type_info = new String[]{'similarOpportunitiesMatchFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'similarOpportunitiesDisplayColumns','similarOpportunitiesMatchFields'}; + } + public class Community extends Metadata { + public String type = 'Community'; + public String fullName; + public Boolean active; + public String communityFeedPage; + public String description; + public String emailFooterDocument; + public String emailHeaderDocument; + public String emailNotificationUrl; + public Boolean enableChatterAnswers; + public Boolean enablePrivateQuestions; + public String expertsGroup; + public String portal; + public MetadataService.ReputationLevels reputationLevels; + public Boolean showInPortal; + public String site; + private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] communityFeedPage_type_info = new String[]{'communityFeedPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailFooterDocument_type_info = new String[]{'emailFooterDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailHeaderDocument_type_info = new String[]{'emailHeaderDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emailNotificationUrl_type_info = new String[]{'emailNotificationUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enableChatterAnswers_type_info = new String[]{'enableChatterAnswers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] enablePrivateQuestions_type_info = new String[]{'enablePrivateQuestions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] expertsGroup_type_info = new String[]{'expertsGroup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] portal_type_info = new String[]{'portal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] reputationLevels_type_info = new String[]{'reputationLevels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showInPortal_type_info = new String[]{'showInPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'active','communityFeedPage','description','emailFooterDocument','emailHeaderDocument','emailNotificationUrl','enableChatterAnswers','enablePrivateQuestions','expertsGroup','portal','reputationLevels','showInPortal','site'}; + } + public class DeleteResult { + public MetadataService.Error[] errors; + public String fullName; + public Boolean success; + private String[] errors_type_info = new String[]{'errors','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'errors','fullName','success'}; + } + public class LayoutItem { + public String behavior; + public String canvas; + public String component; + public String customLink; + public Boolean emptySpace; + public String field; + public Integer height; + public String page_x; + public MetadataService.ReportChartComponentLayoutItem reportChartComponent; + public String scontrol; + public Boolean showLabel; + public Boolean showScrollbars; + public String width; + private String[] behavior_type_info = new String[]{'behavior','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] canvas_type_info = new String[]{'canvas','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] component_type_info = new String[]{'component','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] customLink_type_info = new String[]{'customLink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] emptySpace_type_info = new String[]{'emptySpace','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] reportChartComponent_type_info = new String[]{'reportChartComponent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showLabel_type_info = new String[]{'showLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] showScrollbars_type_info = new String[]{'showScrollbars','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'behavior','canvas','component','customLink','emptySpace','field','height','page_x','reportChartComponent','scontrol','showLabel','showScrollbars','width'}; + } + public class SharingReasonTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class SharingSet extends Metadata { + public String type = 'SharingSet'; + public String fullName; + public MetadataService.AccessMapping[] accessMappings; + public String description; + public String name; + public String[] profiles; + private String[] accessMappings_type_info = new String[]{'accessMappings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] profiles_type_info = new String[]{'profiles','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] type_att_info = new String[]{'xsi:type'}; + private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; + private String[] field_order_type_info = new String[]{'fullName', 'accessMappings','description','name','profiles'}; + } + public class checkDeployStatusResponse_element { + public MetadataService.DeployResult result; + private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'result'}; + } + public class ReportColorRange { + public String aggregate; + public String columnName; + public Double highBreakpoint; + public String highColor; + public Double lowBreakpoint; + public String lowColor; + public String midColor; + private String[] aggregate_type_info = new String[]{'aggregate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] columnName_type_info = new String[]{'columnName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] highBreakpoint_type_info = new String[]{'highBreakpoint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] highColor_type_info = new String[]{'highColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] lowBreakpoint_type_info = new String[]{'lowBreakpoint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; + private String[] lowColor_type_info = new String[]{'lowColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] midColor_type_info = new String[]{'midColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'aggregate','columnName','highBreakpoint','highColor','lowBreakpoint','lowColor','midColor'}; + } + public class SearchLayouts { + public String[] customTabListAdditionalFields; + public String[] excludedStandardButtons; + public String[] listViewButtons; + public String[] lookupDialogsAdditionalFields; + public String[] lookupFilterFields; + public String[] lookupPhoneDialogsAdditionalFields; + public String[] searchFilterFields; + public String[] searchResultsAdditionalFields; + public String[] searchResultsCustomButtons; + private String[] customTabListAdditionalFields_type_info = new String[]{'customTabListAdditionalFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] excludedStandardButtons_type_info = new String[]{'excludedStandardButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] listViewButtons_type_info = new String[]{'listViewButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] lookupDialogsAdditionalFields_type_info = new String[]{'lookupDialogsAdditionalFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] lookupFilterFields_type_info = new String[]{'lookupFilterFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] lookupPhoneDialogsAdditionalFields_type_info = new String[]{'lookupPhoneDialogsAdditionalFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] searchFilterFields_type_info = new String[]{'searchFilterFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] searchResultsAdditionalFields_type_info = new String[]{'searchResultsAdditionalFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] searchResultsCustomButtons_type_info = new String[]{'searchResultsCustomButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'customTabListAdditionalFields','excludedStandardButtons','listViewButtons','lookupDialogsAdditionalFields','lookupFilterFields','lookupPhoneDialogsAdditionalFields','searchFilterFields','searchResultsAdditionalFields','searchResultsCustomButtons'}; + } + public class QuickActionTranslation { + public String label; + public String name; + private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'label','name'}; + } + public class AccountSharingRules { + public MetadataService.AccountCriteriaBasedSharingRule[] criteriaBasedRules; + public MetadataService.AccountOwnerSharingRule[] ownerRules; + private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; + private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; + private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; + } + public class MetadataPort { + public String endpoint_x = URL.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/m/32.0'; + public Map inputHttpHeaders_x; + public Map outputHttpHeaders_x; + public String clientCertName_x; + public String clientCert_x; + public String clientCertPasswd_x; + public Integer timeout_x; + public MetadataService.SessionHeader_element SessionHeader; + public MetadataService.DebuggingInfo_element DebuggingInfo; + public MetadataService.CallOptions_element CallOptions; + public MetadataService.DebuggingHeader_element DebuggingHeader; + private String SessionHeader_hns = 'SessionHeader=http://soap.sforce.com/2006/04/metadata'; + private String DebuggingInfo_hns = 'DebuggingInfo=http://soap.sforce.com/2006/04/metadata'; + private String CallOptions_hns = 'CallOptions=http://soap.sforce.com/2006/04/metadata'; + private String DebuggingHeader_hns = 'DebuggingHeader=http://soap.sforce.com/2006/04/metadata'; + private String[] ns_map_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata', 'MetadataService'}; + public MetadataService.SaveResult[] updateMetadata(MetadataService.Metadata[] metadata) { + MetadataService.updateMetadata_element request_x = new MetadataService.updateMetadata_element(); + request_x.metadata = metadata; + MetadataService.updateMetadataResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'updateMetadata', + 'http://soap.sforce.com/2006/04/metadata', + 'updateMetadataResponse', + 'MetadataService.updateMetadataResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.AsyncResult retrieve(MetadataService.RetrieveRequest retrieveRequest) { + MetadataService.retrieve_element request_x = new MetadataService.retrieve_element(); + request_x.retrieveRequest = retrieveRequest; + MetadataService.retrieveResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'retrieve', + 'http://soap.sforce.com/2006/04/metadata', + 'retrieveResponse', + 'MetadataService.retrieveResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.DeployResult checkDeployStatus(String asyncProcessId,Boolean includeDetails) { + MetadataService.checkDeployStatus_element request_x = new MetadataService.checkDeployStatus_element(); + request_x.asyncProcessId = asyncProcessId; + request_x.includeDetails = includeDetails; + MetadataService.checkDeployStatusResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'checkDeployStatus', + 'http://soap.sforce.com/2006/04/metadata', + 'checkDeployStatusResponse', + 'MetadataService.checkDeployStatusResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.SaveResult renameMetadata(String type_x,String oldFullName,String newFullName) { + MetadataService.renameMetadata_element request_x = new MetadataService.renameMetadata_element(); + request_x.type_x = type_x; + request_x.oldFullName = oldFullName; + request_x.newFullName = newFullName; + MetadataService.renameMetadataResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'renameMetadata', + 'http://soap.sforce.com/2006/04/metadata', + 'renameMetadataResponse', + 'MetadataService.renameMetadataResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.CancelDeployResult cancelDeploy(String String_x) { + MetadataService.cancelDeploy_element request_x = new MetadataService.cancelDeploy_element(); + request_x.String_x = String_x; + MetadataService.cancelDeployResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'cancelDeploy', + 'http://soap.sforce.com/2006/04/metadata', + 'cancelDeployResponse', + 'MetadataService.cancelDeployResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.FileProperties[] listMetadata(MetadataService.ListMetadataQuery[] queries,Double asOfVersion) { + MetadataService.listMetadata_element request_x = new MetadataService.listMetadata_element(); + request_x.queries = queries; + request_x.asOfVersion = asOfVersion; + MetadataService.listMetadataResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'listMetadata', + 'http://soap.sforce.com/2006/04/metadata', + 'listMetadataResponse', + 'MetadataService.listMetadataResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.DeleteResult[] deleteMetadata(String type_x,String[] fullNames) { + MetadataService.deleteMetadata_element request_x = new MetadataService.deleteMetadata_element(); + request_x.type_x = type_x; + request_x.fullNames = fullNames; + MetadataService.deleteMetadataResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'deleteMetadata', + 'http://soap.sforce.com/2006/04/metadata', + 'deleteMetadataResponse', + 'MetadataService.deleteMetadataResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.UpsertResult[] upsertMetadata(MetadataService.Metadata[] metadata) { + MetadataService.upsertMetadata_element request_x = new MetadataService.upsertMetadata_element(); + request_x.metadata = metadata; + MetadataService.upsertMetadataResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'upsertMetadata', + 'http://soap.sforce.com/2006/04/metadata', + 'upsertMetadataResponse', + 'MetadataService.upsertMetadataResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.SaveResult[] createMetadata(MetadataService.Metadata[] metadata) { + MetadataService.createMetadata_element request_x = new MetadataService.createMetadata_element(); + request_x.metadata = metadata; + MetadataService.createMetadataResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'createMetadata', + 'http://soap.sforce.com/2006/04/metadata', + 'createMetadataResponse', + 'MetadataService.createMetadataResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.RetrieveResult checkRetrieveStatus(String asyncProcessId) { + MetadataService.checkRetrieveStatus_element request_x = new MetadataService.checkRetrieveStatus_element(); + request_x.asyncProcessId = asyncProcessId; + MetadataService.checkRetrieveStatusResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'checkRetrieveStatus', + 'http://soap.sforce.com/2006/04/metadata', + 'checkRetrieveStatusResponse', + 'MetadataService.checkRetrieveStatusResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.IReadResult readMetadata(String type_x,String[] fullNames) { + MetadataService.readMetadata_element request_x = new MetadataService.readMetadata_element(); + request_x.type_x = type_x; + request_x.fullNames = fullNames; + MetadataService.IReadResponseElement response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'readMetadata', + 'http://soap.sforce.com/2006/04/metadata', + 'readMetadataResponse', + 'MetadataService.read' + type_x + 'Response_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.getResult(); + } + public MetadataService.DescribeMetadataResult describeMetadata(Double asOfVersion) { + MetadataService.describeMetadata_element request_x = new MetadataService.describeMetadata_element(); + request_x.asOfVersion = asOfVersion; + MetadataService.describeMetadataResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'describeMetadata', + 'http://soap.sforce.com/2006/04/metadata', + 'describeMetadataResponse', + 'MetadataService.describeMetadataResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + public MetadataService.AsyncResult deploy(String ZipFile,MetadataService.DeployOptions DeployOptions) { + MetadataService.deploy_element request_x = new MetadataService.deploy_element(); + request_x.ZipFile = ZipFile; + request_x.DeployOptions = DeployOptions; + MetadataService.deployResponse_element response_x; + Map response_map_x = new Map(); + response_map_x.put('response_x', response_x); + WebServiceCallout.invoke( + this, + request_x, + response_map_x, + new String[]{endpoint_x, + '', + 'http://soap.sforce.com/2006/04/metadata', + 'deploy', + 'http://soap.sforce.com/2006/04/metadata', + 'deployResponse', + 'MetadataService.deployResponse_element'} + ); + response_x = response_map_x.get('response_x'); + return response_x.result; + } + } +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataService.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataService.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataService.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls b/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls new file mode 100644 index 0000000..68da540 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls @@ -0,0 +1,875 @@ +/** + * Copyright (c) 2012, FinancialForce.com, inc + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * - Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * - Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * - Neither the name of the FinancialForce.com, inc nor the names of its contributors + * may be used to endorse or promote products derived from this software without + * specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY + * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +**/ + +/** + * This is a dummy test class to obtain 100% coverage for the generated WSDL2Apex code, it is not a funcitonal test class + * You should follow the usual practices to cover your other code, as shown in the MetadataCreateJobTest.cls + **/ +@isTest +private class MetadataServiceTest +{ + /** + * Dummy Metadata API web service mock class (see MetadataCreateJobTest.cls for a better example) + **/ + private class WebServiceMockImpl implements WebServiceMock + { + public void doInvoke( + Object stub, Object request, Map response, + String endpoint, String soapAction, String requestName, + String responseNS, String responseName, String responseType) + { + if(request instanceof MetadataService.retrieve_element) + response.put('response_x', new MetadataService.retrieveResponse_element()); + else if(request instanceof MetadataService.checkDeployStatus_element) + response.put('response_x', new MetadataService.checkDeployStatusResponse_element()); + else if(request instanceof MetadataService.listMetadata_element) + response.put('response_x', new MetadataService.listMetadataResponse_element()); + else if(request instanceof MetadataService.checkRetrieveStatus_element) + response.put('response_x', new MetadataService.checkRetrieveStatusResponse_element()); + else if(request instanceof MetadataService.describeMetadata_element) + response.put('response_x', new MetadataService.describeMetadataResponse_element()); + else if(request instanceof MetadataService.deploy_element) + response.put('response_x', new MetadataService.deployResponse_element()); + else if(request instanceof MetadataService.updateMetadata_element) + response.put('response_x', new MetadataService.updateMetadataResponse_element()); + else if(request instanceof MetadataService.renameMetadata_element) + response.put('response_x', new MetadataService.renameMetadataResponse_element()); + else if(request instanceof MetadataService.cancelDeploy_element) + response.put('response_x', new MetadataService.cancelDeployResponse_element()); + else if(request instanceof MetadataService.deleteMetadata_element) + response.put('response_x', new MetadataService.deleteMetadataResponse_element()); + else if(request instanceof MetadataService.upsertMetadata_element) + response.put('response_x', new MetadataService.upsertMetadataResponse_element()); + else if(request instanceof MetadataService.createMetadata_element) + response.put('response_x', new MetadataService.createMetadataResponse_element()); + return; + } + } + + @IsTest + private static void coverGeneratedCodeCRUDOperations() + { + // Null Web Service mock implementation + System.Test.setMock(WebServiceMock.class, new WebServiceMockImpl()); + // Only required to workaround a current code coverage bug in the platform + MetadataService metaDataService = new MetadataService(); + // Invoke operations + MetadataService.MetadataPort metaDataPort = new MetadataService.MetadataPort(); + } + + @IsTest + private static void coverGeneratedCodeFileBasedOperations1() + { + // Null Web Service mock implementation + System.Test.setMock(WebServiceMock.class, new WebServiceMockImpl()); + // Only required to workaround a current code coverage bug in the platform + MetadataService metaDataService = new MetadataService(); + // Invoke operations + MetadataService.MetadataPort metaDataPort = new MetadataService.MetadataPort(); + metaDataPort.retrieve(null); + metaDataPort.checkDeployStatus(null, false); + metaDataPort.listMetadata(null, null); + metaDataPort.describeMetadata(null); + metaDataPort.checkRetrieveStatus(null); + metaDataPort.deploy(null, null); + metaDataPort.checkDeployStatus(null, false); + metaDataPort.updateMetadata(null); + metaDataPort.renameMetadata(null, null, null); + metaDataPort.cancelDeploy(null); + } + + @IsTest + private static void coverGeneratedCodeFileBasedOperations2() + { + // Null Web Service mock implementation + System.Test.setMock(WebServiceMock.class, new WebServiceMockImpl()); + // Only required to workaround a current code coverage bug in the platform + MetadataService metaDataService = new MetadataService(); + // Invoke operations + MetadataService.MetadataPort metaDataPort = new MetadataService.MetadataPort(); + metaDataPort.deleteMetadata(null, null); + metaDataPort.upsertMetadata(null); + metaDataPort.createMetadata(null); + } + + @IsTest + private static void coverGeneratedCodeTypes() + { + // Reference types + new MetadataService(); + new MetadataService.listMetadataResponse_element(); + new MetadataService.WorkflowRule(); + new MetadataService.AccountOwnerSharingRule(); + new MetadataService.RecordTypeTranslation(); + new MetadataService.checkDeployStatus_element(); + new MetadataService.CodeCoverageWarning(); + new MetadataService.FlowApexPluginCall(); + new MetadataService.FlowInputValidationRule(); + new MetadataService.FlowFormula(); + new MetadataService.CustomObjectCriteriaBasedSharingRule(); + new MetadataService.PasswordPolicies(); + new MetadataService.QueueSobject(); + new MetadataService.CaseSharingRules(); + new MetadataService.PicklistValueTranslation(); + new MetadataService.OpportunityOwnerSharingRule(); + new MetadataService.ContactOwnerSharingRule(); + new MetadataService.CustomDataType(); + new MetadataService.PrimaryTabComponents(); + new MetadataService.WorkflowEmailRecipient(); + new MetadataService.DescribeMetadataResult(); + new MetadataService.RecordType(); + new MetadataService.Scontrol(); + new MetadataService.DashboardComponent(); + new MetadataService.ContactCriteriaBasedSharingRule(); + new MetadataService.FilterItem(); + new MetadataService.Profile(); + new MetadataService.ReportFilter(); + new MetadataService.PermissionSetApexClassAccess(); + new MetadataService.LogInfo(); + new MetadataService.Layout(); + new MetadataService.WebLink(); + new MetadataService.WorkflowTaskTranslation(); + new MetadataService.FlowElement(); + new MetadataService.ObjectNameCaseValue(); + new MetadataService.FlowInputFieldAssignment(); + new MetadataService.CustomDataTypeTranslation(); + new MetadataService.DashboardComponentSection(); + new MetadataService.ReportTypeColumn(); + new MetadataService.CallOptions_element(); + new MetadataService.CustomObjectOwnerSharingRule(); + new MetadataService.CustomFieldTranslation(); + new MetadataService.AnalyticSnapshot(); + new MetadataService.FlowRule(); + new MetadataService.FlowRecordUpdate(); + new MetadataService.CustomSite(); + new MetadataService.ReportBlockInfo(); + new MetadataService.describeMetadataResponse_element(); + new MetadataService.CaseOwnerSharingRule(); + new MetadataService.ScontrolTranslation(); + new MetadataService.DeployMessage(); + new MetadataService.FlowSubflowInputAssignment(); + new MetadataService.Group_x(); + new MetadataService.ReportColumn(); + new MetadataService.ReportType(); + new MetadataService.CustomPageWebLink(); + new MetadataService.CodeCoverageResult(); + new MetadataService.ApexComponent(); + new MetadataService.BaseSharingRule(); + new MetadataService.WorkflowKnowledgePublish(); + new MetadataService.NetworkAccess(); + new MetadataService.Workflow(); + new MetadataService.RecordTypePicklistValue(); + new MetadataService.describeMetadata_element(); + new MetadataService.DashboardFilterColumn(); + new MetadataService.FlowChoice(); + new MetadataService.ReportParam(); + new MetadataService.RoleOrTerritory(); + new MetadataService.FlowStep(); + new MetadataService.FlowApexPluginCallInputParameter(); + new MetadataService.WorkflowActionReference(); + new MetadataService.ProfileObjectPermissions(); + new MetadataService.Role(); + new MetadataService.RetrieveResult(); + new MetadataService.SecuritySettings(); + new MetadataService.WorkflowTimeTrigger(); + new MetadataService.CustomObjectSharingRules(); + new MetadataService.retrieve_element(); + new MetadataService.DescribeMetadataObject(); + new MetadataService.DashboardFilterOption(); + new MetadataService.LayoutColumn(); + new MetadataService.WorkflowOutboundMessage(); + new MetadataService.RunTestSuccess(); + new MetadataService.Queue(); + new MetadataService.LeadSharingRules(); + new MetadataService.ListViewFilter(); + new MetadataService.CampaignOwnerSharingRule(); + new MetadataService.CustomField(); + new MetadataService.WorkflowTask(); + new MetadataService.deployResponse_element(); + new MetadataService.DataCategory(); + new MetadataService.FlowOutputFieldAssignment(); + new MetadataService.EmailTemplate(); + new MetadataService.ReportAggregateReference(); + new MetadataService.ObjectUsage(); + new MetadataService.FileProperties(); + new MetadataService.CustomTabTranslation(); + new MetadataService.BusinessProcess(); + new MetadataService.Flow(); + new MetadataService.PermissionSet(); + new MetadataService.PermissionSetObjectPermissions(); + new MetadataService.ReportCrossFilter(); + new MetadataService.Report(); + new MetadataService.FlowSubflowOutputAssignment(); + new MetadataService.ListView(); + new MetadataService.FlowRecordCreate(); + new MetadataService.DashboardTableColumn(); + new MetadataService.ContactSharingRules(); + new MetadataService.AccountTerritorySharingRules(); + new MetadataService.AsyncResult(); + new MetadataService.ArticleTypeChannelDisplay(); + new MetadataService.checkRetrieveStatus_element(); + new MetadataService.ProfileLayoutAssignment(); + new MetadataService.ReportFolder(); + new MetadataService.FlowTextTemplate(); + new MetadataService.RelatedListItem(); + new MetadataService.FlowNode(); + new MetadataService.RetrieveRequest(); + new MetadataService.ListMetadataQuery(); + new MetadataService.FlowConnector(); + new MetadataService.CustomApplicationComponent(); + new MetadataService.FlowRecordLookup(); + new MetadataService.FieldSet(); + new MetadataService.ProfileApexClassAccess(); + new MetadataService.AccountCriteriaBasedSharingRule(); + new MetadataService.DebuggingHeader_element(); + new MetadataService.CustomDataTypeComponentTranslation(); + new MetadataService.FlowRecordDelete(); + new MetadataService.FlowDecision(); + new MetadataService.ReportTypeSectionTranslation(); + new MetadataService.IpRange(); + new MetadataService.FlowApexPluginCallOutputParameter(); + new MetadataService.ReportBucketField(); + new MetadataService.CaseCriteriaBasedSharingRule(); + new MetadataService.CustomLabel(); + new MetadataService.Attachment(); + new MetadataService.SharingRules(); + new MetadataService.CustomConsoleComponents(); + new MetadataService.Portal(); + new MetadataService.DomainWhitelist(); + new MetadataService.ChartSummary(); + new MetadataService.RunTestFailure(); + new MetadataService.Territory(); + new MetadataService.SharedTo(); + new MetadataService.FlowRecordFilter(); + new MetadataService.SubtabComponents(); + new MetadataService.FlowScreen(); + new MetadataService.WorkflowAlert(); + new MetadataService.Picklist(); + new MetadataService.ReportLayoutSection(); + new MetadataService.SummaryLayoutItem(); + new MetadataService.LayoutSection(); + new MetadataService.ReportTimeFrameFilter(); + new MetadataService.LayoutSectionTranslation(); + new MetadataService.DataCategoryGroup(); + new MetadataService.listMetadata_element(); + new MetadataService.ValidationRule(); + new MetadataService.WorkspaceMapping(); + new MetadataService.MetadataWithContent(); + new MetadataService.ValidationRuleTranslation(); + new MetadataService.AccountTerritorySharingRule(); + new MetadataService.Metadata(); + new MetadataService.ReportBucketFieldValue(); + new MetadataService.OpportunitySharingRules(); + new MetadataService.HomePageLayout(); + new MetadataService.FlowSubflow(); + new MetadataService.FlowScreenField(); + new MetadataService.SiteWebAddress(); + new MetadataService.RetrieveMessage(); + new MetadataService.Dashboard(); + new MetadataService.EmailFolder(); + new MetadataService.SessionHeader_element(); + new MetadataService.SummaryLayout(); + new MetadataService.FlowCondition(); + new MetadataService.DeployOptions(); + new MetadataService.FlowAssignment(); + new MetadataService.ProfileApplicationVisibility(); + new MetadataService.CustomApplicationComponents(); + new MetadataService.FlowElementReferenceOrValue(); + new MetadataService.EntitlementTemplate(); + new MetadataService.ProfileTabVisibility(); + new MetadataService.ActionOverride(); + new MetadataService.WorkspaceMappings(); + new MetadataService.WorkflowAction(); + new MetadataService.DashboardFolder(); + new MetadataService.PermissionSetApexPageAccess(); + new MetadataService.LayoutTranslation(); + new MetadataService.CustomObject(); + new MetadataService.Translations(); + new MetadataService.ApexTrigger(); + new MetadataService.ReportTypeTranslation(); + new MetadataService.FlowAssignmentItem(); + new MetadataService.CustomApplicationTranslation(); + new MetadataService.CustomLabels(); + new MetadataService.PackageTypeMembers(); + new MetadataService.PicklistValue(); + new MetadataService.RemoteSiteSetting(); + new MetadataService.deploy_element(); + new MetadataService.retrieveResponse_element(); + new MetadataService.ArticleTypeTemplate(); + new MetadataService.ReportGrouping(); + new MetadataService.PermissionSetFieldPermissions(); + new MetadataService.AnalyticSnapshotMapping(); + new MetadataService.LeadCriteriaBasedSharingRule(); + new MetadataService.SharingRecalculation(); + new MetadataService.ProfileLoginIpRange(); + new MetadataService.WebLinkTranslation(); + new MetadataService.ObjectRelationship(); + new MetadataService.ListPlacement(); + new MetadataService.SiteRedirectMapping(); + new MetadataService.OwnerSharingRule(); + new MetadataService.WorkflowFieldUpdate(); + new MetadataService.LetterheadLine(); + new MetadataService.OpportunityCriteriaBasedSharingRule(); + new MetadataService.CustomTab(); + new MetadataService.FlowChoiceUserInput(); + new MetadataService.Letterhead(); + new MetadataService.ReportTypeColumnTranslation(); + new MetadataService.CustomPageWebLinkTranslation(); + new MetadataService.DocumentFolder(); + new MetadataService.FlowConstant(); + new MetadataService.ProfileRecordTypeVisibility(); + new MetadataService.PackageVersion(); + new MetadataService.CustomLabelTranslation(); + new MetadataService.ReportChart(); + new MetadataService.checkRetrieveStatusResponse_element(); + new MetadataService.LeadOwnerSharingRule(); + new MetadataService.ProfileFieldLevelSecurity(); + new MetadataService.SharingReason(); + new MetadataService.RunTestsResult(); + new MetadataService.PermissionSetUserPermission(); + new MetadataService.MiniLayout(); + new MetadataService.FlowVariable(); + new MetadataService.ProfileLoginHours(); + new MetadataService.DashboardFilter(); + new MetadataService.CodeLocation(); + new MetadataService.ReportBucketFieldSourceValue(); + new MetadataService.FieldSetItem(); + new MetadataService.ReportFilterItem(); + new MetadataService.FlowDynamicChoiceSet(); + new MetadataService.CustomDataTypeComponent(); + new MetadataService.CustomObjectTranslation(); + new MetadataService.CustomApplication(); + new MetadataService.ReportAggregate(); + new MetadataService.ApexClass(); + new MetadataService.CampaignSharingRules(); + new MetadataService.DebuggingInfo_element(); + new MetadataService.Package_x(); + new MetadataService.SessionSettings(); + new MetadataService.Document(); + new MetadataService.Folder(); + new MetadataService.DeployResult(); + new MetadataService.CampaignCriteriaBasedSharingRule(); + new MetadataService.LayoutItem(); + new MetadataService.ProfileApexPageAccess(); + new MetadataService.SharingReasonTranslation(); + new MetadataService.checkDeployStatusResponse_element(); + new MetadataService.ReportColorRange(); + new MetadataService.SearchLayouts(); + new MetadataService.LetterheadHeaderFooter(); + new MetadataService.HomePageComponent(); + new MetadataService.AccountSharingRules(); + new MetadataService.MobileSettings(); + new MetadataService.EscalationRules(); + new MetadataService.KnowledgeAnswerSettings(); + new MetadataService.ExternalDataSource(); + new MetadataService.EntitlementProcess(); + new MetadataService.IdeasSettings(); + new MetadataService.Country(); + new MetadataService.ReputationLevels(); + new MetadataService.KnowledgeSitesSettings(); + new MetadataService.AddressSettings(); + new MetadataService.ProfileExternalDataSourceAccess(); + new MetadataService.CallCenterItem(); + new MetadataService.CallCenter(); + new MetadataService.PermissionSetExternalDataSourceAccess(); + new MetadataService.PermissionSetTabSetting(); + new MetadataService.AuthProvider(); + new MetadataService.EmailToCaseSettings(); + new MetadataService.EscalationAction(); + new MetadataService.State(); + new MetadataService.AssignmentRule(); + new MetadataService.AutoResponseRule(); + new MetadataService.CaseSettings(); + new MetadataService.ChatterAnswersSettings(); + new MetadataService.CountriesAndStates(); + new MetadataService.SFDCMobileSettings(); + new MetadataService.EntitlementProcessMilestoneItem(); + new MetadataService.TouchMobileSettings(); + new MetadataService.AssignmentRules(); + new MetadataService.ContractSettings(); + new MetadataService.KnowledgeCaseSettings(); + new MetadataService.ChatterAnswersReputationLevel(); + new MetadataService.KnowledgeSettings(); + new MetadataService.Community(); + new MetadataService.AutoResponseRules(); + new MetadataService.EmailToCaseRoutingAddress(); + new MetadataService.RuleEntry(); + new MetadataService.EntitlementSettings(); + new MetadataService.CriteriaBasedSharingRule(); + new MetadataService.ApexPage(); + new MetadataService.WorkflowSend(); + new MetadataService.ChatterMobileSettings(); + new MetadataService.CallCenterSection(); + new MetadataService.EntitlementProcessMilestoneTimeTrigger(); + new MetadataService.StaticResource(); + new MetadataService.MilestoneType(); + new MetadataService.FiscalYearSettings(); + new MetadataService.CompanySettings(); + new MetadataService.WebToCaseSettings(); + new MetadataService.EscalationRule(); + new MetadataService.DashboardMobileSettings(); + new MetadataService.FieldOverride(); + new MetadataService.QuotasSettings(); + new MetadataService.Skill(); + new MetadataService.AgentConfigProfileAssignments(); + new MetadataService.LiveAgentSettings(); + new MetadataService.SkillAssignments(); + new MetadataService.ActivitiesSettings(); + new MetadataService.LiveAgentConfig(); + new MetadataService.ApprovalPageField(); + new MetadataService.QuickActionList(); + new MetadataService.LiveChatButtonDeployments(); + new MetadataService.InstalledPackage(); + new MetadataService.PushNotification(); + new MetadataService.LiveChatAgentConfig(); + new MetadataService.AdjustmentsSettings(); + new MetadataService.ForecastingSettings(); + new MetadataService.QuickActionListItem(); + new MetadataService.Branding(); + new MetadataService.QuickActionLayoutItem(); + new MetadataService.OpportunityListFieldsSelectedSettings(); + new MetadataService.ApprovalStepRejectBehavior(); + new MetadataService.FolderShare(); + new MetadataService.ApprovalEntryCriteria(); + new MetadataService.ProductSettings(); + new MetadataService.OpportunitySettings(); + new MetadataService.LiveChatDeployment(); + new MetadataService.QuickActionLayoutColumn(); + new MetadataService.GlobalQuickActionTranslation(); + new MetadataService.ApprovalStepApprover(); + new MetadataService.QuoteSettings(); + new MetadataService.LiveChatButton(); + new MetadataService.Network(); + new MetadataService.LiveChatDeploymentDomainWhitelist(); + new MetadataService.KnowledgeLanguageSettings(); + new MetadataService.Approver(); + new MetadataService.SamlSsoConfig(); + new MetadataService.ApprovalSubmitter(); + new MetadataService.KeyboardShortcuts(); + new MetadataService.ApprovalStep(); + new MetadataService.AgentConfigAssignments(); + new MetadataService.QuickAction(); + new MetadataService.DefaultShortcut(); + new MetadataService.ApprovalAction(); + new MetadataService.KnowledgeLanguage(); + new MetadataService.LiveChatButtonSkills(); + new MetadataService.SkillUserAssignments(); + new MetadataService.NextAutomatedApprover(); + new MetadataService.ApprovalProcess(); + new MetadataService.QuickActionLayout(); + new MetadataService.PushNotifications(); + new MetadataService.ForecastRangeSettings(); + new MetadataService.IdeaReputationLevel(); + new MetadataService.NetworkTabSet(); + new MetadataService.SkillProfileAssignments(); + new MetadataService.CustomShortcut(); + new MetadataService.PagesToOpen(); + new MetadataService.AgentConfigUserAssignments(); + new MetadataService.NetworkMemberGroup(); + new MetadataService.FindSimilarOppFilter(); + new MetadataService.QuickActionTranslation(); + new MetadataService.WorkflowFlowActionParameter(); + new MetadataService.ConnectedAppOauthConfig(); + new MetadataService.FlowLoop(); + new MetadataService.UserSharingRules(); + new MetadataService.renameMetadata_element(); + new MetadataService.ForecastingTypeSettings(); + new MetadataService.PermissionSetApplicationVisibility(); + new MetadataService.FeedLayout(); + new MetadataService.AppMenuItem(); + new MetadataService.deleteMetadataResponse_element(); + new MetadataService.ConnectedAppAttribute(); + new MetadataService.ReportChartComponentLayoutItem(); + new MetadataService.AppMenu(); + new MetadataService.ConnectedAppIpRange(); + new MetadataService.Error(); + new MetadataService.ComponentInstanceProperty(); + new MetadataService.BusinessHoursEntry(); + new MetadataService.RelatedContent(); + new MetadataService.SupervisorAgentConfigSkills(); + new MetadataService.ComponentInstance(); + new MetadataService.SidebarComponent(); + new MetadataService.Holiday(); + new MetadataService.SaveResult(); + new MetadataService.readMetadataResponse_element(); + new MetadataService.FlexiPageRegion(); + new MetadataService.deleteMetadata_element(); + new MetadataService.ConnectedAppMobileDetailConfig(); + new MetadataService.AccountSettings(); + new MetadataService.PermissionSetRecordTypeVisibility(); + new MetadataService.OrderSettings(); + new MetadataService.ProfileUserPermission(); + new MetadataService.UserCriteriaBasedSharingRule(); + new MetadataService.LookupFilterTranslation(); + new MetadataService.WorkflowFlowAction(); + new MetadataService.ConnectedApp(); + new MetadataService.SiteDotCom(); + new MetadataService.createMetadataResponse_element(); + new MetadataService.updateMetadata_element(); + new MetadataService.LookupFilter(); + new MetadataService.updateMetadataResponse_element(); + new MetadataService.FlexiPage(); + new MetadataService.ConnectedAppSamlConfig(); + new MetadataService.createMetadata_element(); + new MetadataService.FeedLayoutComponent(); + new MetadataService.PostTemplate(); + new MetadataService.RelatedContentItem(); + new MetadataService.readMetadata_element(); + new MetadataService.ReadWorkflowRuleResult(); + new MetadataService.readWorkflowRuleResponse_element(); + new MetadataService.ReadSamlSsoConfigResult(); + new MetadataService.readSamlSsoConfigResponse_element(); + new MetadataService.ReadCustomLabelResult(); + new MetadataService.readCustomLabelResponse_element(); + new MetadataService.ReadBusinessHoursEntryResult(); + new MetadataService.readBusinessHoursEntryResponse_element(); + new MetadataService.ReadMobileSettingsResult(); + new MetadataService.readMobileSettingsResponse_element(); + new MetadataService.ReadChatterAnswersSettingsResult(); + new MetadataService.readChatterAnswersSettingsResponse_element(); + new MetadataService.ReadSharingRulesResult(); + new MetadataService.readSharingRulesResponse_element(); + new MetadataService.ReadPortalResult(); + new MetadataService.readPortalResponse_element(); + new MetadataService.ReadSkillResult(); + new MetadataService.readSkillResponse_element(); + new MetadataService.ReadEscalationRulesResult(); + new MetadataService.readEscalationRulesResponse_element(); + new MetadataService.ReadCustomDataTypeResult(); + new MetadataService.readCustomDataTypeResponse_element(); + new MetadataService.ReadExternalDataSourceResult(); + new MetadataService.readExternalDataSourceResponse_element(); + new MetadataService.ReadEntitlementProcessResult(); + new MetadataService.readEntitlementProcessResponse_element(); + new MetadataService.ReadRecordTypeResult(); + new MetadataService.readRecordTypeResponse_element(); + new MetadataService.ReadScontrolResult(); + new MetadataService.readScontrolResponse_element(); + new MetadataService.ReadDataCategoryGroupResult(); + new MetadataService.readDataCategoryGroupResponse_element(); + new MetadataService.ReadValidationRuleResult(); + new MetadataService.readValidationRuleResponse_element(); + new MetadataService.ReadProfileResult(); + new MetadataService.readProfileResponse_element(); + new MetadataService.ReadIdeasSettingsResult(); + new MetadataService.readIdeasSettingsResponse_element(); + new MetadataService.ReadConnectedAppResult(); + new MetadataService.readConnectedAppResponse_element(); + new MetadataService.ReadApexPageResult(); + new MetadataService.readApexPageResponse_element(); + new MetadataService.ReadProductSettingsResult(); + new MetadataService.readProductSettingsResponse_element(); + new MetadataService.ReadLiveAgentSettingsResult(); + new MetadataService.readLiveAgentSettingsResponse_element(); + new MetadataService.ReadOpportunitySettingsResult(); + new MetadataService.readOpportunitySettingsResponse_element(); + new MetadataService.ReadLiveChatDeploymentResult(); + new MetadataService.readLiveChatDeploymentResponse_element(); + new MetadataService.ReadActivitiesSettingsResult(); + new MetadataService.readActivitiesSettingsResponse_element(); + new MetadataService.ReadLayoutResult(); + new MetadataService.readLayoutResponse_element(); + new MetadataService.ReadWebLinkResult(); + new MetadataService.readWebLinkResponse_element(); + new MetadataService.ReadSiteDotComResult(); + new MetadataService.readSiteDotComResponse_element(); + new MetadataService.ReadCompanySettingsResult(); + new MetadataService.readCompanySettingsResponse_element(); + new MetadataService.ReadHomePageLayoutResult(); + new MetadataService.readHomePageLayoutResponse_element(); + new MetadataService.ReadDashboardResult(); + new MetadataService.readDashboardResponse_element(); + new MetadataService.ReadAssignmentRulesResult(); + new MetadataService.readAssignmentRulesResponse_element(); + new MetadataService.ReadAnalyticSnapshotResult(); + new MetadataService.readAnalyticSnapshotResponse_element(); + new MetadataService.ReadEscalationRuleResult(); + new MetadataService.readEscalationRuleResponse_element(); + new MetadataService.ReadCustomSiteResult(); + new MetadataService.readCustomSiteResponse_element(); + new MetadataService.ReadGroupResult(); + new MetadataService.readGroupResponse_element(); + new MetadataService.ReadReportTypeResult(); + new MetadataService.readReportTypeResponse_element(); + new MetadataService.ReadQuickActionResult(); + new MetadataService.readQuickActionResponse_element(); + new MetadataService.ReadCustomPageWebLinkResult(); + new MetadataService.readCustomPageWebLinkResponse_element(); + new MetadataService.ReadApexComponentResult(); + new MetadataService.readApexComponentResponse_element(); + new MetadataService.ReadBaseSharingRuleResult(); + new MetadataService.readBaseSharingRuleResponse_element(); + new MetadataService.ReadEntitlementTemplateResult(); + new MetadataService.readEntitlementTemplateResponse_element(); + new MetadataService.ReadFlexiPageResult(); + new MetadataService.readFlexiPageResponse_element(); + new MetadataService.ReadWorkflowResult(); + new MetadataService.readWorkflowResponse_element(); + new MetadataService.ReadWorkflowActionResult(); + new MetadataService.readWorkflowActionResponse_element(); + new MetadataService.ReadAddressSettingsResult(); + new MetadataService.readAddressSettingsResponse_element(); + new MetadataService.ReadContractSettingsResult(); + new MetadataService.readContractSettingsResponse_element(); + new MetadataService.ReadCustomObjectResult(); + new MetadataService.readCustomObjectResponse_element(); + new MetadataService.ReadTranslationsResult(); + new MetadataService.readTranslationsResponse_element(); + new MetadataService.ReadRoleOrTerritoryResult(); + new MetadataService.readRoleOrTerritoryResponse_element(); + new MetadataService.ReadApexTriggerResult(); + new MetadataService.readApexTriggerResponse_element(); + new MetadataService.ReadCustomLabelsResult(); + new MetadataService.readCustomLabelsResponse_element(); + new MetadataService.ReadSecuritySettingsResult(); + new MetadataService.readSecuritySettingsResponse_element(); + new MetadataService.ReadCallCenterResult(); + new MetadataService.readCallCenterResponse_element(); + new MetadataService.ReadPicklistValueResult(); + new MetadataService.readPicklistValueResponse_element(); + new MetadataService.ReadRemoteSiteSettingResult(); + new MetadataService.readRemoteSiteSettingResponse_element(); + new MetadataService.ReadQuoteSettingsResult(); + new MetadataService.readQuoteSettingsResponse_element(); + new MetadataService.ReadSynonymDictionaryResult(); + new MetadataService.readSynonymDictionaryResponse_element(); + new MetadataService.ReadPostTemplateResult(); + new MetadataService.readPostTemplateResponse_element(); + new MetadataService.ReadCustomTabResult(); + new MetadataService.readCustomTabResponse_element(); + new MetadataService.ReadLetterheadResult(); + new MetadataService.readLetterheadResponse_element(); + new MetadataService.ReadInstalledPackageResult(); + new MetadataService.readInstalledPackageResponse_element(); + new MetadataService.ReadQueueResult(); + new MetadataService.readQueueResponse_element(); + new MetadataService.ReadAuthProviderResult(); + new MetadataService.readAuthProviderResponse_element(); + new MetadataService.ReadEntitlementSettingsResult(); + new MetadataService.readEntitlementSettingsResponse_element(); + new MetadataService.ReadCustomFieldResult(); + new MetadataService.readCustomFieldResponse_element(); + new MetadataService.ReadStaticResourceResult(); + new MetadataService.readStaticResourceResponse_element(); + new MetadataService.ReadEmailTemplateResult(); + new MetadataService.readEmailTemplateResponse_element(); + new MetadataService.ReadSharingReasonResult(); + new MetadataService.readSharingReasonResponse_element(); + new MetadataService.ReadLiveChatButtonResult(); + new MetadataService.readLiveChatButtonResponse_element(); + new MetadataService.ReadNetworkResult(); + new MetadataService.readNetworkResponse_element(); + new MetadataService.ReadApprovalProcessResult(); + new MetadataService.readApprovalProcessResponse_element(); + new MetadataService.ReadMilestoneTypeResult(); + new MetadataService.readMilestoneTypeResponse_element(); + new MetadataService.ReadAssignmentRuleResult(); + new MetadataService.readAssignmentRuleResponse_element(); + new MetadataService.ReadCompactLayoutResult(); + new MetadataService.readCompactLayoutResponse_element(); + new MetadataService.ReadLiveChatAgentConfigResult(); + new MetadataService.readLiveChatAgentConfigResponse_element(); + new MetadataService.ReadAccountSettingsResult(); + new MetadataService.readAccountSettingsResponse_element(); + new MetadataService.ReadBusinessProcessResult(); + new MetadataService.readBusinessProcessResponse_element(); + new MetadataService.ReadFlowResult(); + new MetadataService.readFlowResponse_element(); + new MetadataService.ReadAutoResponseRuleResult(); + new MetadataService.readAutoResponseRuleResponse_element(); + new MetadataService.ReadPermissionSetResult(); + new MetadataService.readPermissionSetResponse_element(); + new MetadataService.ReadBusinessHoursSettingsResult(); + new MetadataService.readBusinessHoursSettingsResponse_element(); + new MetadataService.ReadForecastingSettingsResult(); + new MetadataService.readForecastingSettingsResponse_element(); + new MetadataService.ReadReportResult(); + new MetadataService.readReportResponse_element(); + new MetadataService.ReadAppMenuResult(); + new MetadataService.readAppMenuResponse_element(); + new MetadataService.ReadListViewResult(); + new MetadataService.readListViewResponse_element(); + new MetadataService.ReadOrderSettingsResult(); + new MetadataService.readOrderSettingsResponse_element(); + new MetadataService.ReadCustomObjectTranslationResult(); + new MetadataService.readCustomObjectTranslationResponse_element(); + new MetadataService.ReadCustomApplicationResult(); + new MetadataService.readCustomApplicationResponse_element(); + new MetadataService.ReadKnowledgeSettingsResult(); + new MetadataService.readKnowledgeSettingsResponse_element(); + new MetadataService.ReadCaseSettingsResult(); + new MetadataService.readCaseSettingsResponse_element(); + new MetadataService.ReadApexClassResult(); + new MetadataService.readApexClassResponse_element(); + new MetadataService.ReadPackageResult(); + new MetadataService.readPackageResponse_element(); + new MetadataService.ReadCommunityResult(); + new MetadataService.readCommunityResponse_element(); + new MetadataService.ReadDocumentResult(); + new MetadataService.readDocumentResponse_element(); + new MetadataService.ReadAutoResponseRulesResult(); + new MetadataService.readAutoResponseRulesResponse_element(); + new MetadataService.ReadFolderResult(); + new MetadataService.readFolderResponse_element(); + new MetadataService.ReadCustomApplicationComponentResult(); + new MetadataService.readCustomApplicationComponentResponse_element(); + new MetadataService.ReadFieldSetResult(); + new MetadataService.readFieldSetResponse_element(); + new MetadataService.ReadSharingSetResult(); + new MetadataService.readSharingSetResponse_element(); + new MetadataService.ReadHomePageComponentResult(); + new MetadataService.readHomePageComponentResponse_element(); + new MetadataService.ReadResult(); + new MetadataService.UserMembershipSharingRule(); + new MetadataService.BusinessHoursSettings(); + new MetadataService.FeedLayoutFilter(); + new MetadataService.ReportHistoricalSelector(); + new MetadataService.ConnectedAppCanvasConfig(); + new MetadataService.DeployDetails(); + new MetadataService.ReportDataCategoryFilter(); + new MetadataService.SynonymGroup(); + new MetadataService.renameMetadataResponse_element(); + new MetadataService.cancelDeploy_element(); + new MetadataService.CancelDeployResult(); + new MetadataService.SynonymDictionary(); + new MetadataService.cancelDeployResponse_element(); + new MetadataService.CompactLayout(); + new MetadataService.AccessMapping(); + new MetadataService.Container(); + new MetadataService.DeleteResult(); + new MetadataService.SharingSet(); + new MetadataService.ReputationPointsRule(); + new MetadataService.FlowActionCallInputParameter(); + new MetadataService.CustomMetadata(); + new MetadataService.VisualizationPlugin(); + new MetadataService.RelatedList(); + new MetadataService.FlowActionCallOutputParameter(); + new MetadataService.FlowActionCall(); + new MetadataService.CustomPermission(); + new MetadataService.ReputationLevelDefinitions(); + new MetadataService.PermissionSetCustomPermissions(); + new MetadataService.upsertMetadata_element(); + new MetadataService.ProfileCustomPermissions(); + new MetadataService.AgentConfigButtons(); + new MetadataService.AgentConfigSkills(); + new MetadataService.upsertMetadataResponse_element(); + new MetadataService.ReputationLevel(); + new MetadataService.ReadWorkflowAlertResult(); + new MetadataService.readWorkflowAlertResponse_element(); + new MetadataService.ReadCustomPermissionResult(); + new MetadataService.readCustomPermissionResponse_element(); + new MetadataService.ReadSiteDotComResult(); + new MetadataService.ReadEmailFolderResult(); + new MetadataService.readEmailFolderResponse_element(); + new MetadataService.ReadCustomMetadataResult(); + new MetadataService.readCustomMetadataResponse_element(); + new MetadataService.ReadAnalyticSnapshotResult(); + new MetadataService.readAnalyticSnapshotResponse_element(); + new MetadataService.ReadVisualizationPluginResult(); + new MetadataService.readVisualizationPluginResponse_element(); + new MetadataService.ReadEscalationRuleResult(); + new MetadataService.ReadMarketingActionSettingsResult(); + new MetadataService.readMarketingActionSettingsResponse_element(); + new MetadataService.ReadWorkflowKnowledgePublishResult(); + new MetadataService.readWorkflowKnowledgePublishResponse_element(); + new MetadataService.ReadDashboardFolderResult(); + new MetadataService.readDashboardFolderResponse_element(); + new MetadataService.ReadWorkflowSendResult(); + new MetadataService.readWorkflowSendResponse_element(); + new MetadataService.ReadWorkflowOutboundMessageResult(); + new MetadataService.readWorkflowOutboundMessageResponse_element(); + new MetadataService.ReadWorkflowFieldUpdateResult(); + new MetadataService.readWorkflowFieldUpdateResponse_element(); + new MetadataService.ReadDocumentFolderResult(); + new MetadataService.readDocumentFolderResponse_element(); + new MetadataService.ReadWorkflowTaskResult(); + new MetadataService.readWorkflowTaskResponse_element(); + new MetadataService.ReadNameSettingsResult(); + new MetadataService.readNameSettingsResponse_element(); + new MetadataService.ReadReportFolderResult(); + new MetadataService.readReportFolderResponse_element(); + new MetadataService.ReadCustomApplicationComponentResult(); + new MetadataService.NameSettings(); + new MetadataService.ReputationPointsRules(); + new MetadataService.FlowMetadataValue(); + new MetadataService.VisualizationResource(); + new MetadataService.MarketingActionSettings(); + new MetadataService.VisualizationType(); + new MetadataService.CustomMetadataValue(); + new MetadataService.HistoryRetentionPolicy(); + new MetadataService.UpsertResult(); + new MetaDataService.Territory2RuleAssociation(); + new MetadataService.ManagedTopics(); + new MetaDataService.XOrgHub(); + new MetaDataService.FlowWaitEventInputParameter(); + new MetadataService.ManagedTopic(); + new MetadataService.Territory2RuleItem(); + new MetadataService.DataPipeline(); + new MetadataService.UiPlugin(); + new MetadataService.Territory2Rule(); + new MetaDataService.XOrgHubSharedObject(); + new MetadataService.Territory2Type(); + new MetadataService.CorsWhitelistOrigin(); + new MetadataService.StandardFieldTranslation(); + new MetadataService.Territory2Model(); + new MetadataService.PersonListSettings(); + new MetadataService.ChannelLayoutItem(); + new MetadataService.FlowWait(); + new MetadataService.Territory2Settings(); + new MetadataService.FieldValue(); + new MetadataService.ChannelLayout(); + new MetadataService.ReadXOrgHubResult(); + new MetadataService.readXOrgHubResponse_element(); + new MetadataService.ReadAuraDefinitionBundleResult(); + new MetadataService.readAuraDefinitionBundleResponse_element(); + new MetadataService.ReadTerritory2SettingsResult(); + new MetadataService.readTerritory2SettingsResponse_element(); + new MetadataService.ReadTerritory2TypeResult(); + new MetadataService.readTerritory2TypeResponse_element(); + new MetadataService.ReadQuoteSettingsResult(); + new MetadataService.readQuoteSettingsResponse_element(); + new MetadataService.ReadCorsWhitelistOriginResult(); + new MetadataService.readCorsWhitelistOriginResponse_element(); + new MetadataService.ReadManagedTopicsResult(); + new MetadataService.readManagedTopicsResponse_element(); + new MetadataService.ReadTerritory2Result(); + new MetadataService.readTerritory2Response_element(); + new MetadataService.ReadCommunityResult(); + new MetadataService.readCommunityResponse_element(); + new MetadataService.ReadDocumentResult(); + new MetadataService.readDocumentResponse_element(); + new MetadataService.ReadTerritory2ModelResult(); + new MetadataService.readTerritory2ModelResponse_element(); + new MetadataService.FlowWaitEventOutputParameter(); + new MetadataService.FlowWaitEvent(); + new MetadataService.CustomPermissionDependencyRequired(); + new MetadataService.ReputationBranding(); + new MetadataService.AuraDefinitionBundle(); + new MetadataService.FeedItemSettings(); + new MetadataService.FlowBaseElement(); + new MetadataService.Territory2(); + } +} \ No newline at end of file diff --git a/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls b/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls new file mode 100644 index 0000000..db3de61 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls @@ -0,0 +1,187 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class MetadataUtil { + static MetadataService.MetadataPort port; + //public for testing purposes only; + public static MetadataUtil.Status mdApiStatus = Status.NOT_CHECKED; + + //public for testing purposes + public enum Status { + NOT_CHECKED, + AVAILABLE, + UNAVAILABLE + } + + public static Boolean checkMetadataAPIConnection() { + if (mdApiStatus == Status.NOT_CHECKED) { + boolean success = true; + MetadataService.FileProperties[] allCmdProps; + try { + MetadataService.MetadataPort service = getPort(); + List queries = new List(); + MetadataService.ListMetadataQuery customMetadata = new MetadataService.ListMetadataQuery(); + customMetadata.type_x = 'CustomMetadata'; + queries.add(customMetadata); + allCmdProps = service.listMetadata(queries, 34); + mdApiStatus = Status.AVAILABLE; + } catch (CalloutException e) { + if (!e.getMessage().contains('Unauthorized endpoint, please check Setup')) { + throw e; + } + mdApiStatus = Status.UNAVAILABLE; + } + } + return mdApiStatus == Status.AVAILABLE; + } + + public static MetadataService.MetadataPort getPort() { + if (port == null) { + port = new MetadataService.MetadataPort(); + port.sessionHeader = new MetadataService.SessionHeader_element(); + port.sessionHeader.sessionId = UserInfo.getSessionId(); + } + return port; + } + + public static void transformToCustomMetadataAndCreateUpdate(Set standardFields, List> fieldValues, List header, String selectedType, Integer startIndex) { + String devName; + String label; + Integer rowCount = 0; + + if (fieldValues == null) + { + ApexPages.Message errMessage = new ApexPages.Message(ApexPages.severity.ERROR, 'Field Values null'); + ApexPages.addMessage(errMessage); + return; + } + MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[fieldValues.size()]; + // separated out columns as they were coming as string like: "DeveloperName;Label;Description;" + // it would pass the conditions under isHeadervalid() + Set fieldNameSet = new Set(); + for (String fieldNames :header) { + if (String.isBlank(fieldNames)) { + continue; + } + + fieldNameSet.addAll(fieldNames.split(';')); + } + + for(List singleRowOfValues : fieldValues) { + if(header != null && header.size() != singleRowOfValues.size()) { + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.INVALID_FILE_ROW_SIZE_DOESNT_MATCH + + (startIndex + rowCount)); + ApexPages.addMessage(errorMessage); + return; + } + + Integer index = 0; + String typeDevName = selectedType.subString(0, selectedType.indexOf(AppConstants.MDT_SUFFIX)); + Map fieldsAndValues = new Map(); + + // separated out field values as they were coming as string like: "XXX;YYY;ZZZZ;" + List fieldValueList = new List(); + + for (String singleRowFieldValues :singleRowOfValues) { + if (String.isBlank(singleRowFieldValues)) { + continue; + } + + fieldValueList.addAll(singleRowFieldValues.split(';')); + } + for(String fieldName : fieldNameSet) { + if(fieldName.equals(AppConstants.DEV_NAME_ATTRIBUTE)) { + if (fieldValueList.size() > index) { + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ fieldValueList.get(index)); + + //adding dev_name here since we might need it to default label + fieldsAndValues.put(fieldName, fieldValueList.get(index)); + } + } else { + if (fieldValueList.size() > index) { + fieldsAndValues.put(fieldName, fieldValueList.get(index)); + } + //fieldsAndValues.put(fieldName, singleRowOfValues.get(index)); + } + index++; + } + + if(fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE) == null) { + String strippedLabel = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE).replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + //default fullName to type_dev_name.label + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); + }else if(fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE) == null) { + //default label to dev_name + fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, fieldsAndValues.get(AppConstants.DEV_NAME_ATTRIBUTE)); + } + + customMetadataRecords[rowCount++] = transformToCustomMetadata(standardFields, fieldsAndValues); + } + upsertMetadataAndValidate(customMetadataRecords); + } + + /* + * Transformation utility to turn the configuration values into custom metadata values + * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata + * values which can be passed in one update has been increased to 200 values (just for custom metadata) + * We recommend to create new type if more fields are needed. + * Using https://github.com/financialforcedev/apex-mdapi + */ + private static MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ + MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); + customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); + customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); + customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); + + //custom fields + MetadataService.CustomMetadataValue[] customMetadataValues = new List(); + if(fieldsAndValues != null){ + for (String fieldName : fieldsAndValues.keySet()) { + if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ + MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); + cmRecordValue.field=fieldName; + cmRecordValue.value= fieldsAndValues.get(fieldName); + customMetadataValues.add(cmRecordValue); + } + } + } + customMetadata.values = customMetadataValues; + return customMetadata; + } + + + private static void upsertMetadataAndValidate(MetadataService.Metadata[] records) { + List results = getPort().upsertMetadata(records); + if(results!=null){ + for(MetadataService.UpsertResult upsertResult : results){ + if(upsertResult==null || upsertResult.success){ + continue; + } + // Construct error message and throw an exception + if(upsertResult.errors!=null){ + List messages = new List(); + messages.add( + (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + + 'occured processing component ' + upsertResult.fullName + '.'); + for(MetadataService.Error error : upsertResult.errors){ + messages.add(error.message + ' (' + error.statusCode + ').' + + ( error.fields!=null && error.fields.size()>0 ? + ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); + } + if(messages.size()>0){ + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); + return; + } + } + if(!upsertResult.success){ + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Request failed with no specified error.')); + return; + } + } + } + } +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls b/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls new file mode 100644 index 0000000..9f2a861 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls @@ -0,0 +1,254 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public with sharing class MetadataWrapperApiLoader extends MetadataLoader { + static MetadataService.MetadataPort port; + //public for testing purposes only; + public static MetadataWrapperApiLoader.Status mdApiStatus = Status.NOT_CHECKED; + + //public for testing purposes + public enum Status { + NOT_CHECKED, + AVAILABLE, + UNAVAILABLE + } + + public Boolean checkMetadataAPIConnection() { + if (mdApiStatus == Status.NOT_CHECKED) { + boolean success = true; + MetadataService.FileProperties[] allCmdProps; + try { + MetadataService.MetadataPort service = getPort(); + List queries = new List(); + MetadataService.ListMetadataQuery customMetadata = new MetadataService.ListMetadataQuery(); + customMetadata.type_x = 'CustomMetadata'; + queries.add(customMetadata); + allCmdProps = service.listMetadata(queries, 40); + mdApiStatus = Status.AVAILABLE; + } catch (CalloutException e) { + if (!e.getMessage().contains('Unauthorized endpoint, please check Setup')) { + throw e; + } + mdApiStatus = Status.UNAVAILABLE; + } + } + return mdApiStatus == Status.AVAILABLE; + } + + public static MetadataService.MetadataPort getPort() { + if (port == null) { + port = new MetadataService.MetadataPort(); + port.sessionHeader = new MetadataService.SessionHeader_element(); + port.sessionHeader.sessionId = UserInfo.getSessionId(); + } + return port; + } + + public override void migrateAsIsWithObjCreation(String csName, String cmtName) { + System.debug('migrateAsIsWithObjCreation-->csName=' + csName); + System.debug('migrateAsIsWithObjCreation-->cmtName=' + cmtName); + + try{ + super.migrateAsIsWithObjCreation(csName, cmtName); + MetadataMappingInfo mappingInfo = getMapper().getMappingInfo(); + System.debug('mappingInfo-->' + mappingInfo); + + if(!response.isSuccess()) { + throw new MetadataMigrationException('Operation failed, please check messages!'); + return; + } + + MetadataObjectCreator.createCustomObject(mappingInfo); + MetadataObjectCreator.createCustomField(mappingInfo); + + migrate(mappingInfo); + } + catch(Exception e) { + List messages = response.getMessages(); + if(messages == null) { + messages = new List(); + } + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + + return; + } + + buildResponse(); + } + + public override void migrateAsIsMapping(String csName, String cmtName) { + super.migrateAsIsMapping(csName, cmtName); + buildResponse(); + } + + public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { + super.migrateSimpleMapping(csNameWithField, cmtNameWithField); + buildResponse(); + } + + public override void migrateCustomMapping(String csName, String cmtName, String mapping) { + super.migrateCustomMapping(csName, cmtName, mapping); + buildResponse(); + } + + private void buildResponse() { + if(response.IsSuccess()) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Migration Completed!')); + response.setIsSuccess(true); + response.setMessages(messages); + } + } + + public override void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataWrapperApiLoader.migrate -->'); + + try{ + String devName; + String label; + Integer rowCount = 0; + + String cmdName = mappingInfo.getCustomMetadadataTypeName(); + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); + System.debug('srcTgtFieldsMap ->' + srcTgtFieldsMap); + + MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[mappingInfo.getRecordList().size()]; + Map fieldsAndValues = new Map(); + + for(sObject csRecord : mappingInfo.getRecordList()) { + + String typeDevName = cmdName.subString(0, cmdName.indexOf(AppConstants.MDT_SUFFIX)); + System.debug('typeDevName ->' + typeDevName); + + for(String csField : srcTgtFieldsMap.keySet()) { + // Set Target, Source + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); + System.debug('descCSFieldResult ->' + descCSFieldResult); + System.debug('csField ->' + csField); + System.debug('csRecord ->' + csRecord); + + if(descCSFieldResult.getType().name() == 'DATETIME') { + + if(csRecord.get(csField) != null) { + Datetime dt = DateTime.valueOf(csRecord.get(csField)); + String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); + fieldsAndValues.put(srcTgtFieldsMap.get(csField), formattedDateTime); + } + } + else{ + fieldsAndValues.put(srcTgtFieldsMap.get(csField), String.valueOf(csRecord.get(csField))); + } + } + + if(csRecord.get(AppConstants.CS_NAME_ATTRIBURE) != null) { + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); + fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); + + String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); + String tempVal = strippedLabel.substring(0, 1); + + if(tempVal.isNumeric() || tempVal == '-') { + strippedLabel = 'X' + strippedLabel; + } + + System.debug('strippedLabel -> 1 *' + strippedLabel); + strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel -> 2 *' + strippedLabel); + + //default fullName to type_dev_name.label + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); + + System.debug(AppConstants.FULL_NAME_ATTRIBUTE + ' ::: ' + typeDevName + '.' + strippedLabel); + } + System.debug('fieldsAndValues ->' + fieldsAndValues); + + customMetadataRecords[rowCount++] = transformToCustomMetadata(mappingInfo.getStandardFields(), fieldsAndValues); + } + upsertMetadataAndValidate(customMetadataRecords); + + } + catch(Exception e) { + System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, e.getMessage())); + + response.setIsSuccess(false); + response.setMessages(messages); + + } + } + + /* + * Transformation utility to turn the configuration values into custom metadata values + * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata + * values which can be passed in one update has been increased to 200 values (just for custom metadata) + * We recommend to create new type if more fields are needed. + * Using https://github.com/financialforcedev/apex-mdapi + */ + private MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ + MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); + customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); + customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); + customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); + + System.debug('customMetadata.label->' + customMetadata.label); + System.debug('customMetadata.fullName->' + customMetadata.fullName); + System.debug('customMetadata.description->' + customMetadata.description); + + + //custom fields + MetadataService.CustomMetadataValue[] customMetadataValues = new List(); + if(fieldsAndValues != null){ + for (String fieldName : fieldsAndValues.keySet()) { + if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ + MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); + cmRecordValue.field=fieldName; + cmRecordValue.value= fieldsAndValues.get(fieldName); + customMetadataValues.add(cmRecordValue); + } + } + } + customMetadata.values = customMetadataValues; + return customMetadata; + } + + + private void upsertMetadataAndValidate(MetadataService.Metadata[] records) { + List results = getPort().upsertMetadata(records); + if(results!=null){ + for(MetadataService.UpsertResult upsertResult : results){ + if(upsertResult==null || upsertResult.success){ + continue; + } + // Construct error message and throw an exception + if(upsertResult.errors!=null){ + List messages = new List(); + messages.add( + (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + + 'occured processing component ' + upsertResult.fullName + '.'); + for(MetadataService.Error error : upsertResult.errors){ + messages.add(error.message + ' (' + error.statusCode + ').' + + ( error.fields!=null && error.fields.size()>0 ? + ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); + } + if(messages.size()>0){ + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); + return; + } + } + if(!upsertResult.success){ + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Request failed with no specified error.')); + return; + } + } + } + } +} diff --git a/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml new file mode 100644 index 0000000..9aeda45 --- /dev/null +++ b/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml @@ -0,0 +1,5 @@ + + + 34.0 + Active + diff --git a/custom_md_loader/custom_md_loader/objects/CountryMapping__mdt.object b/custom_md_loader/custom_md_loader/objects/CountryMapping__mdt.object new file mode 100644 index 0000000..efde80d --- /dev/null +++ b/custom_md_loader/custom_md_loader/objects/CountryMapping__mdt.object @@ -0,0 +1,26 @@ + + + + + + CountryCode__c + false + + 3 + false + Text + false + + + CountryName__c + false + + 200 + false + Text + false + + + CountryMappings + Public + diff --git a/custom_md_loader/custom_md_loader/package.xml b/custom_md_loader/custom_md_loader/package.xml new file mode 100644 index 0000000..c2dee4a --- /dev/null +++ b/custom_md_loader/custom_md_loader/package.xml @@ -0,0 +1,64 @@ + + + + AppConstants + CSVFileUtil + CustomMetadataLoaderController + CustomMetadataLoaderControllerTest + CustomMetadataUploadController + CustomMetadataUploadControllerTest + MDWrapperWebServiceMock + MetadataService + MetadataServiceTest + MetadataUtil + + MetadataLoader + MetadataMapper + MetadataMapperDefault + MetadataMapperCustom + MetadataMapperSimple + MetadataMappingInfo + MetadataMapperFactory + MetadataMapperType + MetadataLoaderClient + MetadataWrapperApiLoader + MetadataApexApiLoader + MetadataOpType + MetadataLoaderFactory + MetadataResponse + MetadataMigrationController + MetadataObjectCreator + MetadataMigrationException + JsonUtilities + ApexClass + + + CustomMetadataLoader + CustomMetadataRecordUploader + CMTMigrator + ApexPage + + + Custom_Metadata_Loader + CustomApplication + + + CountryMapping__mdt.CountryCode__c + CountryMapping__mdt.CountryName__c + CustomField + + + CountryMapping__mdt + CustomObject + + + Custom_Metadata_Loader + CMT_Migrator + CustomTab + + + Custom_Metadata_Loader + PermissionSet + + 34.0 + diff --git a/custom_md_loader/custom_md_loader/pages/CMTMigrator.page b/custom_md_loader/custom_md_loader/pages/CMTMigrator.page new file mode 100644 index 0000000..6cbddc5 --- /dev/null +++ b/custom_md_loader/custom_md_loader/pages/CMTMigrator.page @@ -0,0 +1,256 @@ + + + + + + + + + + + + +
    + +
  1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types
    +
  2. +
    +
  3. Custom Metadata Types label and names
  4. +
    +
      +
    • Custom Setting record name converted into Custom Metadata Types label and name
      +
    • + +
    • e.g. Custom Setting name special character replaced with "_" in Custom Metadata Type names
      +
    • + +
    • e.g. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X"
      +
    • +
    +
    +
  5. Currency field on Custom Settings can't be migrated
    +
  6. +
    + +
  7. Migrate - As Is (with object creation)
  8. +
    +
      +
    • As Is (with object creation)
      + /*********************************************************
      + * Desc Creates Custom object and migrate Custom Settings data to
      + Custom Metadata Types records as is
      + * @param Name of Custom Setting Api (VAT_Settings_CS__c)
      + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      + * @return
      + *********************************************************/

      + + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      + loader.migrateAsIsWithObjCreation('VAT_Settings_CS__c', 'VAT_Settings__mdt');
      + +

      +
    • + +
    +
  9. Migrate - As Is
  10. +
    +
      +
    • As Is Mapping
      + /*********************************************************
      + * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records as is
      + * @param Name of Custom Setting/Custom Objects Api (VAT_Settings_CS__c)
      + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      + * @return
      + *********************************************************/

      + + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      + loader.migrateAsIsMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt');
      +

      +
    • + +
    +
  11. Migrate - Simple Mapping
    +
  12. +
    +
      +

    • + /*********************************************************
      + * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records if you have only
      + * one field mapping
      + * @param Name of Custom Setting/Custom Objects Api.fieldName (VAT_Settings_CS__c.Active__c)
      + * @param Name of Custom Metadata Types Api.fieldMame (VAT_Settings__mdt.IsActive__c)
      + * @return
      + *********************************************************/

      + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      + loader.migrateSimpleMapping('VAT_Settings_CS__c.Active__c', 'VAT_Settings__mdt.IsActive__c');
      +

      +
    • +
    + +
  13. Migrate - Custom Mapping
    +
  14. +
    +
      +

    • + + /*********************************************************
      + * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records if you have only
      + * different Api names in Custom Settings and Custom Metadata Types
      + * @param Name of Custom Setting/Custom Objects Api (VAT_Settings_CS__c)
      + * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      + * @param Json Mapping (Sample below)
      + {
      + "Active__c" : "IsActive__c",
      + "Timeout__c" : "GlobalTimeout__c",
      + "EndPointURL__c" : "URL__c",
      + }
      +
      + * @return
      + *********************************************************/

      +
      + String jsonMapping = '{'+
      + '"Active__c" : "Active__c",'+
      + '"Timeout__c" : "Timeout__c",'+
      + '"EndPointURL__c" : "EndPointURL__c",'+
      + '};';
      + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      + loader.migrateCustomMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt', jsonMapping);
      +
      +
    • +
    + +
    + +
+
+ + + + + + + + + + + + + + + + + + +
Custom Setting/Custom Objects Name (From)
Custom Metadata Type Name (To)
Operation Type + + +
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + +
Custom Setting/Custom Objects Name (From)
Custom Metadata Type Name (To) + + +
Operation Type + + +
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + +
Custom Setting/Custom Objects, Format: CS.fieldName
Custom Metadata Type, Format: CMT.fieldName
Operation Type + + +
+ +
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + +
Custom Setting/Custom Objects Name
Custom Metadata Type Name
Custom Setting, JSON, example: + +
Operation Type + + +
+ +
+
+ +
+
+
+ + + +
+ +
diff --git a/custom_md_loader/custom_md_loader/pages/CMTMigrator.page-meta.xml b/custom_md_loader/custom_md_loader/pages/CMTMigrator.page-meta.xml new file mode 100644 index 0000000..035ffad --- /dev/null +++ b/custom_md_loader/custom_md_loader/pages/CMTMigrator.page-meta.xml @@ -0,0 +1,7 @@ + + + 40.0 + false + false + + diff --git a/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page b/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page new file mode 100644 index 0000000..29e3324 --- /dev/null +++ b/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + diff --git a/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml b/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml new file mode 100644 index 0000000..d816bc4 --- /dev/null +++ b/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml @@ -0,0 +1,9 @@ + + + + + 34.0 + false + false + + diff --git a/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page b/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page new file mode 100644 index 0000000..67c50e2 --- /dev/null +++ b/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+
+ + + + + + + + + + + + + + + +
+ +
diff --git a/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml b/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml new file mode 100644 index 0000000..e8d870f --- /dev/null +++ b/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml @@ -0,0 +1,9 @@ + + + + + 34.0 + false + false + + diff --git a/custom_md_loader/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset b/custom_md_loader/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset new file mode 100644 index 0000000..4f9ab89 --- /dev/null +++ b/custom_md_loader/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset @@ -0,0 +1,72 @@ + + + + Custom_Metadata_Loader + true + + + AppConstants + true + + + CSVFileUtil + true + + + CustomMetadataLoaderController + true + + + CustomMetadataLoaderControllerTest + true + + + CustomMetadataUploadController + true + + + CustomMetadataUploadController + true + + + CustomMetadataUploadControllerTest + true + + + MDWrapperWebServiceMock + true + + + MetadataService + true + + + MetadataServiceTest + true + + + MetadataUtil + true + + + + CustomMetadataLoader + true + + + CustomMetadataRecordUploader + true + + + CMTMigrator + true + + + Custom_Metadata_Loader + Visible + + + CMT_Migrator + Visible + + diff --git a/custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab b/custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab new file mode 100644 index 0000000..925e470 --- /dev/null +++ b/custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab @@ -0,0 +1,7 @@ + + + + false + Custom68: Gears + CMTMigrator + diff --git a/custom_md_loader/custom_md_loader/tabs/Custom_Metadata_Loader.tab b/custom_md_loader/custom_md_loader/tabs/Custom_Metadata_Loader.tab new file mode 100644 index 0000000..9e52851 --- /dev/null +++ b/custom_md_loader/custom_md_loader/tabs/Custom_Metadata_Loader.tab @@ -0,0 +1,7 @@ + + + + false + Custom67: Gears + CustomMetadataLoader + From c73a75f7127c5848444b05f00e8b958b928490b5 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 12:44:19 -0700 Subject: [PATCH 05/93] Removed references to textUtil --- JsonUtilities.cls | 53 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 JsonUtilities.cls diff --git a/JsonUtilities.cls b/JsonUtilities.cls new file mode 100644 index 0000000..7c5566a --- /dev/null +++ b/JsonUtilities.cls @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +/** + * Utilities class for common manipulation of json format data + * + */ + +public with sharing class JsonUtilities { + + public class JsonUtilException extends Exception {} + + public static String JSON_BAD_FORMAT = 'The provided Json String was badly formatted.'; + public static String JSON_EMPTY = 'No field values were found in the Json String.'; + + + /** + * This basic method takes a string formatted as json and returns a map + * containing the name/value pairs. If the input is empty or is not formatted correctly + * the method throws a JsonUtilException exception. + **/ + Public static Map getValuesFromJson(String jsonString) { + Map jsonObjMap; + Map jsonMap = new Map(); + if (String.isBlank(jsonString)){ + throw new JsonUtilException(JSON_EMPTY); + } + try { + jsonObjMap = (Map)JSON.deserializeUntyped(jsonString); + if(jsonObjMap == null || jsonObjMap.size() == 0) { + throw new JsonUtilException(JSON_EMPTY); + } else { + for (String pKey : jsonObjMap.keySet() ) { + try { + String pVal = (String)jsonObjMap.get(pKey); + jsonMap.put(pKey, pVal); + } catch (exception e) { + throw new JsonUtilException(JSON_BAD_FORMAT, e); + } + } + } + return jsonMap; + } catch (Exception e) { + throw new JsonUtilException(JSON_BAD_FORMAT, e); + } + } + + +} From b3d47931936f68b926f1fa8f55b842825560c3dd Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:37:50 -0700 Subject: [PATCH 06/93] Removed references to TextUtil --- custom_md_loader/classes/JsonUtilities.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_md_loader/classes/JsonUtilities.cls b/custom_md_loader/classes/JsonUtilities.cls index 08452fb..7c5566a 100644 --- a/custom_md_loader/classes/JsonUtilities.cls +++ b/custom_md_loader/classes/JsonUtilities.cls @@ -26,7 +26,7 @@ public with sharing class JsonUtilities { Public static Map getValuesFromJson(String jsonString) { Map jsonObjMap; Map jsonMap = new Map(); - if (TextUtil.isEmpty(jsonString) ){ + if (String.isBlank(jsonString)){ throw new JsonUtilException(JSON_EMPTY); } try { From 5ae7e23e955378a2428279861b5ad9bd39390a8f Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:38:16 -0700 Subject: [PATCH 07/93] wrong location --- JsonUtilities.cls | 53 ----------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 JsonUtilities.cls diff --git a/JsonUtilities.cls b/JsonUtilities.cls deleted file mode 100644 index 7c5566a..0000000 --- a/JsonUtilities.cls +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -/** - * Utilities class for common manipulation of json format data - * - */ - -public with sharing class JsonUtilities { - - public class JsonUtilException extends Exception {} - - public static String JSON_BAD_FORMAT = 'The provided Json String was badly formatted.'; - public static String JSON_EMPTY = 'No field values were found in the Json String.'; - - - /** - * This basic method takes a string formatted as json and returns a map - * containing the name/value pairs. If the input is empty or is not formatted correctly - * the method throws a JsonUtilException exception. - **/ - Public static Map getValuesFromJson(String jsonString) { - Map jsonObjMap; - Map jsonMap = new Map(); - if (String.isBlank(jsonString)){ - throw new JsonUtilException(JSON_EMPTY); - } - try { - jsonObjMap = (Map)JSON.deserializeUntyped(jsonString); - if(jsonObjMap == null || jsonObjMap.size() == 0) { - throw new JsonUtilException(JSON_EMPTY); - } else { - for (String pKey : jsonObjMap.keySet() ) { - try { - String pVal = (String)jsonObjMap.get(pKey); - jsonMap.put(pKey, pVal); - } catch (exception e) { - throw new JsonUtilException(JSON_BAD_FORMAT, e); - } - } - } - return jsonMap; - } catch (Exception e) { - throw new JsonUtilException(JSON_BAD_FORMAT, e); - } - } - - -} From dbb3084425554de67f501ffea0b212c72bbe1cd8 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:44:12 -0700 Subject: [PATCH 08/93] wrong location --- .../applications/Custom_Metadata_Loader.app | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/applications/Custom_Metadata_Loader.app diff --git a/custom_md_loader/custom_md_loader/applications/Custom_Metadata_Loader.app b/custom_md_loader/custom_md_loader/applications/Custom_Metadata_Loader.app deleted file mode 100644 index e9a1194..0000000 --- a/custom_md_loader/custom_md_loader/applications/Custom_Metadata_Loader.app +++ /dev/null @@ -1,8 +0,0 @@ - - - standard-home - Custom metadata record loader from a CSV file. - - Custom_Metadata_Loader - CMT_Migrator - From bc94ca5a09614c9869a46c37ed832582463b2916 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:44:31 -0700 Subject: [PATCH 09/93] wrong location --- .../custom_md_loader/classes/AppConstants.cls | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/AppConstants.cls diff --git a/custom_md_loader/custom_md_loader/classes/AppConstants.cls b/custom_md_loader/custom_md_loader/classes/AppConstants.cls deleted file mode 100644 index 5d3ab9d..0000000 --- a/custom_md_loader/custom_md_loader/classes/AppConstants.cls +++ /dev/null @@ -1,27 +0,0 @@ -/** - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ -public class AppConstants { - - public static final String QUALIFIED_API_NAME_ATTRIBUTE = 'QualifiedApiName'; - public static final String FULL_NAME_ATTRIBUTE = 'FullName'; - public static final String LABEL_ATTRIBUTE = 'Label'; - public static final String DEV_NAME_ATTRIBUTE = 'DeveloperName'; - public static final String DESC_ATTRIBUTE = 'Description'; - public static final String MDT_SUFFIX = '__mdt'; - - public static final String CS_NAME_ATTRIBURE = 'Name'; - - public static final String SELECT_STRING = 'Select type'; - - - //error messages - public static final String FILE_MISSING = 'Please provide a comma separated file.'; - public static final String EMPTY_FILE = 'CSV file is empty.'; - public static final String TYPE_OPTION_NOT_SELECTED = 'Please choose a valid custom metadata type.'; - public static final String HEADER_MISSING_DEVNAME_AND_LABEL = 'Header must contain atleast one of these two fields - '+ DEV_NAME_ATTRIBUTE + ', ' + LABEL_ATTRIBUTE +'.'; - public static final String INVALID_FILE_ROW_SIZE_DOESNT_MATCH = 'The number of field values does not match the number of header fields on line '; -} \ No newline at end of file From b7b137a2619949531f9092cbee9048fff97b2b43 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:44:43 -0700 Subject: [PATCH 10/93] wrong location --- .../custom_md_loader/classes/AppConstants.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/AppConstants.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/AppConstants.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/AppConstants.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/AppConstants.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 004111321ecf97360bcdb431c64dd5963a59afef Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:44:53 -0700 Subject: [PATCH 11/93] wrong location --- .../custom_md_loader/classes/CSVFileUtil.cls | 71 ------------------- 1 file changed, 71 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls diff --git a/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls b/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls deleted file mode 100644 index 34c345e..0000000 --- a/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public class CSVFileUtil { - //from https://developer.salesforce.com/page/Code_Samples#Parse_a_CSV_with_APEX - public static List> parseCSV(Blob csvFileBody,Boolean skipHeaders) { - if(csvFileBody == null) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.FILE_MISSING); - ApexPages.addMessage(errorMessage); - return null; - } - - String contents = csvFileBody.toString(); - - List> allFields = new List>(); - - // replace instances where a double quote begins a field containing a comma - // in this case you get a double quote followed by a doubled double quote - // do this for beginning and end of a field - contents = contents.replaceAll(',"""',',"DBLQT').replaceall('""",','DBLQT",'); - // now replace all remaining double quotes - we do this so that we can reconstruct - // fields with commas inside assuming they begin and end with a double quote - contents = contents.replaceAll('""','DBLQT'); - //windows case - replace all carriage + new line character to just new line character - contents = contents.replaceAll('\r\n','\n'); - //now replace all return char to new line character - contents = contents.replaceAll('\r','\n'); - // we are not attempting to handle fields with a newline inside of them - // so, split on newline to get the spreadsheet rows - List lines = new List(); - try { - lines = contents.split('\n'); - } catch (System.ListException e) { - System.debug('Limits exceeded?' + e.getMessage()); - } - Integer num = 0; - for(String line : lines) { - // check for blank CSV lines (only commas) - if (line.replaceAll(',','').trim().length() == 0) break; - - List fields = line.split(','); - List cleanFields = new List(); - String compositeField; - Boolean makeCompositeField = false; - for(String field : fields) { - if (field.startsWith('"') && field.endsWith('"')) { - cleanFields.add(field.replaceAll('DBLQT','"').trim()); - } else if (field.startsWith('"')) { - makeCompositeField = true; - compositeField = field; - } else if (field.endsWith('"')) { - compositeField += ',' + field; - cleanFields.add(compositeField.replaceAll('DBLQT','"').trim()); - makeCompositeField = false; - } else if (makeCompositeField) { - compositeField += ',' + field; - } else { - cleanFields.add(field.replaceAll('DBLQT','"').trim()); - } - } - - allFields.add(cleanFields); - } - if (skipHeaders) allFields.remove(0); - return allFields; - } -} From d88420c1021de984fbc178ce9750a29ab559de5d Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:45:01 -0700 Subject: [PATCH 12/93] wrong location --- .../custom_md_loader/classes/CSVFileUtil.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/CSVFileUtil.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 43ecbfc1f8aea7238cdb4d92e47093824c88dc8a Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:45:11 -0700 Subject: [PATCH 13/93] wrong location --- .../CustomMetadataLoaderController.cls | 46 ------------------- 1 file changed, 46 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls deleted file mode 100644 index 108bac5..0000000 --- a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public class CustomMetadataLoaderController { - public String host {get; set;} - public String metadataResponse {get; set;} - public Boolean metadataConnectionWarning {get; set;} - public String prefixOrLocal {get; set;} - - public PageReference checkMdApi() { - - if (MetadataUtil.checkMetadataAPIConnection()) { - return continueToUploader(); - } - // Get Host Domain - host = ApexPages.currentPage().getHeaders().get('Host'); - // Get namespace prefix for picklist package or placeholder for pre-packaging - prefixOrLocal = host.substringBefore('.').replaceAll('-', '_'); - metadataConnectionWarning = true; - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Unable to connect to the Salesforce Metadata API.')); - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'A Remote Site Setting must be created in your org before you can use this tool.')); - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Press the Create Remote Site Setting button to perform this step or refer to the post install step below to perform this manually.')); - return null; - } - - public PageReference continueToUploader() { - return Page.CustomMetadataRecordUploader; - } - - public PageReference displayMetadataResponse() - { - // Display the response from the client side Metadata API callout - if(metadataResponse.length()==0){ - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Info, 'Remote Site Setting dlrs_mdapi has been created.' )); - metadataConnectionWarning = false; - } else { - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, metadataResponse)); - metadataConnectionWarning = true; - } - return null; - } -} From 536a307fe0e2a49e9ef47efcb5018688e49f8966 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:45:19 -0700 Subject: [PATCH 14/93] wrong location --- .../classes/CustomMetadataLoaderController.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 3225d69da313411d898624d0d4cdeb92858d46b7 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:45:30 -0700 Subject: [PATCH 15/93] wrong location --- .../CustomMetadataLoaderControllerTest.cls | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls deleted file mode 100644 index 4d8bf9a..0000000 --- a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -@IsTest -public class CustomMetadataLoaderControllerTest { - - public static testmethod void testCheckMdApiSucceeds() { - CustomMetadataLoaderController cntlr = setup(); - PageReference result = cntlr.checkMdApi(); - System.assertEquals(Page.CustomMetadataRecordUploader.getUrl(), result.getUrl()); - } - - public static testmethod void testCheckMdApiFails() { - CustomMetadataLoaderController cntlr = setup(); - ApexPages.currentPage().getHeaders().put('Host', 'na1.salesforce.com'); - MetadataUtil.mdApiStatus = MetadataUtil.Status.UNAVAILABLE; - try { - PageReference result = cntlr.checkMdApi(); - System.assertEquals(result, null); - System.assertEquals('na1', cntlr.prefixOrLocal); - } finally { - MetadataUtil.mdApiStatus = MetadataUtil.Status.NOT_CHECKED; - } - } - - public static testmethod void testDisplayMetadataResponse() { - CustomMetadataLoaderController cntlr = setup(); - cntlr.metadataResponse = ''; - cntlr.displayMetadataResponse(); - System.assert(!cntlr.metadataConnectionWarning); - cntlr.metadataResponse = 'Danger, Will Robinson!'; - cntlr.displayMetadataResponse(); - System.assert(cntlr.metadataConnectionWarning); - } - - static CustomMetadataLoaderController setup() { - Test.setMock(WebServiceMock.class, new MDWrapperWebServiceMock()); - return new CustomMetadataLoaderController(); - } -} From 1d332688d76096286525f62c2e4f2e11482b9adc Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:45:38 -0700 Subject: [PATCH 16/93] wrong location --- .../classes/CustomMetadataLoaderControllerTest.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 8b99ca2fdb8b0b6c37cfa0caa5a51b2d91603c58 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:45:47 -0700 Subject: [PATCH 17/93] wrong location --- .../CustomMetadataUploadController.cls | 205 ------------------ 1 file changed, 205 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls deleted file mode 100644 index e236417..0000000 --- a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public class CustomMetadataUploadController { - static MetadataService.MetadataPort service = MetadataUtil.getPort(); - - private final Set standardFieldsInHeader = new Set(); - private List nonSortedApiNames; - - public boolean showRecordsTable{get;set;} - public String selectedType{get;set;} - public Blob csvFileBody{get;set;} - public SObject[] records{get;set;} - public List cmdTypes{public get;set;} - public List fieldNamesForDisplay{public get;set;} - - public CustomMetadataUploadController() { - showRecordsTable = false; - loadCustomMetadataMetadata(); - - //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. - standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); - standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); - standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); - } - - /** - * Queries to find all custom metadata types in the org and make it available to the VF page as drop down - */ - private void loadCustomMetadataMetadata(){ - List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; - for(SObject entityDefinition : entityDefinitions){ - String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); - if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)){ - if(cmdTypes == null) { - cmdTypes = new List(); - cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); - } - cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); - } - } - } - - public PageReference upsertCustomMetadata() { - ApexPages.getMessages().clear(); - showRecordsTable = false; - - importCSVFileAndCreateUpdateCmdRecords(); - System.debug(ApexPages.getMessages()); - if(ApexPages.getMessages().size() > 0) { - if(!(ApexPages.getMessages().size() == 1 && ApexPages.getMessages()[0].getDetail().contains('DUPLICATE_DEVELOPER_NAME'))) { - return null; - } - } - - //reset the file variable - csvFileBody = null; - - if(nonSortedApiNames == null) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, - 'Insert/Update was successful but something went wrong fetching the records.'); - ApexPages.addMessage(errorMessage); - return null; - } - - fieldNamesForDisplay = new List(); - String selectQuery = 'SELECT '; - Integer count = 0; - for(String selectField : nonSortedApiNames) { - if(!selectField.equals(AppConstants.DESC_ATTRIBUTE)) { //not supported in soql - if(count != 0) { - selectQuery = selectQuery + ', '; - } - selectQuery = selectQuery + selectField; - fieldNamesForDisplay.add(selectField); - count++; - } - } - selectQuery = selectQuery + ' FROM ' + selectedType; - records = Database.query(selectQuery); - showRecordsTable = true; - return null; - } - - public void importCSVFileAndCreateUpdateCmdRecords(){ - List> fields; - try{ - fields = CSVFileUtil.parseCSV(csvFileBody, false); - } catch (Exception e) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, - 'An error has occured while importin data.'+ - ' Please make sure input csv file is correct' + - '
' + e.getMessage() + '
' + e.getCause()); - ApexPages.addMessage(errorMessage); - return; - } - - if(ApexPages.getMessages().size() > 0) { - return; - } - - if(fields == null || (fields != null && fields.size() < 1)) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.EMPTY_FILE); - ApexPages.addMessage(errorMessage); - return; - } - - if(selectedType == AppConstants.SELECT_STRING) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR,AppConstants.TYPE_OPTION_NOT_SELECTED); - ApexPages.addMessage(errorMessage); - return; - } - - //validate header fields - List header = fields[0]; - /*if(!isHeaderValid(new Set(header), selectedType)) { - return; - }*/ - // separated out columns as they were coming as string like: "DeveloperName;Label;Description;" - // it would pass the conditions under isHeadervalid() - Set columnSet = new Set(); - - for(String headerColumn :header) { - if (headerColumn == null) { - continue; - } - - for (String column :headerColumn.split(';')) { - columnSet.add(column); - } - } - - if(!isHeaderValid(columnSet, selectedType)) { - return; - } - - //transform to custom metadata - bulk size = 200 records - Integer maxLoadSize = 200; - for(Integer i = 1; i < fields.size(); i = i + maxLoadSize) { - MetadataUtil.transformToCustomMetadataAndCreateUpdate(standardFieldsInHeader, subset(fields, i, maxLoadSize), header, selectedType, i); - } - } - - private boolean isHeaderValid(Set fieldNamesInHeader, String selectedType) { - //label or devName - atleast one of the two must be specified - if(!fieldNamesInHeader.contains(AppConstants.DEV_NAME_ATTRIBUTE) && !fieldNamesInHeader.contains(AppConstants.LABEL_ATTRIBUTE)) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.HEADER_MISSING_DEVNAME_AND_LABEL); - ApexPages.addMessage(errorMessage); - return false; - } - - System.debug(selectedType); - - - - Set fieldApiNames = new Set(standardFieldsInHeader); - nonSortedApiNames = new List(standardFieldsInHeader); - - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(selectedType).getDescribe(); - Map fields = objDef.fields.getMap(); - - for(String fieldName : fields.keySet()) { - DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); - String fieldQualifiedApiName = fieldDesc.getName(); - - if(fieldQualifiedApiName.endsWith('__c')){ - fieldApiNames.add(fieldQualifiedApiName); - nonSortedApiNames.add(fieldQualifiedApiName); - } - } - - if(!fieldApiNames.containsAll(fieldNamesInHeader)) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR,'Header must contain the api names of the fields. ' + '
' + - 'Fields allowed for this type: ' + nonSortedApiNames + '
' + - 'Fields in file header: ' + fieldNamesInHeader); - ApexPages.addMessage(errorMessage); - return false; - } - return true; - } - - //https://gist.github.com/fractastical/989792 - public static List> subset(List> list1, Integer startIndex, Integer count) { - List> returnList = new List>(); - if(list1 != null && list1.size() > 0 && startIndex >= 0 && startIndex <= list1.size()-1 && count > 0){ - for(Integer i = startIndex; i < list1.size() && i - startIndex < count; i++){ - returnList.add(list1.get(i)); - } - } - return returnList; - } - - //for tests - public void setCsvBlobForTest(Blob file) { - this.csvFileBody = file; - } - - public void setSelectedTypeForTest(String selectedType) { - this.selectedType = selectedType; - } -} From 44228f6cc176df0f4644f4bba76385d523fae02e Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:45:55 -0700 Subject: [PATCH 18/93] wrong location --- .../classes/CustomMetadataUploadController.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 5a0d9f86b2ae6e14d78143190fbdb747a8586c2b Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:46:04 -0700 Subject: [PATCH 19/93] wrong location --- .../CustomMetadataUploadControllerTest.cls | 85 ------------------- 1 file changed, 85 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls deleted file mode 100644 index 49106e4..0000000 --- a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -@isTest(SeeAllData=true) -public class CustomMetadataUploadControllerTest { - - public static testmethod void testUploadNoFile() { - CustomMetadataUploadController ctrl = setup(null); - invokeCreateCMAndValidateError(ctrl, AppConstants.FILE_MISSING); - } - - public static testmethod void testUploadEmptyFile() { - CustomMetadataUploadController ctrl = setup(Blob.valueOf('')); - invokeCreateCMAndValidateError(ctrl, AppConstants.EMPTY_FILE); - } - - public static testmethod void testSelectedTypeMissing() { - CustomMetadataUploadController ctrl = setup(Blob.valueOf('Text__c'), AppConstants.SELECT_STRING); - invokeCreateCMAndValidateError(ctrl, AppConstants.TYPE_OPTION_NOT_SELECTED); - } - - public static testmethod void testInvalidHeaderMissingFields() { - CustomMetadataUploadController ctrl = setup(Blob.valueOf('Text__c')); - invokeCreateCMAndValidateError(ctrl, AppConstants.HEADER_MISSING_DEVNAME_AND_LABEL); - } - - public static testmethod void testInvalidHeaderWrongFields() { - CustomMetadataUploadController ctrl = setup(Blob.valueOf('Label,Text__c')); - - ctrl.upsertCustomMetadata(); - ApexPages.Message[] msgs=ApexPages.getMessages(); - System.assert(msgs.size() == 1); - System.assert(msgs[0].getSummary().contains('Header must contain the api names of the fields.'), 'Actual message:' + msgs[0]); - } - - public static testmethod void testCreateCustomMetadata() { - String countryLabel = 'AmericaTest'+Math.random(); - CustomMetadataUploadController ctrl = setup(Blob.valueOf('Label,CountryCode__c,CountryName__c\n'+countryLabel+',US,America')); - - ctrl.upsertCustomMetadata(); - - ApexPages.Message[] msgs = ApexPages.getMessages(); - System.assert(msgs.size() == 0, 'Error messages:' + msgs); - } - - public static testmethod void testCreateCustomMetadataWithDevName() { - String countryLabel = 'AmericaTest'+Math.random(); - CustomMetadataUploadController ctrl = setup(Blob.valueOf('DeveloperName,CountryCode__c,CountryName__c\n'+countryLabel+',US,America')); - - ctrl.upsertCustomMetadata(); - - ApexPages.Message[] msgs = ApexPages.getMessages(); - System.assert(msgs.size() == 0, 'Error messages:' + msgs); - } - - public static testmethod void testInvalidFileRowSizeDoesntMatch() { - String countryLabel = 'AmericaTest'+Math.random(); - CustomMetadataUploadController ctrl = setup(Blob.valueOf('DeveloperName,CountryCode__c,CountryName__c\n'+countryLabel+',US')); - - invokeCreateCMAndValidateError(ctrl, AppConstants.INVALID_FILE_ROW_SIZE_DOESNT_MATCH + '1'); - } - - static CustomMetadataUploadController setup(Blob file) { - return setup(file, 'CountryMapping__mdt'); - } - - static CustomMetadataUploadController setup(Blob file, String selectedType) { - Test.setMock(WebServiceMock.class, new MDWrapperWebServiceMock()); - CustomMetadataUploadController ctrl = new CustomMetadataUploadController(); - ctrl.setSelectedTypeForTest(selectedType); - ctrl.setCsvBlobForTest(file); - return ctrl; - } - - static void invokeCreateCMAndValidateError(CustomMetadataUploadController ctrl, String errorMsg) { - ctrl.upsertCustomMetadata(); - ApexPages.Message[] msgs = ApexPages.getMessages(); - System.assert(msgs.size() == 1); - System.assert(msgs[0].getSummary().equals(errorMsg), 'Actual message:' + msgs[0]); - } -} From 4ea1e72627541633e2ce49485d38ba2139fad3e8 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:46:11 -0700 Subject: [PATCH 20/93] wrong location --- .../classes/CustomMetadataUploadControllerTest.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From bdb8a59eeaca21192fc584cef1ee5b0a6eea9923 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:46:20 -0700 Subject: [PATCH 21/93] wrong location --- .../classes/JsonUtilities.cls | 53 ------------------- 1 file changed, 53 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/JsonUtilities.cls diff --git a/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls b/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls deleted file mode 100644 index 08452fb..0000000 --- a/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -/** - * Utilities class for common manipulation of json format data - * - */ - -public with sharing class JsonUtilities { - - public class JsonUtilException extends Exception {} - - public static String JSON_BAD_FORMAT = 'The provided Json String was badly formatted.'; - public static String JSON_EMPTY = 'No field values were found in the Json String.'; - - - /** - * This basic method takes a string formatted as json and returns a map - * containing the name/value pairs. If the input is empty or is not formatted correctly - * the method throws a JsonUtilException exception. - **/ - Public static Map getValuesFromJson(String jsonString) { - Map jsonObjMap; - Map jsonMap = new Map(); - if (TextUtil.isEmpty(jsonString) ){ - throw new JsonUtilException(JSON_EMPTY); - } - try { - jsonObjMap = (Map)JSON.deserializeUntyped(jsonString); - if(jsonObjMap == null || jsonObjMap.size() == 0) { - throw new JsonUtilException(JSON_EMPTY); - } else { - for (String pKey : jsonObjMap.keySet() ) { - try { - String pVal = (String)jsonObjMap.get(pKey); - jsonMap.put(pKey, pVal); - } catch (exception e) { - throw new JsonUtilException(JSON_BAD_FORMAT, e); - } - } - } - return jsonMap; - } catch (Exception e) { - throw new JsonUtilException(JSON_BAD_FORMAT, e); - } - } - - -} From d94718fd3f8db35dc1ba06e22438a5c59b884f6e Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:46:27 -0700 Subject: [PATCH 22/93] wrong location --- .../custom_md_loader/classes/JsonUtilities.cls-meta.xml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/JsonUtilities.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls-meta.xml deleted file mode 100644 index 36cfacb..0000000 --- a/custom_md_loader/custom_md_loader/classes/JsonUtilities.cls-meta.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - 39.0 - Active - - From 9afe52e654c261223d0a2baad8e9b30c86f0f8b2 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:46:36 -0700 Subject: [PATCH 23/93] wrong location --- .../classes/MDWrapperWebServiceMock.cls | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls diff --git a/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls b/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls deleted file mode 100644 index 6b42dd2..0000000 --- a/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -@isTest -global class MDWrapperWebServiceMock implements WebServiceMock { - global void doInvoke( - Object stub, - Object request, - Map response, - String endpoint, - String soapAction, - String requestName, - String responseNS, - String responseName, - String responseType) { - if(responseType == 'MetadataService.listMetadataResponse_element'){ - response.put('response_x', new MetadataService.listMetadataResponse_element()); - } else if (responseType == 'MetadataService.createMetadataResponse_element') { - MetadataService.createMetadataResponse_element respElt = - new MetadataService.createMetadataResponse_element(); - respElt.result = new List(); - MetadataService.SaveResult sr = new MetadataService.SaveResult(); - sr.success = true; - respElt.result.add(sr); - response.put('response_x', respElt); - } else if (responseType == 'MetadataService.upsertMetadataResponse_element') { - MetadataService.upsertMetadataResponse_element respElt = new MetadataService.upsertMetadataResponse_element(); - response.put('response_x', respElt); - } - } -} From 9f322d3b11f5bef42f365e724d2e31b90ef9bf52 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:46:48 -0700 Subject: [PATCH 24/93] wrong location --- .../classes/MDWrapperWebServiceMock.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 94d76fa4c043507b7d53cee3cbc69f812bcc4347 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:46:59 -0700 Subject: [PATCH 25/93] wrong location --- .../classes/MetadataApexApiLoader.cls | 230 ------------------ 1 file changed, 230 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls b/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls deleted file mode 100644 index f06e497..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataApexApiLoader extends MetadataLoader { - - public MetadataDeployStatus mdDeployStatus {get;set;} - public MetadataDeployCallback callback {get;set;} - - public static Id jobId1 {get;set;} - public static Metadata.DeployStatus deployStatus1 {get;set;} - public static boolean success1 {get;set;} - - public MetadataApexApiLoader() { - this.mdDeployStatus = new MetadataApexApiLoader.MetadataDeployStatus(); - this.callback = new MetadataDeployCallback(); - } - - public MetadataApexApiLoader.MetadataDeployStatus getMdDeployStatus() { - return this.mdDeployStatus; - } - - public MetadataApexApiLoader.MetadataDeployCallback getCallback() { - return this.callback; - } - - public override void migrateAsIsWithObjCreation(String csName, String cmtName) { - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Not Supported!!!')); - response.setIsSuccess(false); - response.setMessages(messages); - } - - public override void migrateAsIsMapping(String csName, String cmtName) { - super.migrateAsIsMapping(csName, cmtName); - buildResponse(); - } - - public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { - super.migrateSimpleMapping(csNameWithField, cmtNameWithField); - buildResponse(); - } - - public override void migrateCustomMapping(String csName, String cmtName, String mapping) { - super.migrateCustomMapping(csName, cmtName, mapping); - buildResponse(); - } - - private void buildResponse() { - if(response.IsSuccess()) { - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Migration In Progress... Job Id: ' + getMdDeployStatus().getJobId())); - response.setIsSuccess(true); - response.setMessages(messages); - } - } - - public override void migrate(MetadataMappingInfo mappingInfo) { - - System.debug('MetadataApexApiLoader.migrate -->'); - try{ - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - String typeDevName = mappingInfo.getCustomMetadadataTypeName() - .subString(0, mappingInfo.getCustomMetadadataTypeName().indexOf(AppConstants.MDT_SUFFIX)); - List records = new List(); - for(sObject csRecord : mappingInfo.getRecordList()) { - - Metadata.CustomMetadata customMetadataRecord = new Metadata.CustomMetadata(); - customMetadataRecord.values = new List(); - - if(csRecord.get(AppConstants.CS_NAME_ATTRIBURE) != null) { - String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); - String tempVal = strippedLabel.substring(0, 1); - - if(tempVal.isNumeric()) { - strippedLabel = 'X' + strippedLabel; - } - strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - // default fullName to type_dev_name.label - customMetadataRecord.fullName = typeDevName + '.'+ strippedLabel; - customMetadataRecord.label = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); - } - for(String fieldName : mappingInfo.getCSToMDT_fieldMapping().keySet()) { - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(fieldName.toLowerCase()); - - if(mappingInfo.getCSToMDT_fieldMapping().get(fieldName).endsWith('__c')){ - Metadata.CustomMetadataValue cmv = new Metadata.CustomMetadataValue(); - cmv.field = mappingInfo.getCSToMDT_fieldMapping().get(fieldName); - if(descCSFieldResult.getType().name() == 'DATETIME') { - - if(csRecord.get(fieldName) != null) { - Datetime dt = DateTime.valueOf(csRecord.get(fieldName)); - String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); - cmv.value = csRecord.get(formattedDateTime); - } - else { - cmv.value = null; - } - - } - else{ - cmv.value = csRecord.get(fieldName); - } - - customMetadataRecord.values.add(cmv); - } - } - records.add(customMetadataRecord); - } - - - callback.setMdDeployStatus(mdDeployStatus); - - Metadata.DeployContainer deployContainer = new Metadata.DeployContainer(); - for(Metadata.CustomMetadata record : records) { - deployContainer.addMetadata(record); - } - - // Enqueue custom metadata deployment - Id jobId = Metadata.Operations.enqueueDeployment(deployContainer, callback); - jobId1 = jobId; - - mdDeployStatus.setJobId(jobId); - - System.debug('jobId-->' + jobId); - System.debug('mdDeployStatus-->' + mdDeployStatus); - System.debug('mdDeployStatus.getJobId()-->' + mdDeployStatus.getJobId()); - } - catch(Exception e) { - System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, e.getMessage())); - - response.setIsSuccess(false); - response.setMessages(messages); - } - } - - - - public class MetadataDeployStatus { - public Id jobId {get;set;} - public Metadata.DeployStatus deployStatus {get;set;} - public boolean success {get;set;} - - public MetadataDeployStatus() {} - - public Id getJobId() { - return this.jobId; - } - public void setJobId(Id jobId) { - this.jobId = jobId; - } - - public Metadata.DeployStatus getDeployStatus() { - return this.deployStatus; - } - public void setDeployStatus(Metadata.DeployStatus deployStatus) { - System.debug('setDeployStatus deployStatus ===>'+ deployStatus); - this.deployStatus = deployStatus; - } - - public boolean getSuccess() { - return this.success; - } - public void setSuccess(boolean success) { - System.debug('setDeployStatus success ===>'+ success); - this.success = success; - } - - } - - public class MetadataDeployCallback implements Metadata.DeployCallback { - - public MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus1 {get;set;} - - public void setMdDeployStatus(MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus) { - this.mdDeployStatus1 = mdDeployStatus; - } - - public MetadataDeployCallback() { - } - - public void handleResult(Metadata.DeployResult result, - Metadata.DeployCallbackContext context) { - - deployStatus1 = result.status; - success1 = result.success; - - if (result.status == Metadata.DeployStatus.Succeeded) { - - mdDeployStatus1.setSuccess(true); - mdDeployStatus1.setDeployStatus(result.status); - - System.debug(' ===>'+ result); - } - else if (result.status == Metadata.DeployStatus.InProgress) { - // Deployment In Progress - - mdDeployStatus1.setSuccess(false); - mdDeployStatus1.setDeployStatus(result.status); - - System.debug(' ===> fail '+ result); - } - else { - - mdDeployStatus1.setSuccess(false); - mdDeployStatus1.setDeployStatus(result.status); - - // Deployment was not successful - System.debug(' ===> fail '+ result); - } - - /*if (result.success) { - success = true; - System.debug(' ===>'+ result); - } - */ - - } - } - - - -} From 5591ed6ab4854a78759258bf50d073c29d6f1dd3 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:47:07 -0700 Subject: [PATCH 26/93] wrong location --- .../classes/MetadataApexApiLoader.cls-meta.xml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml deleted file mode 100644 index 36cfacb..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - 39.0 - Active - - From ef3bc9e8c603e3c5a79b35c6963db54f4cd8f678 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:47:15 -0700 Subject: [PATCH 27/93] wrong location --- .../classes/MetadataLoader.cls | 138 ------------------ 1 file changed, 138 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoader.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls b/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls deleted file mode 100644 index 93e8d1f..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public virtual class MetadataLoader { - - public MetadataResponse response; - public MetadataMapperDefault mapper; - - public MetadataLoader() { - response = new MetadataResponse(true, null, null); - } - - /** - * This will first create custom object and then migrates the records. - * This assumes that CS and MDT have the same API field names. - * - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateAsIsWithObjCreation(String csName, String cmtName) { - - MetadataMappingInfo mappingInfo = null; - try{ - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); - mappingInfo = mapper.mapper(csName, cmtName, null); - } - catch(Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting exists in the org!')); - messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); - messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); - messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - } - } - - /** - * This assumes that CS and MDT have the same API field names. - * - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateAsIsMapping(String csName, String cmtName) { - MetadataMappingInfo mappingInfo = null; - try{ - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); - mappingInfo = mapper.mapper(csName, cmtName, null); - migrate(mappingInfo); - } - catch(Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); - messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); - messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); - messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } - - - /** - * csNameAndField: Label, DeveloperName, Description (We might need it for migration) - * cmtNameAndField: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateSimpleMapping(String csNameAndField, String cmtNameAndField) { - - MetadataMappingInfo mappingInfo = null; - try{ - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.SIMPLE); - mappingInfo = mapper.mapper(csNameAndField, cmtNameAndField, null); - migrate(mappingInfo); - } - catch(Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); - messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name/Field Name and Custom Metadata Types/Field Name names are required!')); - messages.add(new MetadataResponse.Message(200, 'Please check the format, . and .')); - messages.add(new MetadataResponse.Message(300, 'Please check the Api names!')); - messages.add(new MetadataResponse.Message(400, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } - - /** - * This assumes that CS and MDT have the same API field names. - * - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - * mapping: e.g. Json mapping between CS field Api and CMT field Api names - */ - public virtual void migrateCustomMapping(String csName, String cmtName, String mapping) { - MetadataMappingInfo mappingInfo = null; - try{ - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.CUSTOM); - mappingInfo = mapper.mapper(csName, cmtName, mapping); - migrate(mappingInfo); - } - catch(Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - System.debug('MetadataLoader.migrateCustomMapping --> E' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); - messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name, Custom Metadata Types Api and Json Mapping names are required!')); - messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); - messages.add(new MetadataResponse.Message(200, 'Please check the Json format!')); - messages.add(new MetadataResponse.Message(300, 'Please check the Api names in Json!')); - messages.add(new MetadataResponse.Message(400, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } - - public virtual void migrate(MetadataMappingInfo mappingInfo) { - System.debug('MetadataLoader.migrate -->'); - } - - public MetadataMapperDefault getMapper() { - return mapper; - } - - public MetadataResponse getMetadataResponse() { - return response; - } - -} From dce04aacbd77c25b1190c9bc0e41d046d62fbe86 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:47:22 -0700 Subject: [PATCH 28/93] wrong location --- .../custom_md_loader/classes/MetadataLoader.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoader.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataLoader.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 8350d49063256aea9a1d561b35bf07f2e3b7323e Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:47:31 -0700 Subject: [PATCH 29/93] wrong location --- .../classes/MetadataLoaderClient.cls | 73 ------------------- 1 file changed, 73 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls b/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls deleted file mode 100644 index 1ef09e8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public class MetadataLoaderClient { - - /********************************************************* - * Desc This will create custom object and then migrate - Custom Settings data to Custom Metadata Types records as is - * @param Name of Custom Setting Api (VAT_Settings_CS__c) - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) - * @return - *********************************************************/ - public void migrateAsIsWithObjCreation() { - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateAsIsWithObjCreation('VAT_Settings_CS__c', 'VAT_Settings__mdt'); - } - - /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records as is - * @param Name of Custom Setting Api (VAT_Settings_CS__c) - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) - * @return - *********************************************************/ - public void migrateAsIsMapping() { - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateAsIsMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt'); - } - - /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records if you have only - * one field mapping - * @param Name of Custom Setting Api.fieldName (VAT_Settings_CS__c.Active__c) - * @param Name of Custom Metadata Types Api.fieldMame (VAT_Settings__mdt.IsActive__c) - * @return - *********************************************************/ - public void migrateSimpleMapping() { - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateSimpleMapping('VAT_Settings_CS__c.Active__c', 'VAT_Settings__mdt.IsActive__c'); - } - - /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records if you have only - * different Api names in Custom Settings and Custom Metadata Types - * @param Name of Custom Setting Api (VAT_Settings_CS__c) - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) - * @param Json Mapping (Sample below) - { - "Active__c" : "IsActive__c", - "Timeout__c" : "GlobalTimeout__c", - "EndPointURL__c" : "URL__c", - } - - * @return - *********************************************************/ - public void migrateCustomMapping() { - String jsonMapping = '{'+ - '"Active__c" : "Active__c",'+ - '"Timeout__c" : "Timeout__c",'+ - '"EndPointURL__c" : "EndPointURL__c",'+ - '};'; - - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateCustomMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt', jsonMapping); - } - - public void migrateMetatdataApex() { - } - -} From ed92af61109ded1c3a16ab637e7da0ea985523ef Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:47:39 -0700 Subject: [PATCH 30/93] wrong location --- .../classes/MetadataLoaderClient.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From c01a0f4ede8c8da6edc9fab88d66f9c952ee49a8 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:47:52 -0700 Subject: [PATCH 31/93] wrong location --- .../classes/MetadataLoaderFactory.cls | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls b/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls deleted file mode 100644 index 2c5f3d3..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataLoaderFactory { - - public static MetadataLoader getLoader(MetadataOpType mt) { - MetadataLoader loader = null; - - if(mt == MetadataOpType.APEXWRAPPER) { - loader = new MetadataWrapperApiLoader(); - } - if(mt == MetadataOpType.METADATAAPEX) { - loader = new MetadataApexApiLoader(); - } - return loader; - } - -} \ No newline at end of file From cc9fede0298909c2c598ab9bc053f6664dd54969 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:48:00 -0700 Subject: [PATCH 32/93] wrong location --- .../classes/MetadataLoaderFactory.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From 6bb5f4649adec9559616be9527ba738f75ef9c34 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:48:09 -0700 Subject: [PATCH 33/93] wrong location --- .../custom_md_loader/classes/MetadataMapper.cls | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapper.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls deleted file mode 100644 index db60f06..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public interface MetadataMapper { - MetadataMappingInfo mapper(String sFrom, String sTo, String mapping); - - boolean validate(); - - void mapSourceTarget(); -} \ No newline at end of file From e001ee1650f0a6c01dc532d604782c3ac8154760 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:48:20 -0700 Subject: [PATCH 34/93] wrong location --- .../custom_md_loader/classes/MetadataMapper.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapper.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapper.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From 884743fd2004a1c33e8d6e9f17ae83da7ee8b705 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:48:28 -0700 Subject: [PATCH 35/93] wrong location --- .../classes/MetadataMapperCustom.cls | 82 ------------------- 1 file changed, 82 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls deleted file mode 100644 index 38bae38..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataMapperCustom extends MetadataMapperDefault { - - private String csFieldName; - private String mdtFieldName; - private Map fieldsMap; - - public MetadataMapperCustom() { - super(); - } - - /** - * sFrom: e.g. VAT_Settings__c.Field_Name_CS__c - * sTo: e.g. VAT_Settings__mdt.Field_Name_MDT__c - * mapping: e.g. {"Field_cs_1__c", "Field_mdt_1__c"} - */ - public override MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { - try{ - fetchSourceMetadataAndRecords(sFrom, sTo, mapping); - mapSourceTarget(); - } - catch(Exception e) { - throw e; - } - return mappingInfo; - } - - private void fetchSourceMetadataAndRecords(String csName, String mdtName, String mapping) { - if(!mdtName.endsWith(AppConstants.MDT_SUFFIX)){ - throw new MetadataMigrationException('Custom Metadata Types name should ends with ' + AppConstants.MDT_SUFFIX); - } - - List srcFieldNames = new List(); - Map srcFieldResultMap = new Map(); - - try{ - mappingInfo.setCustomSettingName(csName); - mappingInfo.setCustomMetadadataTypeName(mdtName); - - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csName).getDescribe(); - Map fields = objDef.fields.getMap(); - - this.fieldsMap = JsonUtilities.getValuesFromJson(mapping); - - for(String fieldName: fieldsMap.keySet()) { - srcFieldNames.add(fieldName); - DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); - srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); - } - - String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; - String query = selectClause + ' FROM ' + csName; - - List recordList = Database.query(query); - - mappingInfo.setSrcFieldNames(srcFieldNames); - mappingInfo.setRecordList(recordList); - mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - - } - catch(Exception e) { - System.debug('MetadataMapperCustom.Error Message=' + e.getMessage()); - throw e; - } - - } - - public override boolean validate(){ - return true; - } - - public override void mapSourceTarget() { - mappingInfo.setCSToMDT_fieldMapping(this.fieldsMap); - } - -} \ No newline at end of file From 47037f91fa7b897fba3bbdf293370a46045da539 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:48:37 -0700 Subject: [PATCH 36/93] wrong location --- .../classes/MetadataMapperCustom.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From c573d1e3288fe4e76b436f14994ee26f3e4b82da Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:48:45 -0700 Subject: [PATCH 37/93] wrong location --- .../classes/MetadataMapperDefault.cls | 89 ------------------- 1 file changed, 89 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls deleted file mode 100644 index fb93c01..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public virtual with sharing class MetadataMapperDefault implements MetadataMapper { - - protected MetadataMappingInfo mappingInfo; // {get;set;} - private List srcFieldNames; - - public MetadataMapperDefault() { - this.mappingInfo = new MetadataMappingInfo(); - } - - /** - * sFrom: e.g. VAT_Settings__c - * sTo: e.g. VAT_Settings__mdt - * mapping: e.g. {} - */ - public virtual MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { - try{ - mappingInfo.setCustomSettingName(sFrom); - mappingInfo.setCustomMetadadataTypeName(sTo); - - fetchSourceMetadataAndRecords(sFrom); - mapSourceTarget(); - } - catch(Exception e) { - throw e; - } - return mappingInfo; - } - - private void fetchSourceMetadataAndRecords(String customSettingApiName) { - - if(!mappingInfo.getCustomMetadadataTypeName().endsWith(AppConstants.MDT_SUFFIX)){ - throw new MetadataMigrationException('Custom Metadata Types name should ends with ' + AppConstants.MDT_SUFFIX); - } - - srcFieldNames = new List(); - Map srcFieldResultMap = new Map(); - - try { - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(customSettingApiName).getDescribe(); - Map fields = objDef.fields.getMap(); - - String selectFields = ''; - for(String fieldName : fields.keySet()) { - DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); - String fieldQualifiedApiName = fieldDesc.getName(); - if(fieldQualifiedApiName.endsWith('__c')){ - srcFieldNames.add(fieldQualifiedApiName); - } - srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); - - } - - String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; - String query = selectClause + ' FROM ' + customSettingApiName; - List recordList = Database.query(query); - - mappingInfo.setSrcFieldNames(srcFieldNames); - mappingInfo.setRecordList(recordList); - mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - } - catch(Exception e) { - System.debug('MetadataMapperDefault.Error Message=' + e.getMessage()); - throw e; - } - } - - public virtual boolean validate(){ - return true; - } - - public virtual void mapSourceTarget() { - Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); - for(String fieldName: srcFieldNames) { - csToMDT_fieldMapping.put(fieldName, fieldName); - } - } - - public MetadataMappingInfo getMappingInfo() { - return mappingInfo; - } - -} \ No newline at end of file From b2640a39dcb2887e914d4962bfb11ff7e3020c1a Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:48:52 -0700 Subject: [PATCH 38/93] wrong location --- .../classes/MetadataMapperDefault.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From 3c17e0ed210cffa8ac9e90ed9a86e79b7b9d6134 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:49:00 -0700 Subject: [PATCH 39/93] wrong location --- .../classes/MetadataMapperFactory.cls | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls deleted file mode 100644 index 1457184..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataMapperFactory { - - public static MetadataMapperDefault getMapper(MetadataMapperType mt) { - MetadataMapperDefault mapper = null; - if(mt == MetadataMapperType.ASIS) { - mapper = new MetadataMapperDefault(); - } - if(mt == MetadataMapperType.SIMPLE) { - mapper = new MetadataMapperSimple(); - } - else if(mt == MetadataMapperType.CUSTOM) { - mapper = new MetadataMapperCustom(); - } - return mapper; - } - -} \ No newline at end of file From 62240f73e7134b4dddfe2945152c3c8d3540f424 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:49:08 -0700 Subject: [PATCH 40/93] wrong location --- .../classes/MetadataMapperFactory.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From f541a7f9c859f401bca3dff351d3a3673cb1bf3e Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:49:16 -0700 Subject: [PATCH 41/93] wrong location --- .../classes/MetadataMapperSimple.cls | 80 ------------------- 1 file changed, 80 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls deleted file mode 100644 index ca7893a..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataMapperSimple extends MetadataMapperDefault { - - private String csFieldName; - private String mdtFieldName; - - public MetadataMapperSimple() { - super(); - } - - /** - * sFrom: e.g. VAT_Settings__c.Field_Name_CS__c - * sTo: e.g. VAT_Settings__mdt.Field_Name_MDT__c - * mapping: e.g. null - */ - public override MetadataMappingInfo mapper(String csName, String cmtName, String mapping) { - fetchSourceMetadataAndRecords(csName, cmtName); - mapSourceTarget(); - - return mappingInfo; - } - - private void fetchSourceMetadataAndRecords(String csNameWithField, String mdtNameWithField) { - try{ - List srcFieldNames = new List(); - Map srcFieldResultMap = new Map(); - - System.debug('csNameWithField->' + csNameWithField); - System.debug('mdtNameWithField->' + mdtNameWithField); - - String[] csArray = csNameWithField.split('\\.'); - String[] mdtArray = mdtNameWithField.split('\\.'); - - mappingInfo.setCustomSettingName(csArray[0]); - mappingInfo.setCustomMetadadataTypeName(mdtArray[0]); - - System.debug('csArray->' + csArray); - System.debug('mdtArray->' + mdtArray); - - csFieldName = csArray[1]; - mdtFieldName = mdtArray[1]; - - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csArray[0]).getDescribe(); - Map fields = objDef.fields.getMap(); - DescribeFieldResult fieldDesc = fields.get(csFieldName).getDescribe(); - srcFieldResultMap.put(csFieldName.toLowerCase(), fieldDesc); - - srcFieldNames.add(csFieldName); - - String selectClause = 'SELECT ' + csArray[1] + ' ,Name '; - String query = selectClause + ' FROM ' + csArray[0]; - List recordList = Database.query(query); - - mappingInfo.setSrcFieldNames(srcFieldNames); - mappingInfo.setRecordList(recordList); - mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - - } - catch(Exception e) { - System.debug('MetadataMapperSimple.Error Message=' + e.getMessage()); - throw e; - } - } - - public override boolean validate(){ - return true; - } - - public override void mapSourceTarget() { - Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); - csToMDT_fieldMapping.put(csFieldName, mdtFieldName); - } - -} \ No newline at end of file From 9a300d7ab56639a1d11d9db64edebcc6f2dc8dcc Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:49:23 -0700 Subject: [PATCH 42/93] wrong location --- .../classes/MetadataMapperSimple.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From 041e0422cd2602d1c1c6726fbd30c120f32930f5 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:49:32 -0700 Subject: [PATCH 43/93] wrong location --- .../custom_md_loader/classes/MetadataMapperType.cls | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls b/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls deleted file mode 100644 index c0e4c8e..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public enum MetadataMapperType { ASIS, SIMPLE, CUSTOM } From 14ca07ceb6292d1ab1b544d32c52e1d7231b0024 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:49:40 -0700 Subject: [PATCH 44/93] wrong location --- .../custom_md_loader/classes/MetadataMapperType.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMapperType.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From 7d03f3a7e65ff82a945e80e8d1b2aaf069b5f887 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:49:48 -0700 Subject: [PATCH 45/93] wrong location --- .../classes/MetadataMappingInfo.cls | 81 ------------------- 1 file changed, 81 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls b/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls deleted file mode 100644 index e1be6f9..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataMappingInfo { - - private final Set standardFields = new Set(); - private String customSettingName; - private String customMetadadataTypeName; - - private List srcFieldNames; - private List recordList; - private Map srcFieldResultMap; - - private Map csToMDT_fieldMapping = new Map(); - - public MetadataMappingInfo() { - standardFields.add(AppConstants.DEV_NAME_ATTRIBUTE); - standardFields.add(AppConstants.LABEL_ATTRIBUTE); - standardFields.add(AppConstants.DESC_ATTRIBUTE); - } - - public Set getStandardFields() { - return standardFields; - } - - public List getSrcFieldNames() { - return srcFieldNames; - } - - public List getRecordList() { - return recordList; - } - - public void setSrcFieldNames(List names) { - this.srcFieldNames = names; - } - - public void setRecordList(List records) { - this.recordList = records; - } - - public Map getCSToMDT_fieldMapping() { - System.debug('MetadataMappingInfo.getCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); - return this.csToMDT_fieldMapping; - } - - public void setCSToMDT_fieldMapping(Map csToMDT_fieldMapping) { - System.debug('BEFORE MetadataMappingInfo.setCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); - this.csToMDT_fieldMapping = csToMDT_fieldMapping; - System.debug('AFTER MetadataMappingInfo.setCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); - } - - public String getCustomSettingName() { - return this.customSettingName; - } - - public void setCustomSettingName(String customSettingName) { - this.customSettingName = customSettingName; - } - - public String getCustomMetadadataTypeName() { - return this.customMetadadataTypeName; - } - - public void setCustomMetadadataTypeName(String customMetadadataTypeName) { - this.customMetadadataTypeName = customMetadadataTypeName; - } - - public Map getSrcFieldResultMap() { - return this.srcFieldResultMap; - } - - public void setSrcFieldResultMap(Map fieldResult) { - this.srcFieldResultMap = fieldResult; - } - -} \ No newline at end of file From 17d6aba64f0685cf3df9c7ecae327436dba02642 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:49:57 -0700 Subject: [PATCH 46/93] wrong location --- .../classes/MetadataMappingInfo.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From 3f25b6d6903b5932a6dc72caed46aa4f08cf78c8 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:50:06 -0700 Subject: [PATCH 47/93] wrong location --- .../classes/MetadataMigrationController.cls | 222 ------------------ 1 file changed, 222 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls b/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls deleted file mode 100644 index 3675c4e..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public class MetadataMigrationController { - static MetadataService.MetadataPort service = MetadataUtil.getPort(); - - private final Set standardFieldsInHeader = new Set(); - private List nonSortedApiNames; - - public boolean showRecordsTable{get;set;} - public String selectedType{get;set;} - public Blob csvFileBody{get;set;} - public SObject[] records{get;set;} - public List cmdTypes{public get;set;} - public String selectedOpType1{get;set;} - public String selectedOpType2{get;set;} - public String selectedOpType3{get;set;} - public List opTypes{public get;set;} - public List objCreationOpTypes{public get;set;} - - public List fieldNamesForDisplay{public get;set;} - - public String customSettingFromFieldAsIs{public get;set;} - public String customSettingFromFieldSimple{public get;set;} - public String cmdToFieldSimple{public get;set;} - public String customSettingFromFieldJson{public get;set;} - public String cmdToFieldJson{public get;set;} - - public String csFieldObjCreation {public get;set;} - public String cmtFieldObjCreation {public get;set;} - public String opTypeFieldObjCreation {public get;set;} - - public String csNameApexMetadata{public get;set;} - public String cmdNameApexMetadata{public get;set;} - public String jsonMappingApexMetadata{public get;set;} - - public String jsonMapping{public get;set;} - - public boolean asyncDeployInProgress{get;set;} - - public boolean isMessage {get;set;} - - public MetadataOpType opType = MetadataOpType.APEXWRAPPER; - //public MetadataOpType opType = MetadataOpType.METADATAAPEX; - - public MetadataMigrationController() { - - service.timeout_x = 40000; - - isMessage = false; - asyncDeployInProgress = false; - - showRecordsTable = false; - loadCustomMetadataMetadata(); - - //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. - standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); - standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); - standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); - - jsonMapping = '{' - + ' \"customsetting_field1__c\" : \"cmd_field1__c\",' - + ' \"customsetting_field2__c\" : \"cmd_field2__c\",' - + ' \"customsetting_field3__c\" : \"cmd_field3__c\"' - + '}'; - - opTypes = new List(); - opTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); - opTypes.add(new SelectOption(MetadataOpType.METADATAAPEX.name(), 'Async Operation')); - - objCreationOpTypes = new List(); - objCreationOpTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); - - } - - public PageReference onLoad () { - System.debug('onLoad-->' ); - - return null; - } - - - /** - * Queries to find all custom metadata types in the org and make it available to the VF page as drop down - */ - private void loadCustomMetadataMetadata(){ - List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; - for(SObject entityDefinition : entityDefinitions){ - String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); - if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)){ - if(cmdTypes == null) { - cmdTypes = new List(); - cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); - } - cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); - } - } - } - - private void init(String selectedOpType) { - System.debug('migrateAsIsMapping.selectedOpType-->' + selectedOpType); - - opType = MetadataOpType.APEXWRAPPER; - if(selectedOpType == MetadataOpType.METADATAAPEX.name()) { - System.debug('selectedOpType == MetadataOpType.METADATAAPEX.name()'); - opType = MetadataOpType.METADATAAPEX; - } - System.debug('opType' + opType); - } - - public PageReference migrateAsIsWithObjCreation() { - init(opTypeFieldObjCreation); - - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateAsIsWithObjCreation(csFieldObjCreation, cmtFieldObjCreation); - - MetadataResponse response = loader.getMetadataResponse(); - - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - public PageReference migrateAsIsMapping() { - init(selectedOpType1); - - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateAsIsMapping(customSettingFromFieldAsIs, selectedType); - MetadataResponse response = loader.getMetadataResponse(); - - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - public PageReference migrateSimpleMapping() { - init(selectedOpType2); - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateSimpleMapping(customSettingFromFieldSimple, cmdToFieldSimple); - MetadataResponse response = loader.getMetadataResponse(); - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - - public PageReference migrateCustomMapping() { - init(selectedOpType3); - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateCustomMapping(customSettingFromFieldJson, cmdToFieldJson, jsonMapping); - MetadataResponse response = loader.getMetadataResponse(); - List messages = response.getMessages(); - - if(response.isSuccess()) { - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - -} From d5f91d43724a3df6973121634ed3e5cd211eb106 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:50:14 -0700 Subject: [PATCH 48/93] wrong location --- .../classes/MetadataMigrationController.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 06e12df185c3ba766cdaa8f7260b1898ef13c9bc Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:50:21 -0700 Subject: [PATCH 49/93] wrong location --- .../classes/MetadataMigrationException.cls | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls b/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls deleted file mode 100644 index c3e8b36..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public class MetadataMigrationException extends Exception{} \ No newline at end of file From 2c909545d0ab422d38995209d6ee6fb7d38aad4b Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:50:28 -0700 Subject: [PATCH 50/93] wrong location --- .../classes/MetadataMigrationException.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml deleted file mode 100644 index 94f6f06..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 40.0 - Active - From c185a5a6781544f45061fb51c3c706c7b78f2cb9 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:50:38 -0700 Subject: [PATCH 51/93] wrong location --- .../classes/MetadataObjectCreator.cls | 279 ------------------ 1 file changed, 279 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls b/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls deleted file mode 100644 index 58641c0..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls +++ /dev/null @@ -1,279 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataObjectCreator { - - static MetadataService.MetadataPort service = MetadataUtil.getPort(); - static String endPoint = URL.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/m/40.0'; - - private static String objectRequestBodySnippet = - '' + - ''+ - '' + - '' + - '{0}' + - '' + - '' + - '' + - '' + - '' + - '{1}' + - // '{2}' + - '' + - '{3}' + - '' + - '' + - '' + - ''; - - private static String fieldRequestBodySnippet = - '' + - ''+ - '' + - '' + - '{0}' + - '' + - '' + - '' + - '' + - '{1}' + - '' + - '' + - ''; - - private static String fieldRequestSnippet = - '' + - '{0}' + - '{1}' + - '' + - '{3}' + // length - '{4}' + // defaultValue - '{5}' + // precisionValue - ''; - - private static String fieldLengthSnippet = - '{0}'; - private static String fieldDefaultValueSnippet = - '{0}'; - - public static void createCustomObject(MetadataMappingInfo mappingInfo) { - try{ - System.debug('createCustomObject -->'); - String fullName = mappingInfo.getCustomMetadadataTypeName(); - - System.debug('fullName ->' + fullName); - String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); - - String label = pluralLabel; - pluralLabel = pluralLabel + 's'; - - System.debug('label ->' + label); - System.debug('pluralLabel ->' + pluralLabel); - - String objectRequest = String.format(objectRequestBodySnippet, new String[]{UserInfo.getSessionId(), fullName, label, pluralLabel}); - - System.debug('objectRequest-->' + objectRequest); - HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(objectRequest); - - httpReq.setEndpoint(endPoint); - System.debug('httpReq-->' + httpReq); - getResponse(httpReq); - } - catch(Exception e) { - throw e; - } - } - - public static void createCustomField(MetadataMappingInfo mappingInfo) { - try{ - System.debug('createCustomField -->'); - - String fullName = mappingInfo.getCustomMetadadataTypeName(); - - String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - String fieldFullName = ''; - String label = ''; - String type_x = ''; - String length_x = ''; - String defaultValue = ''; - String precisionValue = ''; - - String fieldRequest = ''; - String reqBody = ''; - - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - System.debug('descFieldResultMap-->' + descFieldResultMap); - - integer counter = 0; - for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { - if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ - length_x = ''; - - System.debug('csField-->' + csField); - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); - System.debug('descCSFieldResult-->' + descCSFieldResult); - - String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); - - System.debug('cmtField-->' + cmtField); - System.debug('fullName--> 2' + fullName); - - fieldFullName = fullName + '.' + cmtField; - System.debug('fieldFullName--> 3' + fieldFullName); - label = descCSFieldResult.getLabel(); - type_x = getConvertedType(descCSFieldResult.getType().name()); - length_x = String.valueOf(descCSFieldResult.getLength()); - - if(descCSFieldResult.getLength() != 0 ) { - length_x = String.format(fieldLengthSnippet, new String[]{length_x}); - } - else { - length_x = ''; - } - if(type_x == 'Checkbox') { - defaultValue = '' + descCSFieldResult.getDefaultValue() +''; - } - else{ - defaultValue = ''; - } - if(type_x == 'Number' || type_x == 'Percent') { - precisionValue = '' + descCSFieldResult.getPrecision() +'' + - '' + descCSFieldResult.getScale() +''; - } - else{ - precisionValue = ''; - } - // Length is set to 80 for Email/Phone/URL fields but no length field? - if(type_x == 'Email' || type_x == 'Phone' || type_x == 'URL' || type_x == 'Url' || type_x == 'TextArea' ) { - length_x = ''; - } - - fieldRequest = fieldRequest + String.format(fieldRequestSnippet, new String[]{fieldFullName, type_x, label, length_x, defaultValue, precisionValue}); - - System.debug('fieldFullName-->' + fieldFullName); - System.debug('label-->' + label); - System.debug('type_x-->' + type_x); - System.debug('length_x-->' + length_x); - - if(counter == 9) { - - reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); - - System.debug('reqBody-->' + reqBody); - HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(reqBody); - httpReq.setEndpoint(endPoint); - System.debug('httpReq-->' + httpReq); - getResponse(httpReq); - - fieldRequest = ''; - } - - counter++; - - } - } - System.debug('fieldRequest-->' + fieldRequest); - - if(fieldRequest != '') { - reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); - - System.debug('reqBody-->' + reqBody); - HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(reqBody); - httpReq.setEndpoint(endPoint); - System.debug('httpReq-->' + httpReq); - getResponse(httpReq); - } - } - catch(Exception e) { - throw e; - } - } - - private static HttpRequest initHttpRequest(String httpMethod){ - HttpRequest req = new HttpRequest(); - req.setHeader('Accept', 'application/xml'); - req.setHeader('SOAPAction','""'); - req.setHeader('Content-Type', 'text/xml'); - req.setMethod(httpMethod); - return req; - } - - private static String getResponse(HttpRequest request) { - Http http = new Http(); - HttpResponse response = new HttpResponse(); - - response = http.send(request); - - System.debug('---- RESPONSE RECEIVED------'); - System.debug(response); - - if (response.getStatusCode() == 200 || response.getStatusCode() == 201){ - System.debug('Ok Received!'); - } - else{ - System.debug('Error Received!'); - } - String responseBody = response.getBody(); - System.debug('responseBody-->' + responseBody); - - return responseBody; - } - - - private static String getConvertedType(String type_x) { - String newtType = 'Text'; - if(type_x == 'STRING') { - newtType = 'Text'; - } - else if(type_x == 'BOOLEAN') { - newtType = 'Checkbox'; - } - else if(type_x == 'DOUBLE' || type_x == 'INTEGER') { - newtType = 'Number'; - } - else if(type_x == 'PERCENT' || type_x == 'Percent') { - newtType = 'Percent'; - } - else if(type_x == 'DATETIME') { - newtType = 'DateTime'; - } - else if(type_x == 'DATE') { - newtType = 'Date'; - } - else if(type_x == 'TEXTAREA') { - newtType = 'TextArea'; - } - else if(type_x == 'PICKLIST') { - newtType = 'Picklist'; - } - else if(type_x == 'EMAIL') { - newtType = 'Email'; - } - else if(type_x == 'PHONE') { - newtType = 'Phone'; - } - else if(type_x == 'URL') { - newtType = 'Url'; - } - - else { - newtType = type_x; - } - - return newtType; - - } - -} From a0aa0b702bde4f0d360cb1f8705a1b375fff7775 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:51:11 -0700 Subject: [PATCH 52/93] wrong location --- .../classes/MetadataObjectCreator.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From d0da13ab0a4d0e2ed8315be487eb8ef2bcd4f7da Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:51:19 -0700 Subject: [PATCH 53/93] wrong location --- .../custom_md_loader/classes/MetadataOpType.cls | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataOpType.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls b/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls deleted file mode 100644 index 1953cd2..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls +++ /dev/null @@ -1,8 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public enum MetadataOpType { APEXWRAPPER, METADATAAPEX } From c89b0dde227d5777a9aab39008730037ab1ac14c Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:51:27 -0700 Subject: [PATCH 54/93] wrong location --- .../custom_md_loader/classes/MetadataOpType.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataOpType.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataOpType.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From 023cfd6f8bee02c6ac7303a73000a49fa91e0157 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:51:38 -0700 Subject: [PATCH 55/93] wrong location --- .../classes/MetadataResponse.cls | 62 ------------------- 1 file changed, 62 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataResponse.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls b/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls deleted file mode 100644 index 96dd34d..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataResponse { - - private boolean isSuccess; - private List messages; - private MetadataMappingInfo mappingInfo; - - public MetadataResponse() { - } - - public MetadataResponse(boolean bIsSuccess, MetadataMappingInfo info, List messagesList) { - this.isSuccess = bIsSuccess; - this.messages = messagesList; - this.mappingInfo = info; - } - - public boolean isSuccess() { - return this.isSuccess; - } - - public void setIsSuccess(boolean isSuccess) { - this.isSuccess = isSuccess; - } - - public void setMappingInfo(MetadataMappingInfo info) { - this.mappingInfo = info; - } - public MetadataMappingInfo getMappingInfo() { - return this.mappingInfo; - } - - public List getMessages() { - return this.messages; - } - - public void setMessages(List msg) { - this.messages = msg; - } - - public with sharing class Message { - public Integer messageCode; - public String messageDetail; - - public Message() { - } - - public Message(Integer code, String message) { - this.messageCode = code; - this.messageDetail = message; - } - } - - public String debug() { - return 'MetadataResponse{' + 'success=' + isSuccess() + ', messages=' + getMessages() + ', mapping info=' + getMappingInfo() + '}'; - } -} From ddb84aebb81c34e0f7d815129cbf7b11ce1cf427 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:51:47 -0700 Subject: [PATCH 56/93] wrong location --- .../custom_md_loader/classes/MetadataResponse.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataResponse.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls-meta.xml deleted file mode 100644 index 8b061c8..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataResponse.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 39.0 - Active - From e73937bfb66da520960670cd2a9baa54362d5e8a Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:51:59 -0700 Subject: [PATCH 57/93] wrong location --- .../classes/MetadataService.cls | 9384 ----------------- 1 file changed, 9384 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataService.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataService.cls b/custom_md_loader/custom_md_loader/classes/MetadataService.cls deleted file mode 100644 index 13dad0c..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataService.cls +++ /dev/null @@ -1,9384 +0,0 @@ -/** - * Copyright (c), FinancialForce.com, inc - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * - Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - Neither the name of the FinancialForce.com, inc nor the names of its contributors - * may be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -**/ - -//Generated by wsdl2apex - -public class MetadataService { - public class listMetadataResponse_element { - public MetadataService.FileProperties[] result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class WorkflowRule extends Metadata { - public String type = 'WorkflowRule'; - public String fullName; - public MetadataService.WorkflowActionReference[] actions; - public Boolean active; - public String booleanFilter; - public MetadataService.FilterItem[] criteriaItems; - public String description; - public String formula; - public String triggerType; - public MetadataService.WorkflowTimeTrigger[] workflowTimeTriggers; - private String[] actions_type_info = new String[]{'actions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] triggerType_type_info = new String[]{'triggerType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] workflowTimeTriggers_type_info = new String[]{'workflowTimeTriggers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'actions','active','booleanFilter','criteriaItems','description','formula','triggerType','workflowTimeTriggers'}; - } - public class FieldOverride { - public String field; - public String formula; - public String literalValue; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] literalValue_type_info = new String[]{'literalValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','formula','literalValue'}; - } - public class AccountOwnerSharingRule { - public String accountAccessLevel; - public String caseAccessLevel; - public String contactAccessLevel; - public String description; - public String name; - public String opportunityAccessLevel; - private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accountAccessLevel','caseAccessLevel','contactAccessLevel','description','name','opportunityAccessLevel'}; - } - public class QuotasSettings { - public Boolean showQuotas; - private String[] showQuotas_type_info = new String[]{'showQuotas','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'showQuotas'}; - } - public class checkDeployStatus_element { - public String asyncProcessId; - public Boolean includeDetails; - private String[] asyncProcessId_type_info = new String[]{'asyncProcessId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] includeDetails_type_info = new String[]{'includeDetails','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'asyncProcessId','includeDetails'}; - } - public class Skill extends Metadata { - public String type = 'Skill'; - public String fullName; - public MetadataService.SkillAssignments assignments; - public String label; - private String[] assignments_type_info = new String[]{'assignments','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'assignments','label'}; - } - public class CodeCoverageWarning { - public String id; - public String message; - public String name; - public String namespace; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] message_type_info = new String[]{'message','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'id','message','name','namespace'}; - } - public class FlowInputValidationRule { - public String errorMessage; - public String formulaExpression; - private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] formulaExpression_type_info = new String[]{'formulaExpression','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'errorMessage','formulaExpression'}; - } - public class FlowApexPluginCall { - public String apexClass; - public MetadataService.FlowConnector connector; - public MetadataService.FlowConnector faultConnector; - public MetadataService.FlowApexPluginCallInputParameter[] inputParameters; - public MetadataService.FlowApexPluginCallOutputParameter[] outputParameters; - private String[] apexClass_type_info = new String[]{'apexClass','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inputParameters_type_info = new String[]{'inputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] outputParameters_type_info = new String[]{'outputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'apexClass','connector','faultConnector','inputParameters','outputParameters'}; - } - public class CustomObjectCriteriaBasedSharingRule { - public String accessLevel; - public String booleanFilter; - public String description; - public String name; - private String[] accessLevel_type_info = new String[]{'accessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accessLevel','booleanFilter','description','name'}; - } - public class KnowledgeAnswerSettings { - public String assignTo; - public String defaultArticleType; - public Boolean enableArticleCreation; - private String[] assignTo_type_info = new String[]{'assignTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultArticleType_type_info = new String[]{'defaultArticleType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableArticleCreation_type_info = new String[]{'enableArticleCreation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignTo','defaultArticleType','enableArticleCreation'}; - } - public class PasswordPolicies { - public String apiOnlyUserHomePageURL; - public String complexity; - public String expiration; - public String historyRestriction; - public String lockoutInterval; - public String maxLoginAttempts; - public String minPasswordLength; - public Boolean minimumPasswordLifetime; - public Boolean obscureSecretAnswer; - public String passwordAssistanceMessage; - public String passwordAssistanceURL; - public String questionRestriction; - private String[] apiOnlyUserHomePageURL_type_info = new String[]{'apiOnlyUserHomePageURL','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] complexity_type_info = new String[]{'complexity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] expiration_type_info = new String[]{'expiration','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] historyRestriction_type_info = new String[]{'historyRestriction','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lockoutInterval_type_info = new String[]{'lockoutInterval','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] maxLoginAttempts_type_info = new String[]{'maxLoginAttempts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] minPasswordLength_type_info = new String[]{'minPasswordLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] minimumPasswordLifetime_type_info = new String[]{'minimumPasswordLifetime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] obscureSecretAnswer_type_info = new String[]{'obscureSecretAnswer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] passwordAssistanceMessage_type_info = new String[]{'passwordAssistanceMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] passwordAssistanceURL_type_info = new String[]{'passwordAssistanceURL','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] questionRestriction_type_info = new String[]{'questionRestriction','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'apiOnlyUserHomePageURL','complexity','expiration','historyRestriction','lockoutInterval','maxLoginAttempts','minPasswordLength','minimumPasswordLifetime','obscureSecretAnswer','passwordAssistanceMessage','passwordAssistanceURL','questionRestriction'}; - } - public class QueueSobject { - public String sobjectType; - private String[] sobjectType_type_info = new String[]{'sobjectType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'sobjectType'}; - } - public class CaseSharingRules { - public MetadataService.CaseCriteriaBasedSharingRule[] criteriaBasedRules; - public MetadataService.CaseOwnerSharingRule[] ownerRules; - private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; - } - public class AgentConfigProfileAssignments { - public String[] profile; - private String[] profile_type_info = new String[]{'profile','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'profile'}; - } - public class OpportunityOwnerSharingRule { - public String description; - public String name; - public String opportunityAccessLevel; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','name','opportunityAccessLevel'}; - } - public class ExternalDataSource extends Metadata { - public String type = 'ExternalDataSource'; - public String fullName; - public String apiKey; - public String authProvider; - public String certificate; - public String customConfiguration; - public String endpoint; - public String label; - public String oauthRefreshToken; - public String oauthScope; - public String oauthToken; - public String password; - public String principalType; - public String protocol; - public String repository; - public String type_x; - public String username; - public String version; - private String[] apiKey_type_info = new String[]{'apiKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] authProvider_type_info = new String[]{'authProvider','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] certificate_type_info = new String[]{'certificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customConfiguration_type_info = new String[]{'customConfiguration','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] endpoint_type_info = new String[]{'endpoint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] oauthRefreshToken_type_info = new String[]{'oauthRefreshToken','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] oauthScope_type_info = new String[]{'oauthScope','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] oauthToken_type_info = new String[]{'oauthToken','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] password_type_info = new String[]{'password','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] principalType_type_info = new String[]{'principalType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] protocol_type_info = new String[]{'protocol','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] repository_type_info = new String[]{'repository','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] username_type_info = new String[]{'username','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] version_type_info = new String[]{'version','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'apiKey','authProvider','certificate','customConfiguration','endpoint','label','oauthRefreshToken','oauthScope','oauthToken','password','principalType','protocol','repository','type_x','username','version'}; - } - public class WorkflowEmailRecipient { - public String field; - public String recipient; - public String type_x; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recipient_type_info = new String[]{'recipient','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','recipient','type_x'}; - } - public class DescribeMetadataResult { - public MetadataService.DescribeMetadataObject[] metadataObjects; - public String organizationNamespace; - public Boolean partialSaveAllowed; - public Boolean testRequired; - private String[] metadataObjects_type_info = new String[]{'metadataObjects','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] organizationNamespace_type_info = new String[]{'organizationNamespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] partialSaveAllowed_type_info = new String[]{'partialSaveAllowed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] testRequired_type_info = new String[]{'testRequired','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'metadataObjects','organizationNamespace','partialSaveAllowed','testRequired'}; - } - public class Scontrol extends MetadataWithContent { - public String type = 'Scontrol'; - public String fullName; - public String content; - public String contentSource; - public String description; - public String encodingKey; - public String fileContent; - public String fileName; - public String name; - public Boolean supportsCaching; - private String[] contentSource_type_info = new String[]{'contentSource','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] encodingKey_type_info = new String[]{'encodingKey','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fileContent_type_info = new String[]{'fileContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fileName_type_info = new String[]{'fileName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] supportsCaching_type_info = new String[]{'supportsCaching','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'contentSource','description','encodingKey','fileContent','fileName','name','supportsCaching'}; - } - public class DashboardComponent { - public Boolean autoselectColumnsFromReport; - public String chartAxisRange; - public Double chartAxisRangeMax; - public Double chartAxisRangeMin; - public MetadataService.ChartSummary[] chartSummary; - public String componentType; - public MetadataService.DashboardFilterColumn[] dashboardFilterColumns; - public MetadataService.DashboardTableColumn[] dashboardTableColumn; - public String displayUnits; - public String drillDownUrl; - public Boolean drillEnabled; - public Boolean drillToDetailEnabled; - public Boolean enableHover; - public Boolean expandOthers; - public String footer; - public Double gaugeMax; - public Double gaugeMin; - public String[] groupingColumn; - public String header; - public Double indicatorBreakpoint1; - public Double indicatorBreakpoint2; - public String indicatorHighColor; - public String indicatorLowColor; - public String indicatorMiddleColor; - public String legendPosition; - public Integer maxValuesDisplayed; - public String metricLabel; - public String page_x; - public Integer pageHeightInPixels; - public String report; - public String scontrol; - public Integer scontrolHeightInPixels; - public Boolean showPercentage; - public Boolean showPicturesOnCharts; - public Boolean showPicturesOnTables; - public Boolean showTotal; - public Boolean showValues; - public String sortBy; - public String title; - public Boolean useReportChart; - private String[] autoselectColumnsFromReport_type_info = new String[]{'autoselectColumnsFromReport','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chartAxisRange_type_info = new String[]{'chartAxisRange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chartAxisRangeMax_type_info = new String[]{'chartAxisRangeMax','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chartAxisRangeMin_type_info = new String[]{'chartAxisRangeMin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chartSummary_type_info = new String[]{'chartSummary','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] componentType_type_info = new String[]{'componentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] dashboardFilterColumns_type_info = new String[]{'dashboardFilterColumns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] dashboardTableColumn_type_info = new String[]{'dashboardTableColumn','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] displayUnits_type_info = new String[]{'displayUnits','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] drillDownUrl_type_info = new String[]{'drillDownUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] drillEnabled_type_info = new String[]{'drillEnabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] drillToDetailEnabled_type_info = new String[]{'drillToDetailEnabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableHover_type_info = new String[]{'enableHover','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] expandOthers_type_info = new String[]{'expandOthers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] footer_type_info = new String[]{'footer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] gaugeMax_type_info = new String[]{'gaugeMax','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] gaugeMin_type_info = new String[]{'gaugeMin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] groupingColumn_type_info = new String[]{'groupingColumn','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] header_type_info = new String[]{'header','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] indicatorBreakpoint1_type_info = new String[]{'indicatorBreakpoint1','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] indicatorBreakpoint2_type_info = new String[]{'indicatorBreakpoint2','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] indicatorHighColor_type_info = new String[]{'indicatorHighColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] indicatorLowColor_type_info = new String[]{'indicatorLowColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] indicatorMiddleColor_type_info = new String[]{'indicatorMiddleColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] legendPosition_type_info = new String[]{'legendPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] maxValuesDisplayed_type_info = new String[]{'maxValuesDisplayed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] metricLabel_type_info = new String[]{'metricLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] pageHeightInPixels_type_info = new String[]{'pageHeightInPixels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] report_type_info = new String[]{'report','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scontrolHeightInPixels_type_info = new String[]{'scontrolHeightInPixels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showPercentage_type_info = new String[]{'showPercentage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showPicturesOnCharts_type_info = new String[]{'showPicturesOnCharts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showPicturesOnTables_type_info = new String[]{'showPicturesOnTables','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showTotal_type_info = new String[]{'showTotal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showValues_type_info = new String[]{'showValues','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortBy_type_info = new String[]{'sortBy','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] title_type_info = new String[]{'title','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] useReportChart_type_info = new String[]{'useReportChart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'autoselectColumnsFromReport','chartAxisRange','chartAxisRangeMax','chartAxisRangeMin','chartSummary','componentType','dashboardFilterColumns','dashboardTableColumn','displayUnits','drillDownUrl','drillEnabled','drillToDetailEnabled','enableHover','expandOthers','footer','gaugeMax','gaugeMin','groupingColumn','header','indicatorBreakpoint1','indicatorBreakpoint2','indicatorHighColor','indicatorLowColor','indicatorMiddleColor','legendPosition','maxValuesDisplayed','metricLabel','page_x','pageHeightInPixels','report','scontrol','scontrolHeightInPixels','showPercentage','showPicturesOnCharts','showPicturesOnTables','showTotal','showValues','sortBy','title','useReportChart'}; - } - public class WorkflowFlowActionParameter { - public String name; - public String value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class IdeasSettings extends Metadata { - public String type = 'IdeasSettings'; - public String fullName; - public Boolean enableChatterProfile; - public Boolean enableIdeaThemes; - public Boolean enableIdeas; - public Boolean enableIdeasReputation; - public Double halfLife; - public String ideasProfilePage; - private String[] enableChatterProfile_type_info = new String[]{'enableChatterProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableIdeaThemes_type_info = new String[]{'enableIdeaThemes','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableIdeas_type_info = new String[]{'enableIdeas','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableIdeasReputation_type_info = new String[]{'enableIdeasReputation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] halfLife_type_info = new String[]{'halfLife','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] ideasProfilePage_type_info = new String[]{'ideasProfilePage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'enableChatterProfile','enableIdeaThemes','enableIdeas','enableIdeasReputation','halfLife','ideasProfilePage'}; - } - public class Country { - public Boolean active; - public String integrationValue; - public String isoCode; - public String label; - public Boolean orgDefault; - public Boolean standard; - public MetadataService.State[] states; - public Boolean visible; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] integrationValue_type_info = new String[]{'integrationValue','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isoCode_type_info = new String[]{'isoCode','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] orgDefault_type_info = new String[]{'orgDefault','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] standard_type_info = new String[]{'standard','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] states_type_info = new String[]{'states','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'active','integrationValue','isoCode','label','orgDefault','standard','states','visible'}; - } - public class ConnectedAppOauthConfig { - public String callbackUrl; - public String certificate; - public String consumerKey; - public String consumerSecret; - public String[] scopes; - private String[] callbackUrl_type_info = new String[]{'callbackUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] certificate_type_info = new String[]{'certificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] consumerKey_type_info = new String[]{'consumerKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] consumerSecret_type_info = new String[]{'consumerSecret','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scopes_type_info = new String[]{'scopes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'callbackUrl','certificate','consumerKey','consumerSecret','scopes'}; - } - public class LiveAgentSettings extends Metadata { - public String type = 'LiveAgentSettings'; - public String fullName; - public Boolean enableLiveAgent; - private String[] enableLiveAgent_type_info = new String[]{'enableLiveAgent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'enableLiveAgent'}; - } - public class PermissionSetApexClassAccess { - public String apexClass; - public Boolean enabled; - private String[] apexClass_type_info = new String[]{'apexClass','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'apexClass','enabled'}; - } - public class LogInfo { - public String category; - public String level; - private String[] category_type_info = new String[]{'category','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] level_type_info = new String[]{'level','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'category','level'}; - } - public class SkillAssignments { - public MetadataService.SkillProfileAssignments profiles; - public MetadataService.SkillUserAssignments users; - private String[] profiles_type_info = new String[]{'profiles','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] users_type_info = new String[]{'users','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'profiles','users'}; - } - public class ReputationLevels { - public MetadataService.ChatterAnswersReputationLevel[] chatterAnswersReputationLevels; - public MetadataService.IdeaReputationLevel[] ideaReputationLevels; - private String[] chatterAnswersReputationLevels_type_info = new String[]{'chatterAnswersReputationLevels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] ideaReputationLevels_type_info = new String[]{'ideaReputationLevels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'chatterAnswersReputationLevels','ideaReputationLevels'}; - } - public class ActivitiesSettings extends Metadata { - public String type = 'ActivitiesSettings'; - public String fullName; - public Boolean allowUsersToRelateMultipleContactsToTasksAndEvents; - public Boolean enableActivityReminders; - public Boolean enableClickCreateEvents; - public Boolean enableDragAndDropScheduling; - public Boolean enableEmailTracking; - public Boolean enableEventScheduler; - public Boolean enableGroupTasks; - public Boolean enableListViewScheduling; - public Boolean enableLogNote; - public Boolean enableMultidayEvents; - public Boolean enableRecurringEvents; - public Boolean enableRecurringTasks; - public Boolean enableSidebarCalendarShortcut; - public Boolean enableSimpleTaskCreateUI; - public Boolean enableUNSTaskDelegatedToNotifications; - public String meetingRequestsLogo; - public Boolean showCustomLogoMeetingRequests; - public Boolean showEventDetailsMultiUserCalendar; - public Boolean showHomePageHoverLinksForEvents; - public Boolean showMyTasksHoverLinks; - public Boolean showRequestedMeetingsOnHomePage; - private String[] allowUsersToRelateMultipleContactsToTasksAndEvents_type_info = new String[]{'allowUsersToRelateMultipleContactsToTasksAndEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableActivityReminders_type_info = new String[]{'enableActivityReminders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableClickCreateEvents_type_info = new String[]{'enableClickCreateEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableDragAndDropScheduling_type_info = new String[]{'enableDragAndDropScheduling','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableEmailTracking_type_info = new String[]{'enableEmailTracking','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableEventScheduler_type_info = new String[]{'enableEventScheduler','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableGroupTasks_type_info = new String[]{'enableGroupTasks','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableListViewScheduling_type_info = new String[]{'enableListViewScheduling','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableLogNote_type_info = new String[]{'enableLogNote','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableMultidayEvents_type_info = new String[]{'enableMultidayEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableRecurringEvents_type_info = new String[]{'enableRecurringEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableRecurringTasks_type_info = new String[]{'enableRecurringTasks','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSidebarCalendarShortcut_type_info = new String[]{'enableSidebarCalendarShortcut','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSimpleTaskCreateUI_type_info = new String[]{'enableSimpleTaskCreateUI','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableUNSTaskDelegatedToNotifications_type_info = new String[]{'enableUNSTaskDelegatedToNotifications','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] meetingRequestsLogo_type_info = new String[]{'meetingRequestsLogo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showCustomLogoMeetingRequests_type_info = new String[]{'showCustomLogoMeetingRequests','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showEventDetailsMultiUserCalendar_type_info = new String[]{'showEventDetailsMultiUserCalendar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showHomePageHoverLinksForEvents_type_info = new String[]{'showHomePageHoverLinksForEvents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showMyTasksHoverLinks_type_info = new String[]{'showMyTasksHoverLinks','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showRequestedMeetingsOnHomePage_type_info = new String[]{'showRequestedMeetingsOnHomePage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'allowUsersToRelateMultipleContactsToTasksAndEvents','enableActivityReminders','enableClickCreateEvents','enableDragAndDropScheduling','enableEmailTracking','enableEventScheduler','enableGroupTasks','enableListViewScheduling','enableLogNote','enableMultidayEvents','enableRecurringEvents','enableRecurringTasks','enableSidebarCalendarShortcut','enableSimpleTaskCreateUI','enableUNSTaskDelegatedToNotifications','meetingRequestsLogo','showCustomLogoMeetingRequests','showEventDetailsMultiUserCalendar','showHomePageHoverLinksForEvents','showMyTasksHoverLinks','showRequestedMeetingsOnHomePage'}; - } - public class WorkflowTaskTranslation { - public String description; - public String name; - public String subject; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] subject_type_info = new String[]{'subject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','name','subject'}; - } - public class FlowElement { - public String description; - public String name; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','name'}; - } - public class FlowInputFieldAssignment { - public String field; - public MetadataService.FlowElementReferenceOrValue value; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','value'}; - } - public class DashboardComponentSection { - public String columnSize; - public MetadataService.DashboardComponent[] components; - private String[] columnSize_type_info = new String[]{'columnSize','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] components_type_info = new String[]{'components','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'columnSize','components'}; - } - public class FlowLoop { - public String assignNextValueToReference; - public String collectionReference; - public String iterationOrder; - public MetadataService.FlowConnector nextValueConnector; - public MetadataService.FlowConnector noMoreValuesConnector; - private String[] assignNextValueToReference_type_info = new String[]{'assignNextValueToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] collectionReference_type_info = new String[]{'collectionReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] iterationOrder_type_info = new String[]{'iterationOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] nextValueConnector_type_info = new String[]{'nextValueConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] noMoreValuesConnector_type_info = new String[]{'noMoreValuesConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignNextValueToReference','collectionReference','iterationOrder','nextValueConnector','noMoreValuesConnector'}; - } - public class ReputationPointsRule { - public String eventType; - public Integer points; - private String[] eventType_type_info = new String[]{'eventType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] points_type_info = new String[]{'points','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'eventType','points'}; - } - public class FlowActionCallInputParameter { - public String name; - public MetadataService.FlowElementReferenceOrValue value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class ReportTypeColumn { - public Boolean checkedByDefault; - public String displayNameOverride; - public String field; - public String table; - private String[] checkedByDefault_type_info = new String[]{'checkedByDefault','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] displayNameOverride_type_info = new String[]{'displayNameOverride','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] table_type_info = new String[]{'table','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'checkedByDefault','displayNameOverride','field','table'}; - } - public class LiveAgentConfig { - public Boolean enableLiveChat; - public Boolean openNewAccountSubtab; - public Boolean openNewCaseSubtab; - public Boolean openNewContactSubtab; - public Boolean openNewLeadSubtab; - public Boolean openNewVFPageSubtab; - public MetadataService.PagesToOpen pagesToOpen; - public Boolean showKnowledgeArticles; - private String[] enableLiveChat_type_info = new String[]{'enableLiveChat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] openNewAccountSubtab_type_info = new String[]{'openNewAccountSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] openNewCaseSubtab_type_info = new String[]{'openNewCaseSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] openNewContactSubtab_type_info = new String[]{'openNewContactSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] openNewLeadSubtab_type_info = new String[]{'openNewLeadSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] openNewVFPageSubtab_type_info = new String[]{'openNewVFPageSubtab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] pagesToOpen_type_info = new String[]{'pagesToOpen','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showKnowledgeArticles_type_info = new String[]{'showKnowledgeArticles','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enableLiveChat','openNewAccountSubtab','openNewCaseSubtab','openNewContactSubtab','openNewLeadSubtab','openNewVFPageSubtab','pagesToOpen','showKnowledgeArticles'}; - } - public class KnowledgeSitesSettings { - public String[] site; - private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'site'}; - } - public class UserSharingRules { - public MetadataService.UserCriteriaBasedSharingRule[] criteriaBasedRules; - public MetadataService.UserMembershipSharingRule[] membershipRules; - private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] membershipRules_type_info = new String[]{'membershipRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaBasedRules','membershipRules'}; - } - public class CustomMetadata extends Metadata { - public String type = 'CustomMetadata'; - public String fullName; - public String description; - public String label; - public MetadataService.CustomMetadataValue[] values; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','label','values'}; - } - public class VisualizationPlugin extends Metadata { - public String type = 'VisualizationPlugin'; - public String fullName; - public String description; - public String developerName; - public String icon; - public String masterLabel; - public MetadataService.VisualizationResource[] visualizationResources; - public MetadataService.VisualizationType[] visualizationTypes; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] developerName_type_info = new String[]{'developerName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] icon_type_info = new String[]{'icon','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visualizationResources_type_info = new String[]{'visualizationResources','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] visualizationTypes_type_info = new String[]{'visualizationTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','developerName','icon','masterLabel','visualizationResources','visualizationTypes'}; - } - public class ApprovalPageField { - public String[] field; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field'}; - } - public class FlowRule { - public String conditionLogic; - public MetadataService.FlowCondition[] conditions; - public MetadataService.FlowConnector connector; - public String label; - private String[] conditionLogic_type_info = new String[]{'conditionLogic','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] conditions_type_info = new String[]{'conditions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'conditionLogic','conditions','connector','label'}; - } - public class FlowRecordUpdate { - public MetadataService.FlowConnector connector; - public MetadataService.FlowConnector faultConnector; - public MetadataService.FlowRecordFilter[] filters; - public MetadataService.FlowInputFieldAssignment[] inputAssignments; - public String inputReference; - public String object_x; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] inputAssignments_type_info = new String[]{'inputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] inputReference_type_info = new String[]{'inputReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'connector','faultConnector','filters','inputAssignments','inputReference','object_x'}; - } - public class CustomSite extends Metadata { - public String type = 'CustomSite'; - public String fullName; - public Boolean active; - public Boolean allowHomePage; - public Boolean allowStandardAnswersPages; - public Boolean allowStandardIdeasPages; - public Boolean allowStandardLookups; - public Boolean allowStandardSearch; - public String analyticsTrackingCode; - public String authorizationRequiredPage; - public String bandwidthExceededPage; - public String changePasswordPage; - public String chatterAnswersForgotPasswordConfirmPage; - public String chatterAnswersForgotPasswordPage; - public String chatterAnswersHelpPage; - public String chatterAnswersLoginPage; - public String chatterAnswersRegistrationPage; - public String clickjackProtectionLevel; - public MetadataService.SiteWebAddress[] customWebAddresses; - public String description; - public String favoriteIcon; - public String fileNotFoundPage; - public String genericErrorPage; - public String guestProfile; - public String inMaintenancePage; - public String inactiveIndexPage; - public String indexPage; - public String masterLabel; - public String myProfilePage; - public String portal; - public Boolean requireHttps; - public Boolean requireInsecurePortalAccess; - public String robotsTxtPage; - public String rootComponent; - public String selfRegPage; - public String serverIsDown; - public String siteAdmin; - public MetadataService.SiteRedirectMapping[] siteRedirectMappings; - public String siteTemplate; - public String siteType; - public String subdomain; - public String urlPathPrefix; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] allowHomePage_type_info = new String[]{'allowHomePage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] allowStandardAnswersPages_type_info = new String[]{'allowStandardAnswersPages','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] allowStandardIdeasPages_type_info = new String[]{'allowStandardIdeasPages','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] allowStandardLookups_type_info = new String[]{'allowStandardLookups','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] allowStandardSearch_type_info = new String[]{'allowStandardSearch','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] analyticsTrackingCode_type_info = new String[]{'analyticsTrackingCode','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] authorizationRequiredPage_type_info = new String[]{'authorizationRequiredPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] bandwidthExceededPage_type_info = new String[]{'bandwidthExceededPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] changePasswordPage_type_info = new String[]{'changePasswordPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chatterAnswersForgotPasswordConfirmPage_type_info = new String[]{'chatterAnswersForgotPasswordConfirmPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chatterAnswersForgotPasswordPage_type_info = new String[]{'chatterAnswersForgotPasswordPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chatterAnswersHelpPage_type_info = new String[]{'chatterAnswersHelpPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chatterAnswersLoginPage_type_info = new String[]{'chatterAnswersLoginPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chatterAnswersRegistrationPage_type_info = new String[]{'chatterAnswersRegistrationPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] clickjackProtectionLevel_type_info = new String[]{'clickjackProtectionLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] customWebAddresses_type_info = new String[]{'customWebAddresses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] favoriteIcon_type_info = new String[]{'favoriteIcon','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fileNotFoundPage_type_info = new String[]{'fileNotFoundPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] genericErrorPage_type_info = new String[]{'genericErrorPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] guestProfile_type_info = new String[]{'guestProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inMaintenancePage_type_info = new String[]{'inMaintenancePage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inactiveIndexPage_type_info = new String[]{'inactiveIndexPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] indexPage_type_info = new String[]{'indexPage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] myProfilePage_type_info = new String[]{'myProfilePage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] portal_type_info = new String[]{'portal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] requireHttps_type_info = new String[]{'requireHttps','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] requireInsecurePortalAccess_type_info = new String[]{'requireInsecurePortalAccess','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] robotsTxtPage_type_info = new String[]{'robotsTxtPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] rootComponent_type_info = new String[]{'rootComponent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] selfRegPage_type_info = new String[]{'selfRegPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] serverIsDown_type_info = new String[]{'serverIsDown','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] siteAdmin_type_info = new String[]{'siteAdmin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] siteRedirectMappings_type_info = new String[]{'siteRedirectMappings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] siteTemplate_type_info = new String[]{'siteTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] siteType_type_info = new String[]{'siteType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] subdomain_type_info = new String[]{'subdomain','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] urlPathPrefix_type_info = new String[]{'urlPathPrefix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','allowHomePage','allowStandardAnswersPages','allowStandardIdeasPages','allowStandardLookups','allowStandardSearch','analyticsTrackingCode','authorizationRequiredPage','bandwidthExceededPage','changePasswordPage','chatterAnswersForgotPasswordConfirmPage','chatterAnswersForgotPasswordPage','chatterAnswersHelpPage','chatterAnswersLoginPage','chatterAnswersRegistrationPage','clickjackProtectionLevel','customWebAddresses','description','favoriteIcon','fileNotFoundPage','genericErrorPage','guestProfile','inMaintenancePage','inactiveIndexPage','indexPage','masterLabel','myProfilePage','portal','requireHttps','requireInsecurePortalAccess','robotsTxtPage','rootComponent','selfRegPage','serverIsDown','siteAdmin','siteRedirectMappings','siteTemplate','siteType','subdomain','urlPathPrefix'}; - } - public class ReportBlockInfo { - public MetadataService.ReportAggregateReference[] aggregateReferences; - public String blockId; - public String joinTable; - private String[] aggregateReferences_type_info = new String[]{'aggregateReferences','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] blockId_type_info = new String[]{'blockId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] joinTable_type_info = new String[]{'joinTable','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'aggregateReferences','blockId','joinTable'}; - } - public class describeMetadataResponse_element { - public MetadataService.DescribeMetadataResult result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class CaseOwnerSharingRule { - public String caseAccessLevel; - public String description; - public String name; - private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'caseAccessLevel','description','name'}; - } - public class DeployMessage { - public Boolean changed; - public Integer columnNumber; - public String componentType; - public Boolean created; - public DateTime createdDate; - public Boolean deleted; - public String fileName; - public String fullName; - public String id; - public Integer lineNumber; - public String problem; - public String problemType; - public Boolean success; - private String[] changed_type_info = new String[]{'changed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] columnNumber_type_info = new String[]{'columnNumber','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] componentType_type_info = new String[]{'componentType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] created_type_info = new String[]{'created','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] createdDate_type_info = new String[]{'createdDate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] deleted_type_info = new String[]{'deleted','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fileName_type_info = new String[]{'fileName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lineNumber_type_info = new String[]{'lineNumber','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] problem_type_info = new String[]{'problem','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] problemType_type_info = new String[]{'problemType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'changed','columnNumber','componentType','created','createdDate','deleted','fileName','fullName','id','lineNumber','problem','problemType','success'}; - } - public class FlowSubflowInputAssignment { - public String name; - public MetadataService.FlowElementReferenceOrValue value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class ReportType extends Metadata { - public String type = 'ReportType'; - public String fullName; - public Boolean autogenerated; - public String baseObject; - public String category; - public Boolean deployed; - public String description; - public MetadataService.ObjectRelationship join_x; - public String label; - public MetadataService.ReportLayoutSection[] sections; - private String[] autogenerated_type_info = new String[]{'autogenerated','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] baseObject_type_info = new String[]{'baseObject','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] category_type_info = new String[]{'category','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] deployed_type_info = new String[]{'deployed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] join_x_type_info = new String[]{'join','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sections_type_info = new String[]{'sections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'autogenerated','baseObject','category','deployed','description','join_x','label','sections'}; - } - public class CustomPageWebLink extends Metadata { - public String type = 'CustomPageWebLink'; - public String fullName; - public String availability; - public String description; - public String displayType; - public String encodingKey; - public Boolean hasMenubar; - public Boolean hasScrollbars; - public Boolean hasToolbar; - public Integer height; - public Boolean isResizable; - public String linkType; - public String masterLabel; - public String openType; - public String page_x; - public String position; - public Boolean protected_x; - public Boolean requireRowSelection; - public String scontrol; - public Boolean showsLocation; - public Boolean showsStatus; - public String url; - public Integer width; - private String[] availability_type_info = new String[]{'availability','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] displayType_type_info = new String[]{'displayType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] encodingKey_type_info = new String[]{'encodingKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hasMenubar_type_info = new String[]{'hasMenubar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hasScrollbars_type_info = new String[]{'hasScrollbars','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hasToolbar_type_info = new String[]{'hasToolbar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isResizable_type_info = new String[]{'isResizable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] linkType_type_info = new String[]{'linkType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] openType_type_info = new String[]{'openType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] position_type_info = new String[]{'position','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] requireRowSelection_type_info = new String[]{'requireRowSelection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showsLocation_type_info = new String[]{'showsLocation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showsStatus_type_info = new String[]{'showsStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] url_type_info = new String[]{'url','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'availability','description','displayType','encodingKey','hasMenubar','hasScrollbars','hasToolbar','height','isResizable','linkType','masterLabel','openType','page_x','position','protected_x','requireRowSelection','scontrol','showsLocation','showsStatus','url','width'}; - } - public class CodeCoverageResult { - public MetadataService.CodeLocation[] dmlInfo; - public String id; - public MetadataService.CodeLocation[] locationsNotCovered; - public MetadataService.CodeLocation[] methodInfo; - public String name; - public String namespace; - public Integer numLocations; - public Integer numLocationsNotCovered; - public MetadataService.CodeLocation[] soqlInfo; - public MetadataService.CodeLocation[] soslInfo; - public String type_x; - private String[] dmlInfo_type_info = new String[]{'dmlInfo','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] locationsNotCovered_type_info = new String[]{'locationsNotCovered','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] methodInfo_type_info = new String[]{'methodInfo','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] numLocations_type_info = new String[]{'numLocations','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numLocationsNotCovered_type_info = new String[]{'numLocationsNotCovered','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] soqlInfo_type_info = new String[]{'soqlInfo','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] soslInfo_type_info = new String[]{'soslInfo','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dmlInfo','id','locationsNotCovered','methodInfo','name','namespace','numLocations','numLocationsNotCovered','soqlInfo','soslInfo','type_x'}; - } - public class renameMetadata_element { - public String type_x; - public String oldFullName; - public String newFullName; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] oldFullName_type_info = new String[]{'oldFullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] newFullName_type_info = new String[]{'newFullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'type_x','oldFullName','newFullName'}; - } - public class NetworkAccess { - public MetadataService.IpRange[] ipRanges; - private String[] ipRanges_type_info = new String[]{'ipRanges','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'ipRanges'}; - } - public class RecordTypePicklistValue { - public String picklist; - public MetadataService.PicklistValue[] values; - private String[] picklist_type_info = new String[]{'picklist','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'picklist','values'}; - } - public class describeMetadata_element { - public Double asOfVersion; - private String[] asOfVersion_type_info = new String[]{'asOfVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'asOfVersion'}; - } - public class DashboardFilterColumn { - public String column; - private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'column'}; - } - public class Territory2RuleAssociation { - public Boolean inherited; - public String ruleName; - private String[] inherited_type_info = new String[]{'inherited','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] ruleName_type_info = new String[]{'ruleName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'inherited','ruleName'}; - } - public class ReportParam { - public String name; - public String value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class RoleOrTerritory extends Metadata { - public String type = 'RoleOrTerritory'; - public String fullName; - public String caseAccessLevel; - public String contactAccessLevel; - public String description; - public Boolean mayForecastManagerShare; - public String name; - public String opportunityAccessLevel; - private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mayForecastManagerShare_type_info = new String[]{'mayForecastManagerShare','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'caseAccessLevel','contactAccessLevel','description','mayForecastManagerShare','name','opportunityAccessLevel'}; - } - public class ForecastingTypeSettings { - public Boolean active; - public MetadataService.AdjustmentsSettings adjustmentsSettings; - public MetadataService.ForecastRangeSettings forecastRangeSettings; - public String name; - public MetadataService.OpportunityListFieldsSelectedSettings opportunityListFieldsSelectedSettings; - public MetadataService.QuotasSettings quotasSettings; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] adjustmentsSettings_type_info = new String[]{'adjustmentsSettings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] forecastRangeSettings_type_info = new String[]{'forecastRangeSettings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] opportunityListFieldsSelectedSettings_type_info = new String[]{'opportunityListFieldsSelectedSettings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] quotasSettings_type_info = new String[]{'quotasSettings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'active','adjustmentsSettings','forecastRangeSettings','name','opportunityListFieldsSelectedSettings','quotasSettings'}; - } - public class FlowApexPluginCallInputParameter { - public String name; - public MetadataService.FlowElementReferenceOrValue value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class WorkflowActionReference { - public String name; - public String type_x; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','type_x'}; - } - public class Role { - public String parentRole; - private String[] parentRole_type_info = new String[]{'parentRole','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'parentRole'}; - } - public class RetrieveResult { - public Boolean done; - public String errorMessage; - public String errorStatusCode; - public MetadataService.FileProperties[] fileProperties; - public String id; - public MetadataService.RetrieveMessage[] messages; - public String status; - public Boolean success; - public String zipFile; - private String[] done_type_info = new String[]{'done','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] errorStatusCode_type_info = new String[]{'errorStatusCode','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fileProperties_type_info = new String[]{'fileProperties','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] messages_type_info = new String[]{'messages','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] zipFile_type_info = new String[]{'zipFile','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'done','errorMessage','errorStatusCode','fileProperties','id','messages','status','success','zipFile'}; - } - public class CustomObjectSharingRules { - public MetadataService.CustomObjectCriteriaBasedSharingRule[] criteriaBasedRules; - public MetadataService.CustomObjectOwnerSharingRule[] ownerRules; - private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; - } - public class QuickActionList { - public MetadataService.QuickActionListItem[] quickActionListItems; - private String[] quickActionListItems_type_info = new String[]{'quickActionListItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'quickActionListItems'}; - } - public class RelatedList { - public Boolean hideOnDetail; - public String name; - private String[] hideOnDetail_type_info = new String[]{'hideOnDetail','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'hideOnDetail','name'}; - } - public class FlowActionCallOutputParameter { - public String assignToReference; - public String name; - private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignToReference','name'}; - } - public class DashboardFilterOption { - public String operator; - public String[] values; - private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'operator','values'}; - } - public class WorkflowOutboundMessage extends WorkflowAction { - public String type = 'WorkflowOutboundMessage'; - public String fullName; - public Double apiVersion; - public String description; - public String endpointUrl; - public String[] fields; - public Boolean includeSessionId; - public String integrationUser; - public String name; - public Boolean protected_x; - public Boolean useDeadLetterQueue; - private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] endpointUrl_type_info = new String[]{'endpointUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] includeSessionId_type_info = new String[]{'includeSessionId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] integrationUser_type_info = new String[]{'integrationUser','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] useDeadLetterQueue_type_info = new String[]{'useDeadLetterQueue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'apiVersion','description','endpointUrl','fields','includeSessionId','integrationUser','name','protected_x','useDeadLetterQueue'}; - } - public class RunTestSuccess { - public String id; - public String methodName; - public String name; - public String namespace; - public Double time_x; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] methodName_type_info = new String[]{'methodName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] time_x_type_info = new String[]{'time','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'id','methodName','name','namespace','time_x'}; - } - public class LiveChatButtonDeployments { - public String[] deployment; - private String[] deployment_type_info = new String[]{'deployment','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'deployment'}; - } - public class PermissionSetApplicationVisibility { - public String application; - public Boolean visible; - private String[] application_type_info = new String[]{'application','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'application','visible'}; - } - public class InstalledPackage extends Metadata { - public String type = 'InstalledPackage'; - public String fullName; - public String password; - public String versionNumber; - private String[] password_type_info = new String[]{'password','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] versionNumber_type_info = new String[]{'versionNumber','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'password','versionNumber'}; - } - public class LeadSharingRules { - public MetadataService.LeadCriteriaBasedSharingRule[] criteriaBasedRules; - public MetadataService.LeadOwnerSharingRule[] ownerRules; - private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; - } - public class Queue extends Metadata { - public String type = 'Queue'; - public String fullName; - public Boolean doesSendEmailToMembers; - public String email; - public String name; - public MetadataService.QueueSobject[] queueSobject; - private String[] doesSendEmailToMembers_type_info = new String[]{'doesSendEmailToMembers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] email_type_info = new String[]{'email','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] queueSobject_type_info = new String[]{'queueSobject','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'doesSendEmailToMembers','email','name','queueSobject'}; - } - public class ListViewFilter { - public String field; - public String operation; - public String value; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','operation','value'}; - } - public class CampaignOwnerSharingRule { - public String campaignAccessLevel; - public String description; - public String name; - private String[] campaignAccessLevel_type_info = new String[]{'campaignAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'campaignAccessLevel','description','name'}; - } - public class FeedLayout { - public Boolean autocollapsePublisher; - public Boolean compactFeed; - public String feedFilterPosition; - public MetadataService.FeedLayoutFilter[] feedFilters; - public Boolean fullWidthFeed; - public Boolean hideSidebar; - public MetadataService.FeedLayoutComponent[] leftComponents; - public MetadataService.FeedLayoutComponent[] rightComponents; - private String[] autocollapsePublisher_type_info = new String[]{'autocollapsePublisher','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] compactFeed_type_info = new String[]{'compactFeed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] feedFilterPosition_type_info = new String[]{'feedFilterPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] feedFilters_type_info = new String[]{'feedFilters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fullWidthFeed_type_info = new String[]{'fullWidthFeed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hideSidebar_type_info = new String[]{'hideSidebar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] leftComponents_type_info = new String[]{'leftComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] rightComponents_type_info = new String[]{'rightComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'autocollapsePublisher','compactFeed','feedFilterPosition','feedFilters','fullWidthFeed','hideSidebar','leftComponents','rightComponents'}; - } - public class CustomField extends Metadata { - public String type = 'CustomField'; - public String fullName; - public Boolean caseSensitive; - public String customDataType; - public String defaultValue; - public String deleteConstraint; - public Boolean deprecated; - public String description; - public String displayFormat; - public Boolean escapeMarkup; - public String externalDeveloperName; - public Boolean externalId; - public String formula; - public String formulaTreatBlanksAs; - public String inlineHelpText; - public Boolean isFilteringDisabled; - public Boolean isNameField; - public Boolean isSortingDisabled; - public String label; - public Integer length; - public MetadataService.LookupFilter lookupFilter; - public String maskChar; - public String maskType; - public MetadataService.Picklist picklist; - public Boolean populateExistingRows; - public Integer precision; - public String referenceTargetField; - public String referenceTo; - public String relationshipLabel; - public String relationshipName; - public Integer relationshipOrder; - public Boolean reparentableMasterDetail; - public Boolean required; - public Boolean restrictedAdminField; - public Integer scale; - public Integer startingNumber; - public Boolean stripMarkup; - public String summarizedField; - public MetadataService.FilterItem[] summaryFilterItems; - public String summaryForeignKey; - public String summaryOperation; - public Boolean trackFeedHistory; - public Boolean trackHistory; - public Boolean trackTrending; - public String type_x; - public Boolean unique; - public Integer visibleLines; - public Boolean writeRequiresMasterRead; - private String[] caseSensitive_type_info = new String[]{'caseSensitive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customDataType_type_info = new String[]{'customDataType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultValue_type_info = new String[]{'defaultValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] deleteConstraint_type_info = new String[]{'deleteConstraint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] deprecated_type_info = new String[]{'deprecated','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] displayFormat_type_info = new String[]{'displayFormat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] escapeMarkup_type_info = new String[]{'escapeMarkup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] externalDeveloperName_type_info = new String[]{'externalDeveloperName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] externalId_type_info = new String[]{'externalId','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] formulaTreatBlanksAs_type_info = new String[]{'formulaTreatBlanksAs','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inlineHelpText_type_info = new String[]{'inlineHelpText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isFilteringDisabled_type_info = new String[]{'isFilteringDisabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isNameField_type_info = new String[]{'isNameField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isSortingDisabled_type_info = new String[]{'isSortingDisabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] length_type_info = new String[]{'length','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lookupFilter_type_info = new String[]{'lookupFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] maskChar_type_info = new String[]{'maskChar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] maskType_type_info = new String[]{'maskType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] picklist_type_info = new String[]{'picklist','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] populateExistingRows_type_info = new String[]{'populateExistingRows','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] precision_type_info = new String[]{'precision','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] referenceTargetField_type_info = new String[]{'referenceTargetField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] referenceTo_type_info = new String[]{'referenceTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] relationshipLabel_type_info = new String[]{'relationshipLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] relationshipName_type_info = new String[]{'relationshipName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] relationshipOrder_type_info = new String[]{'relationshipOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] reparentableMasterDetail_type_info = new String[]{'reparentableMasterDetail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] required_type_info = new String[]{'required','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] restrictedAdminField_type_info = new String[]{'restrictedAdminField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] startingNumber_type_info = new String[]{'startingNumber','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] stripMarkup_type_info = new String[]{'stripMarkup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] summarizedField_type_info = new String[]{'summarizedField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] summaryFilterItems_type_info = new String[]{'summaryFilterItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] summaryForeignKey_type_info = new String[]{'summaryForeignKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] summaryOperation_type_info = new String[]{'summaryOperation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] trackFeedHistory_type_info = new String[]{'trackFeedHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] trackHistory_type_info = new String[]{'trackHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] trackTrending_type_info = new String[]{'trackTrending','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] unique_type_info = new String[]{'unique','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] visibleLines_type_info = new String[]{'visibleLines','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] writeRequiresMasterRead_type_info = new String[]{'writeRequiresMasterRead','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'caseSensitive','customDataType','defaultValue','deleteConstraint','deprecated','description','displayFormat','escapeMarkup','externalDeveloperName','externalId','formula','formulaTreatBlanksAs','inlineHelpText','isFilteringDisabled','isNameField','isSortingDisabled','label','length','lookupFilter','maskChar','maskType','picklist','populateExistingRows','precision','referenceTargetField','referenceTo','relationshipLabel','relationshipName','relationshipOrder','reparentableMasterDetail','required','restrictedAdminField','scale','startingNumber','stripMarkup','summarizedField','summaryFilterItems','summaryForeignKey','summaryOperation','trackFeedHistory','trackHistory','trackTrending','type_x','unique','visibleLines','writeRequiresMasterRead'}; - } - public class PushNotification { - public String[] fieldNames; - public String objectName; - private String[] fieldNames_type_info = new String[]{'fieldNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] objectName_type_info = new String[]{'objectName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fieldNames','objectName'}; - } - public class EmailToCaseSettings { - public Boolean enableEmailToCase; - public Boolean enableHtmlEmail; - public Boolean enableOnDemandEmailToCase; - public Boolean enableThreadIDInBody; - public Boolean enableThreadIDInSubject; - public Boolean notifyOwnerOnNewCaseEmail; - public String overEmailLimitAction; - public MetadataService.EmailToCaseRoutingAddress[] routingAddresses; - public String unauthorizedSenderAction; - private String[] enableEmailToCase_type_info = new String[]{'enableEmailToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableHtmlEmail_type_info = new String[]{'enableHtmlEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableOnDemandEmailToCase_type_info = new String[]{'enableOnDemandEmailToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableThreadIDInBody_type_info = new String[]{'enableThreadIDInBody','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableThreadIDInSubject_type_info = new String[]{'enableThreadIDInSubject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyOwnerOnNewCaseEmail_type_info = new String[]{'notifyOwnerOnNewCaseEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] overEmailLimitAction_type_info = new String[]{'overEmailLimitAction','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] routingAddresses_type_info = new String[]{'routingAddresses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] unauthorizedSenderAction_type_info = new String[]{'unauthorizedSenderAction','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enableEmailToCase','enableHtmlEmail','enableOnDemandEmailToCase','enableThreadIDInBody','enableThreadIDInSubject','notifyOwnerOnNewCaseEmail','overEmailLimitAction','routingAddresses','unauthorizedSenderAction'}; - } - public class deployResponse_element { - public MetadataService.AsyncResult result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class DataCategory { - public MetadataService.DataCategory[] dataCategory; - public String label; - public String name; - private String[] dataCategory_type_info = new String[]{'dataCategory','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dataCategory','label','name'}; - } - public class EscalationAction { - public String assignedTo; - public String assignedToTemplate; - public String assignedToType; - public Integer minutesToEscalation; - public Boolean notifyCaseOwner; - public String[] notifyEmail; - public String notifyTo; - public String notifyToTemplate; - private String[] assignedTo_type_info = new String[]{'assignedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assignedToTemplate_type_info = new String[]{'assignedToTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assignedToType_type_info = new String[]{'assignedToType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] minutesToEscalation_type_info = new String[]{'minutesToEscalation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyCaseOwner_type_info = new String[]{'notifyCaseOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyEmail_type_info = new String[]{'notifyEmail','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] notifyTo_type_info = new String[]{'notifyTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyToTemplate_type_info = new String[]{'notifyToTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignedTo','assignedToTemplate','assignedToType','minutesToEscalation','notifyCaseOwner','notifyEmail','notifyTo','notifyToTemplate'}; - } - public class FlowOutputFieldAssignment { - public String assignToReference; - public String field; - private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignToReference','field'}; - } - public class AppMenuItem { - public String name; - public String type_x; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','type_x'}; - } - public class EmailTemplate extends MetadataWithContent { - public String type = 'EmailTemplate'; - public String fullName; - public String content; - public Double apiVersion; - public String[] attachedDocuments; - public MetadataService.Attachment[] attachments; - public Boolean available; - public String description; - public String encodingKey; - public String letterhead; - public String name; - public MetadataService.PackageVersion[] packageVersions; - public String style; - public String subject; - public String textOnly; - public String type_x; - private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] attachedDocuments_type_info = new String[]{'attachedDocuments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] attachments_type_info = new String[]{'attachments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] available_type_info = new String[]{'available','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] encodingKey_type_info = new String[]{'encodingKey','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] letterhead_type_info = new String[]{'letterhead','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] style_type_info = new String[]{'style','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] subject_type_info = new String[]{'subject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] textOnly_type_info = new String[]{'textOnly','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','attachedDocuments','attachments','available','description','encodingKey','letterhead','name','packageVersions','style','subject','textOnly','type_x'}; - } - public class ObjectUsage { - public String[] object_x; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'object_x'}; - } - public class AssignmentRule extends Metadata { - public String type = 'AssignmentRule'; - public String fullName; - public Boolean active; - public MetadataService.RuleEntry[] ruleEntry; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] ruleEntry_type_info = new String[]{'ruleEntry','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','ruleEntry'}; - } - public class deleteMetadataResponse_element { - public MetadataService.DeleteResult[] result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class CustomTabTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class LiveChatAgentConfig extends Metadata { - public String type = 'LiveChatAgentConfig'; - public String fullName; - public MetadataService.AgentConfigAssignments assignments; - public String autoGreeting; - public Integer capacity; - public Integer criticalWaitTime; - public String customAgentName; - public Boolean enableAgentFileTransfer; - public Boolean enableAgentSneakPeek; - public Boolean enableAutoAwayOnDecline; - public Boolean enableChatMonitoring; - public Boolean enableChatTransfer; - public Boolean enableLogoutSound; - public Boolean enableNotifications; - public Boolean enableRequestSound; - public Boolean enableSneakPeek; - public Boolean enableWhisperMessage; - public String label; - public String supervisorDefaultAgentStatusFilter; - public String supervisorDefaultButtonFilter; - public String supervisorDefaultSkillFilter; - public MetadataService.SupervisorAgentConfigSkills supervisorSkills; - public MetadataService.AgentConfigButtons transferableButtons; - public MetadataService.AgentConfigSkills transferableSkills; - private String[] assignments_type_info = new String[]{'assignments','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] autoGreeting_type_info = new String[]{'autoGreeting','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] capacity_type_info = new String[]{'capacity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] criticalWaitTime_type_info = new String[]{'criticalWaitTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customAgentName_type_info = new String[]{'customAgentName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableAgentFileTransfer_type_info = new String[]{'enableAgentFileTransfer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableAgentSneakPeek_type_info = new String[]{'enableAgentSneakPeek','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableAutoAwayOnDecline_type_info = new String[]{'enableAutoAwayOnDecline','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableChatMonitoring_type_info = new String[]{'enableChatMonitoring','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableChatTransfer_type_info = new String[]{'enableChatTransfer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableLogoutSound_type_info = new String[]{'enableLogoutSound','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableNotifications_type_info = new String[]{'enableNotifications','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableRequestSound_type_info = new String[]{'enableRequestSound','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSneakPeek_type_info = new String[]{'enableSneakPeek','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableWhisperMessage_type_info = new String[]{'enableWhisperMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] supervisorDefaultAgentStatusFilter_type_info = new String[]{'supervisorDefaultAgentStatusFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] supervisorDefaultButtonFilter_type_info = new String[]{'supervisorDefaultButtonFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] supervisorDefaultSkillFilter_type_info = new String[]{'supervisorDefaultSkillFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] supervisorSkills_type_info = new String[]{'supervisorSkills','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] transferableButtons_type_info = new String[]{'transferableButtons','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] transferableSkills_type_info = new String[]{'transferableSkills','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'assignments','autoGreeting','capacity','criticalWaitTime','customAgentName','enableAgentFileTransfer','enableAgentSneakPeek','enableAutoAwayOnDecline','enableChatMonitoring','enableChatTransfer','enableLogoutSound','enableNotifications','enableRequestSound','enableSneakPeek','enableWhisperMessage','label','supervisorDefaultAgentStatusFilter','supervisorDefaultButtonFilter','supervisorDefaultSkillFilter','supervisorSkills','transferableButtons','transferableSkills'}; - } - public class AdjustmentsSettings { - public Boolean enableAdjustments; - private String[] enableAdjustments_type_info = new String[]{'enableAdjustments','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enableAdjustments'}; - } - public class BusinessProcess extends Metadata { - public String type = 'BusinessProcess'; - public String fullName; - public String description; - public Boolean isActive; - public MetadataService.PicklistValue[] values; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','isActive','values'}; - } - public class PermissionSet extends Metadata { - public String type = 'PermissionSet'; - public String fullName; - public MetadataService.PermissionSetApplicationVisibility[] applicationVisibilities; - public MetadataService.PermissionSetApexClassAccess[] classAccesses; - public MetadataService.PermissionSetCustomPermissions[] customPermissions; - public String description; - public MetadataService.PermissionSetExternalDataSourceAccess[] externalDataSourceAccesses; - public MetadataService.PermissionSetFieldPermissions[] fieldPermissions; - public String label; - public MetadataService.PermissionSetObjectPermissions[] objectPermissions; - public MetadataService.PermissionSetApexPageAccess[] pageAccesses; - public MetadataService.PermissionSetRecordTypeVisibility[] recordTypeVisibilities; - public MetadataService.PermissionSetTabSetting[] tabSettings; - public String userLicense; - public MetadataService.PermissionSetUserPermission[] userPermissions; - private String[] applicationVisibilities_type_info = new String[]{'applicationVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] classAccesses_type_info = new String[]{'classAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] customPermissions_type_info = new String[]{'customPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] externalDataSourceAccesses_type_info = new String[]{'externalDataSourceAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fieldPermissions_type_info = new String[]{'fieldPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] objectPermissions_type_info = new String[]{'objectPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] pageAccesses_type_info = new String[]{'pageAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] recordTypeVisibilities_type_info = new String[]{'recordTypeVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] tabSettings_type_info = new String[]{'tabSettings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] userLicense_type_info = new String[]{'userLicense','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] userPermissions_type_info = new String[]{'userPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'applicationVisibilities','classAccesses','customPermissions','description','externalDataSourceAccesses','fieldPermissions','label','objectPermissions','pageAccesses','recordTypeVisibilities','tabSettings','userLicense','userPermissions'}; - } - public class ConnectedAppAttribute { - public String formula; - public String key; - private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] key_type_info = new String[]{'key','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'formula','key'}; - } - public class ManagedTopics extends Metadata { - public String type = 'ManagedTopics'; - public String fullName; - public MetadataService.ManagedTopic[] managedTopic; - private String[] managedTopic_type_info = new String[]{'managedTopic','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'managedTopic'}; - } - public class ForecastingSettings extends Metadata { - public String type = 'ForecastingSettings'; - public String fullName; - public String displayCurrency; - public Boolean enableForecasts; - public MetadataService.ForecastingTypeSettings[] forecastingTypeSettings; - private String[] displayCurrency_type_info = new String[]{'displayCurrency','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableForecasts_type_info = new String[]{'enableForecasts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] forecastingTypeSettings_type_info = new String[]{'forecastingTypeSettings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'displayCurrency','enableForecasts','forecastingTypeSettings'}; - } - public class ReportChartComponentLayoutItem { - public Boolean cacheData; - public String contextFilterableField; - public String error; - public Boolean hideOnError; - public Boolean includeContext; - public String reportName; - public Boolean showTitle; - public String size; - private String[] cacheData_type_info = new String[]{'cacheData','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] contextFilterableField_type_info = new String[]{'contextFilterableField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] error_type_info = new String[]{'error','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hideOnError_type_info = new String[]{'hideOnError','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] includeContext_type_info = new String[]{'includeContext','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] reportName_type_info = new String[]{'reportName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] showTitle_type_info = new String[]{'showTitle','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] size_type_info = new String[]{'size','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'cacheData','contextFilterableField','error','hideOnError','includeContext','reportName','showTitle','size'}; - } - public class AppMenu extends Metadata { - public String type = 'AppMenu'; - public String fullName; - public MetadataService.AppMenuItem[] appMenuItems; - private String[] appMenuItems_type_info = new String[]{'appMenuItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'appMenuItems'}; - } - public class FlowSubflowOutputAssignment { - public String assignToReference; - public String name; - private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignToReference','name'}; - } - public class ContactSharingRules { - public MetadataService.ContactCriteriaBasedSharingRule[] criteriaBasedRules; - public MetadataService.ContactOwnerSharingRule[] ownerRules; - private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; - } - public class AccountTerritorySharingRules { - public MetadataService.AccountTerritorySharingRule[] rules; - private String[] rules_type_info = new String[]{'rules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'rules'}; - } - public class ConnectedAppIpRange { - public String description; - public String end_x; - public String start; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] end_x_type_info = new String[]{'end','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] start_type_info = new String[]{'start','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','end_x','start'}; - } - public class Package_x extends Metadata { - public String type = 'Package_x'; - public String fullName; - public String apiAccessLevel; - public String description; - public String namespacePrefix; - public MetadataService.ProfileObjectPermissions[] objectPermissions; - public String postInstallClass; - public String setupWeblink; - public MetadataService.PackageTypeMembers[] types; - public String uninstallClass; - public String version; - private String[] apiAccessLevel_type_info = new String[]{'apiAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] namespacePrefix_type_info = new String[]{'namespacePrefix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] objectPermissions_type_info = new String[]{'objectPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] postInstallClass_type_info = new String[]{'postInstallClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] setupWeblink_type_info = new String[]{'setupWeblink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] types_type_info = new String[]{'types','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] uninstallClass_type_info = new String[]{'uninstallClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] version_type_info = new String[]{'version','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'apiAccessLevel','description','namespacePrefix','objectPermissions','postInstallClass','setupWeblink','types','uninstallClass','version'}; - } - public class FlowActionCall { - public String actionName; - public String actionType; - public MetadataService.FlowConnector connector; - public MetadataService.FlowConnector faultConnector; - public MetadataService.FlowActionCallInputParameter[] inputParameters; - public MetadataService.FlowActionCallOutputParameter[] outputParameters; - private String[] actionName_type_info = new String[]{'actionName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] actionType_type_info = new String[]{'actionType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inputParameters_type_info = new String[]{'inputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] outputParameters_type_info = new String[]{'outputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'actionName','actionType','connector','faultConnector','inputParameters','outputParameters'}; - } - public virtual class MetadataWithContent extends Metadata { - public String content; - private String[] content_type_info = new String[]{'content','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'content'}; - } - public class RetrieveRequest { - public Double apiVersion; - public String[] packageNames; - public Boolean singlePackage; - public String[] specificFiles; - public MetadataService.Package_x unpackaged; - private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] packageNames_type_info = new String[]{'packageNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] singlePackage_type_info = new String[]{'singlePackage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] specificFiles_type_info = new String[]{'specificFiles','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] unpackaged_type_info = new String[]{'unpackaged','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'apiVersion','packageNames','singlePackage','specificFiles','unpackaged'}; - } - public class ListMetadataQuery { - public String folder; - public String type_x; - private String[] folder_type_info = new String[]{'folder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'folder','type_x'}; - } - public class FlowConnector { - public String targetReference; - private String[] targetReference_type_info = new String[]{'targetReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'targetReference'}; - } - public class CustomApplicationComponent extends Metadata { - public String type = 'CustomApplicationComponent'; - public String fullName; - public String buttonIconUrl; - public String buttonStyle; - public String buttonText; - public Integer buttonWidth; - public Integer height; - public Boolean isHeightFixed; - public Boolean isHidden; - public Boolean isWidthFixed; - public String visualforcePage; - public Integer width; - private String[] buttonIconUrl_type_info = new String[]{'buttonIconUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] buttonStyle_type_info = new String[]{'buttonStyle','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] buttonText_type_info = new String[]{'buttonText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] buttonWidth_type_info = new String[]{'buttonWidth','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isHeightFixed_type_info = new String[]{'isHeightFixed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isHidden_type_info = new String[]{'isHidden','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isWidthFixed_type_info = new String[]{'isWidthFixed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visualforcePage_type_info = new String[]{'visualforcePage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'buttonIconUrl','buttonStyle','buttonText','buttonWidth','height','isHeightFixed','isHidden','isWidthFixed','visualforcePage','width'}; - } - public class FlowRecordLookup { - public Boolean assignNullValuesIfNoRecordsFound; - public MetadataService.FlowConnector connector; - public MetadataService.FlowConnector faultConnector; - public MetadataService.FlowRecordFilter[] filters; - public String object_x; - public MetadataService.FlowOutputFieldAssignment[] outputAssignments; - public String outputReference; - public String[] queriedFields; - public String sortField; - public String sortOrder; - private String[] assignNullValuesIfNoRecordsFound_type_info = new String[]{'assignNullValuesIfNoRecordsFound','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] outputAssignments_type_info = new String[]{'outputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] outputReference_type_info = new String[]{'outputReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] queriedFields_type_info = new String[]{'queriedFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] sortField_type_info = new String[]{'sortField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignNullValuesIfNoRecordsFound','connector','faultConnector','filters','object_x','outputAssignments','outputReference','queriedFields','sortField','sortOrder'}; - } - public class FieldSet extends Metadata { - public String type = 'FieldSet'; - public String fullName; - public MetadataService.FieldSetItem[] availableFields; - public String description; - public MetadataService.FieldSetItem[] displayedFields; - public String label; - private String[] availableFields_type_info = new String[]{'availableFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] displayedFields_type_info = new String[]{'displayedFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'availableFields','description','displayedFields','label'}; - } - public class Error { - public String[] fields; - public String message; - public String statusCode; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] message_type_info = new String[]{'message','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] statusCode_type_info = new String[]{'statusCode','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fields','message','statusCode'}; - } - public class AccountCriteriaBasedSharingRule { - public String accountAccessLevel; - public String booleanFilter; - public String caseAccessLevel; - public String contactAccessLevel; - public String description; - public String name; - public String opportunityAccessLevel; - private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accountAccessLevel','booleanFilter','caseAccessLevel','contactAccessLevel','description','name','opportunityAccessLevel'}; - } - public class DebuggingHeader_element { - public MetadataService.LogInfo[] categories; - public String debugLevel; - private String[] categories_type_info = new String[]{'categories','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] debugLevel_type_info = new String[]{'debugLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'categories','debugLevel'}; - } - public class ComponentInstanceProperty { - public String name; - public String value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class FlowRecordDelete { - public MetadataService.FlowConnector connector; - public MetadataService.FlowConnector faultConnector; - public MetadataService.FlowRecordFilter[] filters; - public String inputReference; - public String object_x; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] inputReference_type_info = new String[]{'inputReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'connector','faultConnector','filters','inputReference','object_x'}; - } - public class FlowDecision { - public MetadataService.FlowConnector defaultConnector; - public String defaultConnectorLabel; - public MetadataService.FlowRule[] rules; - private String[] defaultConnector_type_info = new String[]{'defaultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultConnectorLabel_type_info = new String[]{'defaultConnectorLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] rules_type_info = new String[]{'rules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'defaultConnector','defaultConnectorLabel','rules'}; - } - public class QuickActionListItem { - public String quickActionName; - private String[] quickActionName_type_info = new String[]{'quickActionName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'quickActionName'}; - } - public class Branding { - public String loginFooterText; - public String loginLogo; - public String pageFooter; - public String pageHeader; - public String primaryColor; - public String primaryComplementColor; - public String quaternaryColor; - public String quaternaryComplementColor; - public String secondaryColor; - public String tertiaryColor; - public String tertiaryComplementColor; - public String zeronaryColor; - public String zeronaryComplementColor; - private String[] loginFooterText_type_info = new String[]{'loginFooterText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] loginLogo_type_info = new String[]{'loginLogo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] pageFooter_type_info = new String[]{'pageFooter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] pageHeader_type_info = new String[]{'pageHeader','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] primaryColor_type_info = new String[]{'primaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] primaryComplementColor_type_info = new String[]{'primaryComplementColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] quaternaryColor_type_info = new String[]{'quaternaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] quaternaryComplementColor_type_info = new String[]{'quaternaryComplementColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] secondaryColor_type_info = new String[]{'secondaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] tertiaryColor_type_info = new String[]{'tertiaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] tertiaryComplementColor_type_info = new String[]{'tertiaryComplementColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] zeronaryColor_type_info = new String[]{'zeronaryColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] zeronaryComplementColor_type_info = new String[]{'zeronaryComplementColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'loginFooterText','loginLogo','pageFooter','pageHeader','primaryColor','primaryComplementColor','quaternaryColor','quaternaryComplementColor','secondaryColor','tertiaryColor','tertiaryComplementColor','zeronaryColor','zeronaryComplementColor'}; - } - public class CustomLabel extends Metadata { - public String type = 'CustomLabel'; - public String fullName; - public String categories; - public String language; - public Boolean protected_x; - public String shortDescription; - public String value; - private String[] categories_type_info = new String[]{'categories','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] shortDescription_type_info = new String[]{'shortDescription','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'categories','language','protected_x','shortDescription','value'}; - } - public class Attachment { - public String content; - public String name; - private String[] content_type_info = new String[]{'content','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'content','name'}; - } - public class BusinessHoursEntry extends Metadata { - public String type = 'BusinessHoursEntry'; - public String fullName; - public Boolean active; - public Boolean default_x; - public DateTime fridayEndTime; - public DateTime fridayStartTime; - public DateTime mondayEndTime; - public DateTime mondayStartTime; - public String name; - public DateTime saturdayEndTime; - public DateTime saturdayStartTime; - public DateTime sundayEndTime; - public DateTime sundayStartTime; - public DateTime thursdayEndTime; - public DateTime thursdayStartTime; - public String timeZoneId; - public DateTime tuesdayEndTime; - public DateTime tuesdayStartTime; - public DateTime wednesdayEndTime; - public DateTime wednesdayStartTime; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fridayEndTime_type_info = new String[]{'fridayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fridayStartTime_type_info = new String[]{'fridayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mondayEndTime_type_info = new String[]{'mondayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mondayStartTime_type_info = new String[]{'mondayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] saturdayEndTime_type_info = new String[]{'saturdayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] saturdayStartTime_type_info = new String[]{'saturdayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sundayEndTime_type_info = new String[]{'sundayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sundayStartTime_type_info = new String[]{'sundayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] thursdayEndTime_type_info = new String[]{'thursdayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] thursdayStartTime_type_info = new String[]{'thursdayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] timeZoneId_type_info = new String[]{'timeZoneId','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] tuesdayEndTime_type_info = new String[]{'tuesdayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] tuesdayStartTime_type_info = new String[]{'tuesdayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] wednesdayEndTime_type_info = new String[]{'wednesdayEndTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] wednesdayStartTime_type_info = new String[]{'wednesdayStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','default_x','fridayEndTime','fridayStartTime','mondayEndTime','mondayStartTime','name','saturdayEndTime','saturdayStartTime','sundayEndTime','sundayStartTime','thursdayEndTime','thursdayStartTime','timeZoneId','tuesdayEndTime','tuesdayStartTime','wednesdayEndTime','wednesdayStartTime'}; - } - public class FiscalYearSettings { - public String fiscalYearNameBasedOn; - public String startMonth; - private String[] fiscalYearNameBasedOn_type_info = new String[]{'fiscalYearNameBasedOn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] startMonth_type_info = new String[]{'startMonth','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fiscalYearNameBasedOn','startMonth'}; - } - public class SharingRules extends Metadata { - public String type = 'SharingRules'; - public String fullName; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName'}; - } - public class ChatterAnswersSettings extends Metadata { - public String type = 'ChatterAnswersSettings'; - public String fullName; - public Boolean emailFollowersOnBestAnswer; - public Boolean emailFollowersOnReply; - public Boolean emailOwnerOnPrivateReply; - public Boolean emailOwnerOnReply; - public Boolean enableAnswerViaEmail; - public Boolean enableChatterAnswers; - public Boolean enableFacebookSSO; - public Boolean enableInlinePublisher; - public Boolean enableReputation; - public Boolean enableRichTextEditor; - public String facebookAuthProvider; - public Boolean showInPortals; - private String[] emailFollowersOnBestAnswer_type_info = new String[]{'emailFollowersOnBestAnswer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailFollowersOnReply_type_info = new String[]{'emailFollowersOnReply','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailOwnerOnPrivateReply_type_info = new String[]{'emailOwnerOnPrivateReply','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailOwnerOnReply_type_info = new String[]{'emailOwnerOnReply','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableAnswerViaEmail_type_info = new String[]{'enableAnswerViaEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableChatterAnswers_type_info = new String[]{'enableChatterAnswers','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enableFacebookSSO_type_info = new String[]{'enableFacebookSSO','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableInlinePublisher_type_info = new String[]{'enableInlinePublisher','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableReputation_type_info = new String[]{'enableReputation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableRichTextEditor_type_info = new String[]{'enableRichTextEditor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] facebookAuthProvider_type_info = new String[]{'facebookAuthProvider','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showInPortals_type_info = new String[]{'showInPortals','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'emailFollowersOnBestAnswer','emailFollowersOnReply','emailOwnerOnPrivateReply','emailOwnerOnReply','enableAnswerViaEmail','enableChatterAnswers','enableFacebookSSO','enableInlinePublisher','enableReputation','enableRichTextEditor','facebookAuthProvider','showInPortals'}; - } - public class CustomConsoleComponents { - public MetadataService.PrimaryTabComponents primaryTabComponents; - public MetadataService.SubtabComponents subtabComponents; - private String[] primaryTabComponents_type_info = new String[]{'primaryTabComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] subtabComponents_type_info = new String[]{'subtabComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'primaryTabComponents','subtabComponents'}; - } - public class ChartSummary { - public String aggregate; - public String axisBinding; - public String column; - private String[] aggregate_type_info = new String[]{'aggregate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] axisBinding_type_info = new String[]{'axisBinding','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'aggregate','axisBinding','column'}; - } - public class QuickActionLayoutItem { - public Boolean emptySpace; - public String field; - public String uiBehavior; - private String[] emptySpace_type_info = new String[]{'emptySpace','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] uiBehavior_type_info = new String[]{'uiBehavior','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'emptySpace','field','uiBehavior'}; - } - public class Picklist { - public String controllingField; - public MetadataService.PicklistValue[] picklistValues; - public Boolean sorted; - private String[] controllingField_type_info = new String[]{'controllingField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] picklistValues_type_info = new String[]{'picklistValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] sorted_type_info = new String[]{'sorted','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'controllingField','picklistValues','sorted'}; - } - public class ReportLayoutSection { - public MetadataService.ReportTypeColumn[] columns; - public String masterLabel; - private String[] columns_type_info = new String[]{'columns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'columns','masterLabel'}; - } - public class SummaryLayoutItem { - public String customLink; - public String field; - public Integer posX; - public Integer posY; - public Integer posZ; - private String[] customLink_type_info = new String[]{'customLink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] posX_type_info = new String[]{'posX','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] posY_type_info = new String[]{'posY','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] posZ_type_info = new String[]{'posZ','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'customLink','field','posX','posY','posZ'}; - } - public class LayoutSection { - public Boolean customLabel; - public Boolean detailHeading; - public Boolean editHeading; - public String label; - public MetadataService.LayoutColumn[] layoutColumns; - public String style; - private String[] customLabel_type_info = new String[]{'customLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] detailHeading_type_info = new String[]{'detailHeading','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] editHeading_type_info = new String[]{'editHeading','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] layoutColumns_type_info = new String[]{'layoutColumns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] style_type_info = new String[]{'style','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'customLabel','detailHeading','editHeading','label','layoutColumns','style'}; - } - public class CountriesAndStates { - public MetadataService.Country[] countries; - private String[] countries_type_info = new String[]{'countries','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'countries'}; - } - public class OpportunityListFieldsSelectedSettings { - public String[] field; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field'}; - } - public class ReportTimeFrameFilter { - public String dateColumn; - public Date endDate; - public String interval; - public Date startDate; - private String[] dateColumn_type_info = new String[]{'dateColumn','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] endDate_type_info = new String[]{'endDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] interval_type_info = new String[]{'interval','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] startDate_type_info = new String[]{'startDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dateColumn','endDate','interval','startDate'}; - } - public class XOrgHub extends Metadata { - public String type = 'XOrgHub'; - public String fullName; - public String label; - public Boolean lockSharedObjects; - public String[] permissionSets; - public MetadataService.XOrgHubSharedObject[] sharedObjects; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] lockSharedObjects_type_info = new String[]{'lockSharedObjects','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] permissionSets_type_info = new String[]{'permissionSets','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] sharedObjects_type_info = new String[]{'sharedObjects','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'label','lockSharedObjects','permissionSets','sharedObjects'}; - } - public class ApprovalStepRejectBehavior { - public String type_x; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'type_x'}; - } - public class EmailToCaseRoutingAddress { - public String addressType; - public String authorizedSenders; - public String caseOrigin; - public String caseOwner; - public String caseOwnerType; - public String casePriority; - public Boolean createTask; - public String emailAddress; - public String routingName; - public Boolean saveEmailHeaders; - public String taskStatus; - private String[] addressType_type_info = new String[]{'addressType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] authorizedSenders_type_info = new String[]{'authorizedSenders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseOrigin_type_info = new String[]{'caseOrigin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseOwner_type_info = new String[]{'caseOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseOwnerType_type_info = new String[]{'caseOwnerType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] casePriority_type_info = new String[]{'casePriority','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] createTask_type_info = new String[]{'createTask','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailAddress_type_info = new String[]{'emailAddress','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] routingName_type_info = new String[]{'routingName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] saveEmailHeaders_type_info = new String[]{'saveEmailHeaders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] taskStatus_type_info = new String[]{'taskStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'addressType','authorizedSenders','caseOrigin','caseOwner','caseOwnerType','casePriority','createTask','emailAddress','routingName','saveEmailHeaders','taskStatus'}; - } - public class FlowWaitEventInputParameter { - public String name; - public MetadataService.FlowElementReferenceOrValue value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class FolderShare { - public String accessLevel; - public String sharedTo; - public String sharedToType; - private String[] accessLevel_type_info = new String[]{'accessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sharedToType_type_info = new String[]{'sharedToType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accessLevel','sharedTo','sharedToType'}; - } - public class ManagedTopic { - public String managedTopicType; - public String name; - public Integer position; - public String topicDescription; - private String[] managedTopicType_type_info = new String[]{'managedTopicType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] position_type_info = new String[]{'position','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] topicDescription_type_info = new String[]{'topicDescription','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'managedTopicType','name','position','topicDescription'}; - } - public class ApprovalEntryCriteria { - public String booleanFilter; - public MetadataService.FilterItem[] criteriaItems; - public String formula; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanFilter','criteriaItems','formula'}; - } - public class Territory2RuleItem { - public String field; - public String operation; - public String value; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','operation','value'}; - } - public class WorkspaceMapping { - public String fieldName; - public String tab; - private String[] fieldName_type_info = new String[]{'fieldName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] tab_type_info = new String[]{'tab','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fieldName','tab'}; - } - public class ApexPage extends MetadataWithContent { - public String type = 'ApexPage'; - public String fullName; - public String content; - public Double apiVersion; - public Boolean availableInTouch; - public Boolean confirmationTokenRequired; - public String description; - public String label; - public MetadataService.PackageVersion[] packageVersions; - private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] availableInTouch_type_info = new String[]{'availableInTouch','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] confirmationTokenRequired_type_info = new String[]{'confirmationTokenRequired','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','availableInTouch','confirmationTokenRequired','description','label','packageVersions'}; - } - public class ProductSettings extends Metadata { - public String type = 'ProductSettings'; - public String fullName; - public Boolean enableCascadeActivateToRelatedPrices; - public Boolean enableQuantitySchedule; - public Boolean enableRevenueSchedule; - private String[] enableCascadeActivateToRelatedPrices_type_info = new String[]{'enableCascadeActivateToRelatedPrices','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableQuantitySchedule_type_info = new String[]{'enableQuantitySchedule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableRevenueSchedule_type_info = new String[]{'enableRevenueSchedule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'enableCascadeActivateToRelatedPrices','enableQuantitySchedule','enableRevenueSchedule'}; - } - public class OpportunitySettings extends Metadata { - public String type = 'OpportunitySettings'; - public String fullName; - public Boolean autoActivateNewReminders; - public Boolean enableFindSimilarOpportunities; - public Boolean enableOpportunityTeam; - public Boolean enableUpdateReminders; - public MetadataService.FindSimilarOppFilter findSimilarOppFilter; - public Boolean promptToAddProducts; - private String[] autoActivateNewReminders_type_info = new String[]{'autoActivateNewReminders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableFindSimilarOpportunities_type_info = new String[]{'enableFindSimilarOpportunities','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableOpportunityTeam_type_info = new String[]{'enableOpportunityTeam','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableUpdateReminders_type_info = new String[]{'enableUpdateReminders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] findSimilarOppFilter_type_info = new String[]{'findSimilarOppFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] promptToAddProducts_type_info = new String[]{'promptToAddProducts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'autoActivateNewReminders','enableFindSimilarOpportunities','enableOpportunityTeam','enableUpdateReminders','findSimilarOppFilter','promptToAddProducts'}; - } - public class LiveChatDeployment extends Metadata { - public String type = 'LiveChatDeployment'; - public String fullName; - public String brandingImage; - public Boolean displayQueuePosition; - public MetadataService.LiveChatDeploymentDomainWhitelist domainWhiteList; - public Boolean enablePrechatApi; - public Boolean enableTranscriptSave; - public String label; - public String mobileBrandingImage; - public String site; - public String windowTitle; - private String[] brandingImage_type_info = new String[]{'brandingImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] displayQueuePosition_type_info = new String[]{'displayQueuePosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] domainWhiteList_type_info = new String[]{'domainWhiteList','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enablePrechatApi_type_info = new String[]{'enablePrechatApi','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableTranscriptSave_type_info = new String[]{'enableTranscriptSave','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] mobileBrandingImage_type_info = new String[]{'mobileBrandingImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] windowTitle_type_info = new String[]{'windowTitle','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'brandingImage','displayQueuePosition','domainWhiteList','enablePrechatApi','enableTranscriptSave','label','mobileBrandingImage','site','windowTitle'}; - } - public class RelatedContent { - public MetadataService.RelatedContentItem[] relatedContentItems; - private String[] relatedContentItems_type_info = new String[]{'relatedContentItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'relatedContentItems'}; - } - public class SupervisorAgentConfigSkills { - public String[] skill; - private String[] skill_type_info = new String[]{'skill','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'skill'}; - } - public class QuickActionLayoutColumn { - public MetadataService.QuickActionLayoutItem[] quickActionLayoutItems; - private String[] quickActionLayoutItems_type_info = new String[]{'quickActionLayoutItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'quickActionLayoutItems'}; - } - public class CustomPermission extends Metadata { - public String type = 'CustomPermission'; - public String fullName; - public String connectedApp; - public String description; - public String label; - public MetadataService.CustomPermissionDependencyRequired[] requiredPermission; - private String[] connectedApp_type_info = new String[]{'connectedApp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] requiredPermission_type_info = new String[]{'requiredPermission','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'connectedApp','description','label','requiredPermission'}; - } - public class AccountTerritorySharingRule { - public String accountAccessLevel; - public String caseAccessLevel; - public String contactAccessLevel; - public String description; - public String name; - public String opportunityAccessLevel; - private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accountAccessLevel','caseAccessLevel','contactAccessLevel','description','name','opportunityAccessLevel'}; - } - public class DataPipeline { - public Double apiVersion; - public String label; - public String scriptType; - private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] scriptType_type_info = new String[]{'scriptType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'apiVersion','label','scriptType'}; - } - public class CompanySettings extends Metadata { - public String type = 'CompanySettings'; - public String fullName; - public MetadataService.FiscalYearSettings fiscalYear; - private String[] fiscalYear_type_info = new String[]{'fiscalYear','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'fiscalYear'}; - } - public class OpportunitySharingRules { - public MetadataService.OpportunityCriteriaBasedSharingRule[] criteriaBasedRules; - public MetadataService.OpportunityOwnerSharingRule[] ownerRules; - private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; - } - public class HomePageLayout extends Metadata { - public String type = 'HomePageLayout'; - public String fullName; - public String[] narrowComponents; - public String[] wideComponents; - private String[] narrowComponents_type_info = new String[]{'narrowComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] wideComponents_type_info = new String[]{'wideComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'narrowComponents','wideComponents'}; - } - public class UiPlugin { - public String description; - public String extensionPointIdentifier; - public Boolean isEnabled; - public String language; - public String masterLabel; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] extensionPointIdentifier_type_info = new String[]{'extensionPointIdentifier','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isEnabled_type_info = new String[]{'isEnabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','extensionPointIdentifier','isEnabled','language','masterLabel'}; - } - public class SiteWebAddress { - public String certificate; - public String domainName; - public Boolean primary; - private String[] certificate_type_info = new String[]{'certificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] domainName_type_info = new String[]{'domainName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] primary_type_info = new String[]{'primary','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'certificate','domainName','primary'}; - } - public class RetrieveMessage { - public String fileName; - public String problem; - private String[] fileName_type_info = new String[]{'fileName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] problem_type_info = new String[]{'problem','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fileName','problem'}; - } - public class AssignmentRules extends Metadata { - public String type = 'AssignmentRules'; - public String fullName; - public MetadataService.AssignmentRule[] assignmentRule; - private String[] assignmentRule_type_info = new String[]{'assignmentRule','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'assignmentRule'}; - } - public class EmailFolder extends Folder { - public String type = 'EmailFolder'; - public String fullName; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName'}; - } - public class Territory2Rule { - public Boolean active; - public String booleanFilter; - public String name; - public String objectType; - public MetadataService.Territory2RuleItem[] ruleItems; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] objectType_type_info = new String[]{'objectType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] ruleItems_type_info = new String[]{'ruleItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'active','booleanFilter','name','objectType','ruleItems'}; - } - public class ComponentInstance { - public MetadataService.ComponentInstanceProperty[] componentInstanceProperties; - public String componentName; - private String[] componentInstanceProperties_type_info = new String[]{'componentInstanceProperties','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] componentName_type_info = new String[]{'componentName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'componentInstanceProperties','componentName'}; - } - public class WebToCaseSettings { - public String caseOrigin; - public String defaultResponseTemplate; - public Boolean enableWebToCase; - private String[] caseOrigin_type_info = new String[]{'caseOrigin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultResponseTemplate_type_info = new String[]{'defaultResponseTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableWebToCase_type_info = new String[]{'enableWebToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'caseOrigin','defaultResponseTemplate','enableWebToCase'}; - } - public class SessionHeader_element { - public String sessionId; - private String[] sessionId_type_info = new String[]{'sessionId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'sessionId'}; - } - public class EscalationRule extends Metadata { - public String type = 'EscalationRule'; - public String fullName; - public Boolean active; - public MetadataService.RuleEntry[] ruleEntry; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] ruleEntry_type_info = new String[]{'ruleEntry','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','ruleEntry'}; - } - public class SidebarComponent { - public String componentType; - public Integer height; - public String label; - public String lookup; - public String page_x; - public MetadataService.RelatedList[] relatedLists; - public String unit; - public Integer width; - private String[] componentType_type_info = new String[]{'componentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lookup_type_info = new String[]{'lookup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] relatedLists_type_info = new String[]{'relatedLists','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] unit_type_info = new String[]{'unit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'componentType','height','label','lookup','page_x','relatedLists','unit','width'}; - } - public class SummaryLayout { - public String masterLabel; - public Integer sizeX; - public Integer sizeY; - public Integer sizeZ; - public MetadataService.SummaryLayoutItem[] summaryLayoutItems; - public String summaryLayoutStyle; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sizeX_type_info = new String[]{'sizeX','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sizeY_type_info = new String[]{'sizeY','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sizeZ_type_info = new String[]{'sizeZ','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] summaryLayoutItems_type_info = new String[]{'summaryLayoutItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] summaryLayoutStyle_type_info = new String[]{'summaryLayoutStyle','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'masterLabel','sizeX','sizeY','sizeZ','summaryLayoutItems','summaryLayoutStyle'}; - } - public class FlowCondition { - public String leftValueReference; - public String operator; - public MetadataService.FlowElementReferenceOrValue rightValue; - private String[] leftValueReference_type_info = new String[]{'leftValueReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] rightValue_type_info = new String[]{'rightValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'leftValueReference','operator','rightValue'}; - } - public class DeployOptions { - public Boolean allowMissingFiles; - public Boolean autoUpdatePackage; - public Boolean checkOnly; - public Boolean ignoreWarnings; - public Boolean performRetrieve; - public Boolean purgeOnDelete; - public Boolean rollbackOnError; - public Boolean runAllTests; - public String[] runTests; - public Boolean singlePackage; - private String[] allowMissingFiles_type_info = new String[]{'allowMissingFiles','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] autoUpdatePackage_type_info = new String[]{'autoUpdatePackage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] checkOnly_type_info = new String[]{'checkOnly','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] ignoreWarnings_type_info = new String[]{'ignoreWarnings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] performRetrieve_type_info = new String[]{'performRetrieve','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] purgeOnDelete_type_info = new String[]{'purgeOnDelete','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] rollbackOnError_type_info = new String[]{'rollbackOnError','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] runAllTests_type_info = new String[]{'runAllTests','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] runTests_type_info = new String[]{'runTests','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] singlePackage_type_info = new String[]{'singlePackage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'allowMissingFiles','autoUpdatePackage','checkOnly','ignoreWarnings','performRetrieve','purgeOnDelete','rollbackOnError','runAllTests','runTests','singlePackage'}; - } - public class ProfileApplicationVisibility { - public String application; - public Boolean default_x; - public Boolean visible; - private String[] application_type_info = new String[]{'application','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'application','default_x','visible'}; - } - public class Holiday { - public Date activityDate; - public String[] businessHours; - public String description; - public DateTime endTime; - public Boolean isRecurring; - public String name; - public Integer recurrenceDayOfMonth; - public String[] recurrenceDayOfWeek; - public Integer recurrenceDayOfWeekMask; - public Date recurrenceEndDate; - public String recurrenceInstance; - public Integer recurrenceInterval; - public String recurrenceMonthOfYear; - public Date recurrenceStartDate; - public String recurrenceType; - public DateTime startTime; - private String[] activityDate_type_info = new String[]{'activityDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] endTime_type_info = new String[]{'endTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isRecurring_type_info = new String[]{'isRecurring','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceDayOfMonth_type_info = new String[]{'recurrenceDayOfMonth','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceDayOfWeek_type_info = new String[]{'recurrenceDayOfWeek','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] recurrenceDayOfWeekMask_type_info = new String[]{'recurrenceDayOfWeekMask','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceEndDate_type_info = new String[]{'recurrenceEndDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceInstance_type_info = new String[]{'recurrenceInstance','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceInterval_type_info = new String[]{'recurrenceInterval','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceMonthOfYear_type_info = new String[]{'recurrenceMonthOfYear','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceStartDate_type_info = new String[]{'recurrenceStartDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceType_type_info = new String[]{'recurrenceType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] startTime_type_info = new String[]{'startTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'activityDate','businessHours','description','endTime','isRecurring','name','recurrenceDayOfMonth','recurrenceDayOfWeek','recurrenceDayOfWeekMask','recurrenceEndDate','recurrenceInstance','recurrenceInterval','recurrenceMonthOfYear','recurrenceStartDate','recurrenceType','startTime'}; - } - public class FlowElementReferenceOrValue { - public Boolean booleanValue; - public DateTime dateTimeValue; - public Date dateValue; - public String elementReference; - public Double numberValue; - public String stringValue; - private String[] booleanValue_type_info = new String[]{'booleanValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','true'}; - private String[] dateTimeValue_type_info = new String[]{'dateTimeValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] dateValue_type_info = new String[]{'dateValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] elementReference_type_info = new String[]{'elementReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] numberValue_type_info = new String[]{'numberValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','true'}; - private String[] stringValue_type_info = new String[]{'stringValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanValue','dateTimeValue','dateValue','elementReference','numberValue','stringValue'}; - } - public class EntitlementTemplate extends Metadata { - public String type = 'EntitlementTemplate'; - public String fullName; - public String businessHours; - public Integer casesPerEntitlement; - public String entitlementProcess; - public Boolean isPerIncident; - public Integer term; - public String type_x; - private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] casesPerEntitlement_type_info = new String[]{'casesPerEntitlement','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] entitlementProcess_type_info = new String[]{'entitlementProcess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isPerIncident_type_info = new String[]{'isPerIncident','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] term_type_info = new String[]{'term','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'businessHours','casesPerEntitlement','entitlementProcess','isPerIncident','term','type_x'}; - } - public class ProfileTabVisibility { - public String tab; - public String visibility; - private String[] tab_type_info = new String[]{'tab','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visibility_type_info = new String[]{'visibility','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'tab','visibility'}; - } - public class ActionOverride { - public String actionName; - public String comment; - public String content; - public Boolean skipRecordTypeSelect; - public String type_x; - private String[] actionName_type_info = new String[]{'actionName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] comment_type_info = new String[]{'comment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] content_type_info = new String[]{'content','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] skipRecordTypeSelect_type_info = new String[]{'skipRecordTypeSelect','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'actionName','comment','content','skipRecordTypeSelect','type_x'}; - } - public class SaveResult { - public MetadataService.Error[] errors; - public String fullName; - public Boolean success; - private String[] errors_type_info = new String[]{'errors','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'errors','fullName','success'}; - } - public class readMetadataResponse_element { - public MetadataService.ReadResult result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public virtual class WorkflowAction extends Metadata{ - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{}; - } - public class WorkspaceMappings { - public MetadataService.WorkspaceMapping[] mapping; - private String[] mapping_type_info = new String[]{'mapping','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'mapping'}; - } - public class ContractSettings extends Metadata { - public String type = 'ContractSettings'; - public String fullName; - public Boolean autoCalculateEndDate; - public String autoExpirationDelay; - public String autoExpirationRecipient; - public Boolean autoExpireContracts; - public Boolean enableContractHistoryTracking; - public Boolean notifyOwnersOnContractExpiration; - private String[] autoCalculateEndDate_type_info = new String[]{'autoCalculateEndDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] autoExpirationDelay_type_info = new String[]{'autoExpirationDelay','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] autoExpirationRecipient_type_info = new String[]{'autoExpirationRecipient','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] autoExpireContracts_type_info = new String[]{'autoExpireContracts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableContractHistoryTracking_type_info = new String[]{'enableContractHistoryTracking','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyOwnersOnContractExpiration_type_info = new String[]{'notifyOwnersOnContractExpiration','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'autoCalculateEndDate','autoExpirationDelay','autoExpirationRecipient','autoExpireContracts','enableContractHistoryTracking','notifyOwnersOnContractExpiration'}; - } - public class GlobalQuickActionTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class ReputationLevelDefinitions { - public MetadataService.ReputationLevel[] level; - private String[] level_type_info = new String[]{'level','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'level'}; - } - public class LayoutTranslation { - public String layout; - public String layoutType; - public MetadataService.LayoutSectionTranslation[] sections; - private String[] layout_type_info = new String[]{'layout','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] layoutType_type_info = new String[]{'layoutType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sections_type_info = new String[]{'sections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'layout','layoutType','sections'}; - } - public class ApexTrigger extends MetadataWithContent { - public String type = 'ApexTrigger'; - public String fullName; - public String content; - public Double apiVersion; - public MetadataService.PackageVersion[] packageVersions; - public String status; - private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','packageVersions','status'}; - } - public class CustomApplicationTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class ApprovalStepApprover { - public MetadataService.Approver[] approver; - public String whenMultipleApprovers; - private String[] approver_type_info = new String[]{'approver','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] whenMultipleApprovers_type_info = new String[]{'whenMultipleApprovers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'approver','whenMultipleApprovers'}; - } - public class CallCenter extends Metadata { - public String type = 'CallCenter'; - public String fullName; - public String adapterUrl; - public String customSettings; - public String displayName; - public String displayNameLabel; - public String internalNameLabel; - public MetadataService.CallCenterSection[] sections; - public String version; - private String[] adapterUrl_type_info = new String[]{'adapterUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customSettings_type_info = new String[]{'customSettings','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] displayName_type_info = new String[]{'displayName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] displayNameLabel_type_info = new String[]{'displayNameLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] internalNameLabel_type_info = new String[]{'internalNameLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sections_type_info = new String[]{'sections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] version_type_info = new String[]{'version','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'adapterUrl','customSettings','displayName','displayNameLabel','internalNameLabel','sections','version'}; - } - public class FlexiPageRegion { - public MetadataService.ComponentInstance[] componentInstances; - public String name; - private String[] componentInstances_type_info = new String[]{'componentInstances','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'componentInstances','name'}; - } - public class PicklistValue extends Metadata { - public String type = 'PicklistValue'; - public String fullName; - public Boolean allowEmail; - public Boolean closed; - public String color; - public String[] controllingFieldValues; - public Boolean converted; - public Boolean cssExposed; - public Boolean default_x; - public String description; - public String forecastCategory; - public Boolean highPriority; - public Integer probability; - public String reverseRole; - public Boolean reviewed; - public Boolean won; - private String[] allowEmail_type_info = new String[]{'allowEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] closed_type_info = new String[]{'closed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] color_type_info = new String[]{'color','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] controllingFieldValues_type_info = new String[]{'controllingFieldValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] converted_type_info = new String[]{'converted','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] cssExposed_type_info = new String[]{'cssExposed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] forecastCategory_type_info = new String[]{'forecastCategory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] highPriority_type_info = new String[]{'highPriority','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] probability_type_info = new String[]{'probability','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] reverseRole_type_info = new String[]{'reverseRole','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] reviewed_type_info = new String[]{'reviewed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] won_type_info = new String[]{'won','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'allowEmail','closed','color','controllingFieldValues','converted','cssExposed','default_x','description','forecastCategory','highPriority','probability','reverseRole','reviewed','won'}; - } - public class RemoteSiteSetting extends Metadata { - public String type = 'RemoteSiteSetting'; - public String fullName; - public String description; - public Boolean disableProtocolSecurity; - public Boolean isActive; - public String url; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] disableProtocolSecurity_type_info = new String[]{'disableProtocolSecurity','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] url_type_info = new String[]{'url','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','disableProtocolSecurity','isActive','url'}; - } - public class retrieveResponse_element { - public MetadataService.AsyncResult result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class deploy_element { - public String ZipFile; - public MetadataService.DeployOptions DeployOptions; - private String[] ZipFile_type_info = new String[]{'ZipFile','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] DeployOptions_type_info = new String[]{'DeployOptions','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'ZipFile','DeployOptions'}; - } - public class XOrgHubSharedObject { - public String[] fields; - public String name; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fields','name'}; - } - public class Territory2Type extends Metadata { - public String type = 'Territory2Type'; - public String fullName; - public String description; - public String name; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','name'}; - } - public class SharingRecalculation { - public String className; - private String[] className_type_info = new String[]{'className','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'className'}; - } - public class QuoteSettings extends Metadata { - public String type = 'QuoteSettings'; - public String fullName; - public Boolean enableQuote; - private String[] enableQuote_type_info = new String[]{'enableQuote','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'enableQuote'}; - } - public class WebLinkTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class ProfileLoginIpRange { - public String description; - public String endAddress; - public String startAddress; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] endAddress_type_info = new String[]{'endAddress','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] startAddress_type_info = new String[]{'startAddress','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','endAddress','startAddress'}; - } - public class ObjectRelationship { - public MetadataService.ObjectRelationship join_x; - public Boolean outerJoin; - public String relationship; - private String[] join_x_type_info = new String[]{'join','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] outerJoin_type_info = new String[]{'outerJoin','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] relationship_type_info = new String[]{'relationship','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'join_x','outerJoin','relationship'}; - } - public class RuleEntry { - public String assignedTo; - public String assignedToType; - public String booleanFilter; - public String businessHours; - public String businessHoursSource; - public MetadataService.FilterItem[] criteriaItems; - public Boolean disableEscalationWhenModified; - public MetadataService.EscalationAction[] escalationAction; - public String escalationStartTime; - public String formula; - public Boolean notifyCcRecipients; - public Boolean overrideExistingTeams; - public String replyToEmail; - public String senderEmail; - public String senderName; - public String[] team; - public String template; - private String[] assignedTo_type_info = new String[]{'assignedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assignedToType_type_info = new String[]{'assignedToType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] businessHoursSource_type_info = new String[]{'businessHoursSource','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] disableEscalationWhenModified_type_info = new String[]{'disableEscalationWhenModified','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] escalationAction_type_info = new String[]{'escalationAction','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] escalationStartTime_type_info = new String[]{'escalationStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyCcRecipients_type_info = new String[]{'notifyCcRecipients','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] overrideExistingTeams_type_info = new String[]{'overrideExistingTeams','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] replyToEmail_type_info = new String[]{'replyToEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] senderEmail_type_info = new String[]{'senderEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] senderName_type_info = new String[]{'senderName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] team_type_info = new String[]{'team','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] template_type_info = new String[]{'template','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignedTo','assignedToType','booleanFilter','businessHours','businessHoursSource','criteriaItems','disableEscalationWhenModified','escalationAction','escalationStartTime','formula','notifyCcRecipients','overrideExistingTeams','replyToEmail','senderEmail','senderName','team','template'}; - } - public class deleteMetadata_element { - public String type_x; - public String[] fullNames; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fullNames_type_info = new String[]{'fullNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'type_x','fullNames'}; - } - public class ListPlacement { - public Integer height; - public String location; - public String units; - public Integer width; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] location_type_info = new String[]{'location','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] units_type_info = new String[]{'units','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'height','location','units','width'}; - } - public class SiteRedirectMapping { - public String action; - public Boolean isActive; - public String source; - public String target; - private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] source_type_info = new String[]{'source','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] target_type_info = new String[]{'target','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'action','isActive','source','target'}; - } - public class OwnerSharingRule { - public MetadataService.SharedTo sharedFrom; - private String[] sharedFrom_type_info = new String[]{'sharedFrom','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'sharedFrom'}; - } - public class WorkflowFieldUpdate extends WorkflowAction { - public String type = 'WorkflowFieldUpdate'; - public String fullName; - public String description; - public String field; - public String formula; - public String literalValue; - public String lookupValue; - public String lookupValueType; - public String name; - public Boolean notifyAssignee; - public String operation; - public Boolean protected_x; - public Boolean reevaluateOnChange; - public String targetObject; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] formula_type_info = new String[]{'formula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] literalValue_type_info = new String[]{'literalValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lookupValue_type_info = new String[]{'lookupValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lookupValueType_type_info = new String[]{'lookupValueType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] notifyAssignee_type_info = new String[]{'notifyAssignee','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] reevaluateOnChange_type_info = new String[]{'reevaluateOnChange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] targetObject_type_info = new String[]{'targetObject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','field','formula','literalValue','lookupValue','lookupValueType','name','notifyAssignee','operation','protected_x','reevaluateOnChange','targetObject'}; - } - public class OpportunityCriteriaBasedSharingRule { - public String booleanFilter; - public String description; - public String name; - public String opportunityAccessLevel; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanFilter','description','name','opportunityAccessLevel'}; - } - public class LetterheadLine { - public String color; - public Integer height; - private String[] color_type_info = new String[]{'color','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'color','height'}; - } - public class FlowChoiceUserInput { - public Boolean isRequired; - public String promptText; - public MetadataService.FlowInputValidationRule validationRule; - private String[] isRequired_type_info = new String[]{'isRequired','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] promptText_type_info = new String[]{'promptText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] validationRule_type_info = new String[]{'validationRule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'isRequired','promptText','validationRule'}; - } - public class ConnectedAppMobileDetailConfig { - public String applicationBinaryFile; - public String applicationBinaryFileName; - public String applicationBundleIdentifier; - public Integer applicationFileLength; - public String applicationIconFile; - public String applicationIconFileName; - public String applicationInstallUrl; - public String devicePlatform; - public String deviceType; - public String minimumOsVersion; - public Boolean privateApp; - public String version; - private String[] applicationBinaryFile_type_info = new String[]{'applicationBinaryFile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] applicationBinaryFileName_type_info = new String[]{'applicationBinaryFileName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] applicationBundleIdentifier_type_info = new String[]{'applicationBundleIdentifier','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] applicationFileLength_type_info = new String[]{'applicationFileLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] applicationIconFile_type_info = new String[]{'applicationIconFile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] applicationIconFileName_type_info = new String[]{'applicationIconFileName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] applicationInstallUrl_type_info = new String[]{'applicationInstallUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] devicePlatform_type_info = new String[]{'devicePlatform','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] deviceType_type_info = new String[]{'deviceType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] minimumOsVersion_type_info = new String[]{'minimumOsVersion','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] privateApp_type_info = new String[]{'privateApp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] version_type_info = new String[]{'version','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'applicationBinaryFile','applicationBinaryFileName','applicationBundleIdentifier','applicationFileLength','applicationIconFile','applicationIconFileName','applicationInstallUrl','devicePlatform','deviceType','minimumOsVersion','privateApp','version'}; - } - public class CriteriaBasedSharingRule { - public MetadataService.FilterItem[] criteriaItems; - private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaItems'}; - } - public class ProfileRecordTypeVisibility { - public Boolean default_x; - public Boolean personAccountDefault; - public String recordType; - public Boolean visible; - private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] personAccountDefault_type_info = new String[]{'personAccountDefault','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recordType_type_info = new String[]{'recordType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'default_x','personAccountDefault','recordType','visible'}; - } - public class PackageVersion { - public Integer majorNumber; - public Integer minorNumber; - public String namespace; - private String[] majorNumber_type_info = new String[]{'majorNumber','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] minorNumber_type_info = new String[]{'minorNumber','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'majorNumber','minorNumber','namespace'}; - } - public class PermissionSetCustomPermissions { - public Boolean enabled; - public String name; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enabled','name'}; - } - public class CustomLabelTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class LeadOwnerSharingRule { - public String description; - public String leadAccessLevel; - public String name; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] leadAccessLevel_type_info = new String[]{'leadAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','leadAccessLevel','name'}; - } - public class CorsWhitelistOrigin extends Metadata { - public String type = 'CorsWhitelistOrigin'; - public String fullName; - public String urlPattern; - private String[] urlPattern_type_info = new String[]{'urlPattern','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'urlPattern'}; - } - public class StaticResource extends MetadataWithContent { - public String type = 'StaticResource'; - public String fullName; - public String content; - public String cacheControl; - public String contentType; - public String description; - private String[] cacheControl_type_info = new String[]{'cacheControl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] contentType_type_info = new String[]{'contentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'cacheControl','contentType','description'}; - } - public class LiveChatButton extends Metadata { - public String type = 'LiveChatButton'; - public String fullName; - public String animation; - public String autoGreeting; - public String chatPage; - public String customAgentName; - public MetadataService.LiveChatButtonDeployments deployments; - public Boolean enableQueue; - public String inviteEndPosition; - public String inviteImage; - public String inviteStartPosition; - public Boolean isActive; - public String label; - public Integer numberOfReroutingAttempts; - public String offlineImage; - public String onlineImage; - public Boolean optionsCustomRoutingIsEnabled; - public Boolean optionsHasInviteAfterAccept; - public Boolean optionsHasInviteAfterReject; - public Boolean optionsHasRerouteDeclinedRequest; - public Boolean optionsIsAutoAccept; - public Boolean optionsIsInviteAutoRemove; - public Integer overallQueueLength; - public Integer perAgentQueueLength; - public String postChatPage; - public String postChatUrl; - public String preChatFormPage; - public String preChatFormUrl; - public Integer pushTimeOut; - public String routingType; - public String site; - public MetadataService.LiveChatButtonSkills skills; - public Integer timeToRemoveInvite; - public String type_x; - public String windowLanguage; - private String[] animation_type_info = new String[]{'animation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] autoGreeting_type_info = new String[]{'autoGreeting','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chatPage_type_info = new String[]{'chatPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customAgentName_type_info = new String[]{'customAgentName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] deployments_type_info = new String[]{'deployments','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableQueue_type_info = new String[]{'enableQueue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inviteEndPosition_type_info = new String[]{'inviteEndPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inviteImage_type_info = new String[]{'inviteImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inviteStartPosition_type_info = new String[]{'inviteStartPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numberOfReroutingAttempts_type_info = new String[]{'numberOfReroutingAttempts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] offlineImage_type_info = new String[]{'offlineImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] onlineImage_type_info = new String[]{'onlineImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] optionsCustomRoutingIsEnabled_type_info = new String[]{'optionsCustomRoutingIsEnabled','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] optionsHasInviteAfterAccept_type_info = new String[]{'optionsHasInviteAfterAccept','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] optionsHasInviteAfterReject_type_info = new String[]{'optionsHasInviteAfterReject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] optionsHasRerouteDeclinedRequest_type_info = new String[]{'optionsHasRerouteDeclinedRequest','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] optionsIsAutoAccept_type_info = new String[]{'optionsIsAutoAccept','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] optionsIsInviteAutoRemove_type_info = new String[]{'optionsIsInviteAutoRemove','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] overallQueueLength_type_info = new String[]{'overallQueueLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] perAgentQueueLength_type_info = new String[]{'perAgentQueueLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] postChatPage_type_info = new String[]{'postChatPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] postChatUrl_type_info = new String[]{'postChatUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] preChatFormPage_type_info = new String[]{'preChatFormPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] preChatFormUrl_type_info = new String[]{'preChatFormUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] pushTimeOut_type_info = new String[]{'pushTimeOut','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] routingType_type_info = new String[]{'routingType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] skills_type_info = new String[]{'skills','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] timeToRemoveInvite_type_info = new String[]{'timeToRemoveInvite','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] windowLanguage_type_info = new String[]{'windowLanguage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'animation','autoGreeting','chatPage','customAgentName','deployments','enableQueue','inviteEndPosition','inviteImage','inviteStartPosition','isActive','label','numberOfReroutingAttempts','offlineImage','onlineImage','optionsCustomRoutingIsEnabled','optionsHasInviteAfterAccept','optionsHasInviteAfterReject','optionsHasRerouteDeclinedRequest','optionsIsAutoAccept','optionsIsInviteAutoRemove','overallQueueLength','perAgentQueueLength','postChatPage','postChatUrl','preChatFormPage','preChatFormUrl','pushTimeOut','routingType','site','skills','timeToRemoveInvite','type_x','windowLanguage'}; - } - public class RunTestsResult { - public MetadataService.CodeCoverageResult[] codeCoverage; - public MetadataService.CodeCoverageWarning[] codeCoverageWarnings; - public MetadataService.RunTestFailure[] failures; - public Integer numFailures; - public Integer numTestsRun; - public MetadataService.RunTestSuccess[] successes; - public Double totalTime; - private String[] codeCoverage_type_info = new String[]{'codeCoverage','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] codeCoverageWarnings_type_info = new String[]{'codeCoverageWarnings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] failures_type_info = new String[]{'failures','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] numFailures_type_info = new String[]{'numFailures','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numTestsRun_type_info = new String[]{'numTestsRun','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] successes_type_info = new String[]{'successes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] totalTime_type_info = new String[]{'totalTime','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'codeCoverage','codeCoverageWarnings','failures','numFailures','numTestsRun','successes','totalTime'}; - } - public class Network extends Metadata { - public String type = 'Network'; - public String fullName; - public Boolean allowMembersToFlag; - public MetadataService.Branding branding; - public String caseCommentEmailTemplate; - public String changePasswordTemplate; - public String description; - public String emailSenderAddress; - public String emailSenderName; - public Boolean enableGuestChatter; - public Boolean enableInvitation; - public Boolean enableKnowledgeable; - public Boolean enableNicknameDisplay; - public Boolean enablePrivateMessages; - public Boolean enableReputation; - public String feedChannel; - public String forgotPasswordTemplate; - public String logoutUrl; - public MetadataService.NetworkMemberGroup networkMemberGroups; - public String newSenderAddress; - public String picassoSite; - public MetadataService.ReputationLevelDefinitions reputationLevels; - public MetadataService.ReputationPointsRules reputationPointsRules; - public String selfRegProfile; - public Boolean selfRegistration; - public Boolean sendWelcomeEmail; - public String site; - public String status; - public MetadataService.NetworkTabSet tabs; - public String urlPathPrefix; - public String welcomeTemplate; - private String[] allowMembersToFlag_type_info = new String[]{'allowMembersToFlag','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] branding_type_info = new String[]{'branding','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseCommentEmailTemplate_type_info = new String[]{'caseCommentEmailTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] changePasswordTemplate_type_info = new String[]{'changePasswordTemplate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailSenderAddress_type_info = new String[]{'emailSenderAddress','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] emailSenderName_type_info = new String[]{'emailSenderName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enableGuestChatter_type_info = new String[]{'enableGuestChatter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableInvitation_type_info = new String[]{'enableInvitation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableKnowledgeable_type_info = new String[]{'enableKnowledgeable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableNicknameDisplay_type_info = new String[]{'enableNicknameDisplay','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enablePrivateMessages_type_info = new String[]{'enablePrivateMessages','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableReputation_type_info = new String[]{'enableReputation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] feedChannel_type_info = new String[]{'feedChannel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] forgotPasswordTemplate_type_info = new String[]{'forgotPasswordTemplate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] logoutUrl_type_info = new String[]{'logoutUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] networkMemberGroups_type_info = new String[]{'networkMemberGroups','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] newSenderAddress_type_info = new String[]{'newSenderAddress','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] picassoSite_type_info = new String[]{'picassoSite','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] reputationLevels_type_info = new String[]{'reputationLevels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] reputationPointsRules_type_info = new String[]{'reputationPointsRules','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] selfRegProfile_type_info = new String[]{'selfRegProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] selfRegistration_type_info = new String[]{'selfRegistration','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sendWelcomeEmail_type_info = new String[]{'sendWelcomeEmail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] tabs_type_info = new String[]{'tabs','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] urlPathPrefix_type_info = new String[]{'urlPathPrefix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] welcomeTemplate_type_info = new String[]{'welcomeTemplate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'allowMembersToFlag','branding','caseCommentEmailTemplate','changePasswordTemplate','description','emailSenderAddress','emailSenderName','enableGuestChatter','enableInvitation','enableKnowledgeable','enableNicknameDisplay','enablePrivateMessages','enableReputation','feedChannel','forgotPasswordTemplate','logoutUrl','networkMemberGroups','newSenderAddress','picassoSite','reputationLevels','reputationPointsRules','selfRegProfile','selfRegistration','sendWelcomeEmail','site','status','tabs','urlPathPrefix','welcomeTemplate'}; - } - public class PermissionSetUserPermission { - public Boolean enabled; - public String name; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enabled','name'}; - } - public class FlowVariable { - public String dataType; - public Boolean isCollection; - public Boolean isInput; - public Boolean isOutput; - public String objectType; - public Integer scale; - public MetadataService.FlowElementReferenceOrValue value; - private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isCollection_type_info = new String[]{'isCollection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isInput_type_info = new String[]{'isInput','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isOutput_type_info = new String[]{'isOutput','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] objectType_type_info = new String[]{'objectType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dataType','isCollection','isInput','isOutput','objectType','scale','value'}; - } - public class AccountSettings extends Metadata { - public String type = 'AccountSettings'; - public String fullName; - public Boolean enableAccountOwnerReport; - public Boolean enableAccountTeams; - public Boolean showViewHierarchyLink; - private String[] enableAccountOwnerReport_type_info = new String[]{'enableAccountOwnerReport','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableAccountTeams_type_info = new String[]{'enableAccountTeams','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showViewHierarchyLink_type_info = new String[]{'showViewHierarchyLink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'enableAccountOwnerReport','enableAccountTeams','showViewHierarchyLink'}; - } - public class ChatterAnswersReputationLevel { - public String name; - public Integer value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class LiveChatDeploymentDomainWhitelist { - public String[] domain; - private String[] domain_type_info = new String[]{'domain','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'domain'}; - } - public class DashboardFilter { - public MetadataService.DashboardFilterOption[] dashboardFilterOptions; - public String name; - private String[] dashboardFilterOptions_type_info = new String[]{'dashboardFilterOptions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dashboardFilterOptions','name'}; - } - public class ProfileLoginHours { - public String fridayEnd; - public String fridayStart; - public String mondayEnd; - public String mondayStart; - public String saturdayEnd; - public String saturdayStart; - public String sundayEnd; - public String sundayStart; - public String thursdayEnd; - public String thursdayStart; - public String tuesdayEnd; - public String tuesdayStart; - public String wednesdayEnd; - public String wednesdayStart; - private String[] fridayEnd_type_info = new String[]{'fridayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fridayStart_type_info = new String[]{'fridayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mondayEnd_type_info = new String[]{'mondayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mondayStart_type_info = new String[]{'mondayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] saturdayEnd_type_info = new String[]{'saturdayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] saturdayStart_type_info = new String[]{'saturdayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sundayEnd_type_info = new String[]{'sundayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sundayStart_type_info = new String[]{'sundayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] thursdayEnd_type_info = new String[]{'thursdayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] thursdayStart_type_info = new String[]{'thursdayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] tuesdayEnd_type_info = new String[]{'tuesdayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] tuesdayStart_type_info = new String[]{'tuesdayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] wednesdayEnd_type_info = new String[]{'wednesdayEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] wednesdayStart_type_info = new String[]{'wednesdayStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fridayEnd','fridayStart','mondayEnd','mondayStart','saturdayEnd','saturdayStart','sundayEnd','sundayStart','thursdayEnd','thursdayStart','tuesdayEnd','tuesdayStart','wednesdayEnd','wednesdayStart'}; - } - public class CodeLocation { - public Integer column; - public Integer line; - public Integer numExecutions; - public Double time_x; - private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] line_type_info = new String[]{'line','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numExecutions_type_info = new String[]{'numExecutions','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] time_x_type_info = new String[]{'time','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'column','line','numExecutions','time_x'}; - } - public class PermissionSetRecordTypeVisibility { - public String recordType; - public Boolean visible; - private String[] recordType_type_info = new String[]{'recordType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'recordType','visible'}; - } - public class FieldSetItem { - public String field; - public Boolean isFieldManaged; - public Boolean isRequired; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isFieldManaged_type_info = new String[]{'isFieldManaged','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isRequired_type_info = new String[]{'isRequired','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','isFieldManaged','isRequired'}; - } - public class KnowledgeLanguageSettings { - public MetadataService.KnowledgeLanguage[] language; - private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'language'}; - } - public class OrderSettings extends Metadata { - public String type = 'OrderSettings'; - public String fullName; - public Boolean enableNegativeQuantity; - public Boolean enableOrders; - public Boolean enableReductionOrders; - private String[] enableNegativeQuantity_type_info = new String[]{'enableNegativeQuantity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableOrders_type_info = new String[]{'enableOrders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableReductionOrders_type_info = new String[]{'enableReductionOrders','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'enableNegativeQuantity','enableOrders','enableReductionOrders'}; - } - public class ProfileUserPermission { - public Boolean enabled; - public String name; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enabled','name'}; - } - public class ReportFilterItem { - public String column; - public Boolean columnToColumn; - public String operator; - public String snapshot; - public String value; - private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] columnToColumn_type_info = new String[]{'columnToColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] snapshot_type_info = new String[]{'snapshot','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'column','columnToColumn','operator','snapshot','value'}; - } - public class FlowDynamicChoiceSet { - public String dataType; - public String displayField; - public MetadataService.FlowRecordFilter[] filters; - public Integer limit_x; - public String object_x; - public MetadataService.FlowOutputFieldAssignment[] outputAssignments; - public String sortField; - public String sortOrder; - public String valueField; - private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] displayField_type_info = new String[]{'displayField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] limit_x_type_info = new String[]{'limit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] outputAssignments_type_info = new String[]{'outputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] sortField_type_info = new String[]{'sortField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] valueField_type_info = new String[]{'valueField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dataType','displayField','filters','limit_x','object_x','outputAssignments','sortField','sortOrder','valueField'}; - } - public class KnowledgeSettings extends Metadata { - public String type = 'KnowledgeSettings'; - public String fullName; - public MetadataService.KnowledgeAnswerSettings answers; - public MetadataService.KnowledgeCaseSettings cases; - public String defaultLanguage; - public Boolean enableChatterQuestionKBDeflection; - public Boolean enableCreateEditOnArticlesTab; - public Boolean enableExternalMediaContent; - public Boolean enableKnowledge; - public MetadataService.KnowledgeLanguageSettings languages; - public Boolean showArticleSummariesCustomerPortal; - public Boolean showArticleSummariesInternalApp; - public Boolean showArticleSummariesPartnerPortal; - public Boolean showValidationStatusField; - private String[] answers_type_info = new String[]{'answers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] cases_type_info = new String[]{'cases','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultLanguage_type_info = new String[]{'defaultLanguage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableChatterQuestionKBDeflection_type_info = new String[]{'enableChatterQuestionKBDeflection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableCreateEditOnArticlesTab_type_info = new String[]{'enableCreateEditOnArticlesTab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableExternalMediaContent_type_info = new String[]{'enableExternalMediaContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableKnowledge_type_info = new String[]{'enableKnowledge','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] languages_type_info = new String[]{'languages','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showArticleSummariesCustomerPortal_type_info = new String[]{'showArticleSummariesCustomerPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showArticleSummariesInternalApp_type_info = new String[]{'showArticleSummariesInternalApp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showArticleSummariesPartnerPortal_type_info = new String[]{'showArticleSummariesPartnerPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showValidationStatusField_type_info = new String[]{'showValidationStatusField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'answers','cases','defaultLanguage','enableChatterQuestionKBDeflection','enableCreateEditOnArticlesTab','enableExternalMediaContent','enableKnowledge','languages','showArticleSummariesCustomerPortal','showArticleSummariesInternalApp','showArticleSummariesPartnerPortal','showValidationStatusField'}; - } - public class StandardFieldTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class upsertMetadata_element { - public MetadataService.Metadata[] metadata; - private String[] metadata_type_info = new String[]{'metadata','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'metadata'}; - } - public class ApexClass extends MetadataWithContent { - public String type = 'ApexClass'; - public String fullName; - public String content; - public Double apiVersion; - public MetadataService.PackageVersion[] packageVersions; - public String status; - private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','packageVersions','status'}; - } - public class SessionSettings { - public Boolean disableTimeoutWarning; - public Boolean enableCSRFOnGet; - public Boolean enableCSRFOnPost; - public Boolean enableCacheAndAutocomplete; - public Boolean enableClickjackNonsetupSFDC; - public Boolean enableClickjackNonsetupUser; - public Boolean enableClickjackSetup; - public Boolean enablePostForSessions; - public Boolean enableSMSIdentity; - public Boolean forceLogoutOnSessionTimeout; - public Boolean forceRelogin; - public Boolean lockSessionsToIp; - public String sessionTimeout; - private String[] disableTimeoutWarning_type_info = new String[]{'disableTimeoutWarning','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableCSRFOnGet_type_info = new String[]{'enableCSRFOnGet','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableCSRFOnPost_type_info = new String[]{'enableCSRFOnPost','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableCacheAndAutocomplete_type_info = new String[]{'enableCacheAndAutocomplete','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableClickjackNonsetupSFDC_type_info = new String[]{'enableClickjackNonsetupSFDC','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableClickjackNonsetupUser_type_info = new String[]{'enableClickjackNonsetupUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableClickjackSetup_type_info = new String[]{'enableClickjackSetup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enablePostForSessions_type_info = new String[]{'enablePostForSessions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSMSIdentity_type_info = new String[]{'enableSMSIdentity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] forceLogoutOnSessionTimeout_type_info = new String[]{'forceLogoutOnSessionTimeout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] forceRelogin_type_info = new String[]{'forceRelogin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lockSessionsToIp_type_info = new String[]{'lockSessionsToIp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sessionTimeout_type_info = new String[]{'sessionTimeout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'disableTimeoutWarning','enableCSRFOnGet','enableCSRFOnPost','enableCacheAndAutocomplete','enableClickjackNonsetupSFDC','enableClickjackNonsetupUser','enableClickjackSetup','enablePostForSessions','enableSMSIdentity','forceLogoutOnSessionTimeout','forceRelogin','lockSessionsToIp','sessionTimeout'}; - } - public class Document extends MetadataWithContent { - public String type = 'Document'; - public String fullName; - public String content; - public String description; - public Boolean internalUseOnly; - public String keywords; - public String name; - public Boolean public_x; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] internalUseOnly_type_info = new String[]{'internalUseOnly','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] keywords_type_info = new String[]{'keywords','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] public_x_type_info = new String[]{'public','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'description','internalUseOnly','keywords','name','public_x'}; - } - public class AutoResponseRules extends Metadata { - public String type = 'AutoResponseRules'; - public String fullName; - public MetadataService.AutoResponseRule[] autoResponseRule; - private String[] autoResponseRule_type_info = new String[]{'autoResponseRule','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'autoResponseRule'}; - } - public virtual class Folder extends Metadata{ - public String accessType; - public MetadataService.FolderShare[] folderShares; - public String name; - public String publicFolderAccess; - public MetadataService.SharedTo sharedTo; - private String[] accessType_type_info = new String[]{'accessType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] folderShares_type_info = new String[]{'folderShares','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] publicFolderAccess_type_info = new String[]{'publicFolderAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accessType','folderShares','name','publicFolderAccess','sharedTo'}; - } - public class Territory2Model extends Metadata { - public String type = 'Territory2Model'; - public String fullName; - public MetadataService.FieldValue[] customFields; - public String description; - public String name; - private String[] customFields_type_info = new String[]{'customFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'customFields','description','name'}; - } - public class DeployResult { - public String canceledBy; - public String canceledByName; - public Boolean checkOnly; - public DateTime completedDate; - public String createdBy; - public String createdByName; - public DateTime createdDate; - public MetadataService.DeployDetails details; - public Boolean done; - public String errorMessage; - public String errorStatusCode; - public String id; - public Boolean ignoreWarnings; - public DateTime lastModifiedDate; - public Integer numberComponentErrors; - public Integer numberComponentsDeployed; - public Integer numberComponentsTotal; - public Integer numberTestErrors; - public Integer numberTestsCompleted; - public Integer numberTestsTotal; - public Boolean rollbackOnError; - public Boolean runTestsEnabled; - public DateTime startDate; - public String stateDetail; - public String status; - public Boolean success; - private String[] canceledBy_type_info = new String[]{'canceledBy','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] canceledByName_type_info = new String[]{'canceledByName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] checkOnly_type_info = new String[]{'checkOnly','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] completedDate_type_info = new String[]{'completedDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] createdBy_type_info = new String[]{'createdBy','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] createdByName_type_info = new String[]{'createdByName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] createdDate_type_info = new String[]{'createdDate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] details_type_info = new String[]{'details','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] done_type_info = new String[]{'done','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] errorStatusCode_type_info = new String[]{'errorStatusCode','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] ignoreWarnings_type_info = new String[]{'ignoreWarnings','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] lastModifiedDate_type_info = new String[]{'lastModifiedDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] numberComponentErrors_type_info = new String[]{'numberComponentErrors','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numberComponentsDeployed_type_info = new String[]{'numberComponentsDeployed','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numberComponentsTotal_type_info = new String[]{'numberComponentsTotal','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numberTestErrors_type_info = new String[]{'numberTestErrors','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numberTestsCompleted_type_info = new String[]{'numberTestsCompleted','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] numberTestsTotal_type_info = new String[]{'numberTestsTotal','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] rollbackOnError_type_info = new String[]{'rollbackOnError','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] runTestsEnabled_type_info = new String[]{'runTestsEnabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] startDate_type_info = new String[]{'startDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] stateDetail_type_info = new String[]{'stateDetail','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'canceledBy','canceledByName','checkOnly','completedDate','createdBy','createdByName','createdDate','details','done','errorMessage','errorStatusCode','id','ignoreWarnings','lastModifiedDate','numberComponentErrors','numberComponentsDeployed','numberComponentsTotal','numberTestErrors','numberTestsCompleted','numberTestsTotal','rollbackOnError','runTestsEnabled','startDate','stateDetail','status','success'}; - } - public class CampaignCriteriaBasedSharingRule { - public String booleanFilter; - public String campaignAccessLevel; - public String description; - public String name; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] campaignAccessLevel_type_info = new String[]{'campaignAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanFilter','campaignAccessLevel','description','name'}; - } - public class ProfileApexPageAccess { - public String apexPage; - public Boolean enabled; - private String[] apexPage_type_info = new String[]{'apexPage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'apexPage','enabled'}; - } - public class UserCriteriaBasedSharingRule { - public String booleanFilter; - public String description; - public String name; - public String userAccessLevel; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] userAccessLevel_type_info = new String[]{'userAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanFilter','description','name','userAccessLevel'}; - } - public class Approver { - public String name; - public String type_x; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','type_x'}; - } - public class LetterheadHeaderFooter { - public String backgroundColor; - public Integer height; - public String horizontalAlignment; - public String logo; - public String verticalAlignment; - private String[] backgroundColor_type_info = new String[]{'backgroundColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] horizontalAlignment_type_info = new String[]{'horizontalAlignment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] logo_type_info = new String[]{'logo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] verticalAlignment_type_info = new String[]{'verticalAlignment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'backgroundColor','height','horizontalAlignment','logo','verticalAlignment'}; - } - public class HomePageComponent extends Metadata { - public String type = 'HomePageComponent'; - public String fullName; - public String body; - public Integer height; - public String[] links; - public String page_x; - public String pageComponentType; - public Boolean showLabel; - public Boolean showScrollbars; - public String width; - private String[] body_type_info = new String[]{'body','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] links_type_info = new String[]{'links','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] pageComponentType_type_info = new String[]{'pageComponentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] showLabel_type_info = new String[]{'showLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showScrollbars_type_info = new String[]{'showScrollbars','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'body','height','links','page_x','pageComponentType','showLabel','showScrollbars','width'}; - } - public class ProfileCustomPermissions { - public Boolean enabled; - public String name; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enabled','name'}; - } - public class LookupFilterTranslation { - public String errorMessage; - public String informationalMessage; - private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] informationalMessage_type_info = new String[]{'informationalMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'errorMessage','informationalMessage'}; - } - public class SamlSsoConfig extends Metadata { - public String type = 'SamlSsoConfig'; - public String fullName; - public String attributeName; - public String attributeNameIdFormat; - public String decryptionCertificate; - public String errorUrl; - public String identityLocation; - public String identityMapping; - public String issuer; - public String loginUrl; - public String logoutUrl; - public String name; - public String oauthTokenEndpoint; - public Boolean redirectBinding; - public String salesforceLoginUrl; - public String samlEntityId; - public String samlVersion; - public Boolean userProvisioning; - public String validationCert; - private String[] attributeName_type_info = new String[]{'attributeName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] attributeNameIdFormat_type_info = new String[]{'attributeNameIdFormat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] decryptionCertificate_type_info = new String[]{'decryptionCertificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] errorUrl_type_info = new String[]{'errorUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] identityLocation_type_info = new String[]{'identityLocation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] identityMapping_type_info = new String[]{'identityMapping','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] issuer_type_info = new String[]{'issuer','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] loginUrl_type_info = new String[]{'loginUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] logoutUrl_type_info = new String[]{'logoutUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] oauthTokenEndpoint_type_info = new String[]{'oauthTokenEndpoint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] redirectBinding_type_info = new String[]{'redirectBinding','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] salesforceLoginUrl_type_info = new String[]{'salesforceLoginUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] samlEntityId_type_info = new String[]{'samlEntityId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] samlVersion_type_info = new String[]{'samlVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] userProvisioning_type_info = new String[]{'userProvisioning','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] validationCert_type_info = new String[]{'validationCert','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'attributeName','attributeNameIdFormat','decryptionCertificate','errorUrl','identityLocation','identityMapping','issuer','loginUrl','logoutUrl','name','oauthTokenEndpoint','redirectBinding','salesforceLoginUrl','samlEntityId','samlVersion','userProvisioning','validationCert'}; - } - public class RecordTypeTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class WorkflowFlowAction { - public String description; - public String flow; - public MetadataService.WorkflowFlowActionParameter[] flowInputs; - public String label; - public String language; - public Boolean protected_x; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] flow_type_info = new String[]{'flow','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] flowInputs_type_info = new String[]{'flowInputs','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','flow','flowInputs','label','language','protected_x'}; - } - public class MobileSettings extends Metadata { - public String type = 'MobileSettings'; - public String fullName; - public MetadataService.ChatterMobileSettings chatterMobile; - public MetadataService.DashboardMobileSettings dashboardMobile; - public MetadataService.SFDCMobileSettings salesforceMobile; - public MetadataService.TouchMobileSettings touchMobile; - private String[] chatterMobile_type_info = new String[]{'chatterMobile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] dashboardMobile_type_info = new String[]{'dashboardMobile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] salesforceMobile_type_info = new String[]{'salesforceMobile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] touchMobile_type_info = new String[]{'touchMobile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'chatterMobile','dashboardMobile','salesforceMobile','touchMobile'}; - } - public class PersonListSettings { - public Boolean enablePersonList; - private String[] enablePersonList_type_info = new String[]{'enablePersonList','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enablePersonList'}; - } - public class FlowFormula { - public String dataType; - public String expression; - public Integer scale; - private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] expression_type_info = new String[]{'expression','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dataType','expression','scale'}; - } - public class EscalationRules extends Metadata { - public String type = 'EscalationRules'; - public String fullName; - public MetadataService.EscalationRule[] escalationRule; - private String[] escalationRule_type_info = new String[]{'escalationRule','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'escalationRule'}; - } - public class ApprovalSubmitter { - public String submitter; - public String type_x; - private String[] submitter_type_info = new String[]{'submitter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'submitter','type_x'}; - } - public class AgentConfigButtons { - public String[] button; - private String[] button_type_info = new String[]{'button','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'button'}; - } - public class PicklistValueTranslation { - public String masterLabel; - public String translation; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] translation_type_info = new String[]{'translation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'masterLabel','translation'}; - } - public class ContactOwnerSharingRule { - public String contactAccessLevel; - public String description; - public String name; - private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'contactAccessLevel','description','name'}; - } - public class CustomDataType extends Metadata { - public String type = 'CustomDataType'; - public String fullName; - public MetadataService.CustomDataTypeComponent[] customDataTypeComponents; - public String description; - public String displayFormula; - public Boolean editComponentsOnSeparateLines; - public String label; - public Boolean rightAligned; - public Boolean supportComponentsInReports; - private String[] customDataTypeComponents_type_info = new String[]{'customDataTypeComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] displayFormula_type_info = new String[]{'displayFormula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] editComponentsOnSeparateLines_type_info = new String[]{'editComponentsOnSeparateLines','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] rightAligned_type_info = new String[]{'rightAligned','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] supportComponentsInReports_type_info = new String[]{'supportComponentsInReports','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'customDataTypeComponents','description','displayFormula','editComponentsOnSeparateLines','label','rightAligned','supportComponentsInReports'}; - } - public class PrimaryTabComponents { - public MetadataService.Container[] containers; - private String[] containers_type_info = new String[]{'containers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'containers'}; - } - public class AgentConfigSkills { - public String[] skill; - private String[] skill_type_info = new String[]{'skill','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'skill'}; - } - public class EntitlementProcess extends Metadata { - public String type = 'EntitlementProcess'; - public String fullName; - public Boolean active; - public String businessHours; - public String description; - public String entryStartDateField; - public String exitCriteriaBooleanFilter; - public MetadataService.FilterItem[] exitCriteriaFilterItems; - public String exitCriteriaFormula; - public Boolean isVersionDefault; - public MetadataService.EntitlementProcessMilestoneItem[] milestones; - public String name; - public String versionMaster; - public String versionNotes; - public Integer versionNumber; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] entryStartDateField_type_info = new String[]{'entryStartDateField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] exitCriteriaBooleanFilter_type_info = new String[]{'exitCriteriaBooleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] exitCriteriaFilterItems_type_info = new String[]{'exitCriteriaFilterItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] exitCriteriaFormula_type_info = new String[]{'exitCriteriaFormula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isVersionDefault_type_info = new String[]{'isVersionDefault','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] milestones_type_info = new String[]{'milestones','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] versionMaster_type_info = new String[]{'versionMaster','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] versionNotes_type_info = new String[]{'versionNotes','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] versionNumber_type_info = new String[]{'versionNumber','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','businessHours','description','entryStartDateField','exitCriteriaBooleanFilter','exitCriteriaFilterItems','exitCriteriaFormula','isVersionDefault','milestones','name','versionMaster','versionNotes','versionNumber'}; - } - public class RecordType extends Metadata { - public String type = 'RecordType'; - public String fullName; - public Boolean active; - public String businessProcess; - public String compactLayoutAssignment; - public String description; - public String label; - public MetadataService.RecordTypePicklistValue[] picklistValues; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] businessProcess_type_info = new String[]{'businessProcess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] compactLayoutAssignment_type_info = new String[]{'compactLayoutAssignment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] picklistValues_type_info = new String[]{'picklistValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','businessProcess','compactLayoutAssignment','description','label','picklistValues'}; - } - public class ContactCriteriaBasedSharingRule { - public String booleanFilter; - public String contactAccessLevel; - public String description; - public String name; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanFilter','contactAccessLevel','description','name'}; - } - public class FilterItem { - public String field; - public String operation; - public String value; - public String valueField; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] valueField_type_info = new String[]{'valueField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','operation','value','valueField'}; - } - public class Profile extends Metadata { - public String type = 'Profile'; - public String fullName; - public MetadataService.ProfileApplicationVisibility[] applicationVisibilities; - public MetadataService.ProfileApexClassAccess[] classAccesses; - public Boolean custom; - public MetadataService.ProfileCustomPermissions[] customPermissions; - public String description; - public MetadataService.ProfileExternalDataSourceAccess[] externalDataSourceAccesses; - public MetadataService.ProfileFieldLevelSecurity[] fieldPermissions; - public MetadataService.ProfileLayoutAssignment[] layoutAssignments; - public MetadataService.ProfileLoginHours loginHours; - public MetadataService.ProfileLoginIpRange[] loginIpRanges; - public MetadataService.ProfileObjectPermissions[] objectPermissions; - public MetadataService.ProfileApexPageAccess[] pageAccesses; - public MetadataService.ProfileRecordTypeVisibility[] recordTypeVisibilities; - public MetadataService.ProfileTabVisibility[] tabVisibilities; - public String userLicense; - public MetadataService.ProfileUserPermission[] userPermissions; - private String[] applicationVisibilities_type_info = new String[]{'applicationVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] classAccesses_type_info = new String[]{'classAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] custom_type_info = new String[]{'custom','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customPermissions_type_info = new String[]{'customPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] externalDataSourceAccesses_type_info = new String[]{'externalDataSourceAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fieldPermissions_type_info = new String[]{'fieldPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] layoutAssignments_type_info = new String[]{'layoutAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] loginHours_type_info = new String[]{'loginHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] loginIpRanges_type_info = new String[]{'loginIpRanges','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] objectPermissions_type_info = new String[]{'objectPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] pageAccesses_type_info = new String[]{'pageAccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] recordTypeVisibilities_type_info = new String[]{'recordTypeVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] tabVisibilities_type_info = new String[]{'tabVisibilities','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] userLicense_type_info = new String[]{'userLicense','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] userPermissions_type_info = new String[]{'userPermissions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'applicationVisibilities','classAccesses','custom','customPermissions','description','externalDataSourceAccesses','fieldPermissions','layoutAssignments','loginHours','loginIpRanges','objectPermissions','pageAccesses','recordTypeVisibilities','tabVisibilities','userLicense','userPermissions'}; - } - public class ConnectedApp extends Metadata { - public String type = 'ConnectedApp'; - public String fullName; - public MetadataService.ConnectedAppAttribute[] attributes; - public MetadataService.ConnectedAppCanvasConfig canvasConfig; - public String contactEmail; - public String contactPhone; - public String description; - public String iconUrl; - public String infoUrl; - public MetadataService.ConnectedAppIpRange[] ipRanges; - public String label; - public String logoUrl; - public MetadataService.ConnectedAppMobileDetailConfig mobileAppConfig; - public String mobileStartUrl; - public MetadataService.ConnectedAppOauthConfig oauthConfig; - public MetadataService.ConnectedAppSamlConfig samlConfig; - public String startUrl; - private String[] attributes_type_info = new String[]{'attributes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] canvasConfig_type_info = new String[]{'canvasConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] contactEmail_type_info = new String[]{'contactEmail','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] contactPhone_type_info = new String[]{'contactPhone','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] iconUrl_type_info = new String[]{'iconUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] infoUrl_type_info = new String[]{'infoUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] ipRanges_type_info = new String[]{'ipRanges','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] logoUrl_type_info = new String[]{'logoUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mobileAppConfig_type_info = new String[]{'mobileAppConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mobileStartUrl_type_info = new String[]{'mobileStartUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] oauthConfig_type_info = new String[]{'oauthConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] samlConfig_type_info = new String[]{'samlConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] startUrl_type_info = new String[]{'startUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'attributes','canvasConfig','contactEmail','contactPhone','description','iconUrl','infoUrl','ipRanges','label','logoUrl','mobileAppConfig','mobileStartUrl','oauthConfig','samlConfig','startUrl'}; - } - public class ReportFilter { - public String booleanFilter; - public MetadataService.ReportFilterItem[] criteriaItems; - public String language; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanFilter','criteriaItems','language'}; - } - public class Layout extends Metadata { - public String type = 'Layout'; - public String fullName; - public String[] customButtons; - public MetadataService.CustomConsoleComponents customConsoleComponents; - public Boolean emailDefault; - public String[] excludeButtons; - public MetadataService.FeedLayout feedLayout; - public String[] headers; - public MetadataService.LayoutSection[] layoutSections; - public MetadataService.MiniLayout miniLayout; - public String[] multilineLayoutFields; - public MetadataService.QuickActionList quickActionList; - public MetadataService.RelatedContent relatedContent; - public MetadataService.RelatedListItem[] relatedLists; - public String[] relatedObjects; - public Boolean runAssignmentRulesDefault; - public Boolean showEmailCheckbox; - public Boolean showHighlightsPanel; - public Boolean showInteractionLogPanel; - public Boolean showKnowledgeComponent; - public Boolean showRunAssignmentRulesCheckbox; - public Boolean showSolutionSection; - public Boolean showSubmitAndAttachButton; - public MetadataService.SummaryLayout summaryLayout; - private String[] customButtons_type_info = new String[]{'customButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] customConsoleComponents_type_info = new String[]{'customConsoleComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailDefault_type_info = new String[]{'emailDefault','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] excludeButtons_type_info = new String[]{'excludeButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] feedLayout_type_info = new String[]{'feedLayout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] headers_type_info = new String[]{'headers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] layoutSections_type_info = new String[]{'layoutSections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] miniLayout_type_info = new String[]{'miniLayout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] multilineLayoutFields_type_info = new String[]{'multilineLayoutFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] quickActionList_type_info = new String[]{'quickActionList','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] relatedContent_type_info = new String[]{'relatedContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] relatedLists_type_info = new String[]{'relatedLists','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] relatedObjects_type_info = new String[]{'relatedObjects','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] runAssignmentRulesDefault_type_info = new String[]{'runAssignmentRulesDefault','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showEmailCheckbox_type_info = new String[]{'showEmailCheckbox','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showHighlightsPanel_type_info = new String[]{'showHighlightsPanel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showInteractionLogPanel_type_info = new String[]{'showInteractionLogPanel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showKnowledgeComponent_type_info = new String[]{'showKnowledgeComponent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showRunAssignmentRulesCheckbox_type_info = new String[]{'showRunAssignmentRulesCheckbox','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showSolutionSection_type_info = new String[]{'showSolutionSection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showSubmitAndAttachButton_type_info = new String[]{'showSubmitAndAttachButton','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] summaryLayout_type_info = new String[]{'summaryLayout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'customButtons','customConsoleComponents','emailDefault','excludeButtons','feedLayout','headers','layoutSections','miniLayout','multilineLayoutFields','quickActionList','relatedContent','relatedLists','relatedObjects','runAssignmentRulesDefault','showEmailCheckbox','showHighlightsPanel','showInteractionLogPanel','showKnowledgeComponent','showRunAssignmentRulesCheckbox','showSolutionSection','showSubmitAndAttachButton','summaryLayout'}; - } - public class KeyboardShortcuts { - public MetadataService.CustomShortcut[] customShortcut; - public MetadataService.DefaultShortcut[] defaultShortcut; - private String[] customShortcut_type_info = new String[]{'customShortcut','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] defaultShortcut_type_info = new String[]{'defaultShortcut','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'customShortcut','defaultShortcut'}; - } - public class WebLink extends Metadata { - public String type = 'WebLink'; - public String fullName; - public String availability; - public String description; - public String displayType; - public String encodingKey; - public Boolean hasMenubar; - public Boolean hasScrollbars; - public Boolean hasToolbar; - public Integer height; - public Boolean isResizable; - public String linkType; - public String masterLabel; - public String openType; - public String page_x; - public String position; - public Boolean protected_x; - public Boolean requireRowSelection; - public String scontrol; - public Boolean showsLocation; - public Boolean showsStatus; - public String url; - public Integer width; - private String[] availability_type_info = new String[]{'availability','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] displayType_type_info = new String[]{'displayType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] encodingKey_type_info = new String[]{'encodingKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hasMenubar_type_info = new String[]{'hasMenubar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hasScrollbars_type_info = new String[]{'hasScrollbars','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hasToolbar_type_info = new String[]{'hasToolbar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isResizable_type_info = new String[]{'isResizable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] linkType_type_info = new String[]{'linkType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] openType_type_info = new String[]{'openType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] position_type_info = new String[]{'position','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] requireRowSelection_type_info = new String[]{'requireRowSelection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showsLocation_type_info = new String[]{'showsLocation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showsStatus_type_info = new String[]{'showsStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] url_type_info = new String[]{'url','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'availability','description','displayType','encodingKey','hasMenubar','hasScrollbars','hasToolbar','height','isResizable','linkType','masterLabel','openType','page_x','position','protected_x','requireRowSelection','scontrol','showsLocation','showsStatus','url','width'}; - } - public class ApprovalStep { - public Boolean allowDelegate; - public MetadataService.ApprovalAction approvalActions; - public MetadataService.ApprovalStepApprover assignedApprover; - public String description; - public MetadataService.ApprovalEntryCriteria entryCriteria; - public String ifCriteriaNotMet; - public String label; - public String name; - public MetadataService.ApprovalStepRejectBehavior rejectBehavior; - public MetadataService.ApprovalAction rejectionActions; - private String[] allowDelegate_type_info = new String[]{'allowDelegate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] approvalActions_type_info = new String[]{'approvalActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assignedApprover_type_info = new String[]{'assignedApprover','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] entryCriteria_type_info = new String[]{'entryCriteria','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] ifCriteriaNotMet_type_info = new String[]{'ifCriteriaNotMet','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] rejectBehavior_type_info = new String[]{'rejectBehavior','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] rejectionActions_type_info = new String[]{'rejectionActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'allowDelegate','approvalActions','assignedApprover','description','entryCriteria','ifCriteriaNotMet','label','name','rejectBehavior','rejectionActions'}; - } - public class ObjectNameCaseValue { - public String article; - public String caseType; - public Boolean plural; - public String possessive; - public String value; - private String[] article_type_info = new String[]{'article','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseType_type_info = new String[]{'caseType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] plural_type_info = new String[]{'plural','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] possessive_type_info = new String[]{'possessive','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'article','caseType','plural','possessive','value'}; - } - public class ChannelLayoutItem { - public String field; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field'}; - } - public class upsertMetadataResponse_element { - public MetadataService.UpsertResult[] result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class CustomDataTypeTranslation { - public MetadataService.CustomDataTypeComponentTranslation[] components; - public String customDataTypeName; - public String description; - public String label; - private String[] components_type_info = new String[]{'components','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] customDataTypeName_type_info = new String[]{'customDataTypeName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'components','customDataTypeName','description','label'}; - } - public class SiteDotCom extends MetadataWithContent { - public String type = 'SiteDotCom'; - public String fullName; - public String content; - public String label; - public String siteType; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] siteType_type_info = new String[]{'siteType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'label','siteType'}; - } - public class CallOptions_element { - public String client; - private String[] client_type_info = new String[]{'client','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'client'}; - } - public class AgentConfigAssignments { - public MetadataService.AgentConfigProfileAssignments profiles; - public MetadataService.AgentConfigUserAssignments users; - private String[] profiles_type_info = new String[]{'profiles','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] users_type_info = new String[]{'users','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'profiles','users'}; - } - public class createMetadataResponse_element { - public MetadataService.SaveResult[] result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - - - public class CustomFieldTranslation { - public MetadataService.ObjectNameCaseValue[] caseValues; - public String gender; - public String help; - public String label; - public MetadataService.LookupFilterTranslation lookupFilter; - public String name; - public MetadataService.PicklistValueTranslation[] picklistValues; - public String relationshipLabel; - public String startsWith; - private String[] caseValues_type_info = new String[]{'caseValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] gender_type_info = new String[]{'gender','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] help_type_info = new String[]{'help','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lookupFilter_type_info = new String[]{'lookupFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] picklistValues_type_info = new String[]{'picklistValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] relationshipLabel_type_info = new String[]{'relationshipLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] startsWith_type_info = new String[]{'startsWith','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'caseValues','gender','help','label','lookupFilter','name','picklistValues','relationshipLabel','startsWith'}; - } - public class CustomObjectOwnerSharingRule { - public String accessLevel; - public String description; - public String name; - private String[] accessLevel_type_info = new String[]{'accessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accessLevel','description','name'}; - } - public class updateMetadata_element { - public MetadataService.Metadata[] metadata; - private String[] metadata_type_info = new String[]{'metadata','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'metadata'}; - } - public class AnalyticSnapshot extends Metadata { - public String type = 'AnalyticSnapshot'; - public String fullName; - public String description; - public String groupColumn; - public MetadataService.AnalyticSnapshotMapping[] mappings; - public String name; - public String runningUser; - public String sourceReport; - public String targetObject; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] groupColumn_type_info = new String[]{'groupColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mappings_type_info = new String[]{'mappings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] runningUser_type_info = new String[]{'runningUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sourceReport_type_info = new String[]{'sourceReport','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] targetObject_type_info = new String[]{'targetObject','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','groupColumn','mappings','name','runningUser','sourceReport','targetObject'}; - } - public class LookupFilter { - public Boolean active; - public String booleanFilter; - public String description; - public String errorMessage; - public MetadataService.FilterItem[] filterItems; - public String infoMessage; - public Boolean isOptional; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] filterItems_type_info = new String[]{'filterItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] infoMessage_type_info = new String[]{'infoMessage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isOptional_type_info = new String[]{'isOptional','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'active','booleanFilter','description','errorMessage','filterItems','infoMessage','isOptional'}; - } - public class ScontrolTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class ReportColumn { - public String[] aggregateTypes; - public String field; - public Boolean reverseColors; - public Boolean showChanges; - private String[] aggregateTypes_type_info = new String[]{'aggregateTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] reverseColors_type_info = new String[]{'reverseColors','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showChanges_type_info = new String[]{'showChanges','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'aggregateTypes','field','reverseColors','showChanges'}; - } - public class QuickAction extends Metadata { - public String type = 'QuickAction'; - public String fullName; - public String canvas; - public String description; - public MetadataService.FieldOverride[] fieldOverrides; - public Integer height; - public String icon; - public Boolean isProtected; - public String label; - public String page_x; - public MetadataService.QuickActionLayout quickActionLayout; - public String standardLabel; - public String targetObject; - public String targetParentField; - public String targetRecordType; - public String type_x; - public Integer width; - private String[] canvas_type_info = new String[]{'canvas','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fieldOverrides_type_info = new String[]{'fieldOverrides','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] icon_type_info = new String[]{'icon','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isProtected_type_info = new String[]{'isProtected','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] quickActionLayout_type_info = new String[]{'quickActionLayout','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] standardLabel_type_info = new String[]{'standardLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] targetObject_type_info = new String[]{'targetObject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] targetParentField_type_info = new String[]{'targetParentField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] targetRecordType_type_info = new String[]{'targetRecordType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'canvas','description','fieldOverrides','height','icon','isProtected','label','page_x','quickActionLayout','standardLabel','targetObject','targetParentField','targetRecordType','type_x','width'}; - } - public class DefaultShortcut { - public String action; - public Boolean active; - public String keyCommand; - private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] keyCommand_type_info = new String[]{'keyCommand','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'action','active','keyCommand'}; - } - public class ApexComponent extends MetadataWithContent { - public String type = 'ApexComponent'; - public String fullName; - public String content; - public Double apiVersion; - public String description; - public String label; - public MetadataService.PackageVersion[] packageVersions; - private String[] apiVersion_type_info = new String[]{'apiVersion','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] packageVersions_type_info = new String[]{'packageVersions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] content_type_info = new String[]{'content','http://www.w3.org/2001/XMLSchema','base64Binary','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'content', 'apiVersion','description','label','packageVersions'}; - } - public class updateMetadataResponse_element { - public MetadataService.SaveResult[] result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class BaseSharingRule extends Metadata { - public String type = 'BaseSharingRule'; - public String fullName; - public MetadataService.SharedTo sharedTo; - private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'sharedTo'}; - } - public class WorkflowKnowledgePublish extends WorkflowAction { - public String type = 'WorkflowKnowledgePublish'; - public String fullName; - public String action; - public String description; - public String label; - public String language; - public Boolean protected_x; - private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'action','description','label','language','protected_x'}; - } - public class FlexiPage extends Metadata { - public String type = 'FlexiPage'; - public String fullName; - public String description; - public MetadataService.FlexiPageRegion[] flexiPageRegions; - public String masterLabel; - public MetadataService.QuickActionList quickActionList; - public String type_x; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] flexiPageRegions_type_info = new String[]{'flexiPageRegions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] quickActionList_type_info = new String[]{'quickActionList','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','flexiPageRegions','masterLabel','quickActionList','type_x'}; - } - public class ConnectedAppSamlConfig { - public String acsUrl; - public String certificate; - public String encryptionCertificate; - public String encryptionType; - public String entityUrl; - public String issuer; - public String samlNameIdFormat; - public String samlSubjectCustomAttr; - public String samlSubjectType; - private String[] acsUrl_type_info = new String[]{'acsUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] certificate_type_info = new String[]{'certificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] encryptionCertificate_type_info = new String[]{'encryptionCertificate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] encryptionType_type_info = new String[]{'encryptionType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] entityUrl_type_info = new String[]{'entityUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] issuer_type_info = new String[]{'issuer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] samlNameIdFormat_type_info = new String[]{'samlNameIdFormat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] samlSubjectCustomAttr_type_info = new String[]{'samlSubjectCustomAttr','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] samlSubjectType_type_info = new String[]{'samlSubjectType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'acsUrl','certificate','encryptionCertificate','encryptionType','entityUrl','issuer','samlNameIdFormat','samlSubjectCustomAttr','samlSubjectType'}; - } - public class FlowWait { - public MetadataService.FlowConnector defaultConnector; - public String defaultConnectorLabel; - public MetadataService.FlowConnector faultConnector; - public MetadataService.FlowWaitEvent[] waitEvents; - private String[] defaultConnector_type_info = new String[]{'defaultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultConnectorLabel_type_info = new String[]{'defaultConnectorLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] waitEvents_type_info = new String[]{'waitEvents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'defaultConnector','defaultConnectorLabel','faultConnector','waitEvents'}; - } - public class createMetadata_element { - public MetadataService.Metadata[] metadata; - private String[] metadata_type_info = new String[]{'metadata','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'metadata'}; - } - public class Workflow extends Metadata { - public String type = 'Workflow'; - public String fullName; - public MetadataService.WorkflowAlert[] alerts; - public MetadataService.WorkflowFieldUpdate[] fieldUpdates; - public MetadataService.WorkflowFlowAction[] flowActions; - public MetadataService.WorkflowKnowledgePublish[] knowledgePublishes; - public MetadataService.WorkflowOutboundMessage[] outboundMessages; - public MetadataService.WorkflowRule[] rules; - public MetadataService.WorkflowSend[] send; - public MetadataService.WorkflowTask[] tasks; - private String[] alerts_type_info = new String[]{'alerts','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fieldUpdates_type_info = new String[]{'fieldUpdates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] flowActions_type_info = new String[]{'flowActions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] knowledgePublishes_type_info = new String[]{'knowledgePublishes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] outboundMessages_type_info = new String[]{'outboundMessages','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] rules_type_info = new String[]{'rules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] send_type_info = new String[]{'send','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] tasks_type_info = new String[]{'tasks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'alerts','fieldUpdates','flowActions','knowledgePublishes','outboundMessages','rules','send','tasks'}; - } - public class AddressSettings extends Metadata { - public String type = 'AddressSettings'; - public String fullName; - public MetadataService.CountriesAndStates countriesAndStates; - private String[] countriesAndStates_type_info = new String[]{'countriesAndStates','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'countriesAndStates'}; - } - public class FlowChoice { - public String choiceText; - public String dataType; - public MetadataService.FlowChoiceUserInput userInput; - public MetadataService.FlowElementReferenceOrValue value; - private String[] choiceText_type_info = new String[]{'choiceText','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] userInput_type_info = new String[]{'userInput','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'choiceText','dataType','userInput','value'}; - } - public class ProfileExternalDataSourceAccess { - public Boolean enabled; - public String externalDataSource; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] externalDataSource_type_info = new String[]{'externalDataSource','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enabled','externalDataSource'}; - } - public class FeedLayoutComponent { - public String componentType; - public Integer height; - public String page_x; - private String[] componentType_type_info = new String[]{'componentType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'componentType','height','page_x'}; - } - public class Territory2Settings extends Metadata { - public String type = 'Territory2Settings'; - public String fullName; - public String defaultAccountAccessLevel; - public String defaultCaseAccessLevel; - public String defaultContactAccessLevel; - public String defaultOpportunityAccessLevel; - private String[] defaultAccountAccessLevel_type_info = new String[]{'defaultAccountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultCaseAccessLevel_type_info = new String[]{'defaultCaseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultContactAccessLevel_type_info = new String[]{'defaultContactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultOpportunityAccessLevel_type_info = new String[]{'defaultOpportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'defaultAccountAccessLevel','defaultCaseAccessLevel','defaultContactAccessLevel','defaultOpportunityAccessLevel'}; - } - public class CallCenterItem { - public String label; - public String name; - public String value; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name','value'}; - } - public class ApprovalAction { - public MetadataService.WorkflowActionReference[] action; - private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'action'}; - } - public class FlowStep { - public MetadataService.FlowConnector[] connectors; - private String[] connectors_type_info = new String[]{'connectors','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'connectors'}; - } - public class ProfileObjectPermissions { - public Boolean allowCreate; - public Boolean allowDelete; - public Boolean allowEdit; - public Boolean allowRead; - public Boolean modifyAllRecords; - public String object_x; - public Boolean viewAllRecords; - private String[] allowCreate_type_info = new String[]{'allowCreate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] allowDelete_type_info = new String[]{'allowDelete','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] allowEdit_type_info = new String[]{'allowEdit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] allowRead_type_info = new String[]{'allowRead','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] modifyAllRecords_type_info = new String[]{'modifyAllRecords','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] viewAllRecords_type_info = new String[]{'viewAllRecords','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'allowCreate','allowDelete','allowEdit','allowRead','modifyAllRecords','object_x','viewAllRecords'}; - } - public class SecuritySettings extends Metadata { - public String type = 'SecuritySettings'; - public String fullName; - public MetadataService.NetworkAccess networkAccess; - public MetadataService.PasswordPolicies passwordPolicies; - public MetadataService.SessionSettings sessionSettings; - private String[] networkAccess_type_info = new String[]{'networkAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] passwordPolicies_type_info = new String[]{'passwordPolicies','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sessionSettings_type_info = new String[]{'sessionSettings','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'networkAccess','passwordPolicies','sessionSettings'}; - } - public class WorkflowTimeTrigger { - public MetadataService.WorkflowActionReference[] actions; - public String offsetFromField; - public String timeLength; - public String workflowTimeTriggerUnit; - private String[] actions_type_info = new String[]{'actions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] offsetFromField_type_info = new String[]{'offsetFromField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] timeLength_type_info = new String[]{'timeLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] workflowTimeTriggerUnit_type_info = new String[]{'workflowTimeTriggerUnit','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'actions','offsetFromField','timeLength','workflowTimeTriggerUnit'}; - } - public class retrieve_element { - public MetadataService.RetrieveRequest retrieveRequest; - private String[] retrieveRequest_type_info = new String[]{'retrieveRequest','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'retrieveRequest'}; - } - public class KnowledgeLanguage { - public Boolean active; - public String defaultAssignee; - public String defaultAssigneeType; - public String defaultReviewer; - public String defaultReviewerType; - public String name; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultAssignee_type_info = new String[]{'defaultAssignee','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultAssigneeType_type_info = new String[]{'defaultAssigneeType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultReviewer_type_info = new String[]{'defaultReviewer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultReviewerType_type_info = new String[]{'defaultReviewerType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'active','defaultAssignee','defaultAssigneeType','defaultReviewer','defaultReviewerType','name'}; - } - public class PermissionSetExternalDataSourceAccess { - public Boolean enabled; - public String externalDataSource; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] externalDataSource_type_info = new String[]{'externalDataSource','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enabled','externalDataSource'}; - } - public class DescribeMetadataObject { - public String[] childXmlNames; - public String directoryName; - public Boolean inFolder; - public Boolean metaFile; - public String suffix; - public String xmlName; - private String[] childXmlNames_type_info = new String[]{'childXmlNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] directoryName_type_info = new String[]{'directoryName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] inFolder_type_info = new String[]{'inFolder','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] metaFile_type_info = new String[]{'metaFile','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] suffix_type_info = new String[]{'suffix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] xmlName_type_info = new String[]{'xmlName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'childXmlNames','directoryName','inFolder','metaFile','suffix','xmlName'}; - } - public class LiveChatButtonSkills { - public String[] skill; - private String[] skill_type_info = new String[]{'skill','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'skill'}; - } - public class LayoutColumn { - public MetadataService.LayoutItem[] layoutItems; - public String reserved; - private String[] layoutItems_type_info = new String[]{'layoutItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] reserved_type_info = new String[]{'reserved','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'layoutItems','reserved'}; - } - public class PermissionSetTabSetting { - public String tab; - public String visibility; - private String[] tab_type_info = new String[]{'tab','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visibility_type_info = new String[]{'visibility','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'tab','visibility'}; - } - public class SkillUserAssignments { - public String[] user_x; - private String[] user_x_type_info = new String[]{'user','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'user_x'}; - } - public class PostTemplate extends Metadata { - public String type = 'PostTemplate'; - public String fullName; - public Boolean default_x; - public String description; - public String[] fields; - public String label; - private String[] default_x_type_info = new String[]{'default','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'default_x','description','fields','label'}; - } - public class RelatedContentItem { - public MetadataService.LayoutItem layoutItem; - private String[] layoutItem_type_info = new String[]{'layoutItem','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'layoutItem'}; - } - public class FieldValue { - public String name; - public String value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class AuthProvider extends Metadata { - public String type = 'AuthProvider'; - public String fullName; - public String authorizeUrl; - public String consumerKey; - public String consumerSecret; - public String defaultScopes; - public String errorUrl; - public String executionUser; - public String friendlyName; - public String iconUrl; - public String idTokenIssuer; - public Boolean includeOrgIdInIdentifier; - public String portal; - public String providerType; - public String registrationHandler; - public Boolean sendAccessTokenInHeader; - public Boolean sendClientCredentialsInHeader; - public String tokenUrl; - public String userInfoUrl; - private String[] authorizeUrl_type_info = new String[]{'authorizeUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] consumerKey_type_info = new String[]{'consumerKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] consumerSecret_type_info = new String[]{'consumerSecret','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] defaultScopes_type_info = new String[]{'defaultScopes','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] errorUrl_type_info = new String[]{'errorUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] executionUser_type_info = new String[]{'executionUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] friendlyName_type_info = new String[]{'friendlyName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] iconUrl_type_info = new String[]{'iconUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] idTokenIssuer_type_info = new String[]{'idTokenIssuer','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] includeOrgIdInIdentifier_type_info = new String[]{'includeOrgIdInIdentifier','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] portal_type_info = new String[]{'portal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] providerType_type_info = new String[]{'providerType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] registrationHandler_type_info = new String[]{'registrationHandler','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sendAccessTokenInHeader_type_info = new String[]{'sendAccessTokenInHeader','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sendClientCredentialsInHeader_type_info = new String[]{'sendClientCredentialsInHeader','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] tokenUrl_type_info = new String[]{'tokenUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] userInfoUrl_type_info = new String[]{'userInfoUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'authorizeUrl','consumerKey','consumerSecret','defaultScopes','errorUrl','executionUser','friendlyName','iconUrl','idTokenIssuer','includeOrgIdInIdentifier','portal','providerType','registrationHandler','sendAccessTokenInHeader','sendClientCredentialsInHeader','tokenUrl','userInfoUrl'}; - } - public class ReputationLevel { - public MetadataService.ReputationBranding branding; - public String label; - public Double lowerThreshold; - private String[] branding_type_info = new String[]{'branding','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lowerThreshold_type_info = new String[]{'lowerThreshold','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'branding','label','lowerThreshold'}; - } - public class WorkflowTask extends WorkflowAction { - public String type = 'WorkflowTask'; - public String fullName; - public String assignedTo; - public String assignedToType; - public String description; - public Integer dueDateOffset; - public Boolean notifyAssignee; - public String offsetFromField; - public String priority; - public Boolean protected_x; - public String status; - public String subject; - private String[] assignedTo_type_info = new String[]{'assignedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assignedToType_type_info = new String[]{'assignedToType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] dueDateOffset_type_info = new String[]{'dueDateOffset','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] notifyAssignee_type_info = new String[]{'notifyAssignee','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] offsetFromField_type_info = new String[]{'offsetFromField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] priority_type_info = new String[]{'priority','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] status_type_info = new String[]{'status','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] subject_type_info = new String[]{'subject','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'assignedTo','assignedToType','description','dueDateOffset','notifyAssignee','offsetFromField','priority','protected_x','status','subject'}; - } - public class NextAutomatedApprover { - public Boolean useApproverFieldOfRecordOwner; - public String userHierarchyField; - private String[] useApproverFieldOfRecordOwner_type_info = new String[]{'useApproverFieldOfRecordOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] userHierarchyField_type_info = new String[]{'userHierarchyField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'useApproverFieldOfRecordOwner','userHierarchyField'}; - } - public class ChannelLayout { - public String[] enabledChannels; - public String label; - public MetadataService.ChannelLayoutItem[] layoutItems; - private String[] enabledChannels_type_info = new String[]{'enabledChannels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] layoutItems_type_info = new String[]{'layoutItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enabledChannels','label','layoutItems'}; - } - public class readMetadata_element { - public String type_x; - public String[] fullNames; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fullNames_type_info = new String[]{'fullNames','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'type_x','fullNames'}; - } - public class ReportAggregateReference { - public String aggregate; - private String[] aggregate_type_info = new String[]{'aggregate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'aggregate'}; - } - public interface IReadResult { - MetadataService.Metadata[] getRecords(); - } - public interface IReadResponseElement { - IReadResult getResult(); - } - public class ReadWorkflowRuleResult implements IReadResult { - public MetadataService.WorkflowRule[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowRuleResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowRuleResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadSamlSsoConfigResult implements IReadResult { - public MetadataService.SamlSsoConfig[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readSamlSsoConfigResponse_element implements IReadResponseElement { - public MetadataService.ReadSamlSsoConfigResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomLabelResult implements IReadResult { - public MetadataService.CustomLabel[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomLabelResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomLabelResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadBusinessHoursEntryResult implements IReadResult { - public MetadataService.BusinessHoursEntry[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readBusinessHoursEntryResponse_element implements IReadResponseElement { - public MetadataService.ReadBusinessHoursEntryResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadMobileSettingsResult implements IReadResult { - public MetadataService.MobileSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readMobileSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadMobileSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadChatterAnswersSettingsResult implements IReadResult { - public MetadataService.ChatterAnswersSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readChatterAnswersSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadChatterAnswersSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadSharingRulesResult implements IReadResult { - public MetadataService.SharingRules[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readSharingRulesResponse_element implements IReadResponseElement { - public MetadataService.ReadSharingRulesResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadPortalResult implements IReadResult { - public MetadataService.Portal[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readPortalResponse_element implements IReadResponseElement { - public MetadataService.ReadPortalResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadSkillResult implements IReadResult { - public MetadataService.Skill[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readSkillResponse_element implements IReadResponseElement { - public MetadataService.ReadSkillResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadEscalationRulesResult implements IReadResult { - public MetadataService.EscalationRules[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readEscalationRulesResponse_element implements IReadResponseElement { - public MetadataService.ReadEscalationRulesResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWorkflowAlertResult implements IReadResult { - public MetadataService.WorkflowAlert[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowAlertResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowAlertResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomDataTypeResult implements IReadResult { - public MetadataService.CustomDataType[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomDataTypeResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomDataTypeResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadExternalDataSourceResult implements IReadResult { - public MetadataService.ExternalDataSource[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readExternalDataSourceResponse_element implements IReadResponseElement { - public MetadataService.ReadExternalDataSourceResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadXOrgHubResult implements IReadResult { - public MetadataService.XOrgHub[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readXOrgHubResponse_element implements IReadResponseElement { - public MetadataService.ReadXOrgHubResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadEntitlementProcessResult implements IReadResult { - public MetadataService.EntitlementProcess[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readEntitlementProcessResponse_element implements IReadResponseElement { - public MetadataService.ReadEntitlementProcessResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadRecordTypeResult implements IReadResult { - public MetadataService.RecordType[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readRecordTypeResponse_element implements IReadResponseElement { - public MetadataService.ReadRecordTypeResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadScontrolResult implements IReadResult { - public MetadataService.Scontrol[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readScontrolResponse_element implements IReadResponseElement { - public MetadataService.ReadScontrolResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadDataCategoryGroupResult implements IReadResult { - public MetadataService.DataCategoryGroup[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readDataCategoryGroupResponse_element implements IReadResponseElement { - public MetadataService.ReadDataCategoryGroupResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadValidationRuleResult implements IReadResult { - public MetadataService.ValidationRule[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readValidationRuleResponse_element implements IReadResponseElement { - public MetadataService.ReadValidationRuleResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAuraDefinitionBundleResult implements IReadResult { - public MetadataService.AuraDefinitionBundle[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAuraDefinitionBundleResponse_element implements IReadResponseElement { - public MetadataService.ReadAuraDefinitionBundleResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadProfileResult implements IReadResult { - public MetadataService.Profile[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readProfileResponse_element implements IReadResponseElement { - public MetadataService.ReadProfileResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadIdeasSettingsResult implements IReadResult { - public MetadataService.IdeasSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readIdeasSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadIdeasSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadConnectedAppResult implements IReadResult { - public MetadataService.ConnectedApp[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readConnectedAppResponse_element implements IReadResponseElement { - public MetadataService.ReadConnectedAppResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadApexPageResult implements IReadResult { - public MetadataService.ApexPage[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readApexPageResponse_element implements IReadResponseElement { - public MetadataService.ReadApexPageResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadLiveAgentSettingsResult implements IReadResult { - public MetadataService.LiveAgentSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readLiveAgentSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadLiveAgentSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadProductSettingsResult implements IReadResult { - public MetadataService.ProductSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readProductSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadProductSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadOpportunitySettingsResult implements IReadResult { - public MetadataService.OpportunitySettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readOpportunitySettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadOpportunitySettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadLiveChatDeploymentResult implements IReadResult { - public MetadataService.LiveChatDeployment[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readLiveChatDeploymentResponse_element implements IReadResponseElement { - public MetadataService.ReadLiveChatDeploymentResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadActivitiesSettingsResult implements IReadResult { - public MetadataService.ActivitiesSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readActivitiesSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadActivitiesSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadLayoutResult implements IReadResult { - public MetadataService.Layout[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readLayoutResponse_element implements IReadResponseElement { - public MetadataService.ReadLayoutResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWebLinkResult implements IReadResult { - public MetadataService.WebLink[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWebLinkResponse_element implements IReadResponseElement { - public MetadataService.ReadWebLinkResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomPermissionResult implements IReadResult { - public MetadataService.CustomPermission[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomPermissionResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomPermissionResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadSiteDotComResult implements IReadResult { - public MetadataService.SiteDotCom[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readSiteDotComResponse_element implements IReadResponseElement { - public MetadataService.ReadSiteDotComResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCompanySettingsResult implements IReadResult { - public MetadataService.CompanySettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCompanySettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadCompanySettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadHomePageLayoutResult implements IReadResult { - public MetadataService.HomePageLayout[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readHomePageLayoutResponse_element implements IReadResponseElement { - public MetadataService.ReadHomePageLayoutResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadDashboardResult implements IReadResult { - public MetadataService.Dashboard[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readDashboardResponse_element implements IReadResponseElement { - public MetadataService.ReadDashboardResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAssignmentRulesResult implements IReadResult { - public MetadataService.AssignmentRules[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAssignmentRulesResponse_element implements IReadResponseElement { - public MetadataService.ReadAssignmentRulesResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadEmailFolderResult implements IReadResult { - public MetadataService.EmailFolder[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readEmailFolderResponse_element implements IReadResponseElement { - public MetadataService.ReadEmailFolderResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomMetadataResult implements IReadResult { - public MetadataService.CustomMetadata[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomMetadataResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomMetadataResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAnalyticSnapshotResult implements IReadResult { - public MetadataService.AnalyticSnapshot[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAnalyticSnapshotResponse_element implements IReadResponseElement { - public MetadataService.ReadAnalyticSnapshotResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadVisualizationPluginResult implements IReadResult { - public MetadataService.VisualizationPlugin[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readVisualizationPluginResponse_element implements IReadResponseElement { - public MetadataService.ReadVisualizationPluginResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadEscalationRuleResult implements IReadResult { - public MetadataService.EscalationRule[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readEscalationRuleResponse_element implements IReadResponseElement { - public MetadataService.ReadEscalationRuleResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomSiteResult implements IReadResult { - public MetadataService.CustomSite[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomSiteResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomSiteResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadMarketingActionSettingsResult implements IReadResult { - public MetadataService.MarketingActionSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readMarketingActionSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadMarketingActionSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadGroupResult implements IReadResult { - public MetadataService.Group_x[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readGroupResponse_element implements IReadResponseElement { - public MetadataService.ReadGroupResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadReportTypeResult implements IReadResult { - public MetadataService.ReportType[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readReportTypeResponse_element implements IReadResponseElement { - public MetadataService.ReadReportTypeResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadQuickActionResult implements IReadResult { - public MetadataService.QuickAction[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readQuickActionResponse_element implements IReadResponseElement { - public MetadataService.ReadQuickActionResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomPageWebLinkResult implements IReadResult { - public MetadataService.CustomPageWebLink[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomPageWebLinkResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomPageWebLinkResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadApexComponentResult implements IReadResult { - public MetadataService.ApexComponent[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readApexComponentResponse_element implements IReadResponseElement { - public MetadataService.ReadApexComponentResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadBaseSharingRuleResult implements IReadResult { - public MetadataService.BaseSharingRule[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readBaseSharingRuleResponse_element implements IReadResponseElement { - public MetadataService.ReadBaseSharingRuleResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWorkflowKnowledgePublishResult implements IReadResult { - public MetadataService.WorkflowKnowledgePublish[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowKnowledgePublishResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowKnowledgePublishResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadEntitlementTemplateResult implements IReadResult { - public MetadataService.EntitlementTemplate[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readEntitlementTemplateResponse_element implements IReadResponseElement { - public MetadataService.ReadEntitlementTemplateResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadFlexiPageResult implements IReadResult { - public MetadataService.FlexiPage[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readFlexiPageResponse_element implements IReadResponseElement { - public MetadataService.ReadFlexiPageResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWorkflowActionResult implements IReadResult { - public MetadataService.WorkflowAction[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowActionResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowActionResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWorkflowResult implements IReadResult { - public MetadataService.Workflow[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAddressSettingsResult implements IReadResult { - public MetadataService.AddressSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAddressSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadAddressSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadContractSettingsResult implements IReadResult { - public MetadataService.ContractSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readContractSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadContractSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadDashboardFolderResult implements IReadResult { - public MetadataService.DashboardFolder[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readDashboardFolderResponse_element implements IReadResponseElement { - public MetadataService.ReadDashboardFolderResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadTerritory2SettingsResult implements IReadResult { - public MetadataService.Territory2Settings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readTerritory2SettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadTerritory2SettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomObjectResult implements IReadResult { - public MetadataService.CustomObject[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomObjectResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomObjectResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadTranslationsResult implements IReadResult { - public MetadataService.Translations[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readTranslationsResponse_element implements IReadResponseElement { - public MetadataService.ReadTranslationsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadRoleOrTerritoryResult implements IReadResult { - public MetadataService.RoleOrTerritory[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readRoleOrTerritoryResponse_element implements IReadResponseElement { - public MetadataService.ReadRoleOrTerritoryResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadApexTriggerResult implements IReadResult { - public MetadataService.ApexTrigger[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readApexTriggerResponse_element implements IReadResponseElement { - public MetadataService.ReadApexTriggerResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomLabelsResult implements IReadResult { - public MetadataService.CustomLabels[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomLabelsResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomLabelsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadSecuritySettingsResult implements IReadResult { - public MetadataService.SecuritySettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readSecuritySettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadSecuritySettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCallCenterResult implements IReadResult { - public MetadataService.CallCenter[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCallCenterResponse_element implements IReadResponseElement { - public MetadataService.ReadCallCenterResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadPicklistValueResult implements IReadResult { - public MetadataService.PicklistValue[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readPicklistValueResponse_element implements IReadResponseElement { - public MetadataService.ReadPicklistValueResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadRemoteSiteSettingResult implements IReadResult { - public MetadataService.RemoteSiteSetting[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readRemoteSiteSettingResponse_element implements IReadResponseElement { - public MetadataService.ReadRemoteSiteSettingResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWorkflowSendResult implements IReadResult { - public MetadataService.WorkflowSend[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowSendResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowSendResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadTerritory2TypeResult implements IReadResult { - public MetadataService.Territory2Type[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readTerritory2TypeResponse_element implements IReadResponseElement { - public MetadataService.ReadTerritory2TypeResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadQuoteSettingsResult implements IReadResult { - public MetadataService.QuoteSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readQuoteSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadQuoteSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadSynonymDictionaryResult implements IReadResult { - public MetadataService.SynonymDictionary[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readSynonymDictionaryResponse_element implements IReadResponseElement { - public MetadataService.ReadSynonymDictionaryResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWorkflowOutboundMessageResult implements IReadResult { - public MetadataService.WorkflowOutboundMessage[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowOutboundMessageResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowOutboundMessageResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadPostTemplateResult implements IReadResult { - public MetadataService.PostTemplate[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readPostTemplateResponse_element implements IReadResponseElement { - public MetadataService.ReadPostTemplateResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWorkflowFieldUpdateResult implements IReadResult { - public MetadataService.WorkflowFieldUpdate[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowFieldUpdateResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowFieldUpdateResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomTabResult implements IReadResult { - public MetadataService.CustomTab[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomTabResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomTabResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadLetterheadResult implements IReadResult { - public MetadataService.Letterhead[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readLetterheadResponse_element implements IReadResponseElement { - public MetadataService.ReadLetterheadResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadInstalledPackageResult implements IReadResult { - public MetadataService.InstalledPackage[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readInstalledPackageResponse_element implements IReadResponseElement { - public MetadataService.ReadInstalledPackageResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadQueueResult implements IReadResult { - public MetadataService.Queue[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readQueueResponse_element implements IReadResponseElement { - public MetadataService.ReadQueueResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAuthProviderResult implements IReadResult { - public MetadataService.AuthProvider[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAuthProviderResponse_element implements IReadResponseElement { - public MetadataService.ReadAuthProviderResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadEntitlementSettingsResult implements IReadResult { - public MetadataService.EntitlementSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readEntitlementSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadEntitlementSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadDocumentFolderResult implements IReadResult { - public MetadataService.DocumentFolder[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readDocumentFolderResponse_element implements IReadResponseElement { - public MetadataService.ReadDocumentFolderResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomFieldResult implements IReadResult { - public MetadataService.CustomField[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomFieldResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomFieldResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadWorkflowTaskResult implements IReadResult { - public MetadataService.WorkflowTask[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readWorkflowTaskResponse_element implements IReadResponseElement { - public MetadataService.ReadWorkflowTaskResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCorsWhitelistOriginResult implements IReadResult { - public MetadataService.CorsWhitelistOrigin[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCorsWhitelistOriginResponse_element implements IReadResponseElement { - public MetadataService.ReadCorsWhitelistOriginResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadStaticResourceResult implements IReadResult { - public MetadataService.StaticResource[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readStaticResourceResponse_element implements IReadResponseElement { - public MetadataService.ReadStaticResourceResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadEmailTemplateResult implements IReadResult { - public MetadataService.EmailTemplate[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readEmailTemplateResponse_element implements IReadResponseElement { - public MetadataService.ReadEmailTemplateResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadSharingReasonResult implements IReadResult { - public MetadataService.SharingReason[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readSharingReasonResponse_element implements IReadResponseElement { - public MetadataService.ReadSharingReasonResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadLiveChatButtonResult implements IReadResult { - public MetadataService.LiveChatButton[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readLiveChatButtonResponse_element implements IReadResponseElement { - public MetadataService.ReadLiveChatButtonResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadNetworkResult implements IReadResult { - public MetadataService.Network[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readNetworkResponse_element implements IReadResponseElement { - public MetadataService.ReadNetworkResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadApprovalProcessResult implements IReadResult { - public MetadataService.ApprovalProcess[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readApprovalProcessResponse_element implements IReadResponseElement { - public MetadataService.ReadApprovalProcessResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadMilestoneTypeResult implements IReadResult { - public MetadataService.MilestoneType[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readMilestoneTypeResponse_element implements IReadResponseElement { - public MetadataService.ReadMilestoneTypeResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAssignmentRuleResult implements IReadResult { - public MetadataService.AssignmentRule[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAssignmentRuleResponse_element implements IReadResponseElement { - public MetadataService.ReadAssignmentRuleResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCompactLayoutResult implements IReadResult { - public MetadataService.CompactLayout[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCompactLayoutResponse_element implements IReadResponseElement { - public MetadataService.ReadCompactLayoutResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadLiveChatAgentConfigResult implements IReadResult { - public MetadataService.LiveChatAgentConfig[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readLiveChatAgentConfigResponse_element implements IReadResponseElement { - public MetadataService.ReadLiveChatAgentConfigResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAccountSettingsResult implements IReadResult { - public MetadataService.AccountSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAccountSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadAccountSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadBusinessProcessResult implements IReadResult { - public MetadataService.BusinessProcess[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readBusinessProcessResponse_element implements IReadResponseElement { - public MetadataService.ReadBusinessProcessResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAutoResponseRuleResult implements IReadResult { - public MetadataService.AutoResponseRule[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAutoResponseRuleResponse_element implements IReadResponseElement { - public MetadataService.ReadAutoResponseRuleResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadFlowResult implements IReadResult { - public MetadataService.Flow[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readFlowResponse_element implements IReadResponseElement { - public MetadataService.ReadFlowResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadPermissionSetResult implements IReadResult { - public MetadataService.PermissionSet[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readPermissionSetResponse_element implements IReadResponseElement { - public MetadataService.ReadPermissionSetResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadManagedTopicsResult implements IReadResult { - public MetadataService.ManagedTopics[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readManagedTopicsResponse_element implements IReadResponseElement { - public MetadataService.ReadManagedTopicsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadForecastingSettingsResult implements IReadResult { - public MetadataService.ForecastingSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readForecastingSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadForecastingSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadBusinessHoursSettingsResult implements IReadResult { - public MetadataService.BusinessHoursSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readBusinessHoursSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadBusinessHoursSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadReportResult implements IReadResult { - public MetadataService.Report[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readReportResponse_element implements IReadResponseElement { - public MetadataService.ReadReportResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAppMenuResult implements IReadResult { - public MetadataService.AppMenu[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAppMenuResponse_element implements IReadResponseElement { - public MetadataService.ReadAppMenuResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadListViewResult implements IReadResult { - public MetadataService.ListView[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readListViewResponse_element implements IReadResponseElement { - public MetadataService.ReadListViewResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadOrderSettingsResult implements IReadResult { - public MetadataService.OrderSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readOrderSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadOrderSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomObjectTranslationResult implements IReadResult { - public MetadataService.CustomObjectTranslation[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomObjectTranslationResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomObjectTranslationResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadKnowledgeSettingsResult implements IReadResult { - public MetadataService.KnowledgeSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readKnowledgeSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadKnowledgeSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomApplicationResult implements IReadResult { - public MetadataService.CustomApplication[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomApplicationResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomApplicationResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCaseSettingsResult implements IReadResult { - public MetadataService.CaseSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCaseSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadCaseSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadNameSettingsResult implements IReadResult { - public MetadataService.NameSettings[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readNameSettingsResponse_element implements IReadResponseElement { - public MetadataService.ReadNameSettingsResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadApexClassResult implements IReadResult { - public MetadataService.ApexClass[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readApexClassResponse_element implements IReadResponseElement { - public MetadataService.ReadApexClassResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadPackageResult implements IReadResult { - public MetadataService.Package_x[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readPackageResponse_element implements IReadResponseElement { - public MetadataService.ReadPackageResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadTerritory2Result implements IReadResult { - public MetadataService.Territory2[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readTerritory2Response_element implements IReadResponseElement { - public MetadataService.ReadTerritory2Result result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCommunityResult implements IReadResult { - public MetadataService.Community[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCommunityResponse_element implements IReadResponseElement { - public MetadataService.ReadCommunityResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadDocumentResult implements IReadResult { - public MetadataService.Document[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readDocumentResponse_element implements IReadResponseElement { - public MetadataService.ReadDocumentResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadAutoResponseRulesResult implements IReadResult { - public MetadataService.AutoResponseRules[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readAutoResponseRulesResponse_element implements IReadResponseElement { - public MetadataService.ReadAutoResponseRulesResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadFolderResult implements IReadResult { - public MetadataService.Folder[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readFolderResponse_element implements IReadResponseElement { - public MetadataService.ReadFolderResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadTerritory2ModelResult implements IReadResult { - public MetadataService.Territory2Model[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readTerritory2ModelResponse_element implements IReadResponseElement { - public MetadataService.ReadTerritory2ModelResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadReportFolderResult implements IReadResult { - public MetadataService.ReportFolder[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readReportFolderResponse_element implements IReadResponseElement { - public MetadataService.ReadReportFolderResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadCustomApplicationComponentResult implements IReadResult { - public MetadataService.CustomApplicationComponent[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readCustomApplicationComponentResponse_element implements IReadResponseElement { - public MetadataService.ReadCustomApplicationComponentResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadFieldSetResult implements IReadResult { - public MetadataService.FieldSet[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readFieldSetResponse_element implements IReadResponseElement { - public MetadataService.ReadFieldSetResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadSharingSetResult implements IReadResult { - public MetadataService.SharingSet[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readSharingSetResponse_element implements IReadResponseElement { - public MetadataService.ReadSharingSetResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadHomePageComponentResult implements IReadResult { - public MetadataService.HomePageComponent[] records; - public MetadataService.Metadata[] getRecords() { return records; } - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class readHomePageComponentResponse_element implements IReadResponseElement { - public MetadataService.ReadHomePageComponentResult result; - public IReadResult getResult() { return result; } - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReadResult { - public MetadataService.Metadata[] records; - private String[] records_type_info = new String[]{'records','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'records'}; - } - public class ApprovalProcess extends Metadata { - public String type = 'ApprovalProcess'; - public String fullName; - public Boolean active; - public Boolean allowRecall; - public MetadataService.ApprovalSubmitter[] allowedSubmitters; - public MetadataService.ApprovalPageField approvalPageFields; - public MetadataService.ApprovalStep[] approvalStep; - public String description; - public String emailTemplate; - public Boolean enableMobileDeviceAccess; - public MetadataService.ApprovalEntryCriteria entryCriteria; - public MetadataService.ApprovalAction finalApprovalActions; - public Boolean finalApprovalRecordLock; - public MetadataService.ApprovalAction finalRejectionActions; - public Boolean finalRejectionRecordLock; - public MetadataService.ApprovalAction initialSubmissionActions; - public String label; - public MetadataService.NextAutomatedApprover nextAutomatedApprover; - public String postTemplate; - public MetadataService.ApprovalAction recallActions; - public String recordEditability; - public Boolean showApprovalHistory; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] allowRecall_type_info = new String[]{'allowRecall','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] allowedSubmitters_type_info = new String[]{'allowedSubmitters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] approvalPageFields_type_info = new String[]{'approvalPageFields','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] approvalStep_type_info = new String[]{'approvalStep','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailTemplate_type_info = new String[]{'emailTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableMobileDeviceAccess_type_info = new String[]{'enableMobileDeviceAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] entryCriteria_type_info = new String[]{'entryCriteria','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] finalApprovalActions_type_info = new String[]{'finalApprovalActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] finalApprovalRecordLock_type_info = new String[]{'finalApprovalRecordLock','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] finalRejectionActions_type_info = new String[]{'finalRejectionActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] finalRejectionRecordLock_type_info = new String[]{'finalRejectionRecordLock','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] initialSubmissionActions_type_info = new String[]{'initialSubmissionActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] nextAutomatedApprover_type_info = new String[]{'nextAutomatedApprover','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] postTemplate_type_info = new String[]{'postTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recallActions_type_info = new String[]{'recallActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recordEditability_type_info = new String[]{'recordEditability','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] showApprovalHistory_type_info = new String[]{'showApprovalHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','allowRecall','allowedSubmitters','approvalPageFields','approvalStep','description','emailTemplate','enableMobileDeviceAccess','entryCriteria','finalApprovalActions','finalApprovalRecordLock','finalRejectionActions','finalRejectionRecordLock','initialSubmissionActions','label','nextAutomatedApprover','postTemplate','recallActions','recordEditability','showApprovalHistory'}; - } - public class MilestoneType extends Metadata { - public String type = 'MilestoneType'; - public String fullName; - public String description; - public String recurrenceType; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recurrenceType_type_info = new String[]{'recurrenceType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'description','recurrenceType'}; - } - public class FileProperties { - public String createdById; - public String createdByName; - public DateTime createdDate; - public String fileName; - public String fullName; - public String id; - public String lastModifiedById; - public String lastModifiedByName; - public DateTime lastModifiedDate; - public String manageableState; - public String namespacePrefix; - public String type_x; - private String[] createdById_type_info = new String[]{'createdById','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] createdByName_type_info = new String[]{'createdByName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] createdDate_type_info = new String[]{'createdDate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fileName_type_info = new String[]{'fileName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] lastModifiedById_type_info = new String[]{'lastModifiedById','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] lastModifiedByName_type_info = new String[]{'lastModifiedByName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] lastModifiedDate_type_info = new String[]{'lastModifiedDate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] manageableState_type_info = new String[]{'manageableState','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] namespacePrefix_type_info = new String[]{'namespacePrefix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'createdById','createdByName','createdDate','fileName','fullName','id','lastModifiedById','lastModifiedByName','lastModifiedDate','manageableState','namespacePrefix','type_x'}; - } - public class UserMembershipSharingRule { - public String description; - public String name; - public String userAccessLevel; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] userAccessLevel_type_info = new String[]{'userAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','name','userAccessLevel'}; - } - public class QuickActionLayout { - public String layoutSectionStyle; - public MetadataService.QuickActionLayoutColumn[] quickActionLayoutColumns; - private String[] layoutSectionStyle_type_info = new String[]{'layoutSectionStyle','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] quickActionLayoutColumns_type_info = new String[]{'quickActionLayoutColumns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'layoutSectionStyle','quickActionLayoutColumns'}; - } - public class Flow extends Metadata { - public String type = 'Flow'; - public String fullName; - public MetadataService.FlowActionCall[] actionCalls; - public MetadataService.FlowApexPluginCall[] apexPluginCalls; - public MetadataService.FlowAssignment[] assignments; - public MetadataService.FlowChoice[] choices; - public MetadataService.FlowConstant[] constants; - public MetadataService.FlowDecision[] decisions; - public String description; - public MetadataService.FlowDynamicChoiceSet[] dynamicChoiceSets; - public MetadataService.FlowFormula[] formulas; - public String label; - public MetadataService.FlowLoop[] loops; - public MetadataService.FlowMetadataValue[] processMetadataValues; - public String processType; - public MetadataService.FlowRecordCreate[] recordCreates; - public MetadataService.FlowRecordDelete[] recordDeletes; - public MetadataService.FlowRecordLookup[] recordLookups; - public MetadataService.FlowRecordUpdate[] recordUpdates; - public MetadataService.FlowScreen[] screens; - public String startElementReference; - public MetadataService.FlowStep[] steps; - public MetadataService.FlowSubflow[] subflows; - public MetadataService.FlowTextTemplate[] textTemplates; - public MetadataService.FlowVariable[] variables; - public MetadataService.FlowWait[] waits; - private String[] actionCalls_type_info = new String[]{'actionCalls','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apexPluginCalls_type_info = new String[]{'apexPluginCalls','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] assignments_type_info = new String[]{'assignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] choices_type_info = new String[]{'choices','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] constants_type_info = new String[]{'constants','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] decisions_type_info = new String[]{'decisions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] dynamicChoiceSets_type_info = new String[]{'dynamicChoiceSets','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] formulas_type_info = new String[]{'formulas','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] loops_type_info = new String[]{'loops','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] processMetadataValues_type_info = new String[]{'processMetadataValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] processType_type_info = new String[]{'processType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recordCreates_type_info = new String[]{'recordCreates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] recordDeletes_type_info = new String[]{'recordDeletes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] recordLookups_type_info = new String[]{'recordLookups','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] recordUpdates_type_info = new String[]{'recordUpdates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] screens_type_info = new String[]{'screens','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] startElementReference_type_info = new String[]{'startElementReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] steps_type_info = new String[]{'steps','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] subflows_type_info = new String[]{'subflows','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] textTemplates_type_info = new String[]{'textTemplates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] variables_type_info = new String[]{'variables','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] waits_type_info = new String[]{'waits','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'actionCalls','apexPluginCalls','assignments','choices','constants','decisions','description','dynamicChoiceSets','formulas','label','loops','processMetadataValues','processType','recordCreates','recordDeletes','recordLookups','recordUpdates','screens','startElementReference','steps','subflows','textTemplates','variables','waits'}; - } - public class AutoResponseRule extends Metadata { - public String type = 'AutoResponseRule'; - public String fullName; - public Boolean active; - public MetadataService.RuleEntry[] ruleEntry; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] ruleEntry_type_info = new String[]{'ruleEntry','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','ruleEntry'}; - } - public class PermissionSetObjectPermissions { - public Boolean allowCreate; - public Boolean allowDelete; - public Boolean allowEdit; - public Boolean allowRead; - public Boolean modifyAllRecords; - public String object_x; - public Boolean viewAllRecords; - private String[] allowCreate_type_info = new String[]{'allowCreate','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] allowDelete_type_info = new String[]{'allowDelete','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] allowEdit_type_info = new String[]{'allowEdit','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] allowRead_type_info = new String[]{'allowRead','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] modifyAllRecords_type_info = new String[]{'modifyAllRecords','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] viewAllRecords_type_info = new String[]{'viewAllRecords','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'allowCreate','allowDelete','allowEdit','allowRead','modifyAllRecords','object_x','viewAllRecords'}; - } - public class ReportCrossFilter { - public MetadataService.ReportFilterItem[] criteriaItems; - public String operation; - public String primaryTableColumn; - public String relatedTable; - public String relatedTableJoinColumn; - private String[] criteriaItems_type_info = new String[]{'criteriaItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] operation_type_info = new String[]{'operation','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] primaryTableColumn_type_info = new String[]{'primaryTableColumn','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] relatedTable_type_info = new String[]{'relatedTable','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] relatedTableJoinColumn_type_info = new String[]{'relatedTableJoinColumn','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaItems','operation','primaryTableColumn','relatedTable','relatedTableJoinColumn'}; - } - public class BusinessHoursSettings extends Metadata { - public String type = 'BusinessHoursSettings'; - public String fullName; - public MetadataService.BusinessHoursEntry[] businessHours; - public MetadataService.Holiday[] holidays; - private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] holidays_type_info = new String[]{'holidays','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'businessHours','holidays'}; - } - public class FlowWaitEventOutputParameter { - public String assignToReference; - public String name; - private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignToReference','name'}; - } - public class Report extends Metadata { - public String type = 'Report'; - public String fullName; - public MetadataService.ReportAggregate[] aggregates; - public MetadataService.Report[] block; - public MetadataService.ReportBlockInfo blockInfo; - public MetadataService.ReportBucketField[] buckets; - public MetadataService.ReportChart chart; - public MetadataService.ReportColorRange[] colorRanges; - public MetadataService.ReportColumn[] columns; - public MetadataService.ReportCrossFilter[] crossFilters; - public String currency_x; - public MetadataService.ReportDataCategoryFilter[] dataCategoryFilters; - public String description; - public String division; - public MetadataService.ReportFilter filter; - public String format; - public MetadataService.ReportGrouping[] groupingsAcross; - public MetadataService.ReportGrouping[] groupingsDown; - public MetadataService.ReportHistoricalSelector historicalSelector; - public String name; - public MetadataService.ReportParam[] params; - public String reportType; - public String roleHierarchyFilter; - public Integer rowLimit; - public String scope; - public Boolean showCurrentDate; - public Boolean showDetails; - public String sortColumn; - public String sortOrder; - public String territoryHierarchyFilter; - public MetadataService.ReportTimeFrameFilter timeFrameFilter; - public String userFilter; - private String[] aggregates_type_info = new String[]{'aggregates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] block_type_info = new String[]{'block','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] blockInfo_type_info = new String[]{'blockInfo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] buckets_type_info = new String[]{'buckets','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] chart_type_info = new String[]{'chart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] colorRanges_type_info = new String[]{'colorRanges','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] columns_type_info = new String[]{'columns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] crossFilters_type_info = new String[]{'crossFilters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] currency_x_type_info = new String[]{'currency','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] dataCategoryFilters_type_info = new String[]{'dataCategoryFilters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] division_type_info = new String[]{'division','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] filter_type_info = new String[]{'filter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] format_type_info = new String[]{'format','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] groupingsAcross_type_info = new String[]{'groupingsAcross','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] groupingsDown_type_info = new String[]{'groupingsDown','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] historicalSelector_type_info = new String[]{'historicalSelector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] params_type_info = new String[]{'params','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] reportType_type_info = new String[]{'reportType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] roleHierarchyFilter_type_info = new String[]{'roleHierarchyFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] rowLimit_type_info = new String[]{'rowLimit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scope_type_info = new String[]{'scope','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showCurrentDate_type_info = new String[]{'showCurrentDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showDetails_type_info = new String[]{'showDetails','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortColumn_type_info = new String[]{'sortColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] territoryHierarchyFilter_type_info = new String[]{'territoryHierarchyFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] timeFrameFilter_type_info = new String[]{'timeFrameFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] userFilter_type_info = new String[]{'userFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'aggregates','block','blockInfo','buckets','chart','colorRanges','columns','crossFilters','currency_x','dataCategoryFilters','description','division','filter','format','groupingsAcross','groupingsDown','historicalSelector','name','params','reportType','roleHierarchyFilter','rowLimit','scope','showCurrentDate','showDetails','sortColumn','sortOrder','territoryHierarchyFilter','timeFrameFilter','userFilter'}; - } - public class ListView extends Metadata { - public String type = 'ListView'; - public String fullName; - public String booleanFilter; - public String[] columns; - public String division; - public String filterScope; - public MetadataService.ListViewFilter[] filters; - public String label; - public String language; - public String queue; - public MetadataService.SharedTo sharedTo; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] columns_type_info = new String[]{'columns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] division_type_info = new String[]{'division','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] filterScope_type_info = new String[]{'filterScope','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] filters_type_info = new String[]{'filters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] queue_type_info = new String[]{'queue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'booleanFilter','columns','division','filterScope','filters','label','language','queue','sharedTo'}; - } - public class FlowRecordCreate { - public String assignRecordIdToReference; - public MetadataService.FlowConnector connector; - public MetadataService.FlowConnector faultConnector; - public MetadataService.FlowInputFieldAssignment[] inputAssignments; - public String inputReference; - public String object_x; - private String[] assignRecordIdToReference_type_info = new String[]{'assignRecordIdToReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] faultConnector_type_info = new String[]{'faultConnector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] inputAssignments_type_info = new String[]{'inputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] inputReference_type_info = new String[]{'inputReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignRecordIdToReference','connector','faultConnector','inputAssignments','inputReference','object_x'}; - } - public class DashboardTableColumn { - public String aggregateType; - public Boolean calculatePercent; - public String column; - public Integer decimalPlaces; - public Boolean showTotal; - public String sortBy; - private String[] aggregateType_type_info = new String[]{'aggregateType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] calculatePercent_type_info = new String[]{'calculatePercent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] column_type_info = new String[]{'column','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] decimalPlaces_type_info = new String[]{'decimalPlaces','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showTotal_type_info = new String[]{'showTotal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortBy_type_info = new String[]{'sortBy','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'aggregateType','calculatePercent','column','decimalPlaces','showTotal','sortBy'}; - } - public class CaseSettings extends Metadata { - public String type = 'CaseSettings'; - public String fullName; - public String caseAssignNotificationTemplate; - public String caseCloseNotificationTemplate; - public String caseCommentNotificationTemplate; - public String caseCreateNotificationTemplate; - public MetadataService.FeedItemSettings[] caseFeedItemSettings; - public Boolean closeCaseThroughStatusChange; - public String defaultCaseOwner; - public String defaultCaseOwnerType; - public String defaultCaseUser; - public MetadataService.EmailToCaseSettings emailToCase; - public Boolean enableCaseFeed; - public Boolean enableDraftEmails; - public Boolean enableEarlyEscalationRuleTriggers; - public Boolean enableNewEmailDefaultTemplate; - public Boolean enableSuggestedArticlesApplication; - public Boolean enableSuggestedArticlesCustomerPortal; - public Boolean enableSuggestedArticlesPartnerPortal; - public Boolean enableSuggestedSolutions; - public Boolean keepRecordTypeOnAssignmentRule; - public String newEmailDefaultTemplateClass; - public Boolean notifyContactOnCaseComment; - public Boolean notifyDefaultCaseOwner; - public Boolean notifyOwnerOnCaseComment; - public Boolean notifyOwnerOnCaseOwnerChange; - public Boolean showFewerCloseActions; - public Boolean useSystemEmailAddress; - public MetadataService.WebToCaseSettings webToCase; - private String[] caseAssignNotificationTemplate_type_info = new String[]{'caseAssignNotificationTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseCloseNotificationTemplate_type_info = new String[]{'caseCloseNotificationTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseCommentNotificationTemplate_type_info = new String[]{'caseCommentNotificationTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseCreateNotificationTemplate_type_info = new String[]{'caseCreateNotificationTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseFeedItemSettings_type_info = new String[]{'caseFeedItemSettings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] closeCaseThroughStatusChange_type_info = new String[]{'closeCaseThroughStatusChange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultCaseOwner_type_info = new String[]{'defaultCaseOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultCaseOwnerType_type_info = new String[]{'defaultCaseOwnerType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultCaseUser_type_info = new String[]{'defaultCaseUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailToCase_type_info = new String[]{'emailToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableCaseFeed_type_info = new String[]{'enableCaseFeed','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableDraftEmails_type_info = new String[]{'enableDraftEmails','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableEarlyEscalationRuleTriggers_type_info = new String[]{'enableEarlyEscalationRuleTriggers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableNewEmailDefaultTemplate_type_info = new String[]{'enableNewEmailDefaultTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSuggestedArticlesApplication_type_info = new String[]{'enableSuggestedArticlesApplication','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSuggestedArticlesCustomerPortal_type_info = new String[]{'enableSuggestedArticlesCustomerPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSuggestedArticlesPartnerPortal_type_info = new String[]{'enableSuggestedArticlesPartnerPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSuggestedSolutions_type_info = new String[]{'enableSuggestedSolutions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] keepRecordTypeOnAssignmentRule_type_info = new String[]{'keepRecordTypeOnAssignmentRule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] newEmailDefaultTemplateClass_type_info = new String[]{'newEmailDefaultTemplateClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyContactOnCaseComment_type_info = new String[]{'notifyContactOnCaseComment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyDefaultCaseOwner_type_info = new String[]{'notifyDefaultCaseOwner','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyOwnerOnCaseComment_type_info = new String[]{'notifyOwnerOnCaseComment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] notifyOwnerOnCaseOwnerChange_type_info = new String[]{'notifyOwnerOnCaseOwnerChange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showFewerCloseActions_type_info = new String[]{'showFewerCloseActions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] useSystemEmailAddress_type_info = new String[]{'useSystemEmailAddress','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] webToCase_type_info = new String[]{'webToCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'caseAssignNotificationTemplate','caseCloseNotificationTemplate','caseCommentNotificationTemplate','caseCreateNotificationTemplate','caseFeedItemSettings','closeCaseThroughStatusChange','defaultCaseOwner','defaultCaseOwnerType','defaultCaseUser','emailToCase','enableCaseFeed','enableDraftEmails','enableEarlyEscalationRuleTriggers','enableNewEmailDefaultTemplate','enableSuggestedArticlesApplication','enableSuggestedArticlesCustomerPortal','enableSuggestedArticlesPartnerPortal','enableSuggestedSolutions','keepRecordTypeOnAssignmentRule','newEmailDefaultTemplateClass','notifyContactOnCaseComment','notifyDefaultCaseOwner','notifyOwnerOnCaseComment','notifyOwnerOnCaseOwnerChange','showFewerCloseActions','useSystemEmailAddress','webToCase'}; - } - public class NameSettings extends Metadata { - public String type = 'NameSettings'; - public String fullName; - public Boolean enableMiddleName; - public Boolean enableNameSuffix; - private String[] enableMiddleName_type_info = new String[]{'enableMiddleName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableNameSuffix_type_info = new String[]{'enableNameSuffix','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'enableMiddleName','enableNameSuffix'}; - } - public class AsyncResult { - public Boolean done; - public String id; - public String message; - public String state; - public String statusCode; - private String[] done_type_info = new String[]{'done','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] message_type_info = new String[]{'message','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] state_type_info = new String[]{'state','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] statusCode_type_info = new String[]{'statusCode','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'done','id','message','state','statusCode'}; - } - public class ArticleTypeChannelDisplay { - public MetadataService.ArticleTypeTemplate[] articleTypeTemplates; - private String[] articleTypeTemplates_type_info = new String[]{'articleTypeTemplates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'articleTypeTemplates'}; - } - public class checkRetrieveStatus_element { - public String asyncProcessId; - private String[] asyncProcessId_type_info = new String[]{'asyncProcessId','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'asyncProcessId'}; - } - public class ProfileLayoutAssignment { - public String layout; - public String recordType; - private String[] layout_type_info = new String[]{'layout','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] recordType_type_info = new String[]{'recordType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'layout','recordType'}; - } - public class FeedLayoutFilter { - public String feedFilterType; - public String feedItemType; - private String[] feedFilterType_type_info = new String[]{'feedFilterType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] feedItemType_type_info = new String[]{'feedItemType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'feedFilterType','feedItemType'}; - } - public class ReportHistoricalSelector { - public String[] snapshot; - private String[] snapshot_type_info = new String[]{'snapshot','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'snapshot'}; - } - public class FlowTextTemplate { - public String text; - private String[] text_type_info = new String[]{'text','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'text'}; - } - public class ReportFolder extends Folder { - public String type = 'ReportFolder'; - public String fullName; - public String accessType; - public MetadataService.FolderShare[] folderShares; - public String name; - public String publicFolderAccess; - public MetadataService.SharedTo sharedTo; - private String[] accessType_type_info = new String[]{'accessType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] folderShares_type_info = new String[]{'folderShares','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] publicFolderAccess_type_info = new String[]{'publicFolderAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'accessType','folderShares','name','publicFolderAccess','sharedTo'}; - } - public class RelatedListItem { - public String[] customButtons; - public String[] excludeButtons; - public String[] fields; - public String relatedList; - public String sortField; - public String sortOrder; - private String[] customButtons_type_info = new String[]{'customButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] excludeButtons_type_info = new String[]{'excludeButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] relatedList_type_info = new String[]{'relatedList','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sortField_type_info = new String[]{'sortField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'customButtons','excludeButtons','fields','relatedList','sortField','sortOrder'}; - } - public class FlowNode { - public String label; - public Integer locationX; - public Integer locationY; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] locationX_type_info = new String[]{'locationX','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] locationY_type_info = new String[]{'locationY','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','locationX','locationY'}; - } - public class ProfileApexClassAccess { - public String apexClass; - public Boolean enabled; - private String[] apexClass_type_info = new String[]{'apexClass','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'apexClass','enabled'}; - } - public class CustomDataTypeComponentTranslation { - public String developerSuffix; - public String label; - private String[] developerSuffix_type_info = new String[]{'developerSuffix','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'developerSuffix','label'}; - } - public class ReputationPointsRules { - public MetadataService.ReputationPointsRule[] pointsRule; - private String[] pointsRule_type_info = new String[]{'pointsRule','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'pointsRule'}; - } - public class State { - public Boolean active; - public String integrationValue; - public String isoCode; - public String label; - public Boolean standard; - public Boolean visible; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] integrationValue_type_info = new String[]{'integrationValue','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isoCode_type_info = new String[]{'isoCode','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] standard_type_info = new String[]{'standard','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] visible_type_info = new String[]{'visible','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'active','integrationValue','isoCode','label','standard','visible'}; - } - public class PushNotifications { - public MetadataService.PushNotification[] pushNotification; - private String[] pushNotification_type_info = new String[]{'pushNotification','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'pushNotification'}; - } - public class ConnectedAppCanvasConfig { - public String accessMethod; - public String canvasUrl; - public String lifecycleClass; - public String[] locations; - public String[] options; - public String samlInitiationMethod; - private String[] accessMethod_type_info = new String[]{'accessMethod','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] canvasUrl_type_info = new String[]{'canvasUrl','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] lifecycleClass_type_info = new String[]{'lifecycleClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] locations_type_info = new String[]{'locations','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] options_type_info = new String[]{'options','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] samlInitiationMethod_type_info = new String[]{'samlInitiationMethod','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accessMethod','canvasUrl','lifecycleClass','locations','options','samlInitiationMethod'}; - } - public class ReportTypeSectionTranslation { - public MetadataService.ReportTypeColumnTranslation[] columns; - public String label; - public String name; - private String[] columns_type_info = new String[]{'columns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'columns','label','name'}; - } - public class FlowWaitEvent { - public String conditionLogic; - public MetadataService.FlowCondition[] conditions; - public MetadataService.FlowConnector connector; - public String eventType; - public MetadataService.FlowWaitEventInputParameter[] inputParameters; - public String label; - public MetadataService.FlowWaitEventOutputParameter[] outputParameters; - private String[] conditionLogic_type_info = new String[]{'conditionLogic','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] conditions_type_info = new String[]{'conditions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] eventType_type_info = new String[]{'eventType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] inputParameters_type_info = new String[]{'inputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] outputParameters_type_info = new String[]{'outputParameters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'conditionLogic','conditions','connector','eventType','inputParameters','label','outputParameters'}; - } - public class IpRange { - public String end_x; - public String start; - private String[] end_x_type_info = new String[]{'end','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] start_type_info = new String[]{'start','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'end_x','start'}; - } - public class FlowApexPluginCallOutputParameter { - public String assignToReference; - public String name; - private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignToReference','name'}; - } - public class ReportBucketField { - public String bucketType; - public String developerName; - public String masterLabel; - public String nullTreatment; - public String otherBucketLabel; - public String sourceColumnName; - public Boolean useOther; - public MetadataService.ReportBucketFieldValue[] values; - private String[] bucketType_type_info = new String[]{'bucketType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] developerName_type_info = new String[]{'developerName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] nullTreatment_type_info = new String[]{'nullTreatment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] otherBucketLabel_type_info = new String[]{'otherBucketLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sourceColumnName_type_info = new String[]{'sourceColumnName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] useOther_type_info = new String[]{'useOther','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] values_type_info = new String[]{'values','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'bucketType','developerName','masterLabel','nullTreatment','otherBucketLabel','sourceColumnName','useOther','values'}; - } - public class CaseCriteriaBasedSharingRule { - public String booleanFilter; - public String caseAccessLevel; - public String description; - public String name; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanFilter','caseAccessLevel','description','name'}; - } - public class Portal extends Metadata { - public String type = 'Portal'; - public String fullName; - public Boolean active; - public String admin; - public String defaultLanguage; - public String description; - public String emailSenderAddress; - public String emailSenderName; - public Boolean enableSelfCloseCase; - public String footerDocument; - public String forgotPassTemplate; - public String headerDocument; - public Boolean isSelfRegistrationActivated; - public String loginHeaderDocument; - public String logoDocument; - public String logoutUrl; - public String newCommentTemplate; - public String newPassTemplate; - public String newUserTemplate; - public String ownerNotifyTemplate; - public String selfRegNewUserUrl; - public String selfRegUserDefaultProfile; - public String selfRegUserDefaultRole; - public String selfRegUserTemplate; - public Boolean showActionConfirmation; - public String stylesheetDocument; - public String type_x; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] admin_type_info = new String[]{'admin','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultLanguage_type_info = new String[]{'defaultLanguage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailSenderAddress_type_info = new String[]{'emailSenderAddress','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] emailSenderName_type_info = new String[]{'emailSenderName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enableSelfCloseCase_type_info = new String[]{'enableSelfCloseCase','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] footerDocument_type_info = new String[]{'footerDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] forgotPassTemplate_type_info = new String[]{'forgotPassTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] headerDocument_type_info = new String[]{'headerDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isSelfRegistrationActivated_type_info = new String[]{'isSelfRegistrationActivated','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] loginHeaderDocument_type_info = new String[]{'loginHeaderDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] logoDocument_type_info = new String[]{'logoDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] logoutUrl_type_info = new String[]{'logoutUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] newCommentTemplate_type_info = new String[]{'newCommentTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] newPassTemplate_type_info = new String[]{'newPassTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] newUserTemplate_type_info = new String[]{'newUserTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] ownerNotifyTemplate_type_info = new String[]{'ownerNotifyTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] selfRegNewUserUrl_type_info = new String[]{'selfRegNewUserUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] selfRegUserDefaultProfile_type_info = new String[]{'selfRegUserDefaultProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] selfRegUserDefaultRole_type_info = new String[]{'selfRegUserDefaultRole','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] selfRegUserTemplate_type_info = new String[]{'selfRegUserTemplate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showActionConfirmation_type_info = new String[]{'showActionConfirmation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] stylesheetDocument_type_info = new String[]{'stylesheetDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','admin','defaultLanguage','description','emailSenderAddress','emailSenderName','enableSelfCloseCase','footerDocument','forgotPassTemplate','headerDocument','isSelfRegistrationActivated','loginHeaderDocument','logoDocument','logoutUrl','newCommentTemplate','newPassTemplate','newUserTemplate','ownerNotifyTemplate','selfRegNewUserUrl','selfRegUserDefaultProfile','selfRegUserDefaultRole','selfRegUserTemplate','showActionConfirmation','stylesheetDocument','type_x'}; - } - public class DomainWhitelist { - public String[] domain; - private String[] domain_type_info = new String[]{'domain','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'domain'}; - } - public class RunTestFailure { - public String id; - public String message; - public String methodName; - public String name; - public String namespace; - public String packageName; - public String stackTrace; - public Double time_x; - public String type_x; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] message_type_info = new String[]{'message','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] methodName_type_info = new String[]{'methodName','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] namespace_type_info = new String[]{'namespace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] packageName_type_info = new String[]{'packageName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] stackTrace_type_info = new String[]{'stackTrace','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] time_x_type_info = new String[]{'time','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'id','message','methodName','name','namespace','packageName','stackTrace','time_x','type_x'}; - } - public class Territory { - public String accountAccessLevel; - public String parentTerritory; - private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] parentTerritory_type_info = new String[]{'parentTerritory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accountAccessLevel','parentTerritory'}; - } - public class SharedTo { - public String allCustomerPortalUsers; - public String allInternalUsers; - public String allPartnerUsers; - public String[] group_x; - public String[] groups; - public String[] managerSubordinates; - public String[] managers; - public String[] portalRole; - public String[] portalRoleAndSubordinates; - public String[] queue; - public String[] role; - public String[] roleAndSubordinates; - public String[] roleAndSubordinatesInternal; - public String[] roles; - public String[] rolesAndSubordinates; - public String[] territories; - public String[] territoriesAndSubordinates; - public String[] territory; - public String[] territoryAndSubordinates; - private String[] allCustomerPortalUsers_type_info = new String[]{'allCustomerPortalUsers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] allInternalUsers_type_info = new String[]{'allInternalUsers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] allPartnerUsers_type_info = new String[]{'allPartnerUsers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] group_x_type_info = new String[]{'group','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] groups_type_info = new String[]{'groups','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] managerSubordinates_type_info = new String[]{'managerSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] managers_type_info = new String[]{'managers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] portalRole_type_info = new String[]{'portalRole','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] portalRoleAndSubordinates_type_info = new String[]{'portalRoleAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] queue_type_info = new String[]{'queue','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] role_type_info = new String[]{'role','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] roleAndSubordinates_type_info = new String[]{'roleAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] roleAndSubordinatesInternal_type_info = new String[]{'roleAndSubordinatesInternal','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] roles_type_info = new String[]{'roles','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] rolesAndSubordinates_type_info = new String[]{'rolesAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] territories_type_info = new String[]{'territories','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] territoriesAndSubordinates_type_info = new String[]{'territoriesAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] territory_type_info = new String[]{'territory','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] territoryAndSubordinates_type_info = new String[]{'territoryAndSubordinates','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'allCustomerPortalUsers','allInternalUsers','allPartnerUsers','group_x','groups','managerSubordinates','managers','portalRole','portalRoleAndSubordinates','queue','role','roleAndSubordinates','roleAndSubordinatesInternal','roles','rolesAndSubordinates','territories','territoriesAndSubordinates','territory','territoryAndSubordinates'}; - } - public class DeployDetails { - public MetadataService.DeployMessage[] componentFailures; - public MetadataService.DeployMessage[] componentSuccesses; - public MetadataService.RetrieveResult retrieveResult; - public MetadataService.RunTestsResult runTestResult; - private String[] componentFailures_type_info = new String[]{'componentFailures','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] componentSuccesses_type_info = new String[]{'componentSuccesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] retrieveResult_type_info = new String[]{'retrieveResult','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] runTestResult_type_info = new String[]{'runTestResult','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'componentFailures','componentSuccesses','retrieveResult','runTestResult'}; - } - public class FlowRecordFilter { - public String field; - public String operator; - public MetadataService.FlowElementReferenceOrValue value; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','operator','value'}; - } - public class Group_x extends Metadata { - public String type = 'Group_x'; - public String fullName; - public Boolean doesIncludeBosses; - public String name; - private String[] doesIncludeBosses_type_info = new String[]{'doesIncludeBosses','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'doesIncludeBosses','name'}; - } - public class SubtabComponents { - public MetadataService.Container[] containers; - private String[] containers_type_info = new String[]{'containers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'containers'}; - } - public class FlowScreen { - public Boolean allowBack; - public Boolean allowFinish; - public MetadataService.FlowConnector connector; - public MetadataService.FlowScreenField[] fields; - public String helpText; - private String[] allowBack_type_info = new String[]{'allowBack','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] allowFinish_type_info = new String[]{'allowFinish','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] helpText_type_info = new String[]{'helpText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'allowBack','allowFinish','connector','fields','helpText'}; - } - public class WorkflowAlert extends WorkflowAction { - public String type = 'WorkflowAlert'; - public String fullName; - public String[] ccEmails; - public String description; - public Boolean protected_x; - public MetadataService.WorkflowEmailRecipient[] recipients; - public String senderAddress; - public String senderType; - public String template; - private String[] ccEmails_type_info = new String[]{'ccEmails','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] recipients_type_info = new String[]{'recipients','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] senderAddress_type_info = new String[]{'senderAddress','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] senderType_type_info = new String[]{'senderType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] template_type_info = new String[]{'template','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'ccEmails','description','protected_x','recipients','senderAddress','senderType','template'}; - } - public class CustomPermissionDependencyRequired { - public String customPermission; - public Boolean dependency; - private String[] customPermission_type_info = new String[]{'customPermission','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] dependency_type_info = new String[]{'dependency','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'customPermission','dependency'}; - } - public class ReputationBranding { - public String smallImage; - private String[] smallImage_type_info = new String[]{'smallImage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'smallImage'}; - } - public class ForecastRangeSettings { - public Integer beginning; - public Integer displaying; - public String periodType; - private String[] beginning_type_info = new String[]{'beginning','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] displaying_type_info = new String[]{'displaying','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] periodType_type_info = new String[]{'periodType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'beginning','displaying','periodType'}; - } - public class SFDCMobileSettings { - public Boolean enableMobileLite; - public Boolean enableUserToDeviceLinking; - private String[] enableMobileLite_type_info = new String[]{'enableMobileLite','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableUserToDeviceLinking_type_info = new String[]{'enableUserToDeviceLinking','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enableMobileLite','enableUserToDeviceLinking'}; - } - public class LayoutSectionTranslation { - public String label; - public String section; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] section_type_info = new String[]{'section','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','section'}; - } - public class EntitlementProcessMilestoneItem { - public String businessHours; - public String criteriaBooleanFilter; - public MetadataService.FilterItem[] milestoneCriteriaFilterItems; - public String milestoneCriteriaFormula; - public String milestoneName; - public String minutesCustomClass; - public Integer minutesToComplete; - public MetadataService.WorkflowActionReference[] successActions; - public MetadataService.EntitlementProcessMilestoneTimeTrigger[] timeTriggers; - public Boolean useCriteriaStartTime; - private String[] businessHours_type_info = new String[]{'businessHours','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] criteriaBooleanFilter_type_info = new String[]{'criteriaBooleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] milestoneCriteriaFilterItems_type_info = new String[]{'milestoneCriteriaFilterItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] milestoneCriteriaFormula_type_info = new String[]{'milestoneCriteriaFormula','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] milestoneName_type_info = new String[]{'milestoneName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] minutesCustomClass_type_info = new String[]{'minutesCustomClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] minutesToComplete_type_info = new String[]{'minutesToComplete','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] successActions_type_info = new String[]{'successActions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] timeTriggers_type_info = new String[]{'timeTriggers','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] useCriteriaStartTime_type_info = new String[]{'useCriteriaStartTime','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'businessHours','criteriaBooleanFilter','milestoneCriteriaFilterItems','milestoneCriteriaFormula','milestoneName','minutesCustomClass','minutesToComplete','successActions','timeTriggers','useCriteriaStartTime'}; - } - public class DataCategoryGroup extends Metadata { - public String type = 'DataCategoryGroup'; - public String fullName; - public Boolean active; - public MetadataService.DataCategory dataCategory; - public String description; - public String label; - public MetadataService.ObjectUsage objectUsage; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] dataCategory_type_info = new String[]{'dataCategory','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] objectUsage_type_info = new String[]{'objectUsage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','dataCategory','description','label','objectUsage'}; - } - public class listMetadata_element { - public MetadataService.ListMetadataQuery[] queries; - public Double asOfVersion; - private String[] queries_type_info = new String[]{'queries','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] asOfVersion_type_info = new String[]{'asOfVersion','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'queries','asOfVersion'}; - } - public class ValidationRule extends Metadata { - public String type = 'ValidationRule'; - public String fullName; - public Boolean active; - public String description; - public String errorConditionFormula; - public String errorDisplayField; - public String errorMessage; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] errorConditionFormula_type_info = new String[]{'errorConditionFormula','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] errorDisplayField_type_info = new String[]{'errorDisplayField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','description','errorConditionFormula','errorDisplayField','errorMessage'}; - } - public class AuraDefinitionBundle extends Metadata { - public String type = 'AuraDefinitionBundle'; - public String fullName; - public String controllerContent; - public String documentationContent; - public String helperContent; - public String markup; - public String modelContent; - public String rendererContent; - public String styleContent; - public String testsuiteContent; - public String type_x; - private String[] controllerContent_type_info = new String[]{'controllerContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] documentationContent_type_info = new String[]{'documentationContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] helperContent_type_info = new String[]{'helperContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] markup_type_info = new String[]{'markup','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] modelContent_type_info = new String[]{'modelContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] rendererContent_type_info = new String[]{'rendererContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] styleContent_type_info = new String[]{'styleContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] testsuiteContent_type_info = new String[]{'testsuiteContent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'controllerContent','documentationContent','helperContent','markup','modelContent','rendererContent','styleContent','testsuiteContent','type_x'}; - } - public class FlowMetadataValue { - public String name; - public MetadataService.FlowElementReferenceOrValue value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class VisualizationResource { - public String description; - public String file; - public Integer rank; - public String type_x; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] file_type_info = new String[]{'file','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] rank_type_info = new String[]{'rank','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','file','rank','type_x'}; - } - public class ValidationRuleTranslation { - public String errorMessage; - public String name; - private String[] errorMessage_type_info = new String[]{'errorMessage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'errorMessage','name'}; - } - public virtual class Metadata { - public String fullName; - private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fullName'}; - } - public class ReportBucketFieldValue { - public MetadataService.ReportBucketFieldSourceValue[] sourceValues; - public String value; - private String[] sourceValues_type_info = new String[]{'sourceValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'sourceValues','value'}; - } - public class FeedItemSettings { - public Integer characterLimit; - public Boolean collapseThread; - public String displayFormat; - public String feedItemType; - private String[] characterLimit_type_info = new String[]{'characterLimit','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] collapseThread_type_info = new String[]{'collapseThread','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] displayFormat_type_info = new String[]{'displayFormat','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] feedItemType_type_info = new String[]{'feedItemType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'characterLimit','collapseThread','displayFormat','feedItemType'}; - } - public class FlowSubflow { - public MetadataService.FlowConnector connector; - public String flowName; - public MetadataService.FlowSubflowInputAssignment[] inputAssignments; - public MetadataService.FlowSubflowOutputAssignment[] outputAssignments; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] flowName_type_info = new String[]{'flowName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] inputAssignments_type_info = new String[]{'inputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] outputAssignments_type_info = new String[]{'outputAssignments','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'connector','flowName','inputAssignments','outputAssignments'}; - } - public class TouchMobileSettings { - public Boolean enableTouchAppIPad; - public Boolean enableTouchAppIPhone; - public Boolean enableTouchBrowserIPad; - public Boolean enableTouchIosPhone; - public Boolean enableVisualforceInTouch; - private String[] enableTouchAppIPad_type_info = new String[]{'enableTouchAppIPad','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableTouchAppIPhone_type_info = new String[]{'enableTouchAppIPhone','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableTouchBrowserIPad_type_info = new String[]{'enableTouchBrowserIPad','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableTouchIosPhone_type_info = new String[]{'enableTouchIosPhone','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableVisualforceInTouch_type_info = new String[]{'enableVisualforceInTouch','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enableTouchAppIPad','enableTouchAppIPhone','enableTouchBrowserIPad','enableTouchIosPhone','enableVisualforceInTouch'}; - } - public class FlowScreenField { - public String[] choiceReferences; - public String dataType; - public String defaultSelectedChoiceReference; - public MetadataService.FlowElementReferenceOrValue defaultValue; - public String fieldText; - public String fieldType; - public String helpText; - public Boolean isRequired; - public Integer scale; - public MetadataService.FlowInputValidationRule validationRule; - private String[] choiceReferences_type_info = new String[]{'choiceReferences','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultSelectedChoiceReference_type_info = new String[]{'defaultSelectedChoiceReference','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultValue_type_info = new String[]{'defaultValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fieldText_type_info = new String[]{'fieldText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fieldType_type_info = new String[]{'fieldType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] helpText_type_info = new String[]{'helpText','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isRequired_type_info = new String[]{'isRequired','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] validationRule_type_info = new String[]{'validationRule','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'choiceReferences','dataType','defaultSelectedChoiceReference','defaultValue','fieldText','fieldType','helpText','isRequired','scale','validationRule'}; - } - public class Dashboard extends Metadata { - public String type = 'Dashboard'; - public String fullName; - public String backgroundEndColor; - public String backgroundFadeDirection; - public String backgroundStartColor; - public MetadataService.DashboardFilter[] dashboardFilters; - public String dashboardResultRefreshedDate; - public String dashboardResultRunningUser; - public String dashboardType; - public String description; - public MetadataService.DashboardComponentSection leftSection; - public MetadataService.DashboardComponentSection middleSection; - public MetadataService.DashboardComponentSection rightSection; - public String runningUser; - public String textColor; - public String title; - public String titleColor; - public Integer titleSize; - private String[] backgroundEndColor_type_info = new String[]{'backgroundEndColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] backgroundFadeDirection_type_info = new String[]{'backgroundFadeDirection','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] backgroundStartColor_type_info = new String[]{'backgroundStartColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] dashboardFilters_type_info = new String[]{'dashboardFilters','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] dashboardResultRefreshedDate_type_info = new String[]{'dashboardResultRefreshedDate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] dashboardResultRunningUser_type_info = new String[]{'dashboardResultRunningUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] dashboardType_type_info = new String[]{'dashboardType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] leftSection_type_info = new String[]{'leftSection','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] middleSection_type_info = new String[]{'middleSection','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] rightSection_type_info = new String[]{'rightSection','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] runningUser_type_info = new String[]{'runningUser','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] textColor_type_info = new String[]{'textColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] title_type_info = new String[]{'title','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] titleColor_type_info = new String[]{'titleColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] titleSize_type_info = new String[]{'titleSize','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'backgroundEndColor','backgroundFadeDirection','backgroundStartColor','dashboardFilters','dashboardResultRefreshedDate','dashboardResultRunningUser','dashboardType','description','leftSection','middleSection','rightSection','runningUser','textColor','title','titleColor','titleSize'}; - } - public class ReportDataCategoryFilter { - public String dataCategory; - public String dataCategoryGroup; - public String operator; - private String[] dataCategory_type_info = new String[]{'dataCategory','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] dataCategoryGroup_type_info = new String[]{'dataCategoryGroup','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dataCategory','dataCategoryGroup','operator'}; - } - public class MarketingActionSettings extends Metadata { - public String type = 'MarketingActionSettings'; - public String fullName; - public Boolean enableMarketingAction; - private String[] enableMarketingAction_type_info = new String[]{'enableMarketingAction','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'enableMarketingAction'}; - } - public class FlowAssignment { - public MetadataService.FlowAssignmentItem[] assignmentItems; - public MetadataService.FlowConnector connector; - private String[] assignmentItems_type_info = new String[]{'assignmentItems','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] connector_type_info = new String[]{'connector','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignmentItems','connector'}; - } - public class IdeaReputationLevel { - public String name; - public Integer value; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'name','value'}; - } - public class NetworkTabSet { - public String[] customTab; - public String defaultTab; - public String[] standardTab; - private String[] customTab_type_info = new String[]{'customTab','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] defaultTab_type_info = new String[]{'defaultTab','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] standardTab_type_info = new String[]{'standardTab','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'customTab','defaultTab','standardTab'}; - } - public class CustomApplicationComponents { - public String alignment; - public String[] customApplicationComponent; - private String[] alignment_type_info = new String[]{'alignment','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] customApplicationComponent_type_info = new String[]{'customApplicationComponent','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'alignment','customApplicationComponent'}; - } - public class SynonymGroup { - public String[] languages; - public String[] terms; - private String[] languages_type_info = new String[]{'languages','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] terms_type_info = new String[]{'terms','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'languages','terms'}; - } - public class VisualizationType { - public String description; - public String developerName; - public String icon; - public String masterLabel; - public String scriptBootstrapMethod; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] developerName_type_info = new String[]{'developerName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] icon_type_info = new String[]{'icon','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] scriptBootstrapMethod_type_info = new String[]{'scriptBootstrapMethod','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','developerName','icon','masterLabel','scriptBootstrapMethod'}; - } - public class DashboardFolder extends Folder { - public String type = 'DashboardFolder'; - public String fullName; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName'}; - } - public class PermissionSetApexPageAccess { - public String apexPage; - public Boolean enabled; - private String[] apexPage_type_info = new String[]{'apexPage','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enabled_type_info = new String[]{'enabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'apexPage','enabled'}; - } - public class CustomObject extends Metadata { - public String type = 'CustomObject'; - public String fullName; - public MetadataService.ActionOverride[] actionOverrides; - public MetadataService.ArticleTypeChannelDisplay articleTypeChannelDisplay; - public MetadataService.BusinessProcess[] businessProcesses; - public String compactLayoutAssignment; - public MetadataService.CompactLayout[] compactLayouts; - public String customHelp; - public String customHelpPage; - public String customSettingsType; - public String customSettingsVisibility; - public String deploymentStatus; - public Boolean deprecated; - public String description; - public Boolean enableActivities; - public Boolean enableBulkApi; - public Boolean enableDivisions; - public Boolean enableEnhancedLookup; - public Boolean enableFeeds; - public Boolean enableHistory; - public Boolean enableReports; - public Boolean enableSharing; - public Boolean enableStreamingApi; - public String externalDataSource; - public String externalName; - public String externalRepository; - public String externalSharingModel; - public MetadataService.FieldSet[] fieldSets; - public MetadataService.CustomField[] fields; - public String gender; - public MetadataService.HistoryRetentionPolicy historyRetentionPolicy; - public Boolean household; - public String label; - public MetadataService.ListView[] listViews; - public MetadataService.CustomField nameField; - public String pluralLabel; - public Boolean recordTypeTrackFeedHistory; - public Boolean recordTypeTrackHistory; - public MetadataService.RecordType[] recordTypes; - public MetadataService.SearchLayouts searchLayouts; - public String sharingModel; - public MetadataService.SharingReason[] sharingReasons; - public MetadataService.SharingRecalculation[] sharingRecalculations; - public String startsWith; - public MetadataService.ValidationRule[] validationRules; - public MetadataService.WebLink[] webLinks; - private String[] actionOverrides_type_info = new String[]{'actionOverrides','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] articleTypeChannelDisplay_type_info = new String[]{'articleTypeChannelDisplay','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] businessProcesses_type_info = new String[]{'businessProcesses','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] compactLayoutAssignment_type_info = new String[]{'compactLayoutAssignment','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] compactLayouts_type_info = new String[]{'compactLayouts','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] customHelp_type_info = new String[]{'customHelp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customHelpPage_type_info = new String[]{'customHelpPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customSettingsType_type_info = new String[]{'customSettingsType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customSettingsVisibility_type_info = new String[]{'customSettingsVisibility','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] deploymentStatus_type_info = new String[]{'deploymentStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] deprecated_type_info = new String[]{'deprecated','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableActivities_type_info = new String[]{'enableActivities','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableBulkApi_type_info = new String[]{'enableBulkApi','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableDivisions_type_info = new String[]{'enableDivisions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableEnhancedLookup_type_info = new String[]{'enableEnhancedLookup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableFeeds_type_info = new String[]{'enableFeeds','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableHistory_type_info = new String[]{'enableHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableReports_type_info = new String[]{'enableReports','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableSharing_type_info = new String[]{'enableSharing','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableStreamingApi_type_info = new String[]{'enableStreamingApi','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] externalDataSource_type_info = new String[]{'externalDataSource','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] externalName_type_info = new String[]{'externalName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] externalRepository_type_info = new String[]{'externalRepository','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] externalSharingModel_type_info = new String[]{'externalSharingModel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] fieldSets_type_info = new String[]{'fieldSets','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] gender_type_info = new String[]{'gender','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] historyRetentionPolicy_type_info = new String[]{'historyRetentionPolicy','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] household_type_info = new String[]{'household','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] listViews_type_info = new String[]{'listViews','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] nameField_type_info = new String[]{'nameField','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] pluralLabel_type_info = new String[]{'pluralLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recordTypeTrackFeedHistory_type_info = new String[]{'recordTypeTrackFeedHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recordTypeTrackHistory_type_info = new String[]{'recordTypeTrackHistory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] recordTypes_type_info = new String[]{'recordTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] searchLayouts_type_info = new String[]{'searchLayouts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sharingModel_type_info = new String[]{'sharingModel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sharingReasons_type_info = new String[]{'sharingReasons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] sharingRecalculations_type_info = new String[]{'sharingRecalculations','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] startsWith_type_info = new String[]{'startsWith','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] validationRules_type_info = new String[]{'validationRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] webLinks_type_info = new String[]{'webLinks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'actionOverrides','articleTypeChannelDisplay','businessProcesses','compactLayoutAssignment','compactLayouts','customHelp','customHelpPage','customSettingsType','customSettingsVisibility','deploymentStatus','deprecated','description','enableActivities','enableBulkApi','enableDivisions','enableEnhancedLookup','enableFeeds','enableHistory','enableReports','enableSharing','enableStreamingApi','externalDataSource','externalName','externalRepository','externalSharingModel','fieldSets','fields','gender','historyRetentionPolicy','household','label','listViews','nameField','pluralLabel','recordTypeTrackFeedHistory','recordTypeTrackHistory','recordTypes','searchLayouts','sharingModel','sharingReasons','sharingRecalculations','startsWith','validationRules','webLinks'}; - } - public class CustomMetadataValue { - public String field; - public String value; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'1','1','true'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'field','value'}; - } - public class Translations extends Metadata { - public String type = 'Translations'; - public String fullName; - public MetadataService.CustomApplicationTranslation[] customApplications; - public MetadataService.CustomDataTypeTranslation[] customDataTypeTranslations; - public MetadataService.CustomLabelTranslation[] customLabels; - public MetadataService.CustomPageWebLinkTranslation[] customPageWebLinks; - public MetadataService.CustomTabTranslation[] customTabs; - public MetadataService.GlobalQuickActionTranslation[] quickActions; - public MetadataService.ReportTypeTranslation[] reportTypes; - public MetadataService.ScontrolTranslation[] scontrols; - private String[] customApplications_type_info = new String[]{'customApplications','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] customDataTypeTranslations_type_info = new String[]{'customDataTypeTranslations','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] customLabels_type_info = new String[]{'customLabels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] customPageWebLinks_type_info = new String[]{'customPageWebLinks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] customTabs_type_info = new String[]{'customTabs','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] quickActions_type_info = new String[]{'quickActions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] reportTypes_type_info = new String[]{'reportTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] scontrols_type_info = new String[]{'scontrols','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'customApplications','customDataTypeTranslations','customLabels','customPageWebLinks','customTabs','quickActions','reportTypes','scontrols'}; - } - public class ReportTypeTranslation { - public String description; - public String label; - public String name; - public MetadataService.ReportTypeSectionTranslation[] sections; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sections_type_info = new String[]{'sections','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','label','name','sections'}; - } - public class FlowAssignmentItem { - public String assignToReference; - public String operator; - public MetadataService.FlowElementReferenceOrValue value; - private String[] assignToReference_type_info = new String[]{'assignToReference','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] operator_type_info = new String[]{'operator','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'assignToReference','operator','value'}; - } - public class CustomLabels extends Metadata { - public String type = 'CustomLabels'; - public String fullName; - public MetadataService.CustomLabel[] labels; - private String[] labels_type_info = new String[]{'labels','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'labels'}; - } - public class PackageTypeMembers { - public String[] members; - public String name; - private String[] members_type_info = new String[]{'members','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'members','name'}; - } - public class renameMetadataResponse_element { - public MetadataService.SaveResult result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class HistoryRetentionPolicy { - public Integer archiveAfterMonths; - public Integer archiveRetentionYears; - public String description; - private String[] archiveAfterMonths_type_info = new String[]{'archiveAfterMonths','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] archiveRetentionYears_type_info = new String[]{'archiveRetentionYears','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'archiveAfterMonths','archiveRetentionYears','description'}; - } - public class cancelDeploy_element { - public String String_x; - private String[] String_x_type_info = new String[]{'String','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'String_x'}; - } - public class WorkflowSend extends WorkflowAction { - public String type = 'WorkflowSend'; - public String fullName; - public String action; - public String description; - public String label; - public String language; - public Boolean protected_x; - private String[] action_type_info = new String[]{'action','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] language_type_info = new String[]{'language','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] protected_x_type_info = new String[]{'protected','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'action','description','label','language','protected_x'}; - } - public class EntitlementProcessMilestoneTimeTrigger { - public MetadataService.WorkflowActionReference[] actions; - public Integer timeLength; - public String workflowTimeTriggerUnit; - private String[] actions_type_info = new String[]{'actions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] timeLength_type_info = new String[]{'timeLength','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] workflowTimeTriggerUnit_type_info = new String[]{'workflowTimeTriggerUnit','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'actions','timeLength','workflowTimeTriggerUnit'}; - } - public class ArticleTypeTemplate { - public String channel; - public String page_x; - public String template; - private String[] channel_type_info = new String[]{'channel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] template_type_info = new String[]{'template','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'channel','page_x','template'}; - } - public class AnalyticSnapshotMapping { - public String aggregateType; - public String sourceField; - public String sourceType; - public String targetField; - private String[] aggregateType_type_info = new String[]{'aggregateType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sourceField_type_info = new String[]{'sourceField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sourceType_type_info = new String[]{'sourceType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] targetField_type_info = new String[]{'targetField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'aggregateType','sourceField','sourceType','targetField'}; - } - public class PermissionSetFieldPermissions { - public Boolean editable; - public String field; - public Boolean readable; - private String[] editable_type_info = new String[]{'editable','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] readable_type_info = new String[]{'readable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'editable','field','readable'}; - } - public class ReportGrouping { - public String aggregateType; - public String dateGranularity; - public String field; - public String sortByName; - public String sortOrder; - public String sortType; - private String[] aggregateType_type_info = new String[]{'aggregateType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] dateGranularity_type_info = new String[]{'dateGranularity','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sortByName_type_info = new String[]{'sortByName','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sortType_type_info = new String[]{'sortType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'aggregateType','dateGranularity','field','sortByName','sortOrder','sortType'}; - } - public class SkillProfileAssignments { - public String[] profile; - private String[] profile_type_info = new String[]{'profile','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'profile'}; - } - public class CancelDeployResult { - public Boolean done; - public String id; - private String[] done_type_info = new String[]{'done','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] id_type_info = new String[]{'id','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'done','id'}; - } - public class CustomShortcut { - public String description; - public String eventName; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] eventName_type_info = new String[]{'eventName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'description','eventName'}; - } - public class LeadCriteriaBasedSharingRule { - public String booleanFilter; - public String description; - public String leadAccessLevel; - public String name; - private String[] booleanFilter_type_info = new String[]{'booleanFilter','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] leadAccessLevel_type_info = new String[]{'leadAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'booleanFilter','description','leadAccessLevel','name'}; - } - public class SynonymDictionary extends Metadata { - public String type = 'SynonymDictionary'; - public String fullName; - public MetadataService.SynonymGroup[] groups; - public Boolean isProtected; - public String label; - private String[] groups_type_info = new String[]{'groups','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] isProtected_type_info = new String[]{'isProtected','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'groups','isProtected','label'}; - } - public class CustomTab extends Metadata { - public String type = 'CustomTab'; - public String fullName; - public String auraComponent; - public Boolean customObject; - public String description; - public String flexiPage; - public Integer frameHeight; - public Boolean hasSidebar; - public String icon; - public String label; - public Boolean mobileReady; - public String motif; - public String page_x; - public String scontrol; - public String splashPageLink; - public String url; - public String urlEncodingKey; - private String[] auraComponent_type_info = new String[]{'auraComponent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customObject_type_info = new String[]{'customObject','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] flexiPage_type_info = new String[]{'flexiPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] frameHeight_type_info = new String[]{'frameHeight','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] hasSidebar_type_info = new String[]{'hasSidebar','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] icon_type_info = new String[]{'icon','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] mobileReady_type_info = new String[]{'mobileReady','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] motif_type_info = new String[]{'motif','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] splashPageLink_type_info = new String[]{'splashPageLink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] url_type_info = new String[]{'url','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] urlEncodingKey_type_info = new String[]{'urlEncodingKey','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'auraComponent','customObject','description','flexiPage','frameHeight','hasSidebar','icon','label','mobileReady','motif','page_x','scontrol','splashPageLink','url','urlEncodingKey'}; - } - public class Letterhead extends Metadata { - public String type = 'Letterhead'; - public String fullName; - public Boolean available; - public String backgroundColor; - public String bodyColor; - public MetadataService.LetterheadLine bottomLine; - public String description; - public MetadataService.LetterheadHeaderFooter footer; - public MetadataService.LetterheadHeaderFooter header; - public MetadataService.LetterheadLine middleLine; - public String name; - public MetadataService.LetterheadLine topLine; - private String[] available_type_info = new String[]{'available','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] backgroundColor_type_info = new String[]{'backgroundColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] bodyColor_type_info = new String[]{'bodyColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] bottomLine_type_info = new String[]{'bottomLine','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] footer_type_info = new String[]{'footer','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] header_type_info = new String[]{'header','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] middleLine_type_info = new String[]{'middleLine','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] topLine_type_info = new String[]{'topLine','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'available','backgroundColor','bodyColor','bottomLine','description','footer','header','middleLine','name','topLine'}; - } - public class ReportTypeColumnTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class CustomPageWebLinkTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class EntitlementSettings extends Metadata { - public String type = 'EntitlementSettings'; - public String fullName; - public Boolean assetLookupLimitedToActiveEntitlementsOnAccount; - public Boolean assetLookupLimitedToActiveEntitlementsOnContact; - public Boolean assetLookupLimitedToSameAccount; - public Boolean assetLookupLimitedToSameContact; - public Boolean enableEntitlementVersioning; - public Boolean enableEntitlements; - public Boolean entitlementLookupLimitedToActiveStatus; - public Boolean entitlementLookupLimitedToSameAccount; - public Boolean entitlementLookupLimitedToSameAsset; - public Boolean entitlementLookupLimitedToSameContact; - private String[] assetLookupLimitedToActiveEntitlementsOnAccount_type_info = new String[]{'assetLookupLimitedToActiveEntitlementsOnAccount','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assetLookupLimitedToActiveEntitlementsOnContact_type_info = new String[]{'assetLookupLimitedToActiveEntitlementsOnContact','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assetLookupLimitedToSameAccount_type_info = new String[]{'assetLookupLimitedToSameAccount','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assetLookupLimitedToSameContact_type_info = new String[]{'assetLookupLimitedToSameContact','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableEntitlementVersioning_type_info = new String[]{'enableEntitlementVersioning','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enableEntitlements_type_info = new String[]{'enableEntitlements','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] entitlementLookupLimitedToActiveStatus_type_info = new String[]{'entitlementLookupLimitedToActiveStatus','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] entitlementLookupLimitedToSameAccount_type_info = new String[]{'entitlementLookupLimitedToSameAccount','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] entitlementLookupLimitedToSameAsset_type_info = new String[]{'entitlementLookupLimitedToSameAsset','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] entitlementLookupLimitedToSameContact_type_info = new String[]{'entitlementLookupLimitedToSameContact','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'assetLookupLimitedToActiveEntitlementsOnAccount','assetLookupLimitedToActiveEntitlementsOnContact','assetLookupLimitedToSameAccount','assetLookupLimitedToSameContact','enableEntitlementVersioning','enableEntitlements','entitlementLookupLimitedToActiveStatus','entitlementLookupLimitedToSameAccount','entitlementLookupLimitedToSameAsset','entitlementLookupLimitedToSameContact'}; - } - public class FlowBaseElement { - public MetadataService.FlowMetadataValue[] processMetadataValues; - private String[] processMetadataValues_type_info = new String[]{'processMetadataValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'processMetadataValues'}; - } - public class cancelDeployResponse_element { - public MetadataService.CancelDeployResult result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class DocumentFolder extends Folder { - public String type = 'DocumentFolder'; - public String fullName; - public String accessType; - public MetadataService.FolderShare[] folderShares; - public String name; - public String publicFolderAccess; - public MetadataService.SharedTo sharedTo; - private String[] accessType_type_info = new String[]{'accessType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] folderShares_type_info = new String[]{'folderShares','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] publicFolderAccess_type_info = new String[]{'publicFolderAccess','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sharedTo_type_info = new String[]{'sharedTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'accessType','folderShares','name','publicFolderAccess','sharedTo'}; - } - public class FlowConstant { - public String dataType; - public MetadataService.FlowElementReferenceOrValue value; - private String[] dataType_type_info = new String[]{'dataType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] value_type_info = new String[]{'value','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'dataType','value'}; - } - public class ChatterMobileSettings { - public Boolean enablePushNotifications; - private String[] enablePushNotifications_type_info = new String[]{'enablePushNotifications','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enablePushNotifications'}; - } - public class CallCenterSection { - public MetadataService.CallCenterItem[] items; - public String label; - public String name; - private String[] items_type_info = new String[]{'items','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'items','label','name'}; - } - public class PagesToOpen { - public String[] pageToOpen; - private String[] pageToOpen_type_info = new String[]{'pageToOpen','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'pageToOpen'}; - } - public class ReportChart { - public String backgroundColor1; - public String backgroundColor2; - public String backgroundFadeDir; - public MetadataService.ChartSummary[] chartSummaries; - public String chartType; - public Boolean enableHoverLabels; - public Boolean expandOthers; - public String groupingColumn; - public String legendPosition; - public String location; - public String secondaryGroupingColumn; - public Boolean showAxisLabels; - public Boolean showPercentage; - public Boolean showTotal; - public Boolean showValues; - public String size; - public Double summaryAxisManualRangeEnd; - public Double summaryAxisManualRangeStart; - public String summaryAxisRange; - public String textColor; - public Integer textSize; - public String title; - public String titleColor; - public Integer titleSize; - private String[] backgroundColor1_type_info = new String[]{'backgroundColor1','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] backgroundColor2_type_info = new String[]{'backgroundColor2','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] backgroundFadeDir_type_info = new String[]{'backgroundFadeDir','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] chartSummaries_type_info = new String[]{'chartSummaries','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] chartType_type_info = new String[]{'chartType','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enableHoverLabels_type_info = new String[]{'enableHoverLabels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] expandOthers_type_info = new String[]{'expandOthers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] groupingColumn_type_info = new String[]{'groupingColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] legendPosition_type_info = new String[]{'legendPosition','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] location_type_info = new String[]{'location','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] secondaryGroupingColumn_type_info = new String[]{'secondaryGroupingColumn','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showAxisLabels_type_info = new String[]{'showAxisLabels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showPercentage_type_info = new String[]{'showPercentage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showTotal_type_info = new String[]{'showTotal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showValues_type_info = new String[]{'showValues','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] size_type_info = new String[]{'size','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] summaryAxisManualRangeEnd_type_info = new String[]{'summaryAxisManualRangeEnd','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] summaryAxisManualRangeStart_type_info = new String[]{'summaryAxisManualRangeStart','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] summaryAxisRange_type_info = new String[]{'summaryAxisRange','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] textColor_type_info = new String[]{'textColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] textSize_type_info = new String[]{'textSize','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] title_type_info = new String[]{'title','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] titleColor_type_info = new String[]{'titleColor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] titleSize_type_info = new String[]{'titleSize','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'backgroundColor1','backgroundColor2','backgroundFadeDir','chartSummaries','chartType','enableHoverLabels','expandOthers','groupingColumn','legendPosition','location','secondaryGroupingColumn','showAxisLabels','showPercentage','showTotal','showValues','size','summaryAxisManualRangeEnd','summaryAxisManualRangeStart','summaryAxisRange','textColor','textSize','title','titleColor','titleSize'}; - } - public class checkRetrieveStatusResponse_element { - public MetadataService.RetrieveResult result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class KnowledgeCaseSettings { - public String articlePDFCreationProfile; - public MetadataService.KnowledgeSitesSettings articlePublicSharingSites; - public MetadataService.KnowledgeSitesSettings articlePublicSharingSitesChatterAnswers; - public String assignTo; - public String customizationClass; - public String defaultContributionArticleType; - public String editor; - public Boolean enableArticleCreation; - public Boolean enableArticlePublicSharingSites; - public Boolean useProfileForPDFCreation; - private String[] articlePDFCreationProfile_type_info = new String[]{'articlePDFCreationProfile','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] articlePublicSharingSites_type_info = new String[]{'articlePublicSharingSites','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] articlePublicSharingSitesChatterAnswers_type_info = new String[]{'articlePublicSharingSitesChatterAnswers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] assignTo_type_info = new String[]{'assignTo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customizationClass_type_info = new String[]{'customizationClass','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultContributionArticleType_type_info = new String[]{'defaultContributionArticleType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] editor_type_info = new String[]{'editor','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableArticleCreation_type_info = new String[]{'enableArticleCreation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableArticlePublicSharingSites_type_info = new String[]{'enableArticlePublicSharingSites','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] useProfileForPDFCreation_type_info = new String[]{'useProfileForPDFCreation','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'articlePDFCreationProfile','articlePublicSharingSites','articlePublicSharingSitesChatterAnswers','assignTo','customizationClass','defaultContributionArticleType','editor','enableArticleCreation','enableArticlePublicSharingSites','useProfileForPDFCreation'}; - } - public class SharingReason extends Metadata { - public String type = 'SharingReason'; - public String fullName; - public String label; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'label'}; - } - public class ProfileFieldLevelSecurity { - public Boolean editable; - public String field; - public Boolean readable; - private String[] editable_type_info = new String[]{'editable','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] readable_type_info = new String[]{'readable','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'editable','field','readable'}; - } - public class CompactLayout extends Metadata { - public String type = 'CompactLayout'; - public String fullName; - public String[] fields; - public String label; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'fields','label'}; - } - public class MiniLayout { - public String[] fields; - public MetadataService.RelatedListItem[] relatedLists; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] relatedLists_type_info = new String[]{'relatedLists','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'fields','relatedLists'}; - } - public class ReportBucketFieldSourceValue { - public String from_x; - public String sourceValue; - public String to; - private String[] from_x_type_info = new String[]{'from','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sourceValue_type_info = new String[]{'sourceValue','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] to_type_info = new String[]{'to','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'from_x','sourceValue','to'}; - } - public class UpsertResult { - public Boolean created; - public MetadataService.Error[] errors; - public String fullName; - public Boolean success; - private String[] created_type_info = new String[]{'created','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] errors_type_info = new String[]{'errors','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'created','errors','fullName','success'}; - } - public class AccessMapping { - public String accessLevel; - public String object_x; - public String objectField; - public String userField; - private String[] accessLevel_type_info = new String[]{'accessLevel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] object_x_type_info = new String[]{'object','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] objectField_type_info = new String[]{'objectField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] userField_type_info = new String[]{'userField','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'accessLevel','object_x','objectField','userField'}; - } - public class CustomDataTypeComponent { - public String developerSuffix; - public Boolean enforceFieldRequiredness; - public String label; - public Integer length; - public Integer precision; - public Integer scale; - public String sortOrder; - public Integer sortPriority; - public String type_x; - private String[] developerSuffix_type_info = new String[]{'developerSuffix','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] enforceFieldRequiredness_type_info = new String[]{'enforceFieldRequiredness','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] length_type_info = new String[]{'length','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] precision_type_info = new String[]{'precision','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortOrder_type_info = new String[]{'sortOrder','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] sortPriority_type_info = new String[]{'sortPriority','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] type_x_type_info = new String[]{'type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'developerSuffix','enforceFieldRequiredness','label','length','precision','scale','sortOrder','sortPriority','type_x'}; - } - public class CustomObjectTranslation extends Metadata { - public String type = 'CustomObjectTranslation'; - public String fullName; - public MetadataService.ObjectNameCaseValue[] caseValues; - public MetadataService.CustomFieldTranslation[] fields; - public String gender; - public MetadataService.LayoutTranslation[] layouts; - public String nameFieldLabel; - public MetadataService.QuickActionTranslation[] quickActions; - public MetadataService.RecordTypeTranslation[] recordTypes; - public MetadataService.SharingReasonTranslation[] sharingReasons; - public MetadataService.StandardFieldTranslation[] standardFields; - public String startsWith; - public MetadataService.ValidationRuleTranslation[] validationRules; - public MetadataService.WebLinkTranslation[] webLinks; - public MetadataService.WorkflowTaskTranslation[] workflowTasks; - private String[] caseValues_type_info = new String[]{'caseValues','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fields_type_info = new String[]{'fields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] gender_type_info = new String[]{'gender','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] layouts_type_info = new String[]{'layouts','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] nameFieldLabel_type_info = new String[]{'nameFieldLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] quickActions_type_info = new String[]{'quickActions','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] recordTypes_type_info = new String[]{'recordTypes','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] sharingReasons_type_info = new String[]{'sharingReasons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] standardFields_type_info = new String[]{'standardFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] startsWith_type_info = new String[]{'startsWith','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] validationRules_type_info = new String[]{'validationRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] webLinks_type_info = new String[]{'webLinks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] workflowTasks_type_info = new String[]{'workflowTasks','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'caseValues','fields','gender','layouts','nameFieldLabel','quickActions','recordTypes','sharingReasons','standardFields','startsWith','validationRules','webLinks','workflowTasks'}; - } - public class CustomApplication extends Metadata { - public String type = 'CustomApplication'; - public String fullName; - public MetadataService.CustomApplicationComponents customApplicationComponents; - public String defaultLandingTab; - public String description; - public String detailPageRefreshMethod; - public MetadataService.DomainWhitelist domainWhitelist; - public Boolean enableKeyboardShortcuts; - public Boolean enableMultiMonitorComponents; - public Boolean isServiceCloudConsole; - public MetadataService.KeyboardShortcuts keyboardShortcuts; - public String label; - public MetadataService.ListPlacement listPlacement; - public String listRefreshMethod; - public MetadataService.LiveAgentConfig liveAgentConfig; - public String logo; - public MetadataService.PushNotifications pushNotifications; - public Boolean saveUserSessions; - public String[] tab; - public MetadataService.WorkspaceMappings workspaceMappings; - private String[] customApplicationComponents_type_info = new String[]{'customApplicationComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] defaultLandingTab_type_info = new String[]{'defaultLandingTab','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] detailPageRefreshMethod_type_info = new String[]{'detailPageRefreshMethod','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] domainWhitelist_type_info = new String[]{'domainWhitelist','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableKeyboardShortcuts_type_info = new String[]{'enableKeyboardShortcuts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableMultiMonitorComponents_type_info = new String[]{'enableMultiMonitorComponents','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isServiceCloudConsole_type_info = new String[]{'isServiceCloudConsole','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] keyboardShortcuts_type_info = new String[]{'keyboardShortcuts','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] listPlacement_type_info = new String[]{'listPlacement','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] listRefreshMethod_type_info = new String[]{'listRefreshMethod','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] liveAgentConfig_type_info = new String[]{'liveAgentConfig','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] logo_type_info = new String[]{'logo','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] pushNotifications_type_info = new String[]{'pushNotifications','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] saveUserSessions_type_info = new String[]{'saveUserSessions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] tab_type_info = new String[]{'tab','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] workspaceMappings_type_info = new String[]{'workspaceMappings','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'customApplicationComponents','defaultLandingTab','description','detailPageRefreshMethod','domainWhitelist','enableKeyboardShortcuts','enableMultiMonitorComponents','isServiceCloudConsole','keyboardShortcuts','label','listPlacement','listRefreshMethod','liveAgentConfig','logo','pushNotifications','saveUserSessions','tab','workspaceMappings'}; - } - public class ReportAggregate { - public String acrossGroupingContext; - public String calculatedFormula; - public String datatype; - public String description; - public String developerName; - public String downGroupingContext; - public Boolean isActive; - public Boolean isCrossBlock; - public String masterLabel; - public String reportType; - public Integer scale; - private String[] acrossGroupingContext_type_info = new String[]{'acrossGroupingContext','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] calculatedFormula_type_info = new String[]{'calculatedFormula','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] datatype_type_info = new String[]{'datatype','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] developerName_type_info = new String[]{'developerName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] downGroupingContext_type_info = new String[]{'downGroupingContext','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isActive_type_info = new String[]{'isActive','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] isCrossBlock_type_info = new String[]{'isCrossBlock','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] masterLabel_type_info = new String[]{'masterLabel','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] reportType_type_info = new String[]{'reportType','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scale_type_info = new String[]{'scale','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'acrossGroupingContext','calculatedFormula','datatype','description','developerName','downGroupingContext','isActive','isCrossBlock','masterLabel','reportType','scale'}; - } - public class AgentConfigUserAssignments { - public String[] user_x; - private String[] user_x_type_info = new String[]{'user','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'user_x'}; - } - public class DashboardMobileSettings { - public Boolean enableDashboardIPadApp; - private String[] enableDashboardIPadApp_type_info = new String[]{'enableDashboardIPadApp','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'enableDashboardIPadApp'}; - } - public class NetworkMemberGroup { - public String[] permissionSet; - public String[] profile; - private String[] permissionSet_type_info = new String[]{'permissionSet','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] profile_type_info = new String[]{'profile','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'permissionSet','profile'}; - } - public class CampaignSharingRules { - public MetadataService.CampaignCriteriaBasedSharingRule[] criteriaBasedRules; - public MetadataService.CampaignOwnerSharingRule[] ownerRules; - private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; - } - public class DebuggingInfo_element { - public String debugLog; - private String[] debugLog_type_info = new String[]{'debugLog','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'debugLog'}; - } - public class Territory2 extends Metadata { - public String type = 'Territory2'; - public String fullName; - public String accountAccessLevel; - public String caseAccessLevel; - public String contactAccessLevel; - public MetadataService.FieldValue[] customFields; - public String description; - public String name; - public String opportunityAccessLevel; - public String parentTerritory; - public MetadataService.Territory2RuleAssociation[] ruleAssociations; - public String territory2Type; - private String[] accountAccessLevel_type_info = new String[]{'accountAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] caseAccessLevel_type_info = new String[]{'caseAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] contactAccessLevel_type_info = new String[]{'contactAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customFields_type_info = new String[]{'customFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] opportunityAccessLevel_type_info = new String[]{'opportunityAccessLevel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] parentTerritory_type_info = new String[]{'parentTerritory','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] ruleAssociations_type_info = new String[]{'ruleAssociations','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] territory2Type_type_info = new String[]{'territory2Type','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'accountAccessLevel','caseAccessLevel','contactAccessLevel','customFields','description','name','opportunityAccessLevel','parentTerritory','ruleAssociations','territory2Type'}; - } - public class Container { - public Integer height; - public Boolean isContainerAutoSizeEnabled; - public String region; - public MetadataService.SidebarComponent[] sidebarComponents; - public String style; - public String unit; - public Integer width; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] isContainerAutoSizeEnabled_type_info = new String[]{'isContainerAutoSizeEnabled','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] region_type_info = new String[]{'region','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] sidebarComponents_type_info = new String[]{'sidebarComponents','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] style_type_info = new String[]{'style','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] unit_type_info = new String[]{'unit','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'height','isContainerAutoSizeEnabled','region','sidebarComponents','style','unit','width'}; - } - public class FindSimilarOppFilter { - public String[] similarOpportunitiesDisplayColumns; - public String[] similarOpportunitiesMatchFields; - private String[] similarOpportunitiesDisplayColumns_type_info = new String[]{'similarOpportunitiesDisplayColumns','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] similarOpportunitiesMatchFields_type_info = new String[]{'similarOpportunitiesMatchFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'similarOpportunitiesDisplayColumns','similarOpportunitiesMatchFields'}; - } - public class Community extends Metadata { - public String type = 'Community'; - public String fullName; - public Boolean active; - public String communityFeedPage; - public String description; - public String emailFooterDocument; - public String emailHeaderDocument; - public String emailNotificationUrl; - public Boolean enableChatterAnswers; - public Boolean enablePrivateQuestions; - public String expertsGroup; - public String portal; - public MetadataService.ReputationLevels reputationLevels; - public Boolean showInPortal; - public String site; - private String[] active_type_info = new String[]{'active','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] communityFeedPage_type_info = new String[]{'communityFeedPage','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailFooterDocument_type_info = new String[]{'emailFooterDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailHeaderDocument_type_info = new String[]{'emailHeaderDocument','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emailNotificationUrl_type_info = new String[]{'emailNotificationUrl','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enableChatterAnswers_type_info = new String[]{'enableChatterAnswers','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] enablePrivateQuestions_type_info = new String[]{'enablePrivateQuestions','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] expertsGroup_type_info = new String[]{'expertsGroup','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] portal_type_info = new String[]{'portal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] reputationLevels_type_info = new String[]{'reputationLevels','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showInPortal_type_info = new String[]{'showInPortal','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] site_type_info = new String[]{'site','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'active','communityFeedPage','description','emailFooterDocument','emailHeaderDocument','emailNotificationUrl','enableChatterAnswers','enablePrivateQuestions','expertsGroup','portal','reputationLevels','showInPortal','site'}; - } - public class DeleteResult { - public MetadataService.Error[] errors; - public String fullName; - public Boolean success; - private String[] errors_type_info = new String[]{'errors','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] fullName_type_info = new String[]{'fullName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] success_type_info = new String[]{'success','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'errors','fullName','success'}; - } - public class LayoutItem { - public String behavior; - public String canvas; - public String component; - public String customLink; - public Boolean emptySpace; - public String field; - public Integer height; - public String page_x; - public MetadataService.ReportChartComponentLayoutItem reportChartComponent; - public String scontrol; - public Boolean showLabel; - public Boolean showScrollbars; - public String width; - private String[] behavior_type_info = new String[]{'behavior','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] canvas_type_info = new String[]{'canvas','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] component_type_info = new String[]{'component','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] customLink_type_info = new String[]{'customLink','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] emptySpace_type_info = new String[]{'emptySpace','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] field_type_info = new String[]{'field','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] height_type_info = new String[]{'height','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] page_x_type_info = new String[]{'page','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] reportChartComponent_type_info = new String[]{'reportChartComponent','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] scontrol_type_info = new String[]{'scontrol','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showLabel_type_info = new String[]{'showLabel','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] showScrollbars_type_info = new String[]{'showScrollbars','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] width_type_info = new String[]{'width','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'behavior','canvas','component','customLink','emptySpace','field','height','page_x','reportChartComponent','scontrol','showLabel','showScrollbars','width'}; - } - public class SharingReasonTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class SharingSet extends Metadata { - public String type = 'SharingSet'; - public String fullName; - public MetadataService.AccessMapping[] accessMappings; - public String description; - public String name; - public String[] profiles; - private String[] accessMappings_type_info = new String[]{'accessMappings','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] description_type_info = new String[]{'description','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] profiles_type_info = new String[]{'profiles','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] type_att_info = new String[]{'xsi:type'}; - private String[] fullName_type_info = new String[]{'fullName','http://www.w3.org/2001/XMLSchema','string','0','1','false'}; - private String[] field_order_type_info = new String[]{'fullName', 'accessMappings','description','name','profiles'}; - } - public class checkDeployStatusResponse_element { - public MetadataService.DeployResult result; - private String[] result_type_info = new String[]{'result','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'result'}; - } - public class ReportColorRange { - public String aggregate; - public String columnName; - public Double highBreakpoint; - public String highColor; - public Double lowBreakpoint; - public String lowColor; - public String midColor; - private String[] aggregate_type_info = new String[]{'aggregate','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] columnName_type_info = new String[]{'columnName','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] highBreakpoint_type_info = new String[]{'highBreakpoint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] highColor_type_info = new String[]{'highColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] lowBreakpoint_type_info = new String[]{'lowBreakpoint','http://soap.sforce.com/2006/04/metadata',null,'0','1','false'}; - private String[] lowColor_type_info = new String[]{'lowColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] midColor_type_info = new String[]{'midColor','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'aggregate','columnName','highBreakpoint','highColor','lowBreakpoint','lowColor','midColor'}; - } - public class SearchLayouts { - public String[] customTabListAdditionalFields; - public String[] excludedStandardButtons; - public String[] listViewButtons; - public String[] lookupDialogsAdditionalFields; - public String[] lookupFilterFields; - public String[] lookupPhoneDialogsAdditionalFields; - public String[] searchFilterFields; - public String[] searchResultsAdditionalFields; - public String[] searchResultsCustomButtons; - private String[] customTabListAdditionalFields_type_info = new String[]{'customTabListAdditionalFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] excludedStandardButtons_type_info = new String[]{'excludedStandardButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] listViewButtons_type_info = new String[]{'listViewButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] lookupDialogsAdditionalFields_type_info = new String[]{'lookupDialogsAdditionalFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] lookupFilterFields_type_info = new String[]{'lookupFilterFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] lookupPhoneDialogsAdditionalFields_type_info = new String[]{'lookupPhoneDialogsAdditionalFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] searchFilterFields_type_info = new String[]{'searchFilterFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] searchResultsAdditionalFields_type_info = new String[]{'searchResultsAdditionalFields','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] searchResultsCustomButtons_type_info = new String[]{'searchResultsCustomButtons','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'customTabListAdditionalFields','excludedStandardButtons','listViewButtons','lookupDialogsAdditionalFields','lookupFilterFields','lookupPhoneDialogsAdditionalFields','searchFilterFields','searchResultsAdditionalFields','searchResultsCustomButtons'}; - } - public class QuickActionTranslation { - public String label; - public String name; - private String[] label_type_info = new String[]{'label','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] name_type_info = new String[]{'name','http://soap.sforce.com/2006/04/metadata',null,'1','1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'label','name'}; - } - public class AccountSharingRules { - public MetadataService.AccountCriteriaBasedSharingRule[] criteriaBasedRules; - public MetadataService.AccountOwnerSharingRule[] ownerRules; - private String[] criteriaBasedRules_type_info = new String[]{'criteriaBasedRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] ownerRules_type_info = new String[]{'ownerRules','http://soap.sforce.com/2006/04/metadata',null,'0','-1','false'}; - private String[] apex_schema_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata','true','false'}; - private String[] field_order_type_info = new String[]{'criteriaBasedRules','ownerRules'}; - } - public class MetadataPort { - public String endpoint_x = URL.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/m/32.0'; - public Map inputHttpHeaders_x; - public Map outputHttpHeaders_x; - public String clientCertName_x; - public String clientCert_x; - public String clientCertPasswd_x; - public Integer timeout_x; - public MetadataService.SessionHeader_element SessionHeader; - public MetadataService.DebuggingInfo_element DebuggingInfo; - public MetadataService.CallOptions_element CallOptions; - public MetadataService.DebuggingHeader_element DebuggingHeader; - private String SessionHeader_hns = 'SessionHeader=http://soap.sforce.com/2006/04/metadata'; - private String DebuggingInfo_hns = 'DebuggingInfo=http://soap.sforce.com/2006/04/metadata'; - private String CallOptions_hns = 'CallOptions=http://soap.sforce.com/2006/04/metadata'; - private String DebuggingHeader_hns = 'DebuggingHeader=http://soap.sforce.com/2006/04/metadata'; - private String[] ns_map_type_info = new String[]{'http://soap.sforce.com/2006/04/metadata', 'MetadataService'}; - public MetadataService.SaveResult[] updateMetadata(MetadataService.Metadata[] metadata) { - MetadataService.updateMetadata_element request_x = new MetadataService.updateMetadata_element(); - request_x.metadata = metadata; - MetadataService.updateMetadataResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'updateMetadata', - 'http://soap.sforce.com/2006/04/metadata', - 'updateMetadataResponse', - 'MetadataService.updateMetadataResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.AsyncResult retrieve(MetadataService.RetrieveRequest retrieveRequest) { - MetadataService.retrieve_element request_x = new MetadataService.retrieve_element(); - request_x.retrieveRequest = retrieveRequest; - MetadataService.retrieveResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'retrieve', - 'http://soap.sforce.com/2006/04/metadata', - 'retrieveResponse', - 'MetadataService.retrieveResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.DeployResult checkDeployStatus(String asyncProcessId,Boolean includeDetails) { - MetadataService.checkDeployStatus_element request_x = new MetadataService.checkDeployStatus_element(); - request_x.asyncProcessId = asyncProcessId; - request_x.includeDetails = includeDetails; - MetadataService.checkDeployStatusResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'checkDeployStatus', - 'http://soap.sforce.com/2006/04/metadata', - 'checkDeployStatusResponse', - 'MetadataService.checkDeployStatusResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.SaveResult renameMetadata(String type_x,String oldFullName,String newFullName) { - MetadataService.renameMetadata_element request_x = new MetadataService.renameMetadata_element(); - request_x.type_x = type_x; - request_x.oldFullName = oldFullName; - request_x.newFullName = newFullName; - MetadataService.renameMetadataResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'renameMetadata', - 'http://soap.sforce.com/2006/04/metadata', - 'renameMetadataResponse', - 'MetadataService.renameMetadataResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.CancelDeployResult cancelDeploy(String String_x) { - MetadataService.cancelDeploy_element request_x = new MetadataService.cancelDeploy_element(); - request_x.String_x = String_x; - MetadataService.cancelDeployResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'cancelDeploy', - 'http://soap.sforce.com/2006/04/metadata', - 'cancelDeployResponse', - 'MetadataService.cancelDeployResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.FileProperties[] listMetadata(MetadataService.ListMetadataQuery[] queries,Double asOfVersion) { - MetadataService.listMetadata_element request_x = new MetadataService.listMetadata_element(); - request_x.queries = queries; - request_x.asOfVersion = asOfVersion; - MetadataService.listMetadataResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'listMetadata', - 'http://soap.sforce.com/2006/04/metadata', - 'listMetadataResponse', - 'MetadataService.listMetadataResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.DeleteResult[] deleteMetadata(String type_x,String[] fullNames) { - MetadataService.deleteMetadata_element request_x = new MetadataService.deleteMetadata_element(); - request_x.type_x = type_x; - request_x.fullNames = fullNames; - MetadataService.deleteMetadataResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'deleteMetadata', - 'http://soap.sforce.com/2006/04/metadata', - 'deleteMetadataResponse', - 'MetadataService.deleteMetadataResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.UpsertResult[] upsertMetadata(MetadataService.Metadata[] metadata) { - MetadataService.upsertMetadata_element request_x = new MetadataService.upsertMetadata_element(); - request_x.metadata = metadata; - MetadataService.upsertMetadataResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'upsertMetadata', - 'http://soap.sforce.com/2006/04/metadata', - 'upsertMetadataResponse', - 'MetadataService.upsertMetadataResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.SaveResult[] createMetadata(MetadataService.Metadata[] metadata) { - MetadataService.createMetadata_element request_x = new MetadataService.createMetadata_element(); - request_x.metadata = metadata; - MetadataService.createMetadataResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'createMetadata', - 'http://soap.sforce.com/2006/04/metadata', - 'createMetadataResponse', - 'MetadataService.createMetadataResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.RetrieveResult checkRetrieveStatus(String asyncProcessId) { - MetadataService.checkRetrieveStatus_element request_x = new MetadataService.checkRetrieveStatus_element(); - request_x.asyncProcessId = asyncProcessId; - MetadataService.checkRetrieveStatusResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'checkRetrieveStatus', - 'http://soap.sforce.com/2006/04/metadata', - 'checkRetrieveStatusResponse', - 'MetadataService.checkRetrieveStatusResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.IReadResult readMetadata(String type_x,String[] fullNames) { - MetadataService.readMetadata_element request_x = new MetadataService.readMetadata_element(); - request_x.type_x = type_x; - request_x.fullNames = fullNames; - MetadataService.IReadResponseElement response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'readMetadata', - 'http://soap.sforce.com/2006/04/metadata', - 'readMetadataResponse', - 'MetadataService.read' + type_x + 'Response_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.getResult(); - } - public MetadataService.DescribeMetadataResult describeMetadata(Double asOfVersion) { - MetadataService.describeMetadata_element request_x = new MetadataService.describeMetadata_element(); - request_x.asOfVersion = asOfVersion; - MetadataService.describeMetadataResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'describeMetadata', - 'http://soap.sforce.com/2006/04/metadata', - 'describeMetadataResponse', - 'MetadataService.describeMetadataResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - public MetadataService.AsyncResult deploy(String ZipFile,MetadataService.DeployOptions DeployOptions) { - MetadataService.deploy_element request_x = new MetadataService.deploy_element(); - request_x.ZipFile = ZipFile; - request_x.DeployOptions = DeployOptions; - MetadataService.deployResponse_element response_x; - Map response_map_x = new Map(); - response_map_x.put('response_x', response_x); - WebServiceCallout.invoke( - this, - request_x, - response_map_x, - new String[]{endpoint_x, - '', - 'http://soap.sforce.com/2006/04/metadata', - 'deploy', - 'http://soap.sforce.com/2006/04/metadata', - 'deployResponse', - 'MetadataService.deployResponse_element'} - ); - response_x = response_map_x.get('response_x'); - return response_x.result; - } - } -} From ca12b2627f968b1a151b1b0de8361dabe5c29233 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:52:08 -0700 Subject: [PATCH 58/93] wrong location --- .../custom_md_loader/classes/MetadataService.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataService.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataService.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataService.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataService.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From fa8ccac68984ac2ce1a4c2a2a25b54dde565c873 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:52:19 -0700 Subject: [PATCH 59/93] wrong location --- .../classes/MetadataServiceTest.cls | 875 ------------------ 1 file changed, 875 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls b/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls deleted file mode 100644 index 68da540..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls +++ /dev/null @@ -1,875 +0,0 @@ -/** - * Copyright (c) 2012, FinancialForce.com, inc - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * - Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * - Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - Neither the name of the FinancialForce.com, inc nor the names of its contributors - * may be used to endorse or promote products derived from this software without - * specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL - * THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -**/ - -/** - * This is a dummy test class to obtain 100% coverage for the generated WSDL2Apex code, it is not a funcitonal test class - * You should follow the usual practices to cover your other code, as shown in the MetadataCreateJobTest.cls - **/ -@isTest -private class MetadataServiceTest -{ - /** - * Dummy Metadata API web service mock class (see MetadataCreateJobTest.cls for a better example) - **/ - private class WebServiceMockImpl implements WebServiceMock - { - public void doInvoke( - Object stub, Object request, Map response, - String endpoint, String soapAction, String requestName, - String responseNS, String responseName, String responseType) - { - if(request instanceof MetadataService.retrieve_element) - response.put('response_x', new MetadataService.retrieveResponse_element()); - else if(request instanceof MetadataService.checkDeployStatus_element) - response.put('response_x', new MetadataService.checkDeployStatusResponse_element()); - else if(request instanceof MetadataService.listMetadata_element) - response.put('response_x', new MetadataService.listMetadataResponse_element()); - else if(request instanceof MetadataService.checkRetrieveStatus_element) - response.put('response_x', new MetadataService.checkRetrieveStatusResponse_element()); - else if(request instanceof MetadataService.describeMetadata_element) - response.put('response_x', new MetadataService.describeMetadataResponse_element()); - else if(request instanceof MetadataService.deploy_element) - response.put('response_x', new MetadataService.deployResponse_element()); - else if(request instanceof MetadataService.updateMetadata_element) - response.put('response_x', new MetadataService.updateMetadataResponse_element()); - else if(request instanceof MetadataService.renameMetadata_element) - response.put('response_x', new MetadataService.renameMetadataResponse_element()); - else if(request instanceof MetadataService.cancelDeploy_element) - response.put('response_x', new MetadataService.cancelDeployResponse_element()); - else if(request instanceof MetadataService.deleteMetadata_element) - response.put('response_x', new MetadataService.deleteMetadataResponse_element()); - else if(request instanceof MetadataService.upsertMetadata_element) - response.put('response_x', new MetadataService.upsertMetadataResponse_element()); - else if(request instanceof MetadataService.createMetadata_element) - response.put('response_x', new MetadataService.createMetadataResponse_element()); - return; - } - } - - @IsTest - private static void coverGeneratedCodeCRUDOperations() - { - // Null Web Service mock implementation - System.Test.setMock(WebServiceMock.class, new WebServiceMockImpl()); - // Only required to workaround a current code coverage bug in the platform - MetadataService metaDataService = new MetadataService(); - // Invoke operations - MetadataService.MetadataPort metaDataPort = new MetadataService.MetadataPort(); - } - - @IsTest - private static void coverGeneratedCodeFileBasedOperations1() - { - // Null Web Service mock implementation - System.Test.setMock(WebServiceMock.class, new WebServiceMockImpl()); - // Only required to workaround a current code coverage bug in the platform - MetadataService metaDataService = new MetadataService(); - // Invoke operations - MetadataService.MetadataPort metaDataPort = new MetadataService.MetadataPort(); - metaDataPort.retrieve(null); - metaDataPort.checkDeployStatus(null, false); - metaDataPort.listMetadata(null, null); - metaDataPort.describeMetadata(null); - metaDataPort.checkRetrieveStatus(null); - metaDataPort.deploy(null, null); - metaDataPort.checkDeployStatus(null, false); - metaDataPort.updateMetadata(null); - metaDataPort.renameMetadata(null, null, null); - metaDataPort.cancelDeploy(null); - } - - @IsTest - private static void coverGeneratedCodeFileBasedOperations2() - { - // Null Web Service mock implementation - System.Test.setMock(WebServiceMock.class, new WebServiceMockImpl()); - // Only required to workaround a current code coverage bug in the platform - MetadataService metaDataService = new MetadataService(); - // Invoke operations - MetadataService.MetadataPort metaDataPort = new MetadataService.MetadataPort(); - metaDataPort.deleteMetadata(null, null); - metaDataPort.upsertMetadata(null); - metaDataPort.createMetadata(null); - } - - @IsTest - private static void coverGeneratedCodeTypes() - { - // Reference types - new MetadataService(); - new MetadataService.listMetadataResponse_element(); - new MetadataService.WorkflowRule(); - new MetadataService.AccountOwnerSharingRule(); - new MetadataService.RecordTypeTranslation(); - new MetadataService.checkDeployStatus_element(); - new MetadataService.CodeCoverageWarning(); - new MetadataService.FlowApexPluginCall(); - new MetadataService.FlowInputValidationRule(); - new MetadataService.FlowFormula(); - new MetadataService.CustomObjectCriteriaBasedSharingRule(); - new MetadataService.PasswordPolicies(); - new MetadataService.QueueSobject(); - new MetadataService.CaseSharingRules(); - new MetadataService.PicklistValueTranslation(); - new MetadataService.OpportunityOwnerSharingRule(); - new MetadataService.ContactOwnerSharingRule(); - new MetadataService.CustomDataType(); - new MetadataService.PrimaryTabComponents(); - new MetadataService.WorkflowEmailRecipient(); - new MetadataService.DescribeMetadataResult(); - new MetadataService.RecordType(); - new MetadataService.Scontrol(); - new MetadataService.DashboardComponent(); - new MetadataService.ContactCriteriaBasedSharingRule(); - new MetadataService.FilterItem(); - new MetadataService.Profile(); - new MetadataService.ReportFilter(); - new MetadataService.PermissionSetApexClassAccess(); - new MetadataService.LogInfo(); - new MetadataService.Layout(); - new MetadataService.WebLink(); - new MetadataService.WorkflowTaskTranslation(); - new MetadataService.FlowElement(); - new MetadataService.ObjectNameCaseValue(); - new MetadataService.FlowInputFieldAssignment(); - new MetadataService.CustomDataTypeTranslation(); - new MetadataService.DashboardComponentSection(); - new MetadataService.ReportTypeColumn(); - new MetadataService.CallOptions_element(); - new MetadataService.CustomObjectOwnerSharingRule(); - new MetadataService.CustomFieldTranslation(); - new MetadataService.AnalyticSnapshot(); - new MetadataService.FlowRule(); - new MetadataService.FlowRecordUpdate(); - new MetadataService.CustomSite(); - new MetadataService.ReportBlockInfo(); - new MetadataService.describeMetadataResponse_element(); - new MetadataService.CaseOwnerSharingRule(); - new MetadataService.ScontrolTranslation(); - new MetadataService.DeployMessage(); - new MetadataService.FlowSubflowInputAssignment(); - new MetadataService.Group_x(); - new MetadataService.ReportColumn(); - new MetadataService.ReportType(); - new MetadataService.CustomPageWebLink(); - new MetadataService.CodeCoverageResult(); - new MetadataService.ApexComponent(); - new MetadataService.BaseSharingRule(); - new MetadataService.WorkflowKnowledgePublish(); - new MetadataService.NetworkAccess(); - new MetadataService.Workflow(); - new MetadataService.RecordTypePicklistValue(); - new MetadataService.describeMetadata_element(); - new MetadataService.DashboardFilterColumn(); - new MetadataService.FlowChoice(); - new MetadataService.ReportParam(); - new MetadataService.RoleOrTerritory(); - new MetadataService.FlowStep(); - new MetadataService.FlowApexPluginCallInputParameter(); - new MetadataService.WorkflowActionReference(); - new MetadataService.ProfileObjectPermissions(); - new MetadataService.Role(); - new MetadataService.RetrieveResult(); - new MetadataService.SecuritySettings(); - new MetadataService.WorkflowTimeTrigger(); - new MetadataService.CustomObjectSharingRules(); - new MetadataService.retrieve_element(); - new MetadataService.DescribeMetadataObject(); - new MetadataService.DashboardFilterOption(); - new MetadataService.LayoutColumn(); - new MetadataService.WorkflowOutboundMessage(); - new MetadataService.RunTestSuccess(); - new MetadataService.Queue(); - new MetadataService.LeadSharingRules(); - new MetadataService.ListViewFilter(); - new MetadataService.CampaignOwnerSharingRule(); - new MetadataService.CustomField(); - new MetadataService.WorkflowTask(); - new MetadataService.deployResponse_element(); - new MetadataService.DataCategory(); - new MetadataService.FlowOutputFieldAssignment(); - new MetadataService.EmailTemplate(); - new MetadataService.ReportAggregateReference(); - new MetadataService.ObjectUsage(); - new MetadataService.FileProperties(); - new MetadataService.CustomTabTranslation(); - new MetadataService.BusinessProcess(); - new MetadataService.Flow(); - new MetadataService.PermissionSet(); - new MetadataService.PermissionSetObjectPermissions(); - new MetadataService.ReportCrossFilter(); - new MetadataService.Report(); - new MetadataService.FlowSubflowOutputAssignment(); - new MetadataService.ListView(); - new MetadataService.FlowRecordCreate(); - new MetadataService.DashboardTableColumn(); - new MetadataService.ContactSharingRules(); - new MetadataService.AccountTerritorySharingRules(); - new MetadataService.AsyncResult(); - new MetadataService.ArticleTypeChannelDisplay(); - new MetadataService.checkRetrieveStatus_element(); - new MetadataService.ProfileLayoutAssignment(); - new MetadataService.ReportFolder(); - new MetadataService.FlowTextTemplate(); - new MetadataService.RelatedListItem(); - new MetadataService.FlowNode(); - new MetadataService.RetrieveRequest(); - new MetadataService.ListMetadataQuery(); - new MetadataService.FlowConnector(); - new MetadataService.CustomApplicationComponent(); - new MetadataService.FlowRecordLookup(); - new MetadataService.FieldSet(); - new MetadataService.ProfileApexClassAccess(); - new MetadataService.AccountCriteriaBasedSharingRule(); - new MetadataService.DebuggingHeader_element(); - new MetadataService.CustomDataTypeComponentTranslation(); - new MetadataService.FlowRecordDelete(); - new MetadataService.FlowDecision(); - new MetadataService.ReportTypeSectionTranslation(); - new MetadataService.IpRange(); - new MetadataService.FlowApexPluginCallOutputParameter(); - new MetadataService.ReportBucketField(); - new MetadataService.CaseCriteriaBasedSharingRule(); - new MetadataService.CustomLabel(); - new MetadataService.Attachment(); - new MetadataService.SharingRules(); - new MetadataService.CustomConsoleComponents(); - new MetadataService.Portal(); - new MetadataService.DomainWhitelist(); - new MetadataService.ChartSummary(); - new MetadataService.RunTestFailure(); - new MetadataService.Territory(); - new MetadataService.SharedTo(); - new MetadataService.FlowRecordFilter(); - new MetadataService.SubtabComponents(); - new MetadataService.FlowScreen(); - new MetadataService.WorkflowAlert(); - new MetadataService.Picklist(); - new MetadataService.ReportLayoutSection(); - new MetadataService.SummaryLayoutItem(); - new MetadataService.LayoutSection(); - new MetadataService.ReportTimeFrameFilter(); - new MetadataService.LayoutSectionTranslation(); - new MetadataService.DataCategoryGroup(); - new MetadataService.listMetadata_element(); - new MetadataService.ValidationRule(); - new MetadataService.WorkspaceMapping(); - new MetadataService.MetadataWithContent(); - new MetadataService.ValidationRuleTranslation(); - new MetadataService.AccountTerritorySharingRule(); - new MetadataService.Metadata(); - new MetadataService.ReportBucketFieldValue(); - new MetadataService.OpportunitySharingRules(); - new MetadataService.HomePageLayout(); - new MetadataService.FlowSubflow(); - new MetadataService.FlowScreenField(); - new MetadataService.SiteWebAddress(); - new MetadataService.RetrieveMessage(); - new MetadataService.Dashboard(); - new MetadataService.EmailFolder(); - new MetadataService.SessionHeader_element(); - new MetadataService.SummaryLayout(); - new MetadataService.FlowCondition(); - new MetadataService.DeployOptions(); - new MetadataService.FlowAssignment(); - new MetadataService.ProfileApplicationVisibility(); - new MetadataService.CustomApplicationComponents(); - new MetadataService.FlowElementReferenceOrValue(); - new MetadataService.EntitlementTemplate(); - new MetadataService.ProfileTabVisibility(); - new MetadataService.ActionOverride(); - new MetadataService.WorkspaceMappings(); - new MetadataService.WorkflowAction(); - new MetadataService.DashboardFolder(); - new MetadataService.PermissionSetApexPageAccess(); - new MetadataService.LayoutTranslation(); - new MetadataService.CustomObject(); - new MetadataService.Translations(); - new MetadataService.ApexTrigger(); - new MetadataService.ReportTypeTranslation(); - new MetadataService.FlowAssignmentItem(); - new MetadataService.CustomApplicationTranslation(); - new MetadataService.CustomLabels(); - new MetadataService.PackageTypeMembers(); - new MetadataService.PicklistValue(); - new MetadataService.RemoteSiteSetting(); - new MetadataService.deploy_element(); - new MetadataService.retrieveResponse_element(); - new MetadataService.ArticleTypeTemplate(); - new MetadataService.ReportGrouping(); - new MetadataService.PermissionSetFieldPermissions(); - new MetadataService.AnalyticSnapshotMapping(); - new MetadataService.LeadCriteriaBasedSharingRule(); - new MetadataService.SharingRecalculation(); - new MetadataService.ProfileLoginIpRange(); - new MetadataService.WebLinkTranslation(); - new MetadataService.ObjectRelationship(); - new MetadataService.ListPlacement(); - new MetadataService.SiteRedirectMapping(); - new MetadataService.OwnerSharingRule(); - new MetadataService.WorkflowFieldUpdate(); - new MetadataService.LetterheadLine(); - new MetadataService.OpportunityCriteriaBasedSharingRule(); - new MetadataService.CustomTab(); - new MetadataService.FlowChoiceUserInput(); - new MetadataService.Letterhead(); - new MetadataService.ReportTypeColumnTranslation(); - new MetadataService.CustomPageWebLinkTranslation(); - new MetadataService.DocumentFolder(); - new MetadataService.FlowConstant(); - new MetadataService.ProfileRecordTypeVisibility(); - new MetadataService.PackageVersion(); - new MetadataService.CustomLabelTranslation(); - new MetadataService.ReportChart(); - new MetadataService.checkRetrieveStatusResponse_element(); - new MetadataService.LeadOwnerSharingRule(); - new MetadataService.ProfileFieldLevelSecurity(); - new MetadataService.SharingReason(); - new MetadataService.RunTestsResult(); - new MetadataService.PermissionSetUserPermission(); - new MetadataService.MiniLayout(); - new MetadataService.FlowVariable(); - new MetadataService.ProfileLoginHours(); - new MetadataService.DashboardFilter(); - new MetadataService.CodeLocation(); - new MetadataService.ReportBucketFieldSourceValue(); - new MetadataService.FieldSetItem(); - new MetadataService.ReportFilterItem(); - new MetadataService.FlowDynamicChoiceSet(); - new MetadataService.CustomDataTypeComponent(); - new MetadataService.CustomObjectTranslation(); - new MetadataService.CustomApplication(); - new MetadataService.ReportAggregate(); - new MetadataService.ApexClass(); - new MetadataService.CampaignSharingRules(); - new MetadataService.DebuggingInfo_element(); - new MetadataService.Package_x(); - new MetadataService.SessionSettings(); - new MetadataService.Document(); - new MetadataService.Folder(); - new MetadataService.DeployResult(); - new MetadataService.CampaignCriteriaBasedSharingRule(); - new MetadataService.LayoutItem(); - new MetadataService.ProfileApexPageAccess(); - new MetadataService.SharingReasonTranslation(); - new MetadataService.checkDeployStatusResponse_element(); - new MetadataService.ReportColorRange(); - new MetadataService.SearchLayouts(); - new MetadataService.LetterheadHeaderFooter(); - new MetadataService.HomePageComponent(); - new MetadataService.AccountSharingRules(); - new MetadataService.MobileSettings(); - new MetadataService.EscalationRules(); - new MetadataService.KnowledgeAnswerSettings(); - new MetadataService.ExternalDataSource(); - new MetadataService.EntitlementProcess(); - new MetadataService.IdeasSettings(); - new MetadataService.Country(); - new MetadataService.ReputationLevels(); - new MetadataService.KnowledgeSitesSettings(); - new MetadataService.AddressSettings(); - new MetadataService.ProfileExternalDataSourceAccess(); - new MetadataService.CallCenterItem(); - new MetadataService.CallCenter(); - new MetadataService.PermissionSetExternalDataSourceAccess(); - new MetadataService.PermissionSetTabSetting(); - new MetadataService.AuthProvider(); - new MetadataService.EmailToCaseSettings(); - new MetadataService.EscalationAction(); - new MetadataService.State(); - new MetadataService.AssignmentRule(); - new MetadataService.AutoResponseRule(); - new MetadataService.CaseSettings(); - new MetadataService.ChatterAnswersSettings(); - new MetadataService.CountriesAndStates(); - new MetadataService.SFDCMobileSettings(); - new MetadataService.EntitlementProcessMilestoneItem(); - new MetadataService.TouchMobileSettings(); - new MetadataService.AssignmentRules(); - new MetadataService.ContractSettings(); - new MetadataService.KnowledgeCaseSettings(); - new MetadataService.ChatterAnswersReputationLevel(); - new MetadataService.KnowledgeSettings(); - new MetadataService.Community(); - new MetadataService.AutoResponseRules(); - new MetadataService.EmailToCaseRoutingAddress(); - new MetadataService.RuleEntry(); - new MetadataService.EntitlementSettings(); - new MetadataService.CriteriaBasedSharingRule(); - new MetadataService.ApexPage(); - new MetadataService.WorkflowSend(); - new MetadataService.ChatterMobileSettings(); - new MetadataService.CallCenterSection(); - new MetadataService.EntitlementProcessMilestoneTimeTrigger(); - new MetadataService.StaticResource(); - new MetadataService.MilestoneType(); - new MetadataService.FiscalYearSettings(); - new MetadataService.CompanySettings(); - new MetadataService.WebToCaseSettings(); - new MetadataService.EscalationRule(); - new MetadataService.DashboardMobileSettings(); - new MetadataService.FieldOverride(); - new MetadataService.QuotasSettings(); - new MetadataService.Skill(); - new MetadataService.AgentConfigProfileAssignments(); - new MetadataService.LiveAgentSettings(); - new MetadataService.SkillAssignments(); - new MetadataService.ActivitiesSettings(); - new MetadataService.LiveAgentConfig(); - new MetadataService.ApprovalPageField(); - new MetadataService.QuickActionList(); - new MetadataService.LiveChatButtonDeployments(); - new MetadataService.InstalledPackage(); - new MetadataService.PushNotification(); - new MetadataService.LiveChatAgentConfig(); - new MetadataService.AdjustmentsSettings(); - new MetadataService.ForecastingSettings(); - new MetadataService.QuickActionListItem(); - new MetadataService.Branding(); - new MetadataService.QuickActionLayoutItem(); - new MetadataService.OpportunityListFieldsSelectedSettings(); - new MetadataService.ApprovalStepRejectBehavior(); - new MetadataService.FolderShare(); - new MetadataService.ApprovalEntryCriteria(); - new MetadataService.ProductSettings(); - new MetadataService.OpportunitySettings(); - new MetadataService.LiveChatDeployment(); - new MetadataService.QuickActionLayoutColumn(); - new MetadataService.GlobalQuickActionTranslation(); - new MetadataService.ApprovalStepApprover(); - new MetadataService.QuoteSettings(); - new MetadataService.LiveChatButton(); - new MetadataService.Network(); - new MetadataService.LiveChatDeploymentDomainWhitelist(); - new MetadataService.KnowledgeLanguageSettings(); - new MetadataService.Approver(); - new MetadataService.SamlSsoConfig(); - new MetadataService.ApprovalSubmitter(); - new MetadataService.KeyboardShortcuts(); - new MetadataService.ApprovalStep(); - new MetadataService.AgentConfigAssignments(); - new MetadataService.QuickAction(); - new MetadataService.DefaultShortcut(); - new MetadataService.ApprovalAction(); - new MetadataService.KnowledgeLanguage(); - new MetadataService.LiveChatButtonSkills(); - new MetadataService.SkillUserAssignments(); - new MetadataService.NextAutomatedApprover(); - new MetadataService.ApprovalProcess(); - new MetadataService.QuickActionLayout(); - new MetadataService.PushNotifications(); - new MetadataService.ForecastRangeSettings(); - new MetadataService.IdeaReputationLevel(); - new MetadataService.NetworkTabSet(); - new MetadataService.SkillProfileAssignments(); - new MetadataService.CustomShortcut(); - new MetadataService.PagesToOpen(); - new MetadataService.AgentConfigUserAssignments(); - new MetadataService.NetworkMemberGroup(); - new MetadataService.FindSimilarOppFilter(); - new MetadataService.QuickActionTranslation(); - new MetadataService.WorkflowFlowActionParameter(); - new MetadataService.ConnectedAppOauthConfig(); - new MetadataService.FlowLoop(); - new MetadataService.UserSharingRules(); - new MetadataService.renameMetadata_element(); - new MetadataService.ForecastingTypeSettings(); - new MetadataService.PermissionSetApplicationVisibility(); - new MetadataService.FeedLayout(); - new MetadataService.AppMenuItem(); - new MetadataService.deleteMetadataResponse_element(); - new MetadataService.ConnectedAppAttribute(); - new MetadataService.ReportChartComponentLayoutItem(); - new MetadataService.AppMenu(); - new MetadataService.ConnectedAppIpRange(); - new MetadataService.Error(); - new MetadataService.ComponentInstanceProperty(); - new MetadataService.BusinessHoursEntry(); - new MetadataService.RelatedContent(); - new MetadataService.SupervisorAgentConfigSkills(); - new MetadataService.ComponentInstance(); - new MetadataService.SidebarComponent(); - new MetadataService.Holiday(); - new MetadataService.SaveResult(); - new MetadataService.readMetadataResponse_element(); - new MetadataService.FlexiPageRegion(); - new MetadataService.deleteMetadata_element(); - new MetadataService.ConnectedAppMobileDetailConfig(); - new MetadataService.AccountSettings(); - new MetadataService.PermissionSetRecordTypeVisibility(); - new MetadataService.OrderSettings(); - new MetadataService.ProfileUserPermission(); - new MetadataService.UserCriteriaBasedSharingRule(); - new MetadataService.LookupFilterTranslation(); - new MetadataService.WorkflowFlowAction(); - new MetadataService.ConnectedApp(); - new MetadataService.SiteDotCom(); - new MetadataService.createMetadataResponse_element(); - new MetadataService.updateMetadata_element(); - new MetadataService.LookupFilter(); - new MetadataService.updateMetadataResponse_element(); - new MetadataService.FlexiPage(); - new MetadataService.ConnectedAppSamlConfig(); - new MetadataService.createMetadata_element(); - new MetadataService.FeedLayoutComponent(); - new MetadataService.PostTemplate(); - new MetadataService.RelatedContentItem(); - new MetadataService.readMetadata_element(); - new MetadataService.ReadWorkflowRuleResult(); - new MetadataService.readWorkflowRuleResponse_element(); - new MetadataService.ReadSamlSsoConfigResult(); - new MetadataService.readSamlSsoConfigResponse_element(); - new MetadataService.ReadCustomLabelResult(); - new MetadataService.readCustomLabelResponse_element(); - new MetadataService.ReadBusinessHoursEntryResult(); - new MetadataService.readBusinessHoursEntryResponse_element(); - new MetadataService.ReadMobileSettingsResult(); - new MetadataService.readMobileSettingsResponse_element(); - new MetadataService.ReadChatterAnswersSettingsResult(); - new MetadataService.readChatterAnswersSettingsResponse_element(); - new MetadataService.ReadSharingRulesResult(); - new MetadataService.readSharingRulesResponse_element(); - new MetadataService.ReadPortalResult(); - new MetadataService.readPortalResponse_element(); - new MetadataService.ReadSkillResult(); - new MetadataService.readSkillResponse_element(); - new MetadataService.ReadEscalationRulesResult(); - new MetadataService.readEscalationRulesResponse_element(); - new MetadataService.ReadCustomDataTypeResult(); - new MetadataService.readCustomDataTypeResponse_element(); - new MetadataService.ReadExternalDataSourceResult(); - new MetadataService.readExternalDataSourceResponse_element(); - new MetadataService.ReadEntitlementProcessResult(); - new MetadataService.readEntitlementProcessResponse_element(); - new MetadataService.ReadRecordTypeResult(); - new MetadataService.readRecordTypeResponse_element(); - new MetadataService.ReadScontrolResult(); - new MetadataService.readScontrolResponse_element(); - new MetadataService.ReadDataCategoryGroupResult(); - new MetadataService.readDataCategoryGroupResponse_element(); - new MetadataService.ReadValidationRuleResult(); - new MetadataService.readValidationRuleResponse_element(); - new MetadataService.ReadProfileResult(); - new MetadataService.readProfileResponse_element(); - new MetadataService.ReadIdeasSettingsResult(); - new MetadataService.readIdeasSettingsResponse_element(); - new MetadataService.ReadConnectedAppResult(); - new MetadataService.readConnectedAppResponse_element(); - new MetadataService.ReadApexPageResult(); - new MetadataService.readApexPageResponse_element(); - new MetadataService.ReadProductSettingsResult(); - new MetadataService.readProductSettingsResponse_element(); - new MetadataService.ReadLiveAgentSettingsResult(); - new MetadataService.readLiveAgentSettingsResponse_element(); - new MetadataService.ReadOpportunitySettingsResult(); - new MetadataService.readOpportunitySettingsResponse_element(); - new MetadataService.ReadLiveChatDeploymentResult(); - new MetadataService.readLiveChatDeploymentResponse_element(); - new MetadataService.ReadActivitiesSettingsResult(); - new MetadataService.readActivitiesSettingsResponse_element(); - new MetadataService.ReadLayoutResult(); - new MetadataService.readLayoutResponse_element(); - new MetadataService.ReadWebLinkResult(); - new MetadataService.readWebLinkResponse_element(); - new MetadataService.ReadSiteDotComResult(); - new MetadataService.readSiteDotComResponse_element(); - new MetadataService.ReadCompanySettingsResult(); - new MetadataService.readCompanySettingsResponse_element(); - new MetadataService.ReadHomePageLayoutResult(); - new MetadataService.readHomePageLayoutResponse_element(); - new MetadataService.ReadDashboardResult(); - new MetadataService.readDashboardResponse_element(); - new MetadataService.ReadAssignmentRulesResult(); - new MetadataService.readAssignmentRulesResponse_element(); - new MetadataService.ReadAnalyticSnapshotResult(); - new MetadataService.readAnalyticSnapshotResponse_element(); - new MetadataService.ReadEscalationRuleResult(); - new MetadataService.readEscalationRuleResponse_element(); - new MetadataService.ReadCustomSiteResult(); - new MetadataService.readCustomSiteResponse_element(); - new MetadataService.ReadGroupResult(); - new MetadataService.readGroupResponse_element(); - new MetadataService.ReadReportTypeResult(); - new MetadataService.readReportTypeResponse_element(); - new MetadataService.ReadQuickActionResult(); - new MetadataService.readQuickActionResponse_element(); - new MetadataService.ReadCustomPageWebLinkResult(); - new MetadataService.readCustomPageWebLinkResponse_element(); - new MetadataService.ReadApexComponentResult(); - new MetadataService.readApexComponentResponse_element(); - new MetadataService.ReadBaseSharingRuleResult(); - new MetadataService.readBaseSharingRuleResponse_element(); - new MetadataService.ReadEntitlementTemplateResult(); - new MetadataService.readEntitlementTemplateResponse_element(); - new MetadataService.ReadFlexiPageResult(); - new MetadataService.readFlexiPageResponse_element(); - new MetadataService.ReadWorkflowResult(); - new MetadataService.readWorkflowResponse_element(); - new MetadataService.ReadWorkflowActionResult(); - new MetadataService.readWorkflowActionResponse_element(); - new MetadataService.ReadAddressSettingsResult(); - new MetadataService.readAddressSettingsResponse_element(); - new MetadataService.ReadContractSettingsResult(); - new MetadataService.readContractSettingsResponse_element(); - new MetadataService.ReadCustomObjectResult(); - new MetadataService.readCustomObjectResponse_element(); - new MetadataService.ReadTranslationsResult(); - new MetadataService.readTranslationsResponse_element(); - new MetadataService.ReadRoleOrTerritoryResult(); - new MetadataService.readRoleOrTerritoryResponse_element(); - new MetadataService.ReadApexTriggerResult(); - new MetadataService.readApexTriggerResponse_element(); - new MetadataService.ReadCustomLabelsResult(); - new MetadataService.readCustomLabelsResponse_element(); - new MetadataService.ReadSecuritySettingsResult(); - new MetadataService.readSecuritySettingsResponse_element(); - new MetadataService.ReadCallCenterResult(); - new MetadataService.readCallCenterResponse_element(); - new MetadataService.ReadPicklistValueResult(); - new MetadataService.readPicklistValueResponse_element(); - new MetadataService.ReadRemoteSiteSettingResult(); - new MetadataService.readRemoteSiteSettingResponse_element(); - new MetadataService.ReadQuoteSettingsResult(); - new MetadataService.readQuoteSettingsResponse_element(); - new MetadataService.ReadSynonymDictionaryResult(); - new MetadataService.readSynonymDictionaryResponse_element(); - new MetadataService.ReadPostTemplateResult(); - new MetadataService.readPostTemplateResponse_element(); - new MetadataService.ReadCustomTabResult(); - new MetadataService.readCustomTabResponse_element(); - new MetadataService.ReadLetterheadResult(); - new MetadataService.readLetterheadResponse_element(); - new MetadataService.ReadInstalledPackageResult(); - new MetadataService.readInstalledPackageResponse_element(); - new MetadataService.ReadQueueResult(); - new MetadataService.readQueueResponse_element(); - new MetadataService.ReadAuthProviderResult(); - new MetadataService.readAuthProviderResponse_element(); - new MetadataService.ReadEntitlementSettingsResult(); - new MetadataService.readEntitlementSettingsResponse_element(); - new MetadataService.ReadCustomFieldResult(); - new MetadataService.readCustomFieldResponse_element(); - new MetadataService.ReadStaticResourceResult(); - new MetadataService.readStaticResourceResponse_element(); - new MetadataService.ReadEmailTemplateResult(); - new MetadataService.readEmailTemplateResponse_element(); - new MetadataService.ReadSharingReasonResult(); - new MetadataService.readSharingReasonResponse_element(); - new MetadataService.ReadLiveChatButtonResult(); - new MetadataService.readLiveChatButtonResponse_element(); - new MetadataService.ReadNetworkResult(); - new MetadataService.readNetworkResponse_element(); - new MetadataService.ReadApprovalProcessResult(); - new MetadataService.readApprovalProcessResponse_element(); - new MetadataService.ReadMilestoneTypeResult(); - new MetadataService.readMilestoneTypeResponse_element(); - new MetadataService.ReadAssignmentRuleResult(); - new MetadataService.readAssignmentRuleResponse_element(); - new MetadataService.ReadCompactLayoutResult(); - new MetadataService.readCompactLayoutResponse_element(); - new MetadataService.ReadLiveChatAgentConfigResult(); - new MetadataService.readLiveChatAgentConfigResponse_element(); - new MetadataService.ReadAccountSettingsResult(); - new MetadataService.readAccountSettingsResponse_element(); - new MetadataService.ReadBusinessProcessResult(); - new MetadataService.readBusinessProcessResponse_element(); - new MetadataService.ReadFlowResult(); - new MetadataService.readFlowResponse_element(); - new MetadataService.ReadAutoResponseRuleResult(); - new MetadataService.readAutoResponseRuleResponse_element(); - new MetadataService.ReadPermissionSetResult(); - new MetadataService.readPermissionSetResponse_element(); - new MetadataService.ReadBusinessHoursSettingsResult(); - new MetadataService.readBusinessHoursSettingsResponse_element(); - new MetadataService.ReadForecastingSettingsResult(); - new MetadataService.readForecastingSettingsResponse_element(); - new MetadataService.ReadReportResult(); - new MetadataService.readReportResponse_element(); - new MetadataService.ReadAppMenuResult(); - new MetadataService.readAppMenuResponse_element(); - new MetadataService.ReadListViewResult(); - new MetadataService.readListViewResponse_element(); - new MetadataService.ReadOrderSettingsResult(); - new MetadataService.readOrderSettingsResponse_element(); - new MetadataService.ReadCustomObjectTranslationResult(); - new MetadataService.readCustomObjectTranslationResponse_element(); - new MetadataService.ReadCustomApplicationResult(); - new MetadataService.readCustomApplicationResponse_element(); - new MetadataService.ReadKnowledgeSettingsResult(); - new MetadataService.readKnowledgeSettingsResponse_element(); - new MetadataService.ReadCaseSettingsResult(); - new MetadataService.readCaseSettingsResponse_element(); - new MetadataService.ReadApexClassResult(); - new MetadataService.readApexClassResponse_element(); - new MetadataService.ReadPackageResult(); - new MetadataService.readPackageResponse_element(); - new MetadataService.ReadCommunityResult(); - new MetadataService.readCommunityResponse_element(); - new MetadataService.ReadDocumentResult(); - new MetadataService.readDocumentResponse_element(); - new MetadataService.ReadAutoResponseRulesResult(); - new MetadataService.readAutoResponseRulesResponse_element(); - new MetadataService.ReadFolderResult(); - new MetadataService.readFolderResponse_element(); - new MetadataService.ReadCustomApplicationComponentResult(); - new MetadataService.readCustomApplicationComponentResponse_element(); - new MetadataService.ReadFieldSetResult(); - new MetadataService.readFieldSetResponse_element(); - new MetadataService.ReadSharingSetResult(); - new MetadataService.readSharingSetResponse_element(); - new MetadataService.ReadHomePageComponentResult(); - new MetadataService.readHomePageComponentResponse_element(); - new MetadataService.ReadResult(); - new MetadataService.UserMembershipSharingRule(); - new MetadataService.BusinessHoursSettings(); - new MetadataService.FeedLayoutFilter(); - new MetadataService.ReportHistoricalSelector(); - new MetadataService.ConnectedAppCanvasConfig(); - new MetadataService.DeployDetails(); - new MetadataService.ReportDataCategoryFilter(); - new MetadataService.SynonymGroup(); - new MetadataService.renameMetadataResponse_element(); - new MetadataService.cancelDeploy_element(); - new MetadataService.CancelDeployResult(); - new MetadataService.SynonymDictionary(); - new MetadataService.cancelDeployResponse_element(); - new MetadataService.CompactLayout(); - new MetadataService.AccessMapping(); - new MetadataService.Container(); - new MetadataService.DeleteResult(); - new MetadataService.SharingSet(); - new MetadataService.ReputationPointsRule(); - new MetadataService.FlowActionCallInputParameter(); - new MetadataService.CustomMetadata(); - new MetadataService.VisualizationPlugin(); - new MetadataService.RelatedList(); - new MetadataService.FlowActionCallOutputParameter(); - new MetadataService.FlowActionCall(); - new MetadataService.CustomPermission(); - new MetadataService.ReputationLevelDefinitions(); - new MetadataService.PermissionSetCustomPermissions(); - new MetadataService.upsertMetadata_element(); - new MetadataService.ProfileCustomPermissions(); - new MetadataService.AgentConfigButtons(); - new MetadataService.AgentConfigSkills(); - new MetadataService.upsertMetadataResponse_element(); - new MetadataService.ReputationLevel(); - new MetadataService.ReadWorkflowAlertResult(); - new MetadataService.readWorkflowAlertResponse_element(); - new MetadataService.ReadCustomPermissionResult(); - new MetadataService.readCustomPermissionResponse_element(); - new MetadataService.ReadSiteDotComResult(); - new MetadataService.ReadEmailFolderResult(); - new MetadataService.readEmailFolderResponse_element(); - new MetadataService.ReadCustomMetadataResult(); - new MetadataService.readCustomMetadataResponse_element(); - new MetadataService.ReadAnalyticSnapshotResult(); - new MetadataService.readAnalyticSnapshotResponse_element(); - new MetadataService.ReadVisualizationPluginResult(); - new MetadataService.readVisualizationPluginResponse_element(); - new MetadataService.ReadEscalationRuleResult(); - new MetadataService.ReadMarketingActionSettingsResult(); - new MetadataService.readMarketingActionSettingsResponse_element(); - new MetadataService.ReadWorkflowKnowledgePublishResult(); - new MetadataService.readWorkflowKnowledgePublishResponse_element(); - new MetadataService.ReadDashboardFolderResult(); - new MetadataService.readDashboardFolderResponse_element(); - new MetadataService.ReadWorkflowSendResult(); - new MetadataService.readWorkflowSendResponse_element(); - new MetadataService.ReadWorkflowOutboundMessageResult(); - new MetadataService.readWorkflowOutboundMessageResponse_element(); - new MetadataService.ReadWorkflowFieldUpdateResult(); - new MetadataService.readWorkflowFieldUpdateResponse_element(); - new MetadataService.ReadDocumentFolderResult(); - new MetadataService.readDocumentFolderResponse_element(); - new MetadataService.ReadWorkflowTaskResult(); - new MetadataService.readWorkflowTaskResponse_element(); - new MetadataService.ReadNameSettingsResult(); - new MetadataService.readNameSettingsResponse_element(); - new MetadataService.ReadReportFolderResult(); - new MetadataService.readReportFolderResponse_element(); - new MetadataService.ReadCustomApplicationComponentResult(); - new MetadataService.NameSettings(); - new MetadataService.ReputationPointsRules(); - new MetadataService.FlowMetadataValue(); - new MetadataService.VisualizationResource(); - new MetadataService.MarketingActionSettings(); - new MetadataService.VisualizationType(); - new MetadataService.CustomMetadataValue(); - new MetadataService.HistoryRetentionPolicy(); - new MetadataService.UpsertResult(); - new MetaDataService.Territory2RuleAssociation(); - new MetadataService.ManagedTopics(); - new MetaDataService.XOrgHub(); - new MetaDataService.FlowWaitEventInputParameter(); - new MetadataService.ManagedTopic(); - new MetadataService.Territory2RuleItem(); - new MetadataService.DataPipeline(); - new MetadataService.UiPlugin(); - new MetadataService.Territory2Rule(); - new MetaDataService.XOrgHubSharedObject(); - new MetadataService.Territory2Type(); - new MetadataService.CorsWhitelistOrigin(); - new MetadataService.StandardFieldTranslation(); - new MetadataService.Territory2Model(); - new MetadataService.PersonListSettings(); - new MetadataService.ChannelLayoutItem(); - new MetadataService.FlowWait(); - new MetadataService.Territory2Settings(); - new MetadataService.FieldValue(); - new MetadataService.ChannelLayout(); - new MetadataService.ReadXOrgHubResult(); - new MetadataService.readXOrgHubResponse_element(); - new MetadataService.ReadAuraDefinitionBundleResult(); - new MetadataService.readAuraDefinitionBundleResponse_element(); - new MetadataService.ReadTerritory2SettingsResult(); - new MetadataService.readTerritory2SettingsResponse_element(); - new MetadataService.ReadTerritory2TypeResult(); - new MetadataService.readTerritory2TypeResponse_element(); - new MetadataService.ReadQuoteSettingsResult(); - new MetadataService.readQuoteSettingsResponse_element(); - new MetadataService.ReadCorsWhitelistOriginResult(); - new MetadataService.readCorsWhitelistOriginResponse_element(); - new MetadataService.ReadManagedTopicsResult(); - new MetadataService.readManagedTopicsResponse_element(); - new MetadataService.ReadTerritory2Result(); - new MetadataService.readTerritory2Response_element(); - new MetadataService.ReadCommunityResult(); - new MetadataService.readCommunityResponse_element(); - new MetadataService.ReadDocumentResult(); - new MetadataService.readDocumentResponse_element(); - new MetadataService.ReadTerritory2ModelResult(); - new MetadataService.readTerritory2ModelResponse_element(); - new MetadataService.FlowWaitEventOutputParameter(); - new MetadataService.FlowWaitEvent(); - new MetadataService.CustomPermissionDependencyRequired(); - new MetadataService.ReputationBranding(); - new MetadataService.AuraDefinitionBundle(); - new MetadataService.FeedItemSettings(); - new MetadataService.FlowBaseElement(); - new MetadataService.Territory2(); - } -} \ No newline at end of file From 98b248a83c8ec1c0873e864d1e8176bbafcf2649 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:52:26 -0700 Subject: [PATCH 60/93] wrong location --- .../classes/MetadataServiceTest.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 8c8fb31e449e67a84828799596a66aca940f389e Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:52:36 -0700 Subject: [PATCH 61/93] wrong location --- .../custom_md_loader/classes/MetadataUtil.cls | 187 ------------------ 1 file changed, 187 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataUtil.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls b/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls deleted file mode 100644 index db3de61..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public class MetadataUtil { - static MetadataService.MetadataPort port; - //public for testing purposes only; - public static MetadataUtil.Status mdApiStatus = Status.NOT_CHECKED; - - //public for testing purposes - public enum Status { - NOT_CHECKED, - AVAILABLE, - UNAVAILABLE - } - - public static Boolean checkMetadataAPIConnection() { - if (mdApiStatus == Status.NOT_CHECKED) { - boolean success = true; - MetadataService.FileProperties[] allCmdProps; - try { - MetadataService.MetadataPort service = getPort(); - List queries = new List(); - MetadataService.ListMetadataQuery customMetadata = new MetadataService.ListMetadataQuery(); - customMetadata.type_x = 'CustomMetadata'; - queries.add(customMetadata); - allCmdProps = service.listMetadata(queries, 34); - mdApiStatus = Status.AVAILABLE; - } catch (CalloutException e) { - if (!e.getMessage().contains('Unauthorized endpoint, please check Setup')) { - throw e; - } - mdApiStatus = Status.UNAVAILABLE; - } - } - return mdApiStatus == Status.AVAILABLE; - } - - public static MetadataService.MetadataPort getPort() { - if (port == null) { - port = new MetadataService.MetadataPort(); - port.sessionHeader = new MetadataService.SessionHeader_element(); - port.sessionHeader.sessionId = UserInfo.getSessionId(); - } - return port; - } - - public static void transformToCustomMetadataAndCreateUpdate(Set standardFields, List> fieldValues, List header, String selectedType, Integer startIndex) { - String devName; - String label; - Integer rowCount = 0; - - if (fieldValues == null) - { - ApexPages.Message errMessage = new ApexPages.Message(ApexPages.severity.ERROR, 'Field Values null'); - ApexPages.addMessage(errMessage); - return; - } - MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[fieldValues.size()]; - // separated out columns as they were coming as string like: "DeveloperName;Label;Description;" - // it would pass the conditions under isHeadervalid() - Set fieldNameSet = new Set(); - for (String fieldNames :header) { - if (String.isBlank(fieldNames)) { - continue; - } - - fieldNameSet.addAll(fieldNames.split(';')); - } - - for(List singleRowOfValues : fieldValues) { - if(header != null && header.size() != singleRowOfValues.size()) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.INVALID_FILE_ROW_SIZE_DOESNT_MATCH + - (startIndex + rowCount)); - ApexPages.addMessage(errorMessage); - return; - } - - Integer index = 0; - String typeDevName = selectedType.subString(0, selectedType.indexOf(AppConstants.MDT_SUFFIX)); - Map fieldsAndValues = new Map(); - - // separated out field values as they were coming as string like: "XXX;YYY;ZZZZ;" - List fieldValueList = new List(); - - for (String singleRowFieldValues :singleRowOfValues) { - if (String.isBlank(singleRowFieldValues)) { - continue; - } - - fieldValueList.addAll(singleRowFieldValues.split(';')); - } - for(String fieldName : fieldNameSet) { - if(fieldName.equals(AppConstants.DEV_NAME_ATTRIBUTE)) { - if (fieldValueList.size() > index) { - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ fieldValueList.get(index)); - - //adding dev_name here since we might need it to default label - fieldsAndValues.put(fieldName, fieldValueList.get(index)); - } - } else { - if (fieldValueList.size() > index) { - fieldsAndValues.put(fieldName, fieldValueList.get(index)); - } - //fieldsAndValues.put(fieldName, singleRowOfValues.get(index)); - } - index++; - } - - if(fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE) == null) { - String strippedLabel = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE).replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - //default fullName to type_dev_name.label - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); - }else if(fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE) == null) { - //default label to dev_name - fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, fieldsAndValues.get(AppConstants.DEV_NAME_ATTRIBUTE)); - } - - customMetadataRecords[rowCount++] = transformToCustomMetadata(standardFields, fieldsAndValues); - } - upsertMetadataAndValidate(customMetadataRecords); - } - - /* - * Transformation utility to turn the configuration values into custom metadata values - * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata - * values which can be passed in one update has been increased to 200 values (just for custom metadata) - * We recommend to create new type if more fields are needed. - * Using https://github.com/financialforcedev/apex-mdapi - */ - private static MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ - MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); - customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); - customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); - customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); - - //custom fields - MetadataService.CustomMetadataValue[] customMetadataValues = new List(); - if(fieldsAndValues != null){ - for (String fieldName : fieldsAndValues.keySet()) { - if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ - MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); - cmRecordValue.field=fieldName; - cmRecordValue.value= fieldsAndValues.get(fieldName); - customMetadataValues.add(cmRecordValue); - } - } - } - customMetadata.values = customMetadataValues; - return customMetadata; - } - - - private static void upsertMetadataAndValidate(MetadataService.Metadata[] records) { - List results = getPort().upsertMetadata(records); - if(results!=null){ - for(MetadataService.UpsertResult upsertResult : results){ - if(upsertResult==null || upsertResult.success){ - continue; - } - // Construct error message and throw an exception - if(upsertResult.errors!=null){ - List messages = new List(); - messages.add( - (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + - 'occured processing component ' + upsertResult.fullName + '.'); - for(MetadataService.Error error : upsertResult.errors){ - messages.add(error.message + ' (' + error.statusCode + ').' + - ( error.fields!=null && error.fields.size()>0 ? - ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); - } - if(messages.size()>0){ - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); - return; - } - } - if(!upsertResult.success){ - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Request failed with no specified error.')); - return; - } - } - } - } -} From aaf0923a32cf7a324113cebcf1d7b622cea624ed Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:52:43 -0700 Subject: [PATCH 62/93] wrong location --- .../custom_md_loader/classes/MetadataUtil.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataUtil.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataUtil.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From b4a740a08feca7b3bfa0731bfcf13ea1d3dbd3bd Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:52:53 -0700 Subject: [PATCH 63/93] wrong location --- .../classes/MetadataWrapperApiLoader.cls | 254 ------------------ 1 file changed, 254 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls diff --git a/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls b/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls deleted file mode 100644 index 9f2a861..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Copyright (c) 2016, salesforce.com, inc. - * All rights reserved. - * Licensed under the BSD 3-Clause license. - * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause - */ - -public with sharing class MetadataWrapperApiLoader extends MetadataLoader { - static MetadataService.MetadataPort port; - //public for testing purposes only; - public static MetadataWrapperApiLoader.Status mdApiStatus = Status.NOT_CHECKED; - - //public for testing purposes - public enum Status { - NOT_CHECKED, - AVAILABLE, - UNAVAILABLE - } - - public Boolean checkMetadataAPIConnection() { - if (mdApiStatus == Status.NOT_CHECKED) { - boolean success = true; - MetadataService.FileProperties[] allCmdProps; - try { - MetadataService.MetadataPort service = getPort(); - List queries = new List(); - MetadataService.ListMetadataQuery customMetadata = new MetadataService.ListMetadataQuery(); - customMetadata.type_x = 'CustomMetadata'; - queries.add(customMetadata); - allCmdProps = service.listMetadata(queries, 40); - mdApiStatus = Status.AVAILABLE; - } catch (CalloutException e) { - if (!e.getMessage().contains('Unauthorized endpoint, please check Setup')) { - throw e; - } - mdApiStatus = Status.UNAVAILABLE; - } - } - return mdApiStatus == Status.AVAILABLE; - } - - public static MetadataService.MetadataPort getPort() { - if (port == null) { - port = new MetadataService.MetadataPort(); - port.sessionHeader = new MetadataService.SessionHeader_element(); - port.sessionHeader.sessionId = UserInfo.getSessionId(); - } - return port; - } - - public override void migrateAsIsWithObjCreation(String csName, String cmtName) { - System.debug('migrateAsIsWithObjCreation-->csName=' + csName); - System.debug('migrateAsIsWithObjCreation-->cmtName=' + cmtName); - - try{ - super.migrateAsIsWithObjCreation(csName, cmtName); - MetadataMappingInfo mappingInfo = getMapper().getMappingInfo(); - System.debug('mappingInfo-->' + mappingInfo); - - if(!response.isSuccess()) { - throw new MetadataMigrationException('Operation failed, please check messages!'); - return; - } - - MetadataObjectCreator.createCustomObject(mappingInfo); - MetadataObjectCreator.createCustomField(mappingInfo); - - migrate(mappingInfo); - } - catch(Exception e) { - List messages = response.getMessages(); - if(messages == null) { - messages = new List(); - } - messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - - return; - } - - buildResponse(); - } - - public override void migrateAsIsMapping(String csName, String cmtName) { - super.migrateAsIsMapping(csName, cmtName); - buildResponse(); - } - - public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { - super.migrateSimpleMapping(csNameWithField, cmtNameWithField); - buildResponse(); - } - - public override void migrateCustomMapping(String csName, String cmtName, String mapping) { - super.migrateCustomMapping(csName, cmtName, mapping); - buildResponse(); - } - - private void buildResponse() { - if(response.IsSuccess()) { - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Migration Completed!')); - response.setIsSuccess(true); - response.setMessages(messages); - } - } - - public override void migrate(MetadataMappingInfo mappingInfo) { - System.debug('MetadataWrapperApiLoader.migrate -->'); - - try{ - String devName; - String label; - Integer rowCount = 0; - - String cmdName = mappingInfo.getCustomMetadadataTypeName(); - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); - System.debug('srcTgtFieldsMap ->' + srcTgtFieldsMap); - - MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[mappingInfo.getRecordList().size()]; - Map fieldsAndValues = new Map(); - - for(sObject csRecord : mappingInfo.getRecordList()) { - - String typeDevName = cmdName.subString(0, cmdName.indexOf(AppConstants.MDT_SUFFIX)); - System.debug('typeDevName ->' + typeDevName); - - for(String csField : srcTgtFieldsMap.keySet()) { - // Set Target, Source - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); - System.debug('descCSFieldResult ->' + descCSFieldResult); - System.debug('csField ->' + csField); - System.debug('csRecord ->' + csRecord); - - if(descCSFieldResult.getType().name() == 'DATETIME') { - - if(csRecord.get(csField) != null) { - Datetime dt = DateTime.valueOf(csRecord.get(csField)); - String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); - fieldsAndValues.put(srcTgtFieldsMap.get(csField), formattedDateTime); - } - } - else{ - fieldsAndValues.put(srcTgtFieldsMap.get(csField), String.valueOf(csRecord.get(csField))); - } - } - - if(csRecord.get(AppConstants.CS_NAME_ATTRIBURE) != null) { - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); - fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); - - String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); - String tempVal = strippedLabel.substring(0, 1); - - if(tempVal.isNumeric() || tempVal == '-') { - strippedLabel = 'X' + strippedLabel; - } - - System.debug('strippedLabel -> 1 *' + strippedLabel); - strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel -> 2 *' + strippedLabel); - - //default fullName to type_dev_name.label - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); - - System.debug(AppConstants.FULL_NAME_ATTRIBUTE + ' ::: ' + typeDevName + '.' + strippedLabel); - } - System.debug('fieldsAndValues ->' + fieldsAndValues); - - customMetadataRecords[rowCount++] = transformToCustomMetadata(mappingInfo.getStandardFields(), fieldsAndValues); - } - upsertMetadataAndValidate(customMetadataRecords); - - } - catch(Exception e) { - System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, e.getMessage())); - - response.setIsSuccess(false); - response.setMessages(messages); - - } - } - - /* - * Transformation utility to turn the configuration values into custom metadata values - * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata - * values which can be passed in one update has been increased to 200 values (just for custom metadata) - * We recommend to create new type if more fields are needed. - * Using https://github.com/financialforcedev/apex-mdapi - */ - private MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ - MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); - customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); - customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); - customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); - - System.debug('customMetadata.label->' + customMetadata.label); - System.debug('customMetadata.fullName->' + customMetadata.fullName); - System.debug('customMetadata.description->' + customMetadata.description); - - - //custom fields - MetadataService.CustomMetadataValue[] customMetadataValues = new List(); - if(fieldsAndValues != null){ - for (String fieldName : fieldsAndValues.keySet()) { - if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ - MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); - cmRecordValue.field=fieldName; - cmRecordValue.value= fieldsAndValues.get(fieldName); - customMetadataValues.add(cmRecordValue); - } - } - } - customMetadata.values = customMetadataValues; - return customMetadata; - } - - - private void upsertMetadataAndValidate(MetadataService.Metadata[] records) { - List results = getPort().upsertMetadata(records); - if(results!=null){ - for(MetadataService.UpsertResult upsertResult : results){ - if(upsertResult==null || upsertResult.success){ - continue; - } - // Construct error message and throw an exception - if(upsertResult.errors!=null){ - List messages = new List(); - messages.add( - (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + - 'occured processing component ' + upsertResult.fullName + '.'); - for(MetadataService.Error error : upsertResult.errors){ - messages.add(error.message + ' (' + error.statusCode + ').' + - ( error.fields!=null && error.fields.size()>0 ? - ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); - } - if(messages.size()>0){ - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); - return; - } - } - if(!upsertResult.success){ - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Request failed with no specified error.')); - return; - } - } - } - } -} From f2bd967252bd6aaf5113afd5142050269e422cd5 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:53:00 -0700 Subject: [PATCH 64/93] wrong location --- .../classes/MetadataWrapperApiLoader.cls-meta.xml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml diff --git a/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml b/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml deleted file mode 100644 index 9aeda45..0000000 --- a/custom_md_loader/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - 34.0 - Active - From 1891c74e0cd2d994e12a253991c9e011c66ec65d Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:53:11 -0700 Subject: [PATCH 65/93] wrong location --- .../objects/CountryMapping__mdt.object | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/objects/CountryMapping__mdt.object diff --git a/custom_md_loader/custom_md_loader/objects/CountryMapping__mdt.object b/custom_md_loader/custom_md_loader/objects/CountryMapping__mdt.object deleted file mode 100644 index efde80d..0000000 --- a/custom_md_loader/custom_md_loader/objects/CountryMapping__mdt.object +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - CountryCode__c - false - - 3 - false - Text - false - - - CountryName__c - false - - 200 - false - Text - false - - - CountryMappings - Public - From 59b4c2f844adcfedb9a935c773dd4a95fff51798 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:53:22 -0700 Subject: [PATCH 66/93] wrong location --- .../custom_md_loader/pages/CMTMigrator.page | 256 ------------------ 1 file changed, 256 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/pages/CMTMigrator.page diff --git a/custom_md_loader/custom_md_loader/pages/CMTMigrator.page b/custom_md_loader/custom_md_loader/pages/CMTMigrator.page deleted file mode 100644 index 6cbddc5..0000000 --- a/custom_md_loader/custom_md_loader/pages/CMTMigrator.page +++ /dev/null @@ -1,256 +0,0 @@ - - - - - - - - - - - - -
    - -
  1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types
    -
  2. -
    -
  3. Custom Metadata Types label and names
  4. -
    -
      -
    • Custom Setting record name converted into Custom Metadata Types label and name
      -
    • - -
    • e.g. Custom Setting name special character replaced with "_" in Custom Metadata Type names
      -
    • - -
    • e.g. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X"
      -
    • -
    -
    -
  5. Currency field on Custom Settings can't be migrated
    -
  6. -
    - -
  7. Migrate - As Is (with object creation)
  8. -
    -
      -
    • As Is (with object creation)
      - /*********************************************************
      - * Desc Creates Custom object and migrate Custom Settings data to
      - Custom Metadata Types records as is
      - * @param Name of Custom Setting Api (VAT_Settings_CS__c)
      - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      - * @return
      - *********************************************************/

      - - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      - loader.migrateAsIsWithObjCreation('VAT_Settings_CS__c', 'VAT_Settings__mdt');
      - -

      -
    • - -
    -
  9. Migrate - As Is
  10. -
    -
      -
    • As Is Mapping
      - /*********************************************************
      - * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records as is
      - * @param Name of Custom Setting/Custom Objects Api (VAT_Settings_CS__c)
      - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      - * @return
      - *********************************************************/

      - - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      - loader.migrateAsIsMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt');
      -

      -
    • - -
    -
  11. Migrate - Simple Mapping
    -
  12. -
    -
      -

    • - /*********************************************************
      - * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records if you have only
      - * one field mapping
      - * @param Name of Custom Setting/Custom Objects Api.fieldName (VAT_Settings_CS__c.Active__c)
      - * @param Name of Custom Metadata Types Api.fieldMame (VAT_Settings__mdt.IsActive__c)
      - * @return
      - *********************************************************/

      - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      - loader.migrateSimpleMapping('VAT_Settings_CS__c.Active__c', 'VAT_Settings__mdt.IsActive__c');
      -

      -
    • -
    - -
  13. Migrate - Custom Mapping
    -
  14. -
    -
      -

    • - - /*********************************************************
      - * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records if you have only
      - * different Api names in Custom Settings and Custom Metadata Types
      - * @param Name of Custom Setting/Custom Objects Api (VAT_Settings_CS__c)
      - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
      - * @param Json Mapping (Sample below)
      - {
      - "Active__c" : "IsActive__c",
      - "Timeout__c" : "GlobalTimeout__c",
      - "EndPointURL__c" : "URL__c",
      - }
      -
      - * @return
      - *********************************************************/

      -
      - String jsonMapping = '{'+
      - '"Active__c" : "Active__c",'+
      - '"Timeout__c" : "Timeout__c",'+
      - '"EndPointURL__c" : "EndPointURL__c",'+
      - '};';
      - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
      - loader.migrateCustomMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt', jsonMapping);
      -
      -
    • -
    - -
    - -
-
- - - - - - - - - - - - - - - - - - -
Custom Setting/Custom Objects Name (From)
Custom Metadata Type Name (To)
Operation Type - - -
- -
-
- -
-
-
- - - - - - - - - - - - - - - - - -
Custom Setting/Custom Objects Name (From)
Custom Metadata Type Name (To) - - -
Operation Type - - -
- -
-
- -
-
-
- - - - - - - - - - - - - - - - -
Custom Setting/Custom Objects, Format: CS.fieldName
Custom Metadata Type, Format: CMT.fieldName
Operation Type - - -
- -
-
- -
-
-
- - - - - - - - - - - - - - - - - - - - -
Custom Setting/Custom Objects Name
Custom Metadata Type Name
Custom Setting, JSON, example: - -
Operation Type - - -
- -
-
- -
-
-
- - - -
- -
From 6c4af8131f4e1741635777df09e926ae7771271d Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:53:30 -0700 Subject: [PATCH 67/93] wrong location --- .../custom_md_loader/pages/CMTMigrator.page-meta.xml | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/pages/CMTMigrator.page-meta.xml diff --git a/custom_md_loader/custom_md_loader/pages/CMTMigrator.page-meta.xml b/custom_md_loader/custom_md_loader/pages/CMTMigrator.page-meta.xml deleted file mode 100644 index 035ffad..0000000 --- a/custom_md_loader/custom_md_loader/pages/CMTMigrator.page-meta.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - 40.0 - false - false - - From fa1c2fa4545b12bb58d01c77e1c3837484226561 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:53:38 -0700 Subject: [PATCH 68/93] wrong location --- .../pages/CustomMetadataLoader.page | 71 ------------------- 1 file changed, 71 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page diff --git a/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page b/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page deleted file mode 100644 index 29e3324..0000000 --- a/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - - - - - - - - - - - - - - From fb3e053acb1b0e62a321be0fc361e0022cbc41b2 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:53:47 -0700 Subject: [PATCH 69/93] wrong location --- .../pages/CustomMetadataLoader.page-meta.xml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml diff --git a/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml b/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml deleted file mode 100644 index d816bc4..0000000 --- a/custom_md_loader/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - 34.0 - false - false - - From 644ed6d8516e1697f81e3980a23a740339932c6b Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:53:56 -0700 Subject: [PATCH 70/93] wrong location --- .../pages/CustomMetadataRecordUploader.page | 51 ------------------- 1 file changed, 51 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page diff --git a/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page b/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page deleted file mode 100644 index 67c50e2..0000000 --- a/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - -
- - - - -
-
-
- - - - - - - - - - - - - - - -
- -
From f16cb1f5a350dbd4fdc66e856df2c6299db371b9 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:54:04 -0700 Subject: [PATCH 71/93] wrong location --- .../pages/CustomMetadataRecordUploader.page-meta.xml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml diff --git a/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml b/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml deleted file mode 100644 index e8d870f..0000000 --- a/custom_md_loader/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - 34.0 - false - false - - From e370d95b384e67cd7d6c30568cdf32f99106454e Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:54:13 -0700 Subject: [PATCH 72/93] wrong location --- .../Custom_Metadata_Loader.permissionset | 72 ------------------- 1 file changed, 72 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset diff --git a/custom_md_loader/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset b/custom_md_loader/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset deleted file mode 100644 index 4f9ab89..0000000 --- a/custom_md_loader/custom_md_loader/permissionsets/Custom_Metadata_Loader.permissionset +++ /dev/null @@ -1,72 +0,0 @@ - - - - Custom_Metadata_Loader - true - - - AppConstants - true - - - CSVFileUtil - true - - - CustomMetadataLoaderController - true - - - CustomMetadataLoaderControllerTest - true - - - CustomMetadataUploadController - true - - - CustomMetadataUploadController - true - - - CustomMetadataUploadControllerTest - true - - - MDWrapperWebServiceMock - true - - - MetadataService - true - - - MetadataServiceTest - true - - - MetadataUtil - true - - - - CustomMetadataLoader - true - - - CustomMetadataRecordUploader - true - - - CMTMigrator - true - - - Custom_Metadata_Loader - Visible - - - CMT_Migrator - Visible - - From efd698350503ba18f5e415656c2cc04c19120e3c Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:54:21 -0700 Subject: [PATCH 73/93] wrong location --- custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab diff --git a/custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab b/custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab deleted file mode 100644 index 925e470..0000000 --- a/custom_md_loader/custom_md_loader/tabs/CMT_Migrator.tab +++ /dev/null @@ -1,7 +0,0 @@ - - - - false - Custom68: Gears - CMTMigrator - From 8cc90327a3013ebe1c6086ab6c912bf24dc3dc31 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:54:28 -0700 Subject: [PATCH 74/93] wrong location --- .../custom_md_loader/tabs/Custom_Metadata_Loader.tab | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/tabs/Custom_Metadata_Loader.tab diff --git a/custom_md_loader/custom_md_loader/tabs/Custom_Metadata_Loader.tab b/custom_md_loader/custom_md_loader/tabs/Custom_Metadata_Loader.tab deleted file mode 100644 index 9e52851..0000000 --- a/custom_md_loader/custom_md_loader/tabs/Custom_Metadata_Loader.tab +++ /dev/null @@ -1,7 +0,0 @@ - - - - false - Custom67: Gears - CustomMetadataLoader - From 848131e4eeeeee10753433e7f57debc27bc99ca2 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:54:38 -0700 Subject: [PATCH 75/93] wrong location --- custom_md_loader/custom_md_loader/package.xml | 64 ------------------- 1 file changed, 64 deletions(-) delete mode 100644 custom_md_loader/custom_md_loader/package.xml diff --git a/custom_md_loader/custom_md_loader/package.xml b/custom_md_loader/custom_md_loader/package.xml deleted file mode 100644 index c2dee4a..0000000 --- a/custom_md_loader/custom_md_loader/package.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - AppConstants - CSVFileUtil - CustomMetadataLoaderController - CustomMetadataLoaderControllerTest - CustomMetadataUploadController - CustomMetadataUploadControllerTest - MDWrapperWebServiceMock - MetadataService - MetadataServiceTest - MetadataUtil - - MetadataLoader - MetadataMapper - MetadataMapperDefault - MetadataMapperCustom - MetadataMapperSimple - MetadataMappingInfo - MetadataMapperFactory - MetadataMapperType - MetadataLoaderClient - MetadataWrapperApiLoader - MetadataApexApiLoader - MetadataOpType - MetadataLoaderFactory - MetadataResponse - MetadataMigrationController - MetadataObjectCreator - MetadataMigrationException - JsonUtilities - ApexClass - - - CustomMetadataLoader - CustomMetadataRecordUploader - CMTMigrator - ApexPage - - - Custom_Metadata_Loader - CustomApplication - - - CountryMapping__mdt.CountryCode__c - CountryMapping__mdt.CountryName__c - CustomField - - - CountryMapping__mdt - CustomObject - - - Custom_Metadata_Loader - CMT_Migrator - CustomTab - - - Custom_Metadata_Loader - PermissionSet - - 34.0 - From ca70216e13bf13f2c8e926afc92e153af17c27c1 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Fri, 22 Sep 2017 13:57:16 -0700 Subject: [PATCH 76/93] Sync --- .../classes/MetadataApexApiLoader.cls | 3 +- custom_md_loader/classes/MetadataLoader.cls | 43 +-- .../classes/MetadataMapperCustom.cls | 21 +- .../classes/MetadataMapperDefault.cls | 29 +- .../classes/MetadataMapperSimple.cls | 5 +- .../classes/MetadataMigrationException.cls | 8 + .../MetadataMigrationException.cls-meta.xml | 5 + .../classes/MetadataObjectCreator.cls | 252 +++++++++--------- .../classes/MetadataWrapperApiLoader.cls | 52 ++-- custom_md_loader/package.xml | 1 + 10 files changed, 220 insertions(+), 199 deletions(-) create mode 100644 custom_md_loader/classes/MetadataMigrationException.cls create mode 100644 custom_md_loader/classes/MetadataMigrationException.cls-meta.xml diff --git a/custom_md_loader/classes/MetadataApexApiLoader.cls b/custom_md_loader/classes/MetadataApexApiLoader.cls index c2a5bcd..f06e497 100644 --- a/custom_md_loader/classes/MetadataApexApiLoader.cls +++ b/custom_md_loader/classes/MetadataApexApiLoader.cls @@ -95,7 +95,7 @@ public with sharing class MetadataApexApiLoader extends MetadataLoader { if(csRecord.get(fieldName) != null) { Datetime dt = DateTime.valueOf(csRecord.get(fieldName)); - String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); // 12/22/2014 7:05 AM (MM/DD/YYYY HH:MM PERIOD) + String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); cmv.value = csRecord.get(formattedDateTime); } else { @@ -132,6 +132,7 @@ public with sharing class MetadataApexApiLoader extends MetadataLoader { System.debug('mdDeployStatus.getJobId()-->' + mdDeployStatus.getJobId()); } catch(Exception e) { + System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); List messages = new List(); messages.add(new MetadataResponse.Message(100, e.getMessage())); diff --git a/custom_md_loader/classes/MetadataLoader.cls b/custom_md_loader/classes/MetadataLoader.cls index 848d3ee..93e8d1f 100644 --- a/custom_md_loader/classes/MetadataLoader.cls +++ b/custom_md_loader/classes/MetadataLoader.cls @@ -23,25 +23,20 @@ public virtual class MetadataLoader { */ public virtual void migrateAsIsWithObjCreation(String csName, String cmtName) { - System.debug('MetadataLoader.migrateAsIsObjCreation --> csName=' + csName); - System.debug('MetadataLoader.migrateAsIsObjCreation --> cmtName=' + cmtName); - MetadataMappingInfo mappingInfo = null; try{ - System.debug('MetadataLoader.migrateAsIsObjCreation --> 1'); mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); mappingInfo = mapper.mapper(csName, cmtName, null); - System.debug('MetadataLoader.migrateAsIsObjCreation --> 2'); } catch(Exception e) { - System.debug('Error Message=' + e.getMessage()); + System.debug('MetadataLoader.Error Message=' + e.getMessage()); List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting exists in the org!')); messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); messages.add(new MetadataResponse.Message(300, e.getMessage())); response.setIsSuccess(false); response.setMessages(messages); - return; } } @@ -52,20 +47,16 @@ public virtual class MetadataLoader { * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' */ public virtual void migrateAsIsMapping(String csName, String cmtName) { - - System.debug('MetadataLoader.migrateAsIsMapping --> csName=' + csName); - System.debug('MetadataLoader.migrateAsIsMapping --> cmtName=' + cmtName); - MetadataMappingInfo mappingInfo = null; try{ - System.debug('MetadataLoader.migrateAsIsMapping --> 1'); mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); mappingInfo = mapper.mapper(csName, cmtName, null); - System.debug('MetadataLoader.migrateAsIsMapping --> 2'); + migrate(mappingInfo); } catch(Exception e) { - System.debug('Error Message=' + e.getMessage()); + System.debug('MetadataLoader.Error Message=' + e.getMessage()); List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); messages.add(new MetadataResponse.Message(300, e.getMessage())); @@ -73,10 +64,6 @@ public virtual class MetadataLoader { response.setMessages(messages); return; } - System.debug('MetadataLoader.migrateAsIsMapping --> 3'); - migrate(mappingInfo); - System.debug('MetadataLoader.migrateAsIsMapping --> 4'); - } @@ -90,9 +77,12 @@ public virtual class MetadataLoader { try{ mapper = MetadataMapperFactory.getMapper(MetadataMapperType.SIMPLE); mappingInfo = mapper.mapper(csNameAndField, cmtNameAndField, null); + migrate(mappingInfo); } catch(Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name/Field Name and Custom Metadata Types/Field Name names are required!')); messages.add(new MetadataResponse.Message(200, 'Please check the format, . and .')); messages.add(new MetadataResponse.Message(300, 'Please check the Api names!')); @@ -101,14 +91,6 @@ public virtual class MetadataLoader { response.setMessages(messages); return; } - - System.debug('mappingInfo.getStandardFields() ->' + mappingInfo.getStandardFields()); - System.debug('mappingInfo ->' + mappingInfo.getSrcFieldNames()); - System.debug('cmtNameAndField ->' + cmtNameAndField); - System.debug('mappingInfo.getSrcFieldResultMap() ->' + mappingInfo.getSrcFieldResultMap()); - System.debug('mappingInfo.getCSToMDT_fieldMapping() ->' + mappingInfo.getCSToMDT_fieldMapping()); - - migrate(mappingInfo); } /** @@ -119,17 +101,17 @@ public virtual class MetadataLoader { * mapping: e.g. Json mapping between CS field Api and CMT field Api names */ public virtual void migrateCustomMapping(String csName, String cmtName, String mapping) { - System.debug('MetadataLoader.migrateCustomMapping -->'); MetadataMappingInfo mappingInfo = null; try{ mapper = MetadataMapperFactory.getMapper(MetadataMapperType.CUSTOM); mappingInfo = mapper.mapper(csName, cmtName, mapping); - - System.debug('MetadataLoader.migrateCustomMapping --> 2'); + migrate(mappingInfo); } catch(Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); System.debug('MetadataLoader.migrateCustomMapping --> E' + e.getMessage()); List messages = new List(); + messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name, Custom Metadata Types Api and Json Mapping names are required!')); messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); messages.add(new MetadataResponse.Message(200, 'Please check the Json format!')); @@ -139,9 +121,6 @@ public virtual class MetadataLoader { response.setMessages(messages); return; } - System.debug('MetadataLoader.migrateCustomMapping --> 3'); - migrate(mappingInfo); - System.debug('MetadataLoader.migrateCustomMapping --> 4'); } public virtual void migrate(MetadataMappingInfo mappingInfo) { diff --git a/custom_md_loader/classes/MetadataMapperCustom.cls b/custom_md_loader/classes/MetadataMapperCustom.cls index 416b55e..38bae38 100644 --- a/custom_md_loader/classes/MetadataMapperCustom.cls +++ b/custom_md_loader/classes/MetadataMapperCustom.cls @@ -21,13 +21,21 @@ public with sharing class MetadataMapperCustom extends MetadataMapperDefault { * mapping: e.g. {"Field_cs_1__c", "Field_mdt_1__c"} */ public override MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { - fetchSourceMetadataAndRecords(sFrom, sTo, mapping); - mapSourceTarget(); - - return mappingInfo; + try{ + fetchSourceMetadataAndRecords(sFrom, sTo, mapping); + mapSourceTarget(); + } + catch(Exception e) { + throw e; + } + return mappingInfo; } private void fetchSourceMetadataAndRecords(String csName, String mdtName, String mapping) { + if(!mdtName.endsWith(AppConstants.MDT_SUFFIX)){ + throw new MetadataMigrationException('Custom Metadata Types name should ends with ' + AppConstants.MDT_SUFFIX); + } + List srcFieldNames = new List(); Map srcFieldResultMap = new Map(); @@ -39,14 +47,12 @@ public with sharing class MetadataMapperCustom extends MetadataMapperDefault { Map fields = objDef.fields.getMap(); this.fieldsMap = JsonUtilities.getValuesFromJson(mapping); - System.debug('fieldsMap->' + fieldsMap); for(String fieldName: fieldsMap.keySet()) { srcFieldNames.add(fieldName); DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); } - System.debug('srcFieldNames->' + srcFieldNames); String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; String query = selectClause + ' FROM ' + csName; @@ -57,10 +63,9 @@ public with sharing class MetadataMapperCustom extends MetadataMapperDefault { mappingInfo.setRecordList(recordList); mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - System.debug(recordList); } catch(Exception e) { - System.debug('Error Message=' + e.getMessage()); + System.debug('MetadataMapperCustom.Error Message=' + e.getMessage()); throw e; } diff --git a/custom_md_loader/classes/MetadataMapperDefault.cls b/custom_md_loader/classes/MetadataMapperDefault.cls index b88f933..fb93c01 100644 --- a/custom_md_loader/classes/MetadataMapperDefault.cls +++ b/custom_md_loader/classes/MetadataMapperDefault.cls @@ -20,21 +20,25 @@ public virtual with sharing class MetadataMapperDefault implements MetadataMappe * mapping: e.g. {} */ public virtual MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { - System.debug('MetadataMappingInfo mapper.sFrom-->' + sFrom); - System.debug('MetadataMappingInfo mapper.sTo-->' + sTo); - - fetchSourceMetadataAndRecords(sFrom); - - mappingInfo.setCustomSettingName(sFrom); - mappingInfo.setCustomMetadadataTypeName(sTo); - - mapSourceTarget(); - return mappingInfo; + try{ + mappingInfo.setCustomSettingName(sFrom); + mappingInfo.setCustomMetadadataTypeName(sTo); + + fetchSourceMetadataAndRecords(sFrom); + mapSourceTarget(); + } + catch(Exception e) { + throw e; + } + return mappingInfo; } private void fetchSourceMetadataAndRecords(String customSettingApiName) { - System.debug('MetadataMappingInfo fetchSourceMetadataAndRecords.customSettingApiName-->' + customSettingApiName); + if(!mappingInfo.getCustomMetadadataTypeName().endsWith(AppConstants.MDT_SUFFIX)){ + throw new MetadataMigrationException('Custom Metadata Types name should ends with ' + AppConstants.MDT_SUFFIX); + } + srcFieldNames = new List(); Map srcFieldResultMap = new Map(); @@ -62,7 +66,7 @@ public virtual with sharing class MetadataMapperDefault implements MetadataMappe mappingInfo.setSrcFieldResultMap(srcFieldResultMap); } catch(Exception e) { - System.debug('Error Message=' + e.getMessage()); + System.debug('MetadataMapperDefault.Error Message=' + e.getMessage()); throw e; } } @@ -72,7 +76,6 @@ public virtual with sharing class MetadataMapperDefault implements MetadataMappe } public virtual void mapSourceTarget() { - System.debug('MetadataMapperDefault.mapSourceTarget -->'); Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); for(String fieldName: srcFieldNames) { csToMDT_fieldMapping.put(fieldName, fieldName); diff --git a/custom_md_loader/classes/MetadataMapperSimple.cls b/custom_md_loader/classes/MetadataMapperSimple.cls index 741d1b7..ca7893a 100644 --- a/custom_md_loader/classes/MetadataMapperSimple.cls +++ b/custom_md_loader/classes/MetadataMapperSimple.cls @@ -61,10 +61,9 @@ public with sharing class MetadataMapperSimple extends MetadataMapperDefault { mappingInfo.setRecordList(recordList); mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - System.debug(recordList); } catch(Exception e) { - System.debug('Error Message=' + e.getMessage()); + System.debug('MetadataMapperSimple.Error Message=' + e.getMessage()); throw e; } } @@ -74,8 +73,6 @@ public with sharing class MetadataMapperSimple extends MetadataMapperDefault { } public override void mapSourceTarget() { - System.debug('MetadataMapperSimple.mapSourceTarget -->'); - Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); csToMDT_fieldMapping.put(csFieldName, mdtFieldName); } diff --git a/custom_md_loader/classes/MetadataMigrationException.cls b/custom_md_loader/classes/MetadataMigrationException.cls new file mode 100644 index 0000000..c3e8b36 --- /dev/null +++ b/custom_md_loader/classes/MetadataMigrationException.cls @@ -0,0 +1,8 @@ +/** + * Copyright (c) 2016, salesforce.com, inc. + * All rights reserved. + * Licensed under the BSD 3-Clause license. + * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause + */ + +public class MetadataMigrationException extends Exception{} \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml b/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml new file mode 100644 index 0000000..94f6f06 --- /dev/null +++ b/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml @@ -0,0 +1,5 @@ + + + 40.0 + Active + diff --git a/custom_md_loader/classes/MetadataObjectCreator.cls b/custom_md_loader/classes/MetadataObjectCreator.cls index 8d462c5..58641c0 100644 --- a/custom_md_loader/classes/MetadataObjectCreator.cls +++ b/custom_md_loader/classes/MetadataObjectCreator.cls @@ -61,134 +61,144 @@ public with sharing class MetadataObjectCreator { '{0}'; public static void createCustomObject(MetadataMappingInfo mappingInfo) { - System.debug('createCustomObject ***************'); - String fullName = mappingInfo.getCustomMetadadataTypeName(); - - System.debug('fullName ->' + fullName); - String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); - - String label = pluralLabel; - pluralLabel = pluralLabel + 's'; - - System.debug('label ->' + label); - System.debug('pluralLabel ->' + pluralLabel); - - String objectRequest = String.format(objectRequestBodySnippet, new String[]{UserInfo.getSessionId(), fullName, label, pluralLabel}); - - System.debug('objectRequest-->' + objectRequest); - HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(objectRequest); - - httpReq.setEndpoint(endPoint); - System.debug('httpReq-->' + httpReq); - getResponse(httpReq); - } - - public static void createCustomField(MetadataMappingInfo mappingInfo) { - System.debug('createCustomField ***************'); - - String fullName = mappingInfo.getCustomMetadadataTypeName(); - - String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - String fieldFullName = ''; - String label = ''; - String type_x = ''; - String length_x = ''; - String defaultValue = ''; - String precisionValue = ''; - - String fieldRequest = ''; - String reqBody = ''; - - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - System.debug('descFieldResultMap-->' + descFieldResultMap); - - integer counter = 0; - for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { - if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ - length_x = ''; - - System.debug('csField-->' + csField); - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); - System.debug('descCSFieldResult-->' + descCSFieldResult); - - String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); - - System.debug('cmtField-->' + cmtField); - System.debug('fullName--> 2' + fullName); - - fieldFullName = fullName + '.' + cmtField; - System.debug('fieldFullName--> 3' + fieldFullName); - label = descCSFieldResult.getLabel(); - type_x = getConvertedType(descCSFieldResult.getType().name()); - length_x = String.valueOf(descCSFieldResult.getLength()); - - if(descCSFieldResult.getLength() != 0 ) { - length_x = String.format(fieldLengthSnippet, new String[]{length_x}); - } - else { - length_x = ''; - } - if(type_x == 'Checkbox') { - defaultValue = '' + descCSFieldResult.getDefaultValue() +''; - } - else{ - defaultValue = ''; - } - if(type_x == 'Number' || type_x == 'Percent') { - precisionValue = '' + descCSFieldResult.getPrecision() +'' + - '' + descCSFieldResult.getScale() +''; - } - else{ - precisionValue = ''; - } - // Length is set to 80 for Email/Phone/URL fields but no length field? - if(type_x == 'Email' || type_x == 'Phone' || type_x == 'URL' || type_x == 'Url' || type_x == 'TextArea' ) { - length_x = ''; - } - - fieldRequest = fieldRequest + String.format(fieldRequestSnippet, new String[]{fieldFullName, type_x, label, length_x, defaultValue, precisionValue}); - - System.debug('fieldFullName-->' + fieldFullName); - System.debug('label-->' + label); - System.debug('type_x-->' + type_x); - System.debug('length_x-->' + length_x); - - if(counter == 9) { - - reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); + try{ + System.debug('createCustomObject -->'); + String fullName = mappingInfo.getCustomMetadadataTypeName(); + + System.debug('fullName ->' + fullName); + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); - System.debug('reqBody-->' + reqBody); - HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(reqBody); - httpReq.setEndpoint(endPoint); - System.debug('httpReq-->' + httpReq); - getResponse(httpReq); - - fieldRequest = ''; - } - - counter++; - - } - } - System.debug('fieldRequest-->' + fieldRequest); - - if(fieldRequest != '') { - reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); + String label = pluralLabel; + pluralLabel = pluralLabel + 's'; - System.debug('reqBody-->' + reqBody); + System.debug('label ->' + label); + System.debug('pluralLabel ->' + pluralLabel); + + String objectRequest = String.format(objectRequestBodySnippet, new String[]{UserInfo.getSessionId(), fullName, label, pluralLabel}); + + System.debug('objectRequest-->' + objectRequest); HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(reqBody); + httpReq.setBody(objectRequest); + httpReq.setEndpoint(endPoint); System.debug('httpReq-->' + httpReq); getResponse(httpReq); } + catch(Exception e) { + throw e; + } + } + + public static void createCustomField(MetadataMappingInfo mappingInfo) { + try{ + System.debug('createCustomField -->'); + + String fullName = mappingInfo.getCustomMetadadataTypeName(); + + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + String fieldFullName = ''; + String label = ''; + String type_x = ''; + String length_x = ''; + String defaultValue = ''; + String precisionValue = ''; + + String fieldRequest = ''; + String reqBody = ''; + + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + System.debug('descFieldResultMap-->' + descFieldResultMap); + + integer counter = 0; + for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ + length_x = ''; + + System.debug('csField-->' + csField); + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); + System.debug('descCSFieldResult-->' + descCSFieldResult); + + String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); + + System.debug('cmtField-->' + cmtField); + System.debug('fullName--> 2' + fullName); + + fieldFullName = fullName + '.' + cmtField; + System.debug('fieldFullName--> 3' + fieldFullName); + label = descCSFieldResult.getLabel(); + type_x = getConvertedType(descCSFieldResult.getType().name()); + length_x = String.valueOf(descCSFieldResult.getLength()); + + if(descCSFieldResult.getLength() != 0 ) { + length_x = String.format(fieldLengthSnippet, new String[]{length_x}); + } + else { + length_x = ''; + } + if(type_x == 'Checkbox') { + defaultValue = '' + descCSFieldResult.getDefaultValue() +''; + } + else{ + defaultValue = ''; + } + if(type_x == 'Number' || type_x == 'Percent') { + precisionValue = '' + descCSFieldResult.getPrecision() +'' + + '' + descCSFieldResult.getScale() +''; + } + else{ + precisionValue = ''; + } + // Length is set to 80 for Email/Phone/URL fields but no length field? + if(type_x == 'Email' || type_x == 'Phone' || type_x == 'URL' || type_x == 'Url' || type_x == 'TextArea' ) { + length_x = ''; + } + + fieldRequest = fieldRequest + String.format(fieldRequestSnippet, new String[]{fieldFullName, type_x, label, length_x, defaultValue, precisionValue}); + + System.debug('fieldFullName-->' + fieldFullName); + System.debug('label-->' + label); + System.debug('type_x-->' + type_x); + System.debug('length_x-->' + length_x); + + if(counter == 9) { + + reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); + + System.debug('reqBody-->' + reqBody); + HttpRequest httpReq = initHttpRequest('POST'); + httpReq.setBody(reqBody); + httpReq.setEndpoint(endPoint); + System.debug('httpReq-->' + httpReq); + getResponse(httpReq); + + fieldRequest = ''; + } + + counter++; + + } + } + System.debug('fieldRequest-->' + fieldRequest); + + if(fieldRequest != '') { + reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); + + System.debug('reqBody-->' + reqBody); + HttpRequest httpReq = initHttpRequest('POST'); + httpReq.setBody(reqBody); + httpReq.setEndpoint(endPoint); + System.debug('httpReq-->' + httpReq); + getResponse(httpReq); + } + } + catch(Exception e) { + throw e; + } } private static HttpRequest initHttpRequest(String httpMethod){ diff --git a/custom_md_loader/classes/MetadataWrapperApiLoader.cls b/custom_md_loader/classes/MetadataWrapperApiLoader.cls index bc1af86..9f2a861 100644 --- a/custom_md_loader/classes/MetadataWrapperApiLoader.cls +++ b/custom_md_loader/classes/MetadataWrapperApiLoader.cls @@ -49,17 +49,39 @@ public with sharing class MetadataWrapperApiLoader extends MetadataLoader { } public override void migrateAsIsWithObjCreation(String csName, String cmtName) { - super.migrateAsIsWithObjCreation(csName, cmtName); - MetadataMappingInfo mappingInfo = getMapper().getMappingInfo(); + System.debug('migrateAsIsWithObjCreation-->csName=' + csName); + System.debug('migrateAsIsWithObjCreation-->cmtName=' + cmtName); + + try{ + super.migrateAsIsWithObjCreation(csName, cmtName); + MetadataMappingInfo mappingInfo = getMapper().getMappingInfo(); + System.debug('mappingInfo-->' + mappingInfo); - MetadataObjectCreator.createCustomObject(mappingInfo); - MetadataObjectCreator.createCustomField(mappingInfo); + if(!response.isSuccess()) { + throw new MetadataMigrationException('Operation failed, please check messages!'); + return; + } + + MetadataObjectCreator.createCustomObject(mappingInfo); + MetadataObjectCreator.createCustomField(mappingInfo); - migrate(mappingInfo); + migrate(mappingInfo); + } + catch(Exception e) { + List messages = response.getMessages(); + if(messages == null) { + messages = new List(); + } + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + + return; + } buildResponse(); } - + public override void migrateAsIsMapping(String csName, String cmtName) { super.migrateAsIsMapping(csName, cmtName); buildResponse(); @@ -94,6 +116,8 @@ public with sharing class MetadataWrapperApiLoader extends MetadataLoader { String cmdName = mappingInfo.getCustomMetadadataTypeName(); Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); + System.debug('srcTgtFieldsMap ->' + srcTgtFieldsMap); MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[mappingInfo.getRecordList().size()]; Map fieldsAndValues = new Map(); @@ -103,9 +127,6 @@ public with sharing class MetadataWrapperApiLoader extends MetadataLoader { String typeDevName = cmdName.subString(0, cmdName.indexOf(AppConstants.MDT_SUFFIX)); System.debug('typeDevName ->' + typeDevName); - Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); - System.debug('srcTgtFieldsMap ->' + srcTgtFieldsMap); - for(String csField : srcTgtFieldsMap.keySet()) { // Set Target, Source Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); @@ -115,15 +136,9 @@ public with sharing class MetadataWrapperApiLoader extends MetadataLoader { if(descCSFieldResult.getType().name() == 'DATETIME') { - System.debug('csRecord.get(csField) ->' + csRecord.get(csField)); - //System.debug('String.valueOf(csRecord.get(csField)) ->' + String.valueOf(csRecord.get(csField))); - if(csRecord.get(csField) != null) { Datetime dt = DateTime.valueOf(csRecord.get(csField)); - System.debug('Datetime dt ->' + dt); - String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); // 12/22/2014 7:05 AM (MM/DD/YYYY HH:MM PERIOD) - System.debug('formattedDateTime-->' + formattedDateTime); - + String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); fieldsAndValues.put(srcTgtFieldsMap.get(csField), formattedDateTime); } } @@ -161,7 +176,7 @@ public with sharing class MetadataWrapperApiLoader extends MetadataLoader { } catch(Exception e) { - System.debug('Error Message=' + e.getMessage()); + System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); List messages = new List(); messages.add(new MetadataResponse.Message(100, e.getMessage())); @@ -202,9 +217,6 @@ public with sharing class MetadataWrapperApiLoader extends MetadataLoader { } } customMetadata.values = customMetadataValues; - - System.debug('customMetadata ->' + customMetadata); - return customMetadata; } diff --git a/custom_md_loader/package.xml b/custom_md_loader/package.xml index 15ea182..c2dee4a 100755 --- a/custom_md_loader/package.xml +++ b/custom_md_loader/package.xml @@ -28,6 +28,7 @@ MetadataResponse MetadataMigrationController MetadataObjectCreator + MetadataMigrationException JsonUtilities ApexClass
From b041656a1565d1e81ba3757ffb839e8e94971814 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Thu, 28 Sep 2017 15:13:18 -0700 Subject: [PATCH 77/93] Code review comments and few enhancements After incorporating code review comments and few enhancements --- custom_md_loader/classes/AppConstants.cls | 13 +- .../classes/AppConstants.cls-meta.xml | 4 +- custom_md_loader/classes/CSVFileUtil.cls | 2 +- .../classes/CSVFileUtil.cls-meta.xml | 4 +- ...ustomMetadataLoaderController.cls-meta.xml | 4 +- ...mMetadataLoaderControllerTest.cls-meta.xml | 4 +- .../CustomMetadataUploadController.cls | 4 +- ...ustomMetadataUploadController.cls-meta.xml | 4 +- .../CustomMetadataUploadControllerTest.cls | 8 +- ...mMetadataUploadControllerTest.cls-meta.xml | 4 +- custom_md_loader/classes/JsonUtilities.cls | 13 +- .../classes/JsonUtilities.cls-meta.xml | 5 +- .../MDWrapperWebServiceMock.cls-meta.xml | 4 +- .../classes/MetadataApexApiLoader.cls | 299 ++++++------- .../MetadataApexApiLoader.cls-meta.xml | 5 +- custom_md_loader/classes/MetadataLoader.cls | 216 +++++----- .../classes/MetadataLoader.cls-meta.xml | 4 +- .../classes/MetadataLoaderClient.cls | 113 ++--- .../classes/MetadataLoaderClient.cls-meta.xml | 4 +- .../MetadataLoaderFactory.cls-meta.xml | 4 +- custom_md_loader/classes/MetadataMapper.cls | 39 +- .../classes/MetadataMapper.cls-meta.xml | 4 +- .../classes/MetadataMapperCustom.cls | 59 ++- .../classes/MetadataMapperCustom.cls-meta.xml | 4 +- .../classes/MetadataMapperDefault.cls | 168 ++++---- .../MetadataMapperDefault.cls-meta.xml | 4 +- .../classes/MetadataMapperFactory.cls | 8 +- .../MetadataMapperFactory.cls-meta.xml | 4 +- .../classes/MetadataMapperSimple.cls | 131 +++--- .../classes/MetadataMapperSimple.cls-meta.xml | 4 +- .../classes/MetadataMapperType.cls-meta.xml | 4 +- .../classes/MetadataMappingInfo.cls | 113 +++-- .../classes/MetadataMappingInfo.cls-meta.xml | 4 +- .../classes/MetadataMigrationController.cls | 377 ++++++++-------- .../MetadataMigrationController.cls-meta.xml | 4 +- .../MetadataMigrationException.cls-meta.xml | 4 +- .../classes/MetadataObjectCreator.cls | 401 +++++++----------- .../MetadataObjectCreator.cls-meta.xml | 4 +- .../classes/MetadataOpType.cls-meta.xml | 4 +- custom_md_loader/classes/MetadataResponse.cls | 108 ++--- .../classes/MetadataResponse.cls-meta.xml | 4 +- .../classes/MetadataService.cls-meta.xml | 4 +- .../classes/MetadataServiceTest.cls-meta.xml | 4 +- custom_md_loader/classes/MetadataUtil.cls | 4 +- .../classes/MetadataUtil.cls-meta.xml | 4 +- .../classes/MetadataWrapperApiLoader.cls | 393 ++++++++--------- .../MetadataWrapperApiLoader.cls-meta.xml | 4 +- custom_md_loader/labels/CustomLabels.labels | 179 ++++++++ custom_md_loader/package.xml | 125 +++--- custom_md_loader/pages/CMTMigrator.page | 234 +++++----- .../pages/CMTMigrator.page-meta.xml | 8 +- .../pages/CustomMetadataLoader.page-meta.xml | 13 +- ...CustomMetadataRecordUploader.page-meta.xml | 13 +- custom_md_loader/tabs/CMT_Migrator.tab | 2 +- 54 files changed, 1589 insertions(+), 1568 deletions(-) create mode 100644 custom_md_loader/labels/CustomLabels.labels diff --git a/custom_md_loader/classes/AppConstants.cls b/custom_md_loader/classes/AppConstants.cls index 5d3ab9d..05cb2cc 100644 --- a/custom_md_loader/classes/AppConstants.cls +++ b/custom_md_loader/classes/AppConstants.cls @@ -13,15 +13,12 @@ public class AppConstants { public static final String DESC_ATTRIBUTE = 'Description'; public static final String MDT_SUFFIX = '__mdt'; - public static final String CS_NAME_ATTRIBURE = 'Name'; - + public static final String CS_NAME_ATTRIBUTE = 'Name'; public static final String SELECT_STRING = 'Select type'; - - //error messages - public static final String FILE_MISSING = 'Please provide a comma separated file.'; - public static final String EMPTY_FILE = 'CSV file is empty.'; - public static final String TYPE_OPTION_NOT_SELECTED = 'Please choose a valid custom metadata type.'; public static final String HEADER_MISSING_DEVNAME_AND_LABEL = 'Header must contain atleast one of these two fields - '+ DEV_NAME_ATTRIBUTE + ', ' + LABEL_ATTRIBUTE +'.'; - public static final String INVALID_FILE_ROW_SIZE_DOESNT_MATCH = 'The number of field values does not match the number of header fields on line '; + + // Do not change value for ERROR_UNAUTHORIZED_ENDPOINT + public static final String ERROR_UNAUTHORIZED_ENDPOINT = 'Unauthorized endpoint, please check Setup'; + } \ No newline at end of file diff --git a/custom_md_loader/classes/AppConstants.cls-meta.xml b/custom_md_loader/classes/AppConstants.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/AppConstants.cls-meta.xml +++ b/custom_md_loader/classes/AppConstants.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/CSVFileUtil.cls b/custom_md_loader/classes/CSVFileUtil.cls index 34c345e..d99cbd5 100644 --- a/custom_md_loader/classes/CSVFileUtil.cls +++ b/custom_md_loader/classes/CSVFileUtil.cls @@ -9,7 +9,7 @@ public class CSVFileUtil { //from https://developer.salesforce.com/page/Code_Samples#Parse_a_CSV_with_APEX public static List> parseCSV(Blob csvFileBody,Boolean skipHeaders) { if(csvFileBody == null) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.FILE_MISSING); + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, Label.FILE_MISSING); ApexPages.addMessage(errorMessage); return null; } diff --git a/custom_md_loader/classes/CSVFileUtil.cls-meta.xml b/custom_md_loader/classes/CSVFileUtil.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/CSVFileUtil.cls-meta.xml +++ b/custom_md_loader/classes/CSVFileUtil.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml b/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml +++ b/custom_md_loader/classes/CustomMetadataLoaderController.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml b/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml +++ b/custom_md_loader/classes/CustomMetadataLoaderControllerTest.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/CustomMetadataUploadController.cls b/custom_md_loader/classes/CustomMetadataUploadController.cls index e236417..44c2351 100644 --- a/custom_md_loader/classes/CustomMetadataUploadController.cls +++ b/custom_md_loader/classes/CustomMetadataUploadController.cls @@ -104,13 +104,13 @@ public class CustomMetadataUploadController { } if(fields == null || (fields != null && fields.size() < 1)) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.EMPTY_FILE); + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, Label.EMPTY_FILE); ApexPages.addMessage(errorMessage); return; } if(selectedType == AppConstants.SELECT_STRING) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR,AppConstants.TYPE_OPTION_NOT_SELECTED); + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, Label.TYPE_OPTION_NOT_SELECTED); ApexPages.addMessage(errorMessage); return; } diff --git a/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml b/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml +++ b/custom_md_loader/classes/CustomMetadataUploadController.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls b/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls index 49106e4..58faa98 100644 --- a/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls +++ b/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls @@ -10,17 +10,17 @@ public class CustomMetadataUploadControllerTest { public static testmethod void testUploadNoFile() { CustomMetadataUploadController ctrl = setup(null); - invokeCreateCMAndValidateError(ctrl, AppConstants.FILE_MISSING); + invokeCreateCMAndValidateError(ctrl, Label.FILE_MISSING); } public static testmethod void testUploadEmptyFile() { CustomMetadataUploadController ctrl = setup(Blob.valueOf('')); - invokeCreateCMAndValidateError(ctrl, AppConstants.EMPTY_FILE); + invokeCreateCMAndValidateError(ctrl, Label.EMPTY_FILE); } public static testmethod void testSelectedTypeMissing() { CustomMetadataUploadController ctrl = setup(Blob.valueOf('Text__c'), AppConstants.SELECT_STRING); - invokeCreateCMAndValidateError(ctrl, AppConstants.TYPE_OPTION_NOT_SELECTED); + invokeCreateCMAndValidateError(ctrl, Label.TYPE_OPTION_NOT_SELECTED); } public static testmethod void testInvalidHeaderMissingFields() { @@ -61,7 +61,7 @@ public class CustomMetadataUploadControllerTest { String countryLabel = 'AmericaTest'+Math.random(); CustomMetadataUploadController ctrl = setup(Blob.valueOf('DeveloperName,CountryCode__c,CountryName__c\n'+countryLabel+',US')); - invokeCreateCMAndValidateError(ctrl, AppConstants.INVALID_FILE_ROW_SIZE_DOESNT_MATCH + '1'); + invokeCreateCMAndValidateError(ctrl, System.Label.INVALID_FILE_ROW_SIZE_DOESNT_MATCH + '1'); } static CustomMetadataUploadController setup(Blob file) { diff --git a/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml b/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml +++ b/custom_md_loader/classes/CustomMetadataUploadControllerTest.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/JsonUtilities.cls b/custom_md_loader/classes/JsonUtilities.cls index 7c5566a..791889e 100644 --- a/custom_md_loader/classes/JsonUtilities.cls +++ b/custom_md_loader/classes/JsonUtilities.cls @@ -9,15 +9,10 @@ * Utilities class for common manipulation of json format data * */ - public with sharing class JsonUtilities { public class JsonUtilException extends Exception {} - public static String JSON_BAD_FORMAT = 'The provided Json String was badly formatted.'; - public static String JSON_EMPTY = 'No field values were found in the Json String.'; - - /** * This basic method takes a string formatted as json and returns a map * containing the name/value pairs. If the input is empty or is not formatted correctly @@ -27,25 +22,25 @@ public with sharing class JsonUtilities { Map jsonObjMap; Map jsonMap = new Map(); if (String.isBlank(jsonString)){ - throw new JsonUtilException(JSON_EMPTY); + throw new JsonUtilException(Label.ERROR_JSON_EMPTY); } try { jsonObjMap = (Map)JSON.deserializeUntyped(jsonString); if(jsonObjMap == null || jsonObjMap.size() == 0) { - throw new JsonUtilException(JSON_EMPTY); + throw new JsonUtilException(Label.ERROR_JSON_EMPTY); } else { for (String pKey : jsonObjMap.keySet() ) { try { String pVal = (String)jsonObjMap.get(pKey); jsonMap.put(pKey, pVal); } catch (exception e) { - throw new JsonUtilException(JSON_BAD_FORMAT, e); + throw new JsonUtilException(Label.ERROR_JSON_BAD_FORMAT, e); } } } return jsonMap; } catch (Exception e) { - throw new JsonUtilException(JSON_BAD_FORMAT, e); + throw new JsonUtilException(Label.ERROR_JSON_BAD_FORMAT, e); } } diff --git a/custom_md_loader/classes/JsonUtilities.cls-meta.xml b/custom_md_loader/classes/JsonUtilities.cls-meta.xml index 36cfacb..e2f92fa 100644 --- a/custom_md_loader/classes/JsonUtilities.cls-meta.xml +++ b/custom_md_loader/classes/JsonUtilities.cls-meta.xml @@ -1,6 +1,5 @@ - 39.0 - Active + 39.0 + Active - diff --git a/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml b/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml +++ b/custom_md_loader/classes/MDWrapperWebServiceMock.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/MetadataApexApiLoader.cls b/custom_md_loader/classes/MetadataApexApiLoader.cls index f06e497..bfbbd56 100644 --- a/custom_md_loader/classes/MetadataApexApiLoader.cls +++ b/custom_md_loader/classes/MetadataApexApiLoader.cls @@ -1,230 +1,183 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + public with sharing class MetadataApexApiLoader extends MetadataLoader { + // TODO: MetadataDeployStatus: We may use in future to provide status on UI (polling or email) public MetadataDeployStatus mdDeployStatus {get;set;} + // TODO: MetadataDeployCallback: We may use in future to provide status on UI (polling or email) public MetadataDeployCallback callback {get;set;} - - public static Id jobId1 {get;set;} - public static Metadata.DeployStatus deployStatus1 {get;set;} - public static boolean success1 {get;set;} - - public MetadataApexApiLoader() { - this.mdDeployStatus = new MetadataApexApiLoader.MetadataDeployStatus(); - this.callback = new MetadataDeployCallback(); - } - - public MetadataApexApiLoader.MetadataDeployStatus getMdDeployStatus() { - return this.mdDeployStatus; + + public MetadataApexApiLoader() { + this.mdDeployStatus = new MetadataApexApiLoader.MetadataDeployStatus(); + this.callback = new MetadataDeployCallback(); } - + + public MetadataApexApiLoader.MetadataDeployStatus getMdDeployStatus() { + return this.mdDeployStatus; + } + public MetadataApexApiLoader.MetadataDeployCallback getCallback() { - return this.callback; + return this.callback; } - - public override void migrateAsIsWithObjCreation(String csName, String cmtName) { + + public override void migrateAsIsWithObjCreation(String csName, String cmtName) { List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Not Supported!!!')); + messages.add(new MetadataResponse.Message(100, Label.MSG_NOT_SUPPORTED)); response.setIsSuccess(false); - response.setMessages(messages); - } - - public override void migrateAsIsMapping(String csName, String cmtName) { - super.migrateAsIsMapping(csName, cmtName); - buildResponse(); - } - - public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { - super.migrateSimpleMapping(csNameWithField, cmtNameWithField); - buildResponse(); - } - - public override void migrateCustomMapping(String csName, String cmtName, String mapping) { - super.migrateCustomMapping(csName, cmtName, mapping); - buildResponse(); - } - - private void buildResponse() { - if(response.IsSuccess()) { + response.setMessages(messages); + } + + public override void migrateAsIsMapping(String csName, String cmtName) { + super.migrateAsIsMapping(csName, cmtName); + buildResponse(); + } + + public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { + super.migrateSimpleMapping(csNameWithField, cmtNameWithField); + buildResponse(); + } + + public override void migrateCustomMapping(String csName, String cmtName, String mapping) { + super.migrateCustomMapping(csName, cmtName, mapping); + buildResponse(); + } + + private void buildResponse() { + if(response.IsSuccess()) { List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Migration In Progress... Job Id: ' + getMdDeployStatus().getJobId())); + messages.add(new MetadataResponse.Message(100, Label.MSG_MIGRATION_IN_PROGRESS + getMdDeployStatus().getJobId())); response.setIsSuccess(true); - response.setMessages(messages); + response.setMessages(messages); } - } - - public override void migrate(MetadataMappingInfo mappingInfo) { - - System.debug('MetadataApexApiLoader.migrate -->'); - try{ - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + } + + public override void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataApexApiLoader.migrate -->'); + try { + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); String typeDevName = mappingInfo.getCustomMetadadataTypeName() - .subString(0, mappingInfo.getCustomMetadadataTypeName().indexOf(AppConstants.MDT_SUFFIX)); - List records = new List(); + .subString(0, mappingInfo.getCustomMetadadataTypeName().indexOf(AppConstants.MDT_SUFFIX)); + List records = new List(); for(sObject csRecord : mappingInfo.getRecordList()) { - - Metadata.CustomMetadata customMetadataRecord = new Metadata.CustomMetadata(); - customMetadataRecord.values = new List(); - - if(csRecord.get(AppConstants.CS_NAME_ATTRIBURE) != null) { - String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); - String tempVal = strippedLabel.substring(0, 1); - - if(tempVal.isNumeric()) { - strippedLabel = 'X' + strippedLabel; - } - strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - // default fullName to type_dev_name.label + + Metadata.CustomMetadata customMetadataRecord = new Metadata.CustomMetadata(); + customMetadataRecord.values = new List(); + + if(csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) != null) { + String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); + String tempVal = strippedLabel.substring(0, 1); + + if(tempVal.isNumeric()) { + strippedLabel = 'X' + strippedLabel; + } + strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + // default fullName to type_dev_name.label customMetadataRecord.fullName = typeDevName + '.'+ strippedLabel; - customMetadataRecord.label = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); - } - for(String fieldName : mappingInfo.getCSToMDT_fieldMapping().keySet()) { - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(fieldName.toLowerCase()); - - if(mappingInfo.getCSToMDT_fieldMapping().get(fieldName).endsWith('__c')){ - Metadata.CustomMetadataValue cmv = new Metadata.CustomMetadataValue(); - cmv.field = mappingInfo.getCSToMDT_fieldMapping().get(fieldName); - if(descCSFieldResult.getType().name() == 'DATETIME') { - - if(csRecord.get(fieldName) != null) { - Datetime dt = DateTime.valueOf(csRecord.get(fieldName)); - String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); - cmv.value = csRecord.get(formattedDateTime); - } - else { - cmv.value = null; - } - - } - else{ - cmv.value = csRecord.get(fieldName); - } - - customMetadataRecord.values.add(cmv); - } - } - records.add(customMetadataRecord); - } - - - callback.setMdDeployStatus(mdDeployStatus); - + customMetadataRecord.label = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); + } + for(String fieldName : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(fieldName.toLowerCase()); + + if(mappingInfo.getCSToMDT_fieldMapping().get(fieldName).endsWith('__c')) { + Metadata.CustomMetadataValue cmv = new Metadata.CustomMetadataValue(); + cmv.field = mappingInfo.getCSToMDT_fieldMapping().get(fieldName); + cmv.value = csRecord.get(fieldName); + customMetadataRecord.values.add(cmv); + } + } + records.add(customMetadataRecord); + } + + callback.setMdDeployStatus(mdDeployStatus); + Metadata.DeployContainer deployContainer = new Metadata.DeployContainer(); for(Metadata.CustomMetadata record : records) { - deployContainer.addMetadata(record); - } - + deployContainer.addMetadata(record); + } + // Enqueue custom metadata deployment - Id jobId = Metadata.Operations.enqueueDeployment(deployContainer, callback); - jobId1 = jobId; - - mdDeployStatus.setJobId(jobId); - - System.debug('jobId-->' + jobId); - System.debug('mdDeployStatus-->' + mdDeployStatus); - System.debug('mdDeployStatus.getJobId()-->' + mdDeployStatus.getJobId()); - } - catch(Exception e) { - System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, e.getMessage())); - - response.setIsSuccess(false); - response.setMessages(messages); - } - } - - - + Id jobId = Metadata.Operations.enqueueDeployment(deployContainer, callback); + mdDeployStatus.setJobId(jobId); + } + catch (Exception e) { + System.debug('MetadataApexApiLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, e.getMessage())); + + response.setIsSuccess(false); + response.setMessages(messages); + } + } + + // TODO: Status is still a work in progress. In future, we may use this to provide + // status on UI (polling or email) public class MetadataDeployStatus { public Id jobId {get;set;} public Metadata.DeployStatus deployStatus {get;set;} public boolean success {get;set;} - + public MetadataDeployStatus() {} - + public Id getJobId() { return this.jobId; } public void setJobId(Id jobId) { this.jobId = jobId; } - + public Metadata.DeployStatus getDeployStatus() { return this.deployStatus; } public void setDeployStatus(Metadata.DeployStatus deployStatus) { - System.debug('setDeployStatus deployStatus ===>'+ deployStatus); this.deployStatus = deployStatus; } - + public boolean getSuccess() { return this.success; } public void setSuccess(boolean success) { - System.debug('setDeployStatus success ===>'+ success); this.success = success; } - } - + + // TODO: Callback is still a work in progress. In future, we may use this to provide + // status on UI (polling or email) public class MetadataDeployCallback implements Metadata.DeployCallback { - - public MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus1 {get;set;} + + public MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus {get;set;} public void setMdDeployStatus(MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus) { - this.mdDeployStatus1 = mdDeployStatus; + this.mdDeployStatus = mdDeployStatus; } - + public MetadataDeployCallback() { } - + public void handleResult(Metadata.DeployResult result, - Metadata.DeployCallbackContext context) { - - deployStatus1 = result.status; - success1 = result.success; - - if (result.status == Metadata.DeployStatus.Succeeded) { - - mdDeployStatus1.setSuccess(true); - mdDeployStatus1.setDeployStatus(result.status); - - System.debug(' ===>'+ result); - } - else if (result.status == Metadata.DeployStatus.InProgress) { - // Deployment In Progress - - mdDeployStatus1.setSuccess(false); - mdDeployStatus1.setDeployStatus(result.status); - - System.debug(' ===> fail '+ result); - } - else { - - mdDeployStatus1.setSuccess(false); - mdDeployStatus1.setDeployStatus(result.status); - - // Deployment was not successful - System.debug(' ===> fail '+ result); - } - - /*if (result.success) { - success = true; - System.debug(' ===>'+ result); - } - */ - + Metadata.DeployCallbackContext context) { + + if (result.status == Metadata.DeployStatus.Succeeded) { + mdDeployStatus.setSuccess(true); + mdDeployStatus.setDeployStatus(result.status); + } + else if (result.status == Metadata.DeployStatus.InProgress) { + // Deployment In Progress + mdDeployStatus.setSuccess(false); + mdDeployStatus.setDeployStatus(result.status); + } + else { + mdDeployStatus.setSuccess(false); + mdDeployStatus.setDeployStatus(result.status); + // Deployment was not successful + } } } - - } diff --git a/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml b/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml index 36cfacb..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml +++ b/custom_md_loader/classes/MetadataApexApiLoader.cls-meta.xml @@ -1,6 +1,5 @@ - 39.0 - Active + 39.0 + Active - diff --git a/custom_md_loader/classes/MetadataLoader.cls b/custom_md_loader/classes/MetadataLoader.cls index 93e8d1f..72f7e4a 100644 --- a/custom_md_loader/classes/MetadataLoader.cls +++ b/custom_md_loader/classes/MetadataLoader.cls @@ -4,135 +4,133 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - -public virtual class MetadataLoader { +public virtual with sharing class MetadataLoader { + + public enum MetadataOpType { APEXWRAPPER, METADATAAPEX } + public MetadataResponse response; public MetadataMapperDefault mapper; - + public MetadataLoader() { response = new MetadataResponse(true, null, null); } - + /** - * This will first create custom object and then migrates the records. - * This assumes that CS and MDT have the same API field names. - * - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateAsIsWithObjCreation(String csName, String cmtName) { - - MetadataMappingInfo mappingInfo = null; - try{ - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); - mappingInfo = mapper.mapper(csName, cmtName, null); - } - catch(Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); + * This will first create custom object and then migrates the records. + * This assumes that Custom Setting and MDT have the same API field names and + * same field data type. + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateAsIsWithObjCreation(String csName, String cmtName) { + MetadataMappingInfo mappingInfo = null; + try { + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); + mappingInfo = mapper.mapper(csName, cmtName, null); + } + catch (Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting exists in the org!')); - messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); - messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(100, Label.MSG_CUSTOM_SETTINGS_EXISTS)); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_REQ)); + messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - } - } - - /** - * This assumes that CS and MDT have the same API field names. - * - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateAsIsMapping(String csName, String cmtName) { - MetadataMappingInfo mappingInfo = null; - try{ - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); - mappingInfo = mapper.mapper(csName, cmtName, null); - migrate(mappingInfo); - } - catch(Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); + response.setIsSuccess(false); + response.setMessages(messages); + } + } + + /** + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateAsIsMapping(String csName, String cmtName) { + MetadataMappingInfo mappingInfo = null; + try { + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); + mappingInfo = mapper.mapper(csName, cmtName, null); + migrate(mappingInfo); + } + catch (Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); - messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name and Custom Metadata Types Api names are required!')); - messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_REQ)); + messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } - - - /** - * csNameAndField: Label, DeveloperName, Description (We might need it for migration) - * cmtNameAndField: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateSimpleMapping(String csNameAndField, String cmtNameAndField) { - - MetadataMappingInfo mappingInfo = null; - try{ - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.SIMPLE); - mappingInfo = mapper.mapper(csNameAndField, cmtNameAndField, null); - migrate(mappingInfo); - } - catch(Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); - messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name/Field Name and Custom Metadata Types/Field Name names are required!')); - messages.add(new MetadataResponse.Message(200, 'Please check the format, . and .')); - messages.add(new MetadataResponse.Message(300, 'Please check the Api names!')); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } + + /** + * csNameAndField: Label, DeveloperName, Description (We might need it for migration) + * cmtNameAndField: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateSimpleMapping(String csNameAndField, String cmtNameAndField) { + MetadataMappingInfo mappingInfo = null; + try { + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.SIMPLE); + mappingInfo = mapper.mapper(csNameAndField, cmtNameAndField, null); + migrate(mappingInfo); + } + catch (Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_FIELD_NAME_REQ)); + messages.add(new MetadataResponse.Message(200, Label.MSG_CS_MDT_FIELD_NAME_FORMAT)); + messages.add(new MetadataResponse.Message(300, Label.MSG_CHECK_API_NAMES)); messages.add(new MetadataResponse.Message(400, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } - - /** - * This assumes that CS and MDT have the same API field names. - * - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } + + /** + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' * mapping: e.g. Json mapping between CS field Api and CMT field Api names - */ - public virtual void migrateCustomMapping(String csName, String cmtName, String mapping) { - MetadataMappingInfo mappingInfo = null; - try{ - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.CUSTOM); - mappingInfo = mapper.mapper(csName, cmtName, mapping); - migrate(mappingInfo); - } - catch(Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - System.debug('MetadataLoader.migrateCustomMapping --> E' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Make sure Custom Setting and Custom Metadata Types exists in the org!')); - messages.add(new MetadataResponse.Message(100, 'Custom Setting Api Name, Custom Metadata Types Api and Json Mapping names are required!')); - messages.add(new MetadataResponse.Message(200, 'Please check the Api names!')); - messages.add(new MetadataResponse.Message(200, 'Please check the Json format!')); - messages.add(new MetadataResponse.Message(300, 'Please check the Api names in Json!')); + */ + public virtual void migrateCustomMapping(String csName, String cmtName, String mapping) { + MetadataMappingInfo mappingInfo = null; + try { + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.CUSTOM); + mappingInfo = mapper.mapper(csName, cmtName, mapping); + migrate(mappingInfo); + } + catch (Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_MAPPING_REQ)); + messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); + messages.add(new MetadataResponse.Message(200, Label.MSG_JSON_FORMAT)); + messages.add(new MetadataResponse.Message(300, Label.MSG_JSON_API_NAMES)); messages.add(new MetadataResponse.Message(400, e.getMessage())); response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } - - public virtual void migrate(MetadataMappingInfo mappingInfo) { - System.debug('MetadataLoader.migrate -->'); - } + response.setMessages(messages); + return; + } + } + + public virtual void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataLoader.migrate -->'); + } public MetadataMapperDefault getMapper() { return mapper; } - + public MetadataResponse getMetadataResponse() { return response; } - + } diff --git a/custom_md_loader/classes/MetadataLoader.cls-meta.xml b/custom_md_loader/classes/MetadataLoader.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/MetadataLoader.cls-meta.xml +++ b/custom_md_loader/classes/MetadataLoader.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/MetadataLoaderClient.cls b/custom_md_loader/classes/MetadataLoaderClient.cls index 1ef09e8..79780f9 100644 --- a/custom_md_loader/classes/MetadataLoaderClient.cls +++ b/custom_md_loader/classes/MetadataLoaderClient.cls @@ -4,70 +4,83 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + +/** + * Please note this is just a sample usage class. You need to replace hard-coded + * values with real values. + * + **/ public class MetadataLoaderClient { + public void migrateMetatdataApex() { + } + /********************************************************* - * Desc This will create custom object and then migrate - Custom Settings data to Custom Metadata Types records as is - * @param Name of Custom Setting Api (VAT_Settings_CS__c) - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) - * @return + * Desc This will create custom object and then migrate Custom Settings data + * to Custom Metadata Types records as is + * + * @param Name + * of Custom Setting Api (VAT_Settings_CS__c) + * @param Name + * of Custom Metadata Types Api (VAT_Settings__mdt) + * @return *********************************************************/ - public void migrateAsIsWithObjCreation() { + public void migrateAsIsWithObjCreation(String csName, String mdtName) { MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateAsIsWithObjCreation('VAT_Settings_CS__c', 'VAT_Settings__mdt'); - } + loader.migrateAsIsWithObjCreation(csName, mdtName); + } /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records as is - * @param Name of Custom Setting Api (VAT_Settings_CS__c) - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) - * @return + * Desc Migrate Custom Settings data to Custom Metadata Types records as is + * + * @param Name + * of Custom Setting Api (VAT_Settings_CS__c) + * @param Name + * of Custom Metadata Types Api (VAT_Settings__mdt) + * @return *********************************************************/ - public void migrateAsIsMapping() { + public void migrateAsIsMapping(String csName, String mdtName) { MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateAsIsMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt'); - } + loader.migrateAsIsMapping(csName, mdtName); + } /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records if you have only - * one field mapping - * @param Name of Custom Setting Api.fieldName (VAT_Settings_CS__c.Active__c) - * @param Name of Custom Metadata Types Api.fieldMame (VAT_Settings__mdt.IsActive__c) - * @return + * Desc Migrate Custom Settings data to Custom Metadata Types records if you + * have only one field mapping + * + * @param Name + * of Custom Setting Api.fieldName (VAT_Settings_CS__c.Active__c) + * @param Name + * of Custom Metadata Types Api.fieldMame + * (VAT_Settings__mdt.IsActive__c) + * @return *********************************************************/ - public void migrateSimpleMapping() { - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateSimpleMapping('VAT_Settings_CS__c.Active__c', 'VAT_Settings__mdt.IsActive__c'); - } + public void migrateSimpleMapping(String csNameWithField, + String mdtNameWithField) { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateSimpleMapping(csNameWithField, mdtNameWithField); + } /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records if you have only - * different Api names in Custom Settings and Custom Metadata Types - * @param Name of Custom Setting Api (VAT_Settings_CS__c) - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt) - * @param Json Mapping (Sample below) - { - "Active__c" : "IsActive__c", - "Timeout__c" : "GlobalTimeout__c", - "EndPointURL__c" : "URL__c", - } - - * @return + * Desc Migrate Custom Settings data to Custom Metadata Types records if you + * have only different Api names in Custom Settings and Custom Metadata + * Types + * + * @param Name + * of Custom Setting Api (VAT_Settings_CS__c) + * @param Name + * of Custom Metadata Types Api (VAT_Settings__mdt) + * @param Json + * Mapping (Sample below) { "Active__c" : "IsActive__c", + * "Timeout__c" : "GlobalTimeout__c", "EndPointURL__c" : + * "URL__c", } + * + * @return *********************************************************/ - public void migrateCustomMapping() { - String jsonMapping = '{'+ - '"Active__c" : "Active__c",'+ - '"Timeout__c" : "Timeout__c",'+ - '"EndPointURL__c" : "EndPointURL__c",'+ - '};'; - - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateCustomMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt', jsonMapping); - } - - public void migrateMetatdataApex() { - } + public void migrateCustomMapping(String csName, String mdtName, + String jsonMapping) { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateCustomMapping(csName, mdtName, jsonMapping); + } } diff --git a/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml b/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml +++ b/custom_md_loader/classes/MetadataLoaderClient.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml b/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml +++ b/custom_md_loader/classes/MetadataLoaderFactory.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataMapper.cls b/custom_md_loader/classes/MetadataMapper.cls index db60f06..3945246 100644 --- a/custom_md_loader/classes/MetadataMapper.cls +++ b/custom_md_loader/classes/MetadataMapper.cls @@ -4,11 +4,38 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + +/** + * Interface for mapping between source object and target object fields. + * Implementation of this interface will handle the mapping between source + * and target object fields. + * + * */ public interface MetadataMapper { - MetadataMappingInfo mapper(String sFrom, String sTo, String mapping); - - boolean validate(); - - void mapSourceTarget(); + + /** + * Maps the source fields with target fields. + * + * @param sFrom: source object + * @param sFrom: target object + * @param mapping: optional param, required for custom mapping in the form of json. + * */ + MetadataMappingInfo mapper(String sFrom, String sTo, String mapping); + + // TODO: Currently, this is not implemented, but I think we should implement to + // validate the fields that are not supported by Custom Metadata Types. + + /** + * Validate the fields between source and target object. + * e.g. If source Custom Object is having a field of type 'masterdetail', + * then we should flag it an error or warning? + * + * */ + boolean validate(); + + /** + * Map for source-target field mapping + * + * */ + void mapSourceTarget(); } \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapper.cls-meta.xml b/custom_md_loader/classes/MetadataMapper.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataMapper.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMapper.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataMapperCustom.cls b/custom_md_loader/classes/MetadataMapperCustom.cls index 38bae38..e838142 100644 --- a/custom_md_loader/classes/MetadataMapperCustom.cls +++ b/custom_md_loader/classes/MetadataMapperCustom.cls @@ -4,7 +4,11 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + +/** + * Custom mapping between source and target object fields based on json. + * + * */ public with sharing class MetadataMapperCustom extends MetadataMapperDefault { private String csFieldName; @@ -15,31 +19,36 @@ public with sharing class MetadataMapperCustom extends MetadataMapperDefault { super(); } - /** - * sFrom: e.g. VAT_Settings__c.Field_Name_CS__c - * sTo: e.g. VAT_Settings__mdt.Field_Name_MDT__c - * mapping: e.g. {"Field_cs_1__c", "Field_mdt_1__c"} - */ - public override MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { - try{ + /** + * Maps the source fields with target fields. + * + * @param sFrom: source object, e.g. VAT_Settings__c + * @param sFrom: target object, e.g. VAT_Settings__mdt + * @param mapping: json mapping, e.g. {"Field_cs_1__c", "Field_mdt_1__c"} + * */ + public override MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { + try { fetchSourceMetadataAndRecords(sFrom, sTo, mapping); mapSourceTarget(); } - catch(Exception e) { + catch (Exception e) { throw e; } return mappingInfo; } + /** + * Fetches source object metadata and builds the mapping info + */ private void fetchSourceMetadataAndRecords(String csName, String mdtName, String mapping) { - if(!mdtName.endsWith(AppConstants.MDT_SUFFIX)){ - throw new MetadataMigrationException('Custom Metadata Types name should ends with ' + AppConstants.MDT_SUFFIX); + if(!mdtName.endsWith(AppConstants.MDT_SUFFIX)) { + throw new MetadataMigrationException(Label.MSG_MDT_END + AppConstants.MDT_SUFFIX); } List srcFieldNames = new List(); Map srcFieldResultMap = new Map(); - try{ + try { mappingInfo.setCustomSettingName(csName); mappingInfo.setCustomMetadadataTypeName(mdtName); @@ -55,26 +64,38 @@ public with sharing class MetadataMapperCustom extends MetadataMapperDefault { } String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; - String query = selectClause + ' FROM ' + csName; + String query = selectClause + ' FROM ' + csName + ' LIMIT 50000'; List recordList = Database.query(query); mappingInfo.setSrcFieldNames(srcFieldNames); mappingInfo.setRecordList(recordList); mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - } - catch(Exception e) { + catch (Exception e) { System.debug('MetadataMapperCustom.Error Message=' + e.getMessage()); throw e; } } - public override boolean validate(){ - return true; - } - + // TODO: Currently, this is not implemented (well defaulted to true), but I think + // we should implement to validate the fields that are not supported by Custom Metadata Types. + + /** + * Validate the fields between source and target object. + * e.g. If source Custom Object is having a field of type 'masterdetail', + * then we should flag it an error or warning? + * + * */ + public override boolean validate(){ + return true; + } + + /** + * Map for source-target field mapping + * + * */ public override void mapSourceTarget() { mappingInfo.setCSToMDT_fieldMapping(this.fieldsMap); } diff --git a/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml b/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMapperCustom.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataMapperDefault.cls b/custom_md_loader/classes/MetadataMapperDefault.cls index fb93c01..97dd4de 100644 --- a/custom_md_loader/classes/MetadataMapperDefault.cls +++ b/custom_md_loader/classes/MetadataMapperDefault.cls @@ -4,86 +4,110 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + +/** + * Default mapping between source and target object fields based on json. + * This assumes that source object and target object are having exactly same + * fields metadata. + * + * */ public virtual with sharing class MetadataMapperDefault implements MetadataMapper { - - protected MetadataMappingInfo mappingInfo; // {get;set;} - private List srcFieldNames; - - public MetadataMapperDefault() { - this.mappingInfo = new MetadataMappingInfo(); + + protected MetadataMappingInfo mappingInfo; + private List srcFieldNames; + + public MetadataMapperDefault() { + this.mappingInfo = new MetadataMappingInfo(); } - + + /** + * Maps the source fields with target fields. + * + * @param sFrom: source object + * @param sFrom: target object + * @param mapping: optional param, in this case, its null + * */ + public virtual MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { + try { + mappingInfo.setCustomSettingName(sFrom); + mappingInfo.setCustomMetadadataTypeName(sTo); + + fetchSourceMetadataAndRecords(sFrom); + mapSourceTarget(); + } + catch (Exception e) { + throw e; + } + return mappingInfo; + } + /** - * sFrom: e.g. VAT_Settings__c - * sTo: e.g. VAT_Settings__mdt - * mapping: e.g. {} + * Fetches source object metadata and builds the mapping info */ - public virtual MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { - try{ - mappingInfo.setCustomSettingName(sFrom); - mappingInfo.setCustomMetadadataTypeName(sTo); - - fetchSourceMetadataAndRecords(sFrom); - mapSourceTarget(); - } - catch(Exception e) { - throw e; - } - return mappingInfo; - } - - private void fetchSourceMetadataAndRecords(String customSettingApiName) { - - if(!mappingInfo.getCustomMetadadataTypeName().endsWith(AppConstants.MDT_SUFFIX)){ - throw new MetadataMigrationException('Custom Metadata Types name should ends with ' + AppConstants.MDT_SUFFIX); - } - - srcFieldNames = new List(); - Map srcFieldResultMap = new Map(); - - try { - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(customSettingApiName).getDescribe(); - Map fields = objDef.fields.getMap(); - - String selectFields = ''; - for(String fieldName : fields.keySet()) { - DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); - String fieldQualifiedApiName = fieldDesc.getName(); - if(fieldQualifiedApiName.endsWith('__c')){ - srcFieldNames.add(fieldQualifiedApiName); - } - srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); - - } - - String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; - String query = selectClause + ' FROM ' + customSettingApiName; - List recordList = Database.query(query); - + private void fetchSourceMetadataAndRecords(String customSettingApiName) { + + if(!mappingInfo.getCustomMetadadataTypeName().endsWith(AppConstants.MDT_SUFFIX)) { + throw new MetadataMigrationException(Label.MSG_MDT_END + AppConstants.MDT_SUFFIX); + } + + srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + try { + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(customSettingApiName).getDescribe(); + Map fields = objDef.fields.getMap(); + + String selectFields = ''; + for(String fieldName : fields.keySet()) { + DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); + String fieldQualifiedApiName = fieldDesc.getName(); + if(fieldQualifiedApiName.endsWith('__c')) { + srcFieldNames.add(fieldQualifiedApiName); + } + srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); + + } + + String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; + String query = selectClause + ' FROM ' + customSettingApiName + ' LIMIT 50000'; + List recordList = Database.query(query); + mappingInfo.setSrcFieldNames(srcFieldNames); - mappingInfo.setRecordList(recordList); - mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - } - catch(Exception e) { + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + } + catch (Exception e) { System.debug('MetadataMapperDefault.Error Message=' + e.getMessage()); throw e; } } - - public virtual boolean validate(){ - return true; - } - - public virtual void mapSourceTarget() { - Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); - for(String fieldName: srcFieldNames) { - csToMDT_fieldMapping.put(fieldName, fieldName); - } - } - - public MetadataMappingInfo getMappingInfo() { - return mappingInfo; + + // TODO: Currently, this is not implemented (well defaulted to true), but I think + // we should implement to validate the fields that are not supported by Custom Metadata Types. + + /** + * Validate the fields between source and target object. + * e.g. If source Custom Object is having a field of type 'masterdetail', + * then we should flag it an error or warning? + * + * */ + public virtual boolean validate(){ + return true; + } + + /** + * Map for source-target field mapping + * + * */ + public virtual void mapSourceTarget() { + Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); + for(String fieldName: srcFieldNames) { + csToMDT_fieldMapping.put(fieldName, fieldName); + } + } + + public MetadataMappingInfo getMappingInfo() { + return mappingInfo; } - + } \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml b/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMapperDefault.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataMapperFactory.cls b/custom_md_loader/classes/MetadataMapperFactory.cls index 1457184..a20976e 100644 --- a/custom_md_loader/classes/MetadataMapperFactory.cls +++ b/custom_md_loader/classes/MetadataMapperFactory.cls @@ -4,11 +4,11 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + public with sharing class MetadataMapperFactory { - public static MetadataMapperDefault getMapper(MetadataMapperType mt) { - MetadataMapperDefault mapper = null; + public static MetadataMapperDefault getMapper(MetadataMapperType mt) { + MetadataMapperDefault mapper = null; if(mt == MetadataMapperType.ASIS) { mapper = new MetadataMapperDefault(); } @@ -19,6 +19,6 @@ public with sharing class MetadataMapperFactory { mapper = new MetadataMapperCustom(); } return mapper; - } + } } \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml b/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMapperFactory.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataMapperSimple.cls b/custom_md_loader/classes/MetadataMapperSimple.cls index ca7893a..d467a05 100644 --- a/custom_md_loader/classes/MetadataMapperSimple.cls +++ b/custom_md_loader/classes/MetadataMapperSimple.cls @@ -4,77 +4,90 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + +/** + * Simple mapping between source and target object field. + * This option is for use-cases where you have only one field in source/target. + * + * */ public with sharing class MetadataMapperSimple extends MetadataMapperDefault { - - private String csFieldName; - private String mdtFieldName; + + private String csFieldName; + private String mdtFieldName; public MetadataMapperSimple() { super(); } + /** + * Maps the source fields with target fields. + * + * @param sFrom: source object, e.g. VAT_Settings__c.IsActive__c + * @param sFrom: target object, e.g. VAT_Settings__mdt.Active__c + * @param mapping: in this case, mapping is null + * */ + public override MetadataMappingInfo mapper(String csName, String cmtName, String mapping) { + fetchSourceMetadataAndRecords(csName, cmtName); + mapSourceTarget(); + + return mappingInfo; + } + /** - * sFrom: e.g. VAT_Settings__c.Field_Name_CS__c - * sTo: e.g. VAT_Settings__mdt.Field_Name_MDT__c - * mapping: e.g. null + * Fetches source object metadata and builds the mapping info */ - public override MetadataMappingInfo mapper(String csName, String cmtName, String mapping) { - fetchSourceMetadataAndRecords(csName, cmtName); - mapSourceTarget(); - - return mappingInfo; - } - - private void fetchSourceMetadataAndRecords(String csNameWithField, String mdtNameWithField) { - try{ - List srcFieldNames = new List(); + private void fetchSourceMetadataAndRecords(String csNameWithField, String mdtNameWithField) { + try { + List srcFieldNames = new List(); Map srcFieldResultMap = new Map(); - - System.debug('csNameWithField->' + csNameWithField); - System.debug('mdtNameWithField->' + mdtNameWithField); - - String[] csArray = csNameWithField.split('\\.'); - String[] mdtArray = mdtNameWithField.split('\\.'); - - mappingInfo.setCustomSettingName(csArray[0]); - mappingInfo.setCustomMetadadataTypeName(mdtArray[0]); - - System.debug('csArray->' + csArray); - System.debug('mdtArray->' + mdtArray); - - csFieldName = csArray[1]; - mdtFieldName = mdtArray[1]; - - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csArray[0]).getDescribe(); - Map fields = objDef.fields.getMap(); - DescribeFieldResult fieldDesc = fields.get(csFieldName).getDescribe(); - srcFieldResultMap.put(csFieldName.toLowerCase(), fieldDesc); - - srcFieldNames.add(csFieldName); - - String selectClause = 'SELECT ' + csArray[1] + ' ,Name '; - String query = selectClause + ' FROM ' + csArray[0]; - List recordList = Database.query(query); - + + String[] csArray = csNameWithField.split('\\.'); + String[] mdtArray = mdtNameWithField.split('\\.'); + + mappingInfo.setCustomSettingName(csArray[0]); + mappingInfo.setCustomMetadadataTypeName(mdtArray[0]); + + csFieldName = csArray[1]; + mdtFieldName = mdtArray[1]; + + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csArray[0]).getDescribe(); + Map fields = objDef.fields.getMap(); + DescribeFieldResult fieldDesc = fields.get(csFieldName).getDescribe(); + srcFieldResultMap.put(csFieldName.toLowerCase(), fieldDesc); + + srcFieldNames.add(csFieldName); + + String selectClause = 'SELECT ' + csArray[1] + ' ,Name '; + String query = selectClause + ' FROM ' + csArray[0] + ' LIMIT 50000'; + List recordList = Database.query(query); + mappingInfo.setSrcFieldNames(srcFieldNames); - mappingInfo.setRecordList(recordList); - mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + } - catch(Exception e) { + catch (Exception e) { System.debug('MetadataMapperSimple.Error Message=' + e.getMessage()); throw e; } - } - - public override boolean validate(){ - return true; - } - - public override void mapSourceTarget() { - Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); - csToMDT_fieldMapping.put(csFieldName, mdtFieldName); - } - + } + + // TODO: Currently, this is not implemented (well defaulted to true), but I think + // we should implement to validate the fields that are not supported by Custom Metadata Types. + + /** + * Validate the fields between source and target object. + * e.g. If source Custom Object is having a field of type 'masterdetail', + * then we should flag it an error or warning? + * + * */ + public override boolean validate(){ + return true; + } + + public override void mapSourceTarget() { + Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); + csToMDT_fieldMapping.put(csFieldName, mdtFieldName); + } + } \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml b/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMapperSimple.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataMapperType.cls-meta.xml b/custom_md_loader/classes/MetadataMapperType.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataMapperType.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMapperType.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataMappingInfo.cls b/custom_md_loader/classes/MetadataMappingInfo.cls index e1be6f9..3c86cde 100644 --- a/custom_md_loader/classes/MetadataMappingInfo.cls +++ b/custom_md_loader/classes/MetadataMappingInfo.cls @@ -4,78 +4,75 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + public with sharing class MetadataMappingInfo { - + private final Set standardFields = new Set(); private String customSettingName; private String customMetadadataTypeName; - + private List srcFieldNames; private List recordList; private Map srcFieldResultMap; - + private Map csToMDT_fieldMapping = new Map(); - + public MetadataMappingInfo() { standardFields.add(AppConstants.DEV_NAME_ATTRIBUTE); - standardFields.add(AppConstants.LABEL_ATTRIBUTE); - standardFields.add(AppConstants.DESC_ATTRIBUTE); + standardFields.add(AppConstants.LABEL_ATTRIBUTE); + standardFields.add(AppConstants.DESC_ATTRIBUTE); } - + public Set getStandardFields() { - return standardFields; - } - + return standardFields; + } + public List getSrcFieldNames() { - return srcFieldNames; - } - - public List getRecordList() { - return recordList; - } - + return srcFieldNames; + } + + public List getRecordList() { + return recordList; + } + public void setSrcFieldNames(List names) { - this.srcFieldNames = names; - } - - public void setRecordList(List records) { - this.recordList = records; - } - - public Map getCSToMDT_fieldMapping() { - System.debug('MetadataMappingInfo.getCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); - return this.csToMDT_fieldMapping; - } - - public void setCSToMDT_fieldMapping(Map csToMDT_fieldMapping) { - System.debug('BEFORE MetadataMappingInfo.setCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); - this.csToMDT_fieldMapping = csToMDT_fieldMapping; - System.debug('AFTER MetadataMappingInfo.setCSToMDT_fieldMapping, csToMDT_fieldMapping=' + csToMDT_fieldMapping); - } - - public String getCustomSettingName() { - return this.customSettingName; - } - - public void setCustomSettingName(String customSettingName) { - this.customSettingName = customSettingName; - } - + this.srcFieldNames = names; + } + + public void setRecordList(List records) { + this.recordList = records; + } + + public Map getCSToMDT_fieldMapping() { + return this.csToMDT_fieldMapping; + } + + public void setCSToMDT_fieldMapping(Map csToMDT_fieldMapping) { + this.csToMDT_fieldMapping = csToMDT_fieldMapping; + } + + public String getCustomSettingName() { + return this.customSettingName; + } + + public void setCustomSettingName(String customSettingName) { + this.customSettingName = customSettingName; + } + public String getCustomMetadadataTypeName() { - return this.customMetadadataTypeName; - } - - public void setCustomMetadadataTypeName(String customMetadadataTypeName) { - this.customMetadadataTypeName = customMetadadataTypeName; - } - - public Map getSrcFieldResultMap() { - return this.srcFieldResultMap; - } - - public void setSrcFieldResultMap(Map fieldResult) { - this.srcFieldResultMap = fieldResult; - } + return this.customMetadadataTypeName; + } + + public void setCustomMetadadataTypeName(String customMetadadataTypeName) { + this.customMetadadataTypeName = customMetadadataTypeName; + } + + public Map getSrcFieldResultMap() { + return this.srcFieldResultMap; + } + + public void setSrcFieldResultMap(Map fieldResult) { + this.srcFieldResultMap = fieldResult; + } } \ No newline at end of file diff --git a/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml b/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMappingInfo.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataMigrationController.cls b/custom_md_loader/classes/MetadataMigrationController.cls index 3675c4e..648f101 100644 --- a/custom_md_loader/classes/MetadataMigrationController.cls +++ b/custom_md_loader/classes/MetadataMigrationController.cls @@ -4,219 +4,200 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + public class MetadataMigrationController { - static MetadataService.MetadataPort service = MetadataUtil.getPort(); - - private final Set standardFieldsInHeader = new Set(); - private List nonSortedApiNames; - - public boolean showRecordsTable{get;set;} - public String selectedType{get;set;} - public Blob csvFileBody{get;set;} - public SObject[] records{get;set;} - public List cmdTypes{public get;set;} - public String selectedOpType1{get;set;} - public String selectedOpType2{get;set;} - public String selectedOpType3{get;set;} - public List opTypes{public get;set;} - public List objCreationOpTypes{public get;set;} - - public List fieldNamesForDisplay{public get;set;} - - public String customSettingFromFieldAsIs{public get;set;} - public String customSettingFromFieldSimple{public get;set;} - public String cmdToFieldSimple{public get;set;} - public String customSettingFromFieldJson{public get;set;} - public String cmdToFieldJson{public get;set;} + static MetadataService.MetadataPort service = MetadataUtil.getPort(); + + private final Set standardFieldsInHeader = new Set(); + private List nonSortedApiNames; + + public boolean showRecordsTable{get;set;} + public String selectedType{get;set;} + public Blob csvFileBody{get;set;} + public SObject[] records{get;set;} + public List cmdTypes{public get;set;} + public String selectedOpTypeAsIs{get;set;} + public String selectedOpTypeSimple{get;set;} + public String selectedOpTypeCustom{get;set;} + public List opTypes{public get;set;} + public List objCreationOpTypes{public get;set;} + + public List fieldNamesForDisplay{public get;set;} + + public String customSettingFromFieldAsIs{public get;set;} + public String customSettingFromFieldSimple{public get;set;} + public String cmdToFieldSimple{public get;set;} + public String customSettingFromFieldJson{public get;set;} + public String cmdToFieldJson{public get;set;} public String csFieldObjCreation {public get;set;} public String cmtFieldObjCreation {public get;set;} public String opTypeFieldObjCreation {public get;set;} public String csNameApexMetadata{public get;set;} - public String cmdNameApexMetadata{public get;set;} - public String jsonMappingApexMetadata{public get;set;} - - public String jsonMapping{public get;set;} - - public boolean asyncDeployInProgress{get;set;} - - public boolean isMessage {get;set;} - + public String cmdNameApexMetadata{public get;set;} + public String jsonMappingApexMetadata{public get;set;} + + public String jsonMapping{public get;set;} + + public boolean asyncDeployInProgress{get;set;} + + public boolean isMessage {get;set;} + public MetadataOpType opType = MetadataOpType.APEXWRAPPER; //public MetadataOpType opType = MetadataOpType.METADATAAPEX; - public MetadataMigrationController() { - - service.timeout_x = 40000; - + public MetadataMigrationController() { + + service.timeout_x = 40000; + isMessage = false; - asyncDeployInProgress = false; - - showRecordsTable = false; - loadCustomMetadataMetadata(); - - //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. - standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); - standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); - standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); - - jsonMapping = '{' - + ' \"customsetting_field1__c\" : \"cmd_field1__c\",' - + ' \"customsetting_field2__c\" : \"cmd_field2__c\",' - + ' \"customsetting_field3__c\" : \"cmd_field3__c\"' - + '}'; - - opTypes = new List(); + asyncDeployInProgress = false; + + showRecordsTable = false; + loadCustomMetadataMetadata(); + + //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. + standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); + + opTypes = new List(); opTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); opTypes.add(new SelectOption(MetadataOpType.METADATAAPEX.name(), 'Async Operation')); - + objCreationOpTypes = new List(); objCreationOpTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); - - } - - public PageReference onLoad () { - System.debug('onLoad-->' ); - - return null; - } - - - /** - * Queries to find all custom metadata types in the org and make it available to the VF page as drop down - */ - private void loadCustomMetadataMetadata(){ - List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; - for(SObject entityDefinition : entityDefinitions){ - String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); - if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)){ - if(cmdTypes == null) { - cmdTypes = new List(); - cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); - } - cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); - } - } - } - - private void init(String selectedOpType) { - System.debug('migrateAsIsMapping.selectedOpType-->' + selectedOpType); - - opType = MetadataOpType.APEXWRAPPER; - if(selectedOpType == MetadataOpType.METADATAAPEX.name()) { - System.debug('selectedOpType == MetadataOpType.METADATAAPEX.name()'); - opType = MetadataOpType.METADATAAPEX; - } - System.debug('opType' + opType); - } - + + } + + /** + * Queries to find all custom metadata types in the org and make it available to the VF page as drop down + */ + private void loadCustomMetadataMetadata(){ + List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; + for(SObject entityDefinition : entityDefinitions){ + String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); + if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)) { + if(cmdTypes == null) { + cmdTypes = new List(); + cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); + } + cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); + } + } + } + + private void init(String selectedOpType) { + opType = MetadataOpType.APEXWRAPPER; + if(selectedOpType == MetadataOpType.METADATAAPEX.name()) { + opType = MetadataOpType.METADATAAPEX; + } + } + public PageReference migrateAsIsWithObjCreation() { - init(opTypeFieldObjCreation); - - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateAsIsWithObjCreation(csFieldObjCreation, cmtFieldObjCreation); - + init(opTypeFieldObjCreation); + + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateAsIsWithObjCreation(csFieldObjCreation, cmtFieldObjCreation); + + MetadataResponse response = loader.getMetadataResponse(); + + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateAsIsMapping() { + init(selectedOpTypeAsIs); + + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateAsIsMapping(customSettingFromFieldAsIs, selectedType); + MetadataResponse response = loader.getMetadataResponse(); + + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateSimpleMapping() { + init(selectedOpTypeSimple); + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateSimpleMapping(customSettingFromFieldSimple, cmdToFieldSimple); MetadataResponse response = loader.getMetadataResponse(); - - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - public PageReference migrateAsIsMapping() { - init(selectedOpType1); - - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateAsIsMapping(customSettingFromFieldAsIs, selectedType); - MetadataResponse response = loader.getMetadataResponse(); - - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - public PageReference migrateSimpleMapping() { - init(selectedOpType2); - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateSimpleMapping(customSettingFromFieldSimple, cmdToFieldSimple); - MetadataResponse response = loader.getMetadataResponse(); - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - - public PageReference migrateCustomMapping() { - init(selectedOpType3); - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateCustomMapping(customSettingFromFieldJson, cmdToFieldJson, jsonMapping); - MetadataResponse response = loader.getMetadataResponse(); - List messages = response.getMessages(); - - if(response.isSuccess()) { - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateCustomMapping() { + init(selectedOpTypeCustom); + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateCustomMapping(customSettingFromFieldJson, cmdToFieldJson, jsonMapping); + MetadataResponse response = loader.getMetadataResponse(); + List messages = response.getMessages(); + + if(response.isSuccess()) { + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else { + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + } diff --git a/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml b/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMigrationController.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml b/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml index 94f6f06..1a6c043 100644 --- a/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml +++ b/custom_md_loader/classes/MetadataMigrationException.cls-meta.xml @@ -1,5 +1,5 @@ - 40.0 - Active + 40.0 + Active diff --git a/custom_md_loader/classes/MetadataObjectCreator.cls b/custom_md_loader/classes/MetadataObjectCreator.cls index 58641c0..e70d086 100644 --- a/custom_md_loader/classes/MetadataObjectCreator.cls +++ b/custom_md_loader/classes/MetadataObjectCreator.cls @@ -4,276 +4,169 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - public with sharing class MetadataObjectCreator { - static MetadataService.MetadataPort service = MetadataUtil.getPort(); - static String endPoint = URL.getSalesforceBaseUrl().toExternalForm() + '/services/Soap/m/40.0'; - - private static String objectRequestBodySnippet = - '' + - ''+ - '' + - '' + - '{0}' + - '' + - '' + - '' + - '' + - '' + - '{1}' + - // '{2}' + - '' + - '{3}' + - '' + - '' + - '' + - ''; + private static MetadataService.MetadataPort service = MetadataUtil.getPort(); + // Supported data types during migration. If source custom setting or + // source custom object has extra data types than below map, it will + // not work. You can always use custom mapping approach in that case. + public static final Map displayTypeToTypeMap = + new Map{ + DisplayType.Boolean => 'Checkbox', + DisplayType.Date => 'Date', + DisplayType.DateTime => 'DateTime', + DisplayType.Double => 'Number', + DisplayType.Email => 'Email', + DisplayType.EncryptedString => 'Text', + DisplayType.Integer => 'Number', + DisplayType.Percent => 'Number', + DisplayType.Phone => 'Phone', + DisplayType.Picklist => 'Picklist', + DisplayType.String => 'Text', + DisplayType.TextArea => 'TextArea', + DisplayType.URL => 'Url'}; - private static String fieldRequestBodySnippet = - '' + - ''+ - '' + - '' + - '{0}' + - '' + - '' + - '' + - '' + - '{1}' + - '' + - '' + - ''; - - private static String fieldRequestSnippet = - '' + - '{0}' + - '{1}' + - '' + - '{3}' + // length - '{4}' + // defaultValue - '{5}' + // precisionValue - ''; - - private static String fieldLengthSnippet = - '{0}'; - private static String fieldDefaultValueSnippet = - '{0}'; - public static void createCustomObject(MetadataMappingInfo mappingInfo) { - try{ + try { System.debug('createCustomObject -->'); String fullName = mappingInfo.getCustomMetadadataTypeName(); - + System.debug('fullName ->' + fullName); String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); - + System.debug('strippedLabel ->' + strippedLabel); + + String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); String label = pluralLabel; - pluralLabel = pluralLabel + 's'; - - System.debug('label ->' + label); - System.debug('pluralLabel ->' + pluralLabel); - - String objectRequest = String.format(objectRequestBodySnippet, new String[]{UserInfo.getSessionId(), fullName, label, pluralLabel}); - - System.debug('objectRequest-->' + objectRequest); - HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(objectRequest); - - httpReq.setEndpoint(endPoint); - System.debug('httpReq-->' + httpReq); - getResponse(httpReq); - } - catch(Exception e) { - throw e; - } - } - - public static void createCustomField(MetadataMappingInfo mappingInfo) { - try{ - System.debug('createCustomField -->'); - + pluralLabel = pluralLabel + 's'; + + MetadataService.CustomObject customObject = new MetadataService.CustomObject(); + customObject.fullName = fullName; + customObject.label = label; + customObject.pluralLabel = pluralLabel; + List results = + service.createMetadata( + new MetadataService.Metadata[] { customObject }); + handleSaveResults(results[0]); + + } + catch (Exception e) { + System.debug('createCustomOnbject.Exception-->' + e.getMessage()); + throw e; + } + } + + public static void createCustomField(MetadataMappingInfo mappingInfo) { + try { + System.debug('createCustomField -->'); + String fullName = mappingInfo.getCustomMetadadataTypeName(); - + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - + System.debug('strippedLabel ->' + strippedLabel); + String fieldFullName = ''; String label = ''; - String type_x = ''; - String length_x = ''; - String defaultValue = ''; - String precisionValue = ''; - - String fieldRequest = ''; - String reqBody = ''; - - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - System.debug('descFieldResultMap-->' + descFieldResultMap); - - integer counter = 0; - for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { - if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ - length_x = ''; - - System.debug('csField-->' + csField); - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); - System.debug('descCSFieldResult-->' + descCSFieldResult); - - String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); - - System.debug('cmtField-->' + cmtField); - System.debug('fullName--> 2' + fullName); - - fieldFullName = fullName + '.' + cmtField; - System.debug('fieldFullName--> 3' + fieldFullName); - label = descCSFieldResult.getLabel(); - type_x = getConvertedType(descCSFieldResult.getType().name()); - length_x = String.valueOf(descCSFieldResult.getLength()); - - if(descCSFieldResult.getLength() != 0 ) { - length_x = String.format(fieldLengthSnippet, new String[]{length_x}); - } - else { - length_x = ''; - } - if(type_x == 'Checkbox') { - defaultValue = '' + descCSFieldResult.getDefaultValue() +''; - } - else{ - defaultValue = ''; - } - if(type_x == 'Number' || type_x == 'Percent') { - precisionValue = '' + descCSFieldResult.getPrecision() +'' + - '' + descCSFieldResult.getScale() +''; - } - else{ - precisionValue = ''; - } - // Length is set to 80 for Email/Phone/URL fields but no length field? - if(type_x == 'Email' || type_x == 'Phone' || type_x == 'URL' || type_x == 'Url' || type_x == 'TextArea' ) { - length_x = ''; - } - - fieldRequest = fieldRequest + String.format(fieldRequestSnippet, new String[]{fieldFullName, type_x, label, length_x, defaultValue, precisionValue}); - - System.debug('fieldFullName-->' + fieldFullName); - System.debug('label-->' + label); - System.debug('type_x-->' + type_x); - System.debug('length_x-->' + length_x); - - if(counter == 9) { - - reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); - - System.debug('reqBody-->' + reqBody); - HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(reqBody); - httpReq.setEndpoint(endPoint); - System.debug('httpReq-->' + httpReq); - getResponse(httpReq); - - fieldRequest = ''; - } - - counter++; - - } - } - System.debug('fieldRequest-->' + fieldRequest); - - if(fieldRequest != '') { - reqBody = String.format(fieldRequestBodySnippet, new String[]{UserInfo.getSessionId() , fieldRequest}); - - System.debug('reqBody-->' + reqBody); - HttpRequest httpReq = initHttpRequest('POST'); - httpReq.setBody(reqBody); - httpReq.setEndpoint(endPoint); - System.debug('httpReq-->' + httpReq); - getResponse(httpReq); - } - } - catch(Exception e) { - throw e; - } - } - - private static HttpRequest initHttpRequest(String httpMethod){ - HttpRequest req = new HttpRequest(); - req.setHeader('Accept', 'application/xml'); - req.setHeader('SOAPAction','""'); - req.setHeader('Content-Type', 'text/xml'); - req.setMethod(httpMethod); - return req; - } + String type_x = ''; - private static String getResponse(HttpRequest request) { - Http http = new Http(); - HttpResponse response = new HttpResponse(); - - response = http.send(request); - - System.debug('---- RESPONSE RECEIVED------'); - System.debug(response); - - if (response.getStatusCode() == 200 || response.getStatusCode() == 201){ - System.debug('Ok Received!'); - } - else{ - System.debug('Error Received!'); + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + + List customFields = new List(); + integer counter = 0; + for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ + + Schema.DescribeFieldResult descFieldResult = descFieldResultMap.get(csField.toLowerCase()); + String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); + fieldFullName = fullName + '.' + cmtField; + label = descFieldResult.getLabel(); + type_x = displayTypeToTypeMap.get(descFieldResult.getType()); + + MetadataService.CustomField customField = new MetadataService.CustomField(); + customFields.add(customField); + customField.fullName = fieldFullName; + customField.label = label; + customField.type_x = type_x; + + // Field datatype specifics + if(type_x == 'Number' || type_x == 'Percent') { + customField.precision = descFieldResult.getPrecision(); + customField.scale = descFieldResult.getScale(); + } + if(type_x == 'Checkbox') { + customField.defaultValue = + descFieldResult.getDefaultValue() == null ? 'false' : String.valueOf(descFieldResult.getDefaultValue()); + } + + boolean lengthReq = true; + if(descFieldResult.getLength() == 0 + || type_x == 'Email' || type_x == 'Phone' + || type_x == 'URL' || type_x == 'Url' + || type_x == 'TextArea' || type_x == 'Picklist') { + lengthReq = false; + } + if(lengthReq && descFieldResult.getLength() != 0 ) { + customField.length = descFieldResult.getLength(); + } + if(type_x == 'Picklist') { + customField.type_x = 'Picklist'; + Metadataservice.Picklist pt = new Metadataservice.Picklist(); + pt.sorted = false; + List picklistValues = new List(); + for(Schema.PicklistEntry entry : descFieldResult.getPicklistValues()) { + Metadataservice.PicklistValue picklistValue = new Metadataservice.PicklistValue(); + picklistValue.fullName = entry.getLabel(); + picklistValue.default_x = entry.isDefaultValue(); + picklistValues.add(picklistValue); + } + pt.picklistValues = picklistValues; + customField.picklist = pt; + } + // process as batches of 10 + if(counter == 9) { + List results = + service.createMetadata(customFields); + handleSaveResults(results[0]); + customFields.clear(); + } + counter++; + } + } + if(customFields.size() > 0) { + List results = + service.createMetadata(customFields); + handleSaveResults(results[0]); + customFields.clear(); + } } - String responseBody = response.getBody(); - System.debug('responseBody-->' + responseBody); - - return responseBody; + catch (Exception e) { + System.debug('createCustomField.Exception-->' + e.getMessage()); + throw e; + } } - - - private static String getConvertedType(String type_x) { - String newtType = 'Text'; - if(type_x == 'STRING') { - newtType = 'Text'; - } - else if(type_x == 'BOOLEAN') { - newtType = 'Checkbox'; - } - else if(type_x == 'DOUBLE' || type_x == 'INTEGER') { - newtType = 'Number'; - } - else if(type_x == 'PERCENT' || type_x == 'Percent') { - newtType = 'Percent'; - } - else if(type_x == 'DATETIME') { - newtType = 'DateTime'; - } - else if(type_x == 'DATE') { - newtType = 'Date'; - } - else if(type_x == 'TEXTAREA') { - newtType = 'TextArea'; - } - else if(type_x == 'PICKLIST') { - newtType = 'Picklist'; - } - else if(type_x == 'EMAIL') { - newtType = 'Email'; - } - else if(type_x == 'PHONE') { - newtType = 'Phone'; - } - else if(type_x == 'URL') { - newtType = 'Url'; + + /** + * Example helper method to interpret a SaveResult, throws an exception if errors are found + **/ + private static void handleSaveResults(MetadataService.SaveResult saveResult) { + // Nothing to see? + if(saveResult==null || saveResult.success) + return; + // Construct error message and throw an exception + if(saveResult.errors!=null) { + List messages = new List(); + messages.add( + (saveResult.errors.size()==1 ? 'Error ' : 'Errors ') + + 'occurred processing component ' + saveResult.fullName + '.'); + for(MetadataService.Error error : saveResult.errors) + messages.add( + error.message + ' (' + error.statusCode + ').' + + ( error.fields!=null && error.fields.size()>0 ? + ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); + if(messages.size()>0) + throw new MetadataMigrationException(String.join(messages, ' ')); } - - else { - newtType = type_x; - } - - return newtType; - + if(!saveResult.success) + throw new MetadataMigrationException(Label.ERROR_REQUEST_FAILED_NO_ERROR); } - + } diff --git a/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml b/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml +++ b/custom_md_loader/classes/MetadataObjectCreator.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataOpType.cls-meta.xml b/custom_md_loader/classes/MetadataOpType.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataOpType.cls-meta.xml +++ b/custom_md_loader/classes/MetadataOpType.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataResponse.cls b/custom_md_loader/classes/MetadataResponse.cls index 96dd34d..8adf6c4 100644 --- a/custom_md_loader/classes/MetadataResponse.cls +++ b/custom_md_loader/classes/MetadataResponse.cls @@ -4,59 +4,59 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + public with sharing class MetadataResponse { - - private boolean isSuccess; - private List messages; - private MetadataMappingInfo mappingInfo; - - public MetadataResponse() { - } - - public MetadataResponse(boolean bIsSuccess, MetadataMappingInfo info, List messagesList) { - this.isSuccess = bIsSuccess; - this.messages = messagesList; - this.mappingInfo = info; - } - - public boolean isSuccess() { - return this.isSuccess; - } - - public void setIsSuccess(boolean isSuccess) { - this.isSuccess = isSuccess; - } - - public void setMappingInfo(MetadataMappingInfo info) { - this.mappingInfo = info; - } - public MetadataMappingInfo getMappingInfo() { - return this.mappingInfo; - } - - public List getMessages() { - return this.messages; - } - - public void setMessages(List msg) { - this.messages = msg; - } - - public with sharing class Message { - public Integer messageCode; - public String messageDetail; - - public Message() { - } - - public Message(Integer code, String message) { - this.messageCode = code; - this.messageDetail = message; - } - } - - public String debug() { - return 'MetadataResponse{' + 'success=' + isSuccess() + ', messages=' + getMessages() + ', mapping info=' + getMappingInfo() + '}'; - } + + private boolean isSuccess; + private List messages; + private MetadataMappingInfo mappingInfo; + + public MetadataResponse() { + } + + public MetadataResponse(boolean bIsSuccess, MetadataMappingInfo info, List messagesList) { + this.isSuccess = bIsSuccess; + this.messages = messagesList; + this.mappingInfo = info; + } + + public boolean isSuccess() { + return this.isSuccess; + } + + public void setIsSuccess(boolean isSuccess) { + this.isSuccess = isSuccess; + } + + public void setMappingInfo(MetadataMappingInfo info) { + this.mappingInfo = info; + } + public MetadataMappingInfo getMappingInfo() { + return this.mappingInfo; + } + + public List getMessages() { + return this.messages; + } + + public void setMessages(List msg) { + this.messages = msg; + } + + public with sharing class Message { + public Integer messageCode; + public String messageDetail; + + public Message() { + } + + public Message(Integer code, String message) { + this.messageCode = code; + this.messageDetail = message; + } + } + + public String debug() { + return 'MetadataResponse{' + 'success=' + isSuccess() + ', messages=' + getMessages() + ', mapping info=' + getMappingInfo() + '}'; + } } diff --git a/custom_md_loader/classes/MetadataResponse.cls-meta.xml b/custom_md_loader/classes/MetadataResponse.cls-meta.xml index 8b061c8..e2f92fa 100644 --- a/custom_md_loader/classes/MetadataResponse.cls-meta.xml +++ b/custom_md_loader/classes/MetadataResponse.cls-meta.xml @@ -1,5 +1,5 @@ - 39.0 - Active + 39.0 + Active diff --git a/custom_md_loader/classes/MetadataService.cls-meta.xml b/custom_md_loader/classes/MetadataService.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/MetadataService.cls-meta.xml +++ b/custom_md_loader/classes/MetadataService.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml b/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml +++ b/custom_md_loader/classes/MetadataServiceTest.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/MetadataUtil.cls b/custom_md_loader/classes/MetadataUtil.cls index db3de61..a1e6650 100644 --- a/custom_md_loader/classes/MetadataUtil.cls +++ b/custom_md_loader/classes/MetadataUtil.cls @@ -30,7 +30,7 @@ public class MetadataUtil { allCmdProps = service.listMetadata(queries, 34); mdApiStatus = Status.AVAILABLE; } catch (CalloutException e) { - if (!e.getMessage().contains('Unauthorized endpoint, please check Setup')) { + if (!e.getMessage().contains(AppConstants.ERROR_UNAUTHORIZED_ENDPOINT)) { throw e; } mdApiStatus = Status.UNAVAILABLE; @@ -73,7 +73,7 @@ public class MetadataUtil { for(List singleRowOfValues : fieldValues) { if(header != null && header.size() != singleRowOfValues.size()) { - ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, AppConstants.INVALID_FILE_ROW_SIZE_DOESNT_MATCH + + ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, System.Label.INVALID_FILE_ROW_SIZE_DOESNT_MATCH + (startIndex + rowCount)); ApexPages.addMessage(errorMessage); return; diff --git a/custom_md_loader/classes/MetadataUtil.cls-meta.xml b/custom_md_loader/classes/MetadataUtil.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/MetadataUtil.cls-meta.xml +++ b/custom_md_loader/classes/MetadataUtil.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/classes/MetadataWrapperApiLoader.cls b/custom_md_loader/classes/MetadataWrapperApiLoader.cls index 9f2a861..a9a52c2 100644 --- a/custom_md_loader/classes/MetadataWrapperApiLoader.cls +++ b/custom_md_loader/classes/MetadataWrapperApiLoader.cls @@ -4,251 +4,204 @@ * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + public with sharing class MetadataWrapperApiLoader extends MetadataLoader { - static MetadataService.MetadataPort port; - //public for testing purposes only; - public static MetadataWrapperApiLoader.Status mdApiStatus = Status.NOT_CHECKED; - - //public for testing purposes - public enum Status { - NOT_CHECKED, - AVAILABLE, - UNAVAILABLE - } - - public Boolean checkMetadataAPIConnection() { - if (mdApiStatus == Status.NOT_CHECKED) { - boolean success = true; - MetadataService.FileProperties[] allCmdProps; - try { - MetadataService.MetadataPort service = getPort(); - List queries = new List(); - MetadataService.ListMetadataQuery customMetadata = new MetadataService.ListMetadataQuery(); - customMetadata.type_x = 'CustomMetadata'; - queries.add(customMetadata); - allCmdProps = service.listMetadata(queries, 40); - mdApiStatus = Status.AVAILABLE; - } catch (CalloutException e) { - if (!e.getMessage().contains('Unauthorized endpoint, please check Setup')) { - throw e; - } - mdApiStatus = Status.UNAVAILABLE; - } - } - return mdApiStatus == Status.AVAILABLE; - } - - public static MetadataService.MetadataPort getPort() { - if (port == null) { - port = new MetadataService.MetadataPort(); - port.sessionHeader = new MetadataService.SessionHeader_element(); - port.sessionHeader.sessionId = UserInfo.getSessionId(); - } - return port; - } - - public override void migrateAsIsWithObjCreation(String csName, String cmtName) { - System.debug('migrateAsIsWithObjCreation-->csName=' + csName); - System.debug('migrateAsIsWithObjCreation-->cmtName=' + cmtName); - + private static MetadataService.MetadataPort port; + + public static MetadataService.MetadataPort getPort() { + if (port == null) { + port = new MetadataService.MetadataPort(); + port.sessionHeader = new MetadataService.SessionHeader_element(); + port.sessionHeader.sessionId = UserInfo.getSessionId(); + } + return port; + } + + public override void migrateAsIsWithObjCreation(String csName, String cmtName) { try{ super.migrateAsIsWithObjCreation(csName, cmtName); MetadataMappingInfo mappingInfo = getMapper().getMappingInfo(); - System.debug('mappingInfo-->' + mappingInfo); - + if(!response.isSuccess()) { - throw new MetadataMigrationException('Operation failed, please check messages!'); + throw new MetadataMigrationException(Label.ERROR_OP_FAILED); return; } - MetadataObjectCreator.createCustomObject(mappingInfo); - MetadataObjectCreator.createCustomField(mappingInfo); - + MetadataObjectCreator.createCustomField(mappingInfo); + migrate(mappingInfo); } - catch(Exception e) { + catch (Exception e) { List messages = response.getMessages(); if(messages == null) { messages = new List(); } messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - + response.setIsSuccess(false); + response.setMessages(messages); + return; } - - buildResponse(); - } - - public override void migrateAsIsMapping(String csName, String cmtName) { - super.migrateAsIsMapping(csName, cmtName); - buildResponse(); - } - - public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { - super.migrateSimpleMapping(csNameWithField, cmtNameWithField); - buildResponse(); - } - - public override void migrateCustomMapping(String csName, String cmtName, String mapping) { - super.migrateCustomMapping(csName, cmtName, mapping); - buildResponse(); - } - - private void buildResponse() { - if(response.IsSuccess()) { - List messages = new List(); - messages.add(new MetadataResponse.Message(100, 'Migration Completed!')); - response.setIsSuccess(true); - response.setMessages(messages); + buildResponse(); + } + + public override void migrateAsIsMapping(String csName, String cmtName) { + super.migrateAsIsMapping(csName, cmtName); + buildResponse(); + } + + public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { + super.migrateSimpleMapping(csNameWithField, cmtNameWithField); + buildResponse(); + } + + public override void migrateCustomMapping(String csName, String cmtName, String mapping) { + super.migrateCustomMapping(csName, cmtName, mapping); + buildResponse(); + } + + private void buildResponse() { + if(response.IsSuccess()) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_MIGRATION_COMPLETED)); + response.setIsSuccess(true); + response.setMessages(messages); } - } - - public override void migrate(MetadataMappingInfo mappingInfo) { - System.debug('MetadataWrapperApiLoader.migrate -->'); - - try{ - String devName; - String label; - Integer rowCount = 0; - - String cmdName = mappingInfo.getCustomMetadadataTypeName(); + } + + public override void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataWrapperApiLoader.migrate -->'); + + try { + String devName; + String label; + Integer rowCount = 0; + + String cmdName = mappingInfo.getCustomMetadadataTypeName(); Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); - System.debug('srcTgtFieldsMap ->' + srcTgtFieldsMap); - + Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); + MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[mappingInfo.getRecordList().size()]; Map fieldsAndValues = new Map(); - - for(sObject csRecord : mappingInfo.getRecordList()) { - - String typeDevName = cmdName.subString(0, cmdName.indexOf(AppConstants.MDT_SUFFIX)); - System.debug('typeDevName ->' + typeDevName); - - for(String csField : srcTgtFieldsMap.keySet()) { - // Set Target, Source - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); - System.debug('descCSFieldResult ->' + descCSFieldResult); - System.debug('csField ->' + csField); - System.debug('csRecord ->' + csRecord); - - if(descCSFieldResult.getType().name() == 'DATETIME') { - + + for(sObject csRecord : mappingInfo.getRecordList()) { + + String typeDevName = cmdName.subString(0, cmdName.indexOf(AppConstants.MDT_SUFFIX)); + System.debug('typeDevName ->' + typeDevName); + + for(String csField : srcTgtFieldsMap.keySet()) { + // Set Target, Source + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); + + if(descCSFieldResult.getType().name() == 'DATETIME') { + if(csRecord.get(csField) != null) { Datetime dt = DateTime.valueOf(csRecord.get(csField)); + // TODO: Fetch date format from user pref? String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); fieldsAndValues.put(srcTgtFieldsMap.get(csField), formattedDateTime); } } - else{ - fieldsAndValues.put(srcTgtFieldsMap.get(csField), String.valueOf(csRecord.get(csField))); - } - } - - if(csRecord.get(AppConstants.CS_NAME_ATTRIBURE) != null) { - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); - fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE) ); - - String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBURE); - String tempVal = strippedLabel.substring(0, 1); - - if(tempVal.isNumeric() || tempVal == '-') { - strippedLabel = 'X' + strippedLabel; - } - - System.debug('strippedLabel -> 1 *' + strippedLabel); - strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel -> 2 *' + strippedLabel); - - //default fullName to type_dev_name.label - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); - - System.debug(AppConstants.FULL_NAME_ATTRIBUTE + ' ::: ' + typeDevName + '.' + strippedLabel); - } - System.debug('fieldsAndValues ->' + fieldsAndValues); - - customMetadataRecords[rowCount++] = transformToCustomMetadata(mappingInfo.getStandardFields(), fieldsAndValues); - } - upsertMetadataAndValidate(customMetadataRecords); - - } - catch(Exception e) { - System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, e.getMessage())); - - response.setIsSuccess(false); - response.setMessages(messages); - - } - } - - /* - * Transformation utility to turn the configuration values into custom metadata values - * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata - * values which can be passed in one update has been increased to 200 values (just for custom metadata) - * We recommend to create new type if more fields are needed. - * Using https://github.com/financialforcedev/apex-mdapi - */ - private MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ - MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); - customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); - customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); - customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); - - System.debug('customMetadata.label->' + customMetadata.label); - System.debug('customMetadata.fullName->' + customMetadata.fullName); - System.debug('customMetadata.description->' + customMetadata.description); - - - //custom fields - MetadataService.CustomMetadataValue[] customMetadataValues = new List(); - if(fieldsAndValues != null){ - for (String fieldName : fieldsAndValues.keySet()) { - if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ - MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); - cmRecordValue.field=fieldName; - cmRecordValue.value= fieldsAndValues.get(fieldName); - customMetadataValues.add(cmRecordValue); - } - } - } - customMetadata.values = customMetadataValues; - return customMetadata; - } - - - private void upsertMetadataAndValidate(MetadataService.Metadata[] records) { - List results = getPort().upsertMetadata(records); - if(results!=null){ - for(MetadataService.UpsertResult upsertResult : results){ - if(upsertResult==null || upsertResult.success){ - continue; - } - // Construct error message and throw an exception - if(upsertResult.errors!=null){ - List messages = new List(); - messages.add( - (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + - 'occured processing component ' + upsertResult.fullName + '.'); - for(MetadataService.Error error : upsertResult.errors){ - messages.add(error.message + ' (' + error.statusCode + ').' + - ( error.fields!=null && error.fields.size()>0 ? - ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); - } - if(messages.size()>0){ - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); - return; - } - } - if(!upsertResult.success){ - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Request failed with no specified error.')); - return; - } - } - } - } + else { + fieldsAndValues.put(srcTgtFieldsMap.get(csField), String.valueOf(csRecord.get(csField))); + } + } + + if(csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) != null) { + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); + fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); + + String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); + String tempVal = strippedLabel.substring(0, 1); + + if(tempVal.isNumeric() || tempVal == '-') { + strippedLabel = 'X' + strippedLabel; + } + + System.debug('strippedLabel -> 1 *' + strippedLabel); + strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel -> 2 *' + strippedLabel); + + //default fullName to type_dev_name.label + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); + + System.debug(AppConstants.FULL_NAME_ATTRIBUTE + ' ::: ' + typeDevName + '.' + strippedLabel); + } + customMetadataRecords[rowCount++] = transformToCustomMetadata(mappingInfo.getStandardFields(), fieldsAndValues); + } + upsertMetadataAndValidate(customMetadataRecords); + + } + catch (Exception e) { + System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, e.getMessage())); + + response.setIsSuccess(false); + response.setMessages(messages); + + } + } + + /* + * Transformation utility to turn the configuration values into custom metadata values + * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata + * values which can be passed in one update has been increased to 200 values (just for custom metadata) + * We recommend to create new type if more fields are needed. + * Using https://github.com/financialforcedev/apex-mdapi + */ + private MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ + MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); + customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); + customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); + customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); + + //custom fields + MetadataService.CustomMetadataValue[] customMetadataValues = new List(); + if(fieldsAndValues != null) { + for (String fieldName : fieldsAndValues.keySet()) { + if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ + MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); + cmRecordValue.field=fieldName; + cmRecordValue.value= fieldsAndValues.get(fieldName); + customMetadataValues.add(cmRecordValue); + } + } + } + customMetadata.values = customMetadataValues; + return customMetadata; + } + + private void upsertMetadataAndValidate(MetadataService.Metadata[] records) { + List results = getPort().upsertMetadata(records); + if(results!=null) { + for(MetadataService.UpsertResult upsertResult : results) { + if(upsertResult==null || upsertResult.success) { + continue; + } + // Construct error message and throw an exception + if(upsertResult.errors!=null){ + List messages = new List(); + messages.add( + (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + + 'occured processing component ' + upsertResult.fullName + '.'); + for(MetadataService.Error error : upsertResult.errors){ + messages.add(error.message + ' (' + error.statusCode + ').' + + ( error.fields!=null && error.fields.size()>0 ? + ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); + } + if(messages.size()>0) { + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); + return; + } + } + if(!upsertResult.success) { + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, Label.ERROR_REQUEST_FAILED_NO_ERROR)); + return; + } + } + } + } + } diff --git a/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml b/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml index 9aeda45..add07b2 100644 --- a/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml +++ b/custom_md_loader/classes/MetadataWrapperApiLoader.cls-meta.xml @@ -1,5 +1,5 @@ - 34.0 - Active + 34.0 + Active diff --git a/custom_md_loader/labels/CustomLabels.labels b/custom_md_loader/labels/CustomLabels.labels new file mode 100644 index 0000000..9e6990d --- /dev/null +++ b/custom_md_loader/labels/CustomLabels.labels @@ -0,0 +1,179 @@ + + + + ERROR_JSON_BAD_FORMAT + CMT + en_US + false + The provided Json String was badly formatted. + The provided Json String was badly formatted. + + + ERROR_JSON_EMPTY + CMT + en_US + false + No field values were found in the Json String. + No field values were found in the Json String. + + + ERROR_REQUEST_FAILED_NO_ERROR + CMT + en_US + false + Request failed with no specified error. + Request failed with no specified error. + + + ERROR_OP_FAILED + CMT + en_US + false + Operation failed, please check messages! + Operation failed, please check messages! + + + ERROR_UNAUTHORIZED_ENDPOINT + CMT + en_US + false + Unauthorized endpoint, please check Setup + Unauthorized endpoint, please check Setup + + + MSG_CUSTOM_SETTINGS_EXISTS + CMT + en_US + false + Make sure Custom Setting exists in the org! + Make sure Custom Setting exists in the org! + + + MSG_CS_MDT_REQ + CMT + en_US + false + Custom Setting Api Name and Custom Metadata Types Api names are required! + Custom Setting Api Name and Custom Metadata Types Api names are required! + + + MSG_CS_MDT_EXISTS + CMT + en_US + false + Make sure Custom Setting and Custom Metadata Types exists in the org! + Make sure Custom Setting and Custom Metadata Types exists in the org! + + + MSG_CHECK_API_NAMES + CMT + en_US + false + Please check the Api names! + Please check the Api names! + + + MSG_CS_MDT_FIELD_NAME_REQ + CMT + en_US + false + Custom Setting Name/Field Name and CMT/Field Name names are required! + Custom Setting Name/Field Name and CMT/Field Name names are required! + + + MSG_CS_MDT_FIELD_NAME_FORMAT + CMT + en_US + false + Please check the format, Custom Setting.field and Custom Metadata Types.field + Please check the format, Custom Setting.field and Custom Metadata Types.field + + + MSG_CS_MDT_MAPPING_REQ + CMT + en_US + false + Custom Setting Name, Custom Metadata Types and Json Mapping names are required! + Custom Setting Name, Custom Metadata Types and Json Mapping names are required! + + + MSG_JSON_FORMAT + CMT + en_US + false + Please check the Json format! + Please check the Json format! + + + MSG_JSON_API_NAMES + CMT + en_US + false + Please check the Api names in Json! + Please check the Api names in Json! + + + MSG_NOT_SUPPORTED + CMT + en_US + false + Not Supported!!! + Not Supported!!! + + + MSG_MIGRATION_COMPLETED + CMT + en_US + false + Migration Completed! + Migration Completed! + + + MSG_MIGRATION_IN_PROGRESS + CMT + en_US + false + Migration In Progress, check status under Deploy -> Deployment Status, Job Id: + Migration In Progress, check status under Deploy -> Deployment Status, Job Id: + + + MSG_MDT_END + CMT + en_US + false + Custom Metadata Types name should end with + Custom Metadata Types name should end with + + + FILE_MISSING + CMT + en_US + false + Please provide a comma separated file. + Please provide a comma separated file. + + + EMPTY_FILE + CMT + en_US + false + CSV file is empty. + CSV file is empty. + + + TYPE_OPTION_NOT_SELECTED + CMT + en_US + false + Please choose a valid custom metadata type. + Please choose a valid custom metadata type. + + + INVALID_FILE_ROW_SIZE_DOESNT_MATCH + CMT + en_US + false + The number of field values does not match the number of header fields on line + The number of field values does not match the number of header fields on line + + diff --git a/custom_md_loader/package.xml b/custom_md_loader/package.xml index c2dee4a..7541006 100755 --- a/custom_md_loader/package.xml +++ b/custom_md_loader/package.xml @@ -1,64 +1,67 @@ - - AppConstants - CSVFileUtil - CustomMetadataLoaderController - CustomMetadataLoaderControllerTest - CustomMetadataUploadController - CustomMetadataUploadControllerTest - MDWrapperWebServiceMock - MetadataService - MetadataServiceTest - MetadataUtil - - MetadataLoader - MetadataMapper - MetadataMapperDefault - MetadataMapperCustom - MetadataMapperSimple - MetadataMappingInfo - MetadataMapperFactory - MetadataMapperType - MetadataLoaderClient - MetadataWrapperApiLoader - MetadataApexApiLoader - MetadataOpType - MetadataLoaderFactory - MetadataResponse - MetadataMigrationController - MetadataObjectCreator - MetadataMigrationException - JsonUtilities - ApexClass - - - CustomMetadataLoader - CustomMetadataRecordUploader - CMTMigrator - ApexPage - - - Custom_Metadata_Loader - CustomApplication - - - CountryMapping__mdt.CountryCode__c - CountryMapping__mdt.CountryName__c - CustomField - - - CountryMapping__mdt - CustomObject - - - Custom_Metadata_Loader - CMT_Migrator - CustomTab - - - Custom_Metadata_Loader - PermissionSet - - 34.0 + + AppConstants + CSVFileUtil + CustomMetadataLoaderController + CustomMetadataLoaderControllerTest + CustomMetadataUploadController + CustomMetadataUploadControllerTest + MDWrapperWebServiceMock + MetadataService + MetadataServiceTest + MetadataUtil + MetadataLoader + MetadataMapper + MetadataMapperDefault + MetadataMapperCustom + MetadataMapperSimple + MetadataMappingInfo + MetadataMapperFactory + MetadataMapperType + MetadataLoaderClient + MetadataWrapperApiLoader + MetadataApexApiLoader + MetadataOpType + MetadataLoaderFactory + MetadataResponse + MetadataMigrationController + MetadataObjectCreator + MetadataMigrationException + JsonUtilities + ApexClass + + + CustomMetadataLoader + CustomMetadataRecordUploader + CMTMigrator + ApexPage + + + * + CustomLabels + + + Custom_Metadata_Loader + CustomApplication + + + CountryMapping__mdt.CountryCode__c + CountryMapping__mdt.CountryName__c + CustomField + + + CountryMapping__mdt + CustomObject + + + Custom_Metadata_Loader + CMT_Migrator + CustomTab + + + Custom_Metadata_Loader + PermissionSet + + 40.0 diff --git a/custom_md_loader/pages/CMTMigrator.page b/custom_md_loader/pages/CMTMigrator.page index 6cbddc5..d76ff44 100644 --- a/custom_md_loader/pages/CMTMigrator.page +++ b/custom_md_loader/pages/CMTMigrator.page @@ -1,214 +1,193 @@ - + - + -
    - -
  1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types
    +
      +
    1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types

    2. -
    3. Custom Metadata Types label and names
    4. + +
    5. Solution provides two different options to do the migration

      • -
      • Custom Setting record name converted into Custom Metadata Types label and name
        -
      • - -
      • e.g. Custom Setting name special character replaced with "_" in Custom Metadata Type names
        +
      • Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated.
      • - -
      • e.g. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X"
        + +
      • Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated.
        + To check the status of async migration, go to Deploy -> Deployment Status
      • -
      -
      -
    6. Currency field on Custom Settings can't be migrated
      -
    7. +
      - -
    8. Migrate - As Is (with object creation)
    9. + +
    10. Migrate Custom Settings to new Custom Metadata Type

      • -
      • As Is (with object creation)
        - /*********************************************************
        - * Desc Creates Custom object and migrate Custom Settings data to
        - Custom Metadata Types records as is
        - * @param Name of Custom Setting Api (VAT_Settings_CS__c)
        - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
        - * @return
        - *********************************************************/

        - - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
        - loader.migrateAsIsWithObjCreation('VAT_Settings_CS__c', 'VAT_Settings__mdt');
        - -

        +
      • Creates Custom Metadata Type and migrate Custom Settings/Custom Objects data to
        + Custom Metadata Types records as is. It will need following two inputs.
        + Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
        + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt)
      • - -
      -
    11. Migrate - As Is
    12. + +
      +
    13. Migrate Custom Settings to existing Custom Metadata Type

      • -
      • As Is Mapping
        - /*********************************************************
        - * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records as is
        - * @param Name of Custom Setting/Custom Objects Api (VAT_Settings_CS__c)
        - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
        - * @return
        - *********************************************************/

        - - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
        - loader.migrateAsIsMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt');
        -

        -
      • - -
      +
    14. Migrate Custom Settings/Custom Objects data to
      + existing Custom Metadata Types records as is. It will need following two inputs.
      + Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
      + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt)
    15. + +
    16. Migrate - Simple Mapping

      • -

      • - /*********************************************************
        - * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records if you have only
        - * one field mapping
        - * @param Name of Custom Setting/Custom Objects Api.fieldName (VAT_Settings_CS__c.Active__c)
        - * @param Name of Custom Metadata Types Api.fieldMame (VAT_Settings__mdt.IsActive__c)
        - * @return
        - *********************************************************/

        - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
        - loader.migrateSimpleMapping('VAT_Settings_CS__c.Active__c', 'VAT_Settings__mdt.IsActive__c');
        -

        -
      • +
      • Migrate Custom Settings/Custom Objects data to
        + existing Custom Metadata Types records using simple mapping. It will need following two inputs.
        + Api Name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c)
        + Api Name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c)
      - +
    17. Migrate - Custom Mapping

      • -

      • - - /*********************************************************
        - * Desc Migrate Custom Settings/Custom Objects data to Custom Metadata Types records if you have only
        - * different Api names in Custom Settings and Custom Metadata Types
        - * @param Name of Custom Setting/Custom Objects Api (VAT_Settings_CS__c)
        - * @param Name of Custom Metadata Types Api (VAT_Settings__mdt)
        - * @param Json Mapping (Sample below)
        - {
        - "Active__c" : "IsActive__c",
        - "Timeout__c" : "GlobalTimeout__c",
        - "EndPointURL__c" : "URL__c",
        - }
        -
        - * @return
        - *********************************************************/

        -
        - String jsonMapping = '{'+
        - '"Active__c" : "Active__c",'+
        - '"Timeout__c" : "Timeout__c",'+
        - '"EndPointURL__c" : "EndPointURL__c",'+
        - '};';
        - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER);
        - loader.migrateCustomMapping('VAT_Settings_CS__c', 'VAT_Settings__mdt', jsonMapping);
        -
        +
      • Migrate Custom Settings/Custom Objects data to
        + existing Custom Metadata Types records using custom Json mapping. It will need following two inputs.
        + Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
        + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt)
        + Json Mapping (Sample below)
        + {
        + "Active__c" : "IsActive__c",
        + "Timeout__c" : "GlobalTimeout__c",
        + "EndPointURL__c" : "URL__c"
        + }
      +
      + +
    18. Custom Metadata Types label and names
    19. +
      +
        +
      • Custom Setting record name converted into Custom Metadata Types label and name
        +
      • + +
      • e.g. Custom Setting name special character replaced with "_" in Custom Metadata Type names
        +
      • +
      • e.g. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X" +
      • +

      - +
    20. Custom Settings of type hierarchy not supported
      +
    21. + +
      +
    22. Custom Objects with field types not supported in Custom Metadata Types not supported
      +
    23. + +
      +
    24. Currency field on Custom Settings can't be migrated
      +
    25. +
      +
    - - - + + + - + - - + + - - + +
    Custom Setting/Custom Objects Name (From)
    Custom Metadata Type Name (To)
    Operation Type
    - +

    - +
    - - - + + + - + - + - - - + +
    Custom Setting/Custom Objects Name (From)
    Custom Metadata Type Name (To)
    Operation Type +
    - +

    - +
    - - + + - + - + - - +
    Custom Setting/Custom Objects, Format: CS.fieldName
    Custom Metadata Type, Format: CMT.fieldName
    Operation Type +
    - +

    @@ -216,41 +195,36 @@
    - - + - + - + - - + + - - +
    Custom Setting/Custom Objects Name
    Custom Metadata Type Name
    Custom Setting, JSON, example: - -
    Operation Type +
    - +

    - +
    - - - + diff --git a/custom_md_loader/pages/CMTMigrator.page-meta.xml b/custom_md_loader/pages/CMTMigrator.page-meta.xml index 035ffad..49671cd 100644 --- a/custom_md_loader/pages/CMTMigrator.page-meta.xml +++ b/custom_md_loader/pages/CMTMigrator.page-meta.xml @@ -1,7 +1,7 @@ - 40.0 - false - false - + 40.0 + false + false + diff --git a/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml b/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml index d816bc4..97b2db1 100644 --- a/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml +++ b/custom_md_loader/pages/CustomMetadataLoader.page-meta.xml @@ -1,9 +1,10 @@ - - + + - 34.0 - false - false - + 34.0 + false + false + diff --git a/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml b/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml index e8d870f..4c30c92 100644 --- a/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml +++ b/custom_md_loader/pages/CustomMetadataRecordUploader.page-meta.xml @@ -1,9 +1,10 @@ - - + + - 34.0 - false - false - + 34.0 + false + false + diff --git a/custom_md_loader/tabs/CMT_Migrator.tab b/custom_md_loader/tabs/CMT_Migrator.tab index 925e470..233acd3 100644 --- a/custom_md_loader/tabs/CMT_Migrator.tab +++ b/custom_md_loader/tabs/CMT_Migrator.tab @@ -1,6 +1,6 @@ - + false Custom68: Gears CMTMigrator From 0bfb0934efe87c0363c48addd5657c7115d7caeb Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Thu, 28 Sep 2017 15:14:13 -0700 Subject: [PATCH 78/93] Migration of Custom Settings/Custom Objects to CMT Migration of Custom Settings/Custom Objects to Custom Metadata Types along with the records. --- README.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 49 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4c6e560..46eade9 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,13 @@ # Custom Metadata Loader - Deploy to Salesforce +v 3.0 +Custom Metadata tool now supports migration of Custom Settings/Custom Objects to Custom Metadata Types along with migration of records. If you already have Custom Metadata Type, then it can just migrate the Custom Settings/Custom Objects records. + v 2.0 The Custom Metadata loader tool now supports updates of existing custom metadata records. Load the csv file with updates to existing records, and use the tool the import and update the records. # How to use custom metadata loader to update existing records @@ -16,21 +19,59 @@ The Custom Metadata loader tool now supports updates of existing custom metadata v 1.0 -Custom metadata loader is a tool for creating custom metadata records from a csv file. Create custom metadata types in your Salesforce org using Metadata API and then use custom metadata loader to bulk load the records. Behind the scenes, custom metadata loader uses Metadata API to bulk load up to 200 records with a single call. +Custom metadata loader is a tool for creating custom metadata records from a csv file. Create custom metadata types in your Salesforce org using Metadata API and then use custom metadata loader to bulk load the records. Behind the scenes, custom metadata loader uses Metadata API to bulk load up to 200 records with a single call. -Custom metadata loader has a sample custom metadata type CountryMapping__mdt that allows users to map country codes to country names. +Custom metadata loader has a sample custom metadata type CountryMapping__mdt that allows users to map country codes to country names. #How to deploy custom metadata loader -1. Download the folder custom_md_loader and zip all the files inside this folder. Package.xml should be at the top level of the zipped file. +1. Download the folder custom_md_loader and zip all the files inside this folder. Package.xml should be at the top level of the zipped file. 2. Log in to your developer organization via workbench and deploy this zip file. (migration -> deploy) # How to use custom metadata loader 1. Once you have deployed custom metadata loader in your org, assign the permission set 'Custom Metadata Loader' to the users who need to use the tool(See Step 2, 3 on how to assign the perm set) - These users also need the 'Customize Application' to create Custom Metadata records. Admin should have this permission by default. -2. To apply the permission set - CustomMetadataLoader to the user who is using the tool. Go to Administer->Manage Users ->Permission Sets. Click on Custom Metadata Loader. + These users also need the 'Customize Application' to create Custom Metadata records. Admin should have this permission by default. +2. To apply the permission set - CustomMetadataLoader to the user who is using the tool. Go to Administer->Manage Users ->Permission Sets. Click on Custom Metadata Loader. 3 You will be taken to Permission Set page - Click on Manage Assignments. Then click Add Assignments. Choose the user/users. Then click Assign. Then Done. Now the perm set should be successfully assigned. -4. Create a CSV file with a header that contains the field API names, including the org namespace. Either Label or Developer Name is required. A sample csv for CountryMapping__mdt is in the same folder as this README file. -5. Next you are ready to use the tool - Select Custom Metadata Loader from the app menu in your org, then go to the Custom Metadata Loader tab.The app will prompt you to create a remote site setting if it is missing. +4. Create a CSV file with a header that contains the field API names, including the org namespace. Either Label or Developer Name is required. A sample csv for CountryMapping__mdt is in the same folder as this README file. +5. Next you are ready to use the tool - Select Custom Metadata Loader from the app menu in your org, then go to the Custom Metadata Loader tab.The app will prompt you to create a remote site setting if it is missing. 6. Select the CSV file and the corresponding custom metadata type. 7. Click 'Create/Update custom metadata' to bulk load the records from the CSV file into your org. + +# How to use custom metadata migrator + +1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types. +2. This solution provides two different options to do this migration: + a. Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated. + b. Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated. + To check the status of async migration, go to Deploy -> Deployment Status +3. Migrate Custom Settings to new Custom Metadata Type + a. Creates Custom Metadata Type and migrate Custom Settings/Custom Objects data to Custom Metadata Types records as is. It will need following two inputs. + Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
    + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) +4. Migrate Custom Settings to existing Custom Metadata Type. + a. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records as is. It will need following two inputs. + Api Name of Custom Setting (e.g. VAT_Settings_CS__c) + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) +5. Migrate Custom Settings to existing Custom Metadata Type (using simple mapping) + a. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records using simple mapping. It will need following two inputs. + Api Name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c) + Api Name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c) +6. Migrate Custom Settings to existing Custom Metadata Type (using custom mapping) + a. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records using custom Json mapping. It will need following two inputs. + Api Name of Custom Setting (e.g. VAT_Settings_CS__c) + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) + Json Mapping (Sample below) + { + "Active__c" : "IsActive__c", + "Timeout__c" : "GlobalTimeout__c", + "EndPointURL__c" : "URL__c", + } +7. Custom Metadata Types label and names + a. Custom Setting/Custom Object record name converted into Custom Metadata Types label and name. + b. Custom Setting name special character replaced with "_" in Custom Metadata Type names + c. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X" +8. Custom Settings of type hierarchy not supported. +9. Custom Objects with field types not supported in Custom Metadata Types not supported. +10.Currency field on Custom Settings can't be migrated, you can use custom mapping to either avoid mapping or to map to another field. + From 0c962b57ef28e79151484c9ed62bdd07f400271b Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Thu, 28 Sep 2017 15:46:16 -0700 Subject: [PATCH 79/93] Migration of Custom Settings/Custom Objects to CMT Migration of Custom Settings/Custom Objects to Custom Metadata Types along with the records. --- README.md | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 46eade9..430d7db 100644 --- a/README.md +++ b/README.md @@ -41,37 +41,37 @@ Custom metadata loader has a sample custom metadata type CountryMapping__mdt tha # How to use custom metadata migrator 1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types. -2. This solution provides two different options to do this migration: - a. Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated. - b. Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated. +2. This solution provides two different options to do the migration: + - Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated. + - Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated. To check the status of async migration, go to Deploy -> Deployment Status 3. Migrate Custom Settings to new Custom Metadata Type - a. Creates Custom Metadata Type and migrate Custom Settings/Custom Objects data to Custom Metadata Types records as is. It will need following two inputs. - Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
    - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) + 1. Creates Custom Metadata Type and migrate Custom Settings/Custom Objects data to Custom Metadata Types records as is. It will need following two inputs. + - Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
    + - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) 4. Migrate Custom Settings to existing Custom Metadata Type. - a. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records as is. It will need following two inputs. - Api Name of Custom Setting (e.g. VAT_Settings_CS__c) - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) + 1. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records as is. It will need following two inputs. + - Api Name of Custom Setting (e.g. VAT_Settings_CS__c) + - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) 5. Migrate Custom Settings to existing Custom Metadata Type (using simple mapping) - a. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records using simple mapping. It will need following two inputs. - Api Name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c) - Api Name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c) + 1. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records using simple mapping. It will need following two inputs. + - Api Name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c) + - Api Name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c) 6. Migrate Custom Settings to existing Custom Metadata Type (using custom mapping) - a. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records using custom Json mapping. It will need following two inputs. - Api Name of Custom Setting (e.g. VAT_Settings_CS__c) - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) - Json Mapping (Sample below) + 1. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records using custom Json mapping. It will need following two inputs. + - 'Api Name of Custom Setting (e.g. VAT_Settings_CS__c) + - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) + - Json Mapping (Sample below) { "Active__c" : "IsActive__c", "Timeout__c" : "GlobalTimeout__c", "EndPointURL__c" : "URL__c", } 7. Custom Metadata Types label and names - a. Custom Setting/Custom Object record name converted into Custom Metadata Types label and name. - b. Custom Setting name special character replaced with "_" in Custom Metadata Type names - c. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X" + - Custom Setting/Custom Object record name converted into Custom Metadata Types label and name. + - Custom Setting name special character replaced with "_" in Custom Metadata Type names + - If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X" 8. Custom Settings of type hierarchy not supported. 9. Custom Objects with field types not supported in Custom Metadata Types not supported. -10.Currency field on Custom Settings can't be migrated, you can use custom mapping to either avoid mapping or to map to another field. +10. Currency field on Custom Settings can't be migrated, you can use custom mapping to either avoid mapping or to map to another field. From 296bb2c57e088942aafdf8a19ed36cfe59809c4c Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Wed, 11 Oct 2017 14:21:52 -0700 Subject: [PATCH 80/93] README updates w.r.t. migrator Added section for Custom Settings or Custom Objects to Custom Metadata Types migration. --- README.md | 74 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 46 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 430d7db..d52d0b6 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ v 3.0 -Custom Metadata tool now supports migration of Custom Settings/Custom Objects to Custom Metadata Types along with migration of records. If you already have Custom Metadata Type, then it can just migrate the Custom Settings/Custom Objects records. +Custom Metadata tool now supports migration of Custom Settings or Custom Objects to Custom Metadata Types along with migration of records. If you already have Custom Metadata Type, then it can just migrate the Custom Settings/Custom Objects records. v 2.0 The Custom Metadata loader tool now supports updates of existing custom metadata records. Load the csv file with updates to existing records, and use the tool the import and update the records. @@ -40,38 +40,56 @@ Custom metadata loader has a sample custom metadata type CountryMapping__mdt tha # How to use custom metadata migrator -1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types. -2. This solution provides two different options to do the migration: - - Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated. - - Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated. - To check the status of async migration, go to Deploy -> Deployment Status -3. Migrate Custom Settings to new Custom Metadata Type - 1. Creates Custom Metadata Type and migrate Custom Settings/Custom Objects data to Custom Metadata Types records as is. It will need following two inputs. - - Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
    - - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) -4. Migrate Custom Settings to existing Custom Metadata Type. - 1. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records as is. It will need following two inputs. - - Api Name of Custom Setting (e.g. VAT_Settings_CS__c) - - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) -5. Migrate Custom Settings to existing Custom Metadata Type (using simple mapping) - 1. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records using simple mapping. It will need following two inputs. - - Api Name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c) - - Api Name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c) -6. Migrate Custom Settings to existing Custom Metadata Type (using custom mapping) - 1. Migrate Custom Settings/Custom Objects data to existing Custom Metadata Types records using custom Json mapping. It will need following two inputs. - - 'Api Name of Custom Setting (e.g. VAT_Settings_CS__c) - - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) - - Json Mapping (Sample below) +Use one of the below option to migrate Custom Settings or Custom Objects to Custom Metadata Types. Go to the 'Custom Metadata Migrator' tab + +### Option 1: Migrate Custom Settings/Custom Objects to new Custom Metadata Type + +Input the following: + - Api name of Custom Setting or Custom Object (e.g. VAT_Settings_CS__c) + - Api name of Custom Metadata Types (e.g. VAT_Settings__mdt) +Click on 'Migrate' + +### Option 2: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type + +Input the following: + - Api name of Custom Setting (e.g. VAT_Settings_CS__c) + - Select the name of existing Custom Metadata Types +Click on 'Migrate' + +### Option 3: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type (using simple mapping) + +Input the following: + - Api name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c) + - Api name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c) +Click on 'Migrate' + +### Option 4: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type (using custom mapping) + +Input the following: + - Api Name of Custom Setting (e.g. VAT_Settings_CS__c) + - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) + - Json Mapping (Sample below) { "Active__c" : "IsActive__c", "Timeout__c" : "GlobalTimeout__c", - "EndPointURL__c" : "URL__c", } -7. Custom Metadata Types label and names +Click on 'Migrate' + +## Custom metadata migrator: more details + +1. Custom metadata migrator provides two different options to do the migration: + - Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated. + - Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated. + To check the status of async migration, go to Deploy -> Deployment Status + +2. Custom Metadata Types label and names - Custom Setting/Custom Object record name converted into Custom Metadata Types label and name. - Custom Setting name special character replaced with "_" in Custom Metadata Type names - If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X" -8. Custom Settings of type hierarchy not supported. -9. Custom Objects with field types not supported in Custom Metadata Types not supported. -10. Currency field on Custom Settings can't be migrated, you can use custom mapping to either avoid mapping or to map to another field. + +3. Custom Settings of type hierarchy not supported. + +4. Custom Objects with field types not supported in Custom Metadata Types not supported. + +5. Currency field on Custom Settings can't be migrated, you can use custom mapping to either avoid mapping or to map to another field. From 1332cf201cd94e665ef068345907134c83d39f71 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Wed, 11 Oct 2017 14:32:42 -0700 Subject: [PATCH 81/93] README updates w.r.t. migrator --- README.md | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d52d0b6..a1aa4d0 100644 --- a/README.md +++ b/README.md @@ -45,30 +45,37 @@ Use one of the below option to migrate Custom Settings or Custom Objects to Cust ### Option 1: Migrate Custom Settings/Custom Objects to new Custom Metadata Type Input the following: - - Api name of Custom Setting or Custom Object (e.g. VAT_Settings_CS__c) - - Api name of Custom Metadata Types (e.g. VAT_Settings__mdt) + + --Api name of Custom Setting or Custom Object (e.g. VAT_Settings_CS__c) + --Api name of Custom Metadata Types (e.g. VAT_Settings__mdt) + Click on 'Migrate' ### Option 2: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type Input the following: - - Api name of Custom Setting (e.g. VAT_Settings_CS__c) - - Select the name of existing Custom Metadata Types + + --Api name of Custom Setting (e.g. VAT_Settings_CS__c) + --Select the name of existing Custom Metadata Types + Click on 'Migrate' ### Option 3: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type (using simple mapping) Input the following: - - Api name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c) - - Api name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c) + + --Api name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c) + --Api name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c) + Click on 'Migrate' ### Option 4: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type (using custom mapping) Input the following: - - Api Name of Custom Setting (e.g. VAT_Settings_CS__c) - - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) - - Json Mapping (Sample below) + + --Api Name of Custom Setting (e.g. VAT_Settings_CS__c) + --Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) + --Json Mapping (Sample below) { "Active__c" : "IsActive__c", "Timeout__c" : "GlobalTimeout__c", From 40e15938f8f3389cd5ffd09eb86e281c8a7cf553 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Wed, 11 Oct 2017 14:55:24 -0700 Subject: [PATCH 82/93] fomatting: tabs to spaces --- custom_md_loader/classes/MetadataLoader.cls | 238 ++++++++++---------- 1 file changed, 119 insertions(+), 119 deletions(-) diff --git a/custom_md_loader/classes/MetadataLoader.cls b/custom_md_loader/classes/MetadataLoader.cls index 72f7e4a..34ca381 100644 --- a/custom_md_loader/classes/MetadataLoader.cls +++ b/custom_md_loader/classes/MetadataLoader.cls @@ -1,136 +1,136 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ public virtual with sharing class MetadataLoader { - public enum MetadataOpType { APEXWRAPPER, METADATAAPEX } - - public MetadataResponse response; - public MetadataMapperDefault mapper; + public enum MetadataOpType { APEXWRAPPER, METADATAAPEX } - public MetadataLoader() { - response = new MetadataResponse(true, null, null); - } + public MetadataResponse response; + public MetadataMapperDefault mapper; - /** - * This will first create custom object and then migrates the records. - * This assumes that Custom Setting and MDT have the same API field names and - * same field data type. - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateAsIsWithObjCreation(String csName, String cmtName) { - MetadataMappingInfo mappingInfo = null; - try { - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); - mappingInfo = mapper.mapper(csName, cmtName, null); - } - catch (Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, Label.MSG_CUSTOM_SETTINGS_EXISTS)); - messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_REQ)); - messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); - messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - } - } + public MetadataLoader() { + response = new MetadataResponse(true, null, null); + } - /** - * This assumes that CS and MDT have the same API field names. - * - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateAsIsMapping(String csName, String cmtName) { - MetadataMappingInfo mappingInfo = null; - try { - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); - mappingInfo = mapper.mapper(csName, cmtName, null); - migrate(mappingInfo); - } - catch (Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); - messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_REQ)); - messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); - messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } + /** + * This will first create custom object and then migrates the records. + * This assumes that Custom Setting and MDT have the same API field names and + * same field data type. + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateAsIsWithObjCreation(String csName, String cmtName) { + MetadataMappingInfo mappingInfo = null; + try { + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); + mappingInfo = mapper.mapper(csName, cmtName, null); + } + catch (Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_CUSTOM_SETTINGS_EXISTS)); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_REQ)); + messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + } + } - /** - * csNameAndField: Label, DeveloperName, Description (We might need it for migration) - * cmtNameAndField: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - */ - public virtual void migrateSimpleMapping(String csNameAndField, String cmtNameAndField) { - MetadataMappingInfo mappingInfo = null; - try { - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.SIMPLE); - mappingInfo = mapper.mapper(csNameAndField, cmtNameAndField, null); - migrate(mappingInfo); - } - catch (Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); - messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_FIELD_NAME_REQ)); - messages.add(new MetadataResponse.Message(200, Label.MSG_CS_MDT_FIELD_NAME_FORMAT)); - messages.add(new MetadataResponse.Message(300, Label.MSG_CHECK_API_NAMES)); - messages.add(new MetadataResponse.Message(400, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } + /** + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateAsIsMapping(String csName, String cmtName) { + MetadataMappingInfo mappingInfo = null; + try { + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.ASIS); + mappingInfo = mapper.mapper(csName, cmtName, null); + migrate(mappingInfo); + } + catch (Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_REQ)); + messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } - /** - * This assumes that CS and MDT have the same API field names. - * - * csName: Label, DeveloperName, Description (We might need it for migration) - * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' - * mapping: e.g. Json mapping between CS field Api and CMT field Api names - */ - public virtual void migrateCustomMapping(String csName, String cmtName, String mapping) { - MetadataMappingInfo mappingInfo = null; - try { - mapper = MetadataMapperFactory.getMapper(MetadataMapperType.CUSTOM); - mappingInfo = mapper.mapper(csName, cmtName, mapping); - migrate(mappingInfo); - } - catch (Exception e) { - System.debug('MetadataLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); - messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_MAPPING_REQ)); - messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); - messages.add(new MetadataResponse.Message(200, Label.MSG_JSON_FORMAT)); - messages.add(new MetadataResponse.Message(300, Label.MSG_JSON_API_NAMES)); - messages.add(new MetadataResponse.Message(400, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - return; - } - } + /** + * csNameAndField: Label, DeveloperName, Description (We might need it for migration) + * cmtNameAndField: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + */ + public virtual void migrateSimpleMapping(String csNameAndField, String cmtNameAndField) { + MetadataMappingInfo mappingInfo = null; + try { + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.SIMPLE); + mappingInfo = mapper.mapper(csNameAndField, cmtNameAndField, null); + migrate(mappingInfo); + } + catch (Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_FIELD_NAME_REQ)); + messages.add(new MetadataResponse.Message(200, Label.MSG_CS_MDT_FIELD_NAME_FORMAT)); + messages.add(new MetadataResponse.Message(300, Label.MSG_CHECK_API_NAMES)); + messages.add(new MetadataResponse.Message(400, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } - public virtual void migrate(MetadataMappingInfo mappingInfo) { - System.debug('MetadataLoader.migrate -->'); - } + /** + * This assumes that CS and MDT have the same API field names. + * + * csName: Label, DeveloperName, Description (We might need it for migration) + * cmtName: e.g. VAT_Settings if mdt is 'VAT_Settings__mdt' + * mapping: e.g. Json mapping between CS field Api and CMT field Api names + */ + public virtual void migrateCustomMapping(String csName, String cmtName, String mapping) { + MetadataMappingInfo mappingInfo = null; + try { + mapper = MetadataMapperFactory.getMapper(MetadataMapperType.CUSTOM); + mappingInfo = mapper.mapper(csName, cmtName, mapping); + migrate(mappingInfo); + } + catch (Exception e) { + System.debug('MetadataLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_EXISTS)); + messages.add(new MetadataResponse.Message(100, Label.MSG_CS_MDT_MAPPING_REQ)); + messages.add(new MetadataResponse.Message(200, Label.MSG_CHECK_API_NAMES)); + messages.add(new MetadataResponse.Message(200, Label.MSG_JSON_FORMAT)); + messages.add(new MetadataResponse.Message(300, Label.MSG_JSON_API_NAMES)); + messages.add(new MetadataResponse.Message(400, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + return; + } + } - public MetadataMapperDefault getMapper() { - return mapper; - } + public virtual void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataLoader.migrate -->'); + } - public MetadataResponse getMetadataResponse() { - return response; - } + public MetadataMapperDefault getMapper() { + return mapper; + } + + public MetadataResponse getMetadataResponse() { + return response; + } } From ab7c0dfa859fdc5a918bd8a9288c62f6ad288dd4 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Wed, 11 Oct 2017 15:17:02 -0700 Subject: [PATCH 83/93] formatting: tabs to spaces Changes w.r.t. supporting migration of Custom Settings or Custom Objects to Custom Metadata Types --- .../classes/MetadataApexApiLoader.cls | 344 +++++++-------- .../classes/MetadataLoaderClient.cls | 138 +++--- .../classes/MetadataLoaderFactory.cls | 26 +- custom_md_loader/classes/MetadataMapper.cls | 58 +-- .../classes/MetadataMapperCustom.cls | 162 +++---- .../classes/MetadataMapperDefault.cls | 198 ++++----- .../classes/MetadataMapperFactory.cls | 32 +- .../classes/MetadataMapperSimple.cls | 154 +++---- .../classes/MetadataMapperType.cls | 6 +- .../classes/MetadataMappingInfo.cls | 108 ++--- .../classes/MetadataMigrationController.cls | 390 ++++++++--------- .../classes/MetadataMigrationException.cls | 4 +- .../classes/MetadataObjectCreator.cls | 328 +++++++------- custom_md_loader/classes/MetadataResponse.cls | 108 ++--- .../classes/MetadataWrapperApiLoader.cls | 400 +++++++++--------- 15 files changed, 1228 insertions(+), 1228 deletions(-) diff --git a/custom_md_loader/classes/MetadataApexApiLoader.cls b/custom_md_loader/classes/MetadataApexApiLoader.cls index bfbbd56..088a724 100644 --- a/custom_md_loader/classes/MetadataApexApiLoader.cls +++ b/custom_md_loader/classes/MetadataApexApiLoader.cls @@ -7,177 +7,177 @@ public with sharing class MetadataApexApiLoader extends MetadataLoader { - // TODO: MetadataDeployStatus: We may use in future to provide status on UI (polling or email) - public MetadataDeployStatus mdDeployStatus {get;set;} - // TODO: MetadataDeployCallback: We may use in future to provide status on UI (polling or email) - public MetadataDeployCallback callback {get;set;} - - public MetadataApexApiLoader() { - this.mdDeployStatus = new MetadataApexApiLoader.MetadataDeployStatus(); - this.callback = new MetadataDeployCallback(); - } - - public MetadataApexApiLoader.MetadataDeployStatus getMdDeployStatus() { - return this.mdDeployStatus; - } - - public MetadataApexApiLoader.MetadataDeployCallback getCallback() { - return this.callback; - } - - public override void migrateAsIsWithObjCreation(String csName, String cmtName) { - List messages = new List(); - messages.add(new MetadataResponse.Message(100, Label.MSG_NOT_SUPPORTED)); - response.setIsSuccess(false); - response.setMessages(messages); - } - - public override void migrateAsIsMapping(String csName, String cmtName) { - super.migrateAsIsMapping(csName, cmtName); - buildResponse(); - } - - public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { - super.migrateSimpleMapping(csNameWithField, cmtNameWithField); - buildResponse(); - } - - public override void migrateCustomMapping(String csName, String cmtName, String mapping) { - super.migrateCustomMapping(csName, cmtName, mapping); - buildResponse(); - } - - private void buildResponse() { - if(response.IsSuccess()) { - List messages = new List(); - messages.add(new MetadataResponse.Message(100, Label.MSG_MIGRATION_IN_PROGRESS + getMdDeployStatus().getJobId())); - response.setIsSuccess(true); - response.setMessages(messages); - } - } - - public override void migrate(MetadataMappingInfo mappingInfo) { - System.debug('MetadataApexApiLoader.migrate -->'); - try { - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - String typeDevName = mappingInfo.getCustomMetadadataTypeName() - .subString(0, mappingInfo.getCustomMetadadataTypeName().indexOf(AppConstants.MDT_SUFFIX)); - List records = new List(); - for(sObject csRecord : mappingInfo.getRecordList()) { - - Metadata.CustomMetadata customMetadataRecord = new Metadata.CustomMetadata(); - customMetadataRecord.values = new List(); - - if(csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) != null) { - String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); - String tempVal = strippedLabel.substring(0, 1); - - if(tempVal.isNumeric()) { - strippedLabel = 'X' + strippedLabel; - } - strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - // default fullName to type_dev_name.label - customMetadataRecord.fullName = typeDevName + '.'+ strippedLabel; - customMetadataRecord.label = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); - } - for(String fieldName : mappingInfo.getCSToMDT_fieldMapping().keySet()) { - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(fieldName.toLowerCase()); - - if(mappingInfo.getCSToMDT_fieldMapping().get(fieldName).endsWith('__c')) { - Metadata.CustomMetadataValue cmv = new Metadata.CustomMetadataValue(); - cmv.field = mappingInfo.getCSToMDT_fieldMapping().get(fieldName); - cmv.value = csRecord.get(fieldName); - customMetadataRecord.values.add(cmv); - } - } - records.add(customMetadataRecord); - } - - callback.setMdDeployStatus(mdDeployStatus); - - Metadata.DeployContainer deployContainer = new Metadata.DeployContainer(); - for(Metadata.CustomMetadata record : records) { - deployContainer.addMetadata(record); - } - - // Enqueue custom metadata deployment - Id jobId = Metadata.Operations.enqueueDeployment(deployContainer, callback); - mdDeployStatus.setJobId(jobId); - } - catch (Exception e) { - System.debug('MetadataApexApiLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, e.getMessage())); - - response.setIsSuccess(false); - response.setMessages(messages); - } - } - - // TODO: Status is still a work in progress. In future, we may use this to provide - // status on UI (polling or email) - public class MetadataDeployStatus { - public Id jobId {get;set;} - public Metadata.DeployStatus deployStatus {get;set;} - public boolean success {get;set;} - - public MetadataDeployStatus() {} - - public Id getJobId() { - return this.jobId; - } - public void setJobId(Id jobId) { - this.jobId = jobId; - } - - public Metadata.DeployStatus getDeployStatus() { - return this.deployStatus; - } - public void setDeployStatus(Metadata.DeployStatus deployStatus) { - this.deployStatus = deployStatus; - } - - public boolean getSuccess() { - return this.success; - } - public void setSuccess(boolean success) { - this.success = success; - } - } - - // TODO: Callback is still a work in progress. In future, we may use this to provide - // status on UI (polling or email) - public class MetadataDeployCallback implements Metadata.DeployCallback { - - public MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus {get;set;} - - public void setMdDeployStatus(MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus) { - this.mdDeployStatus = mdDeployStatus; - } - - public MetadataDeployCallback() { - } - - public void handleResult(Metadata.DeployResult result, - Metadata.DeployCallbackContext context) { - - if (result.status == Metadata.DeployStatus.Succeeded) { - mdDeployStatus.setSuccess(true); - mdDeployStatus.setDeployStatus(result.status); - } - else if (result.status == Metadata.DeployStatus.InProgress) { - // Deployment In Progress - mdDeployStatus.setSuccess(false); - mdDeployStatus.setDeployStatus(result.status); - } - else { - mdDeployStatus.setSuccess(false); - mdDeployStatus.setDeployStatus(result.status); - // Deployment was not successful - } - } - } + // TODO: MetadataDeployStatus: We may use in future to provide status on UI (polling or email) + public MetadataDeployStatus mdDeployStatus {get;set;} + // TODO: MetadataDeployCallback: We may use in future to provide status on UI (polling or email) + public MetadataDeployCallback callback {get;set;} + + public MetadataApexApiLoader() { + this.mdDeployStatus = new MetadataApexApiLoader.MetadataDeployStatus(); + this.callback = new MetadataDeployCallback(); + } + + public MetadataApexApiLoader.MetadataDeployStatus getMdDeployStatus() { + return this.mdDeployStatus; + } + + public MetadataApexApiLoader.MetadataDeployCallback getCallback() { + return this.callback; + } + + public override void migrateAsIsWithObjCreation(String csName, String cmtName) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_NOT_SUPPORTED)); + response.setIsSuccess(false); + response.setMessages(messages); + } + + public override void migrateAsIsMapping(String csName, String cmtName) { + super.migrateAsIsMapping(csName, cmtName); + buildResponse(); + } + + public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { + super.migrateSimpleMapping(csNameWithField, cmtNameWithField); + buildResponse(); + } + + public override void migrateCustomMapping(String csName, String cmtName, String mapping) { + super.migrateCustomMapping(csName, cmtName, mapping); + buildResponse(); + } + + private void buildResponse() { + if(response.IsSuccess()) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_MIGRATION_IN_PROGRESS + getMdDeployStatus().getJobId())); + response.setIsSuccess(true); + response.setMessages(messages); + } + } + + public override void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataApexApiLoader.migrate -->'); + try { + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + String typeDevName = mappingInfo.getCustomMetadadataTypeName() + .subString(0, mappingInfo.getCustomMetadadataTypeName().indexOf(AppConstants.MDT_SUFFIX)); + List records = new List(); + for(sObject csRecord : mappingInfo.getRecordList()) { + + Metadata.CustomMetadata customMetadataRecord = new Metadata.CustomMetadata(); + customMetadataRecord.values = new List(); + + if(csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) != null) { + String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); + String tempVal = strippedLabel.substring(0, 1); + + if(tempVal.isNumeric()) { + strippedLabel = 'X' + strippedLabel; + } + strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + // default fullName to type_dev_name.label + customMetadataRecord.fullName = typeDevName + '.'+ strippedLabel; + customMetadataRecord.label = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); + } + for(String fieldName : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(fieldName.toLowerCase()); + + if(mappingInfo.getCSToMDT_fieldMapping().get(fieldName).endsWith('__c')) { + Metadata.CustomMetadataValue cmv = new Metadata.CustomMetadataValue(); + cmv.field = mappingInfo.getCSToMDT_fieldMapping().get(fieldName); + cmv.value = csRecord.get(fieldName); + customMetadataRecord.values.add(cmv); + } + } + records.add(customMetadataRecord); + } + + callback.setMdDeployStatus(mdDeployStatus); + + Metadata.DeployContainer deployContainer = new Metadata.DeployContainer(); + for(Metadata.CustomMetadata record : records) { + deployContainer.addMetadata(record); + } + + // Enqueue custom metadata deployment + Id jobId = Metadata.Operations.enqueueDeployment(deployContainer, callback); + mdDeployStatus.setJobId(jobId); + } + catch (Exception e) { + System.debug('MetadataApexApiLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, e.getMessage())); + + response.setIsSuccess(false); + response.setMessages(messages); + } + } + + // TODO: Status is still a work in progress. In future, we may use this to provide + // status on UI (polling or email) + public class MetadataDeployStatus { + public Id jobId {get;set;} + public Metadata.DeployStatus deployStatus {get;set;} + public boolean success {get;set;} + + public MetadataDeployStatus() {} + + public Id getJobId() { + return this.jobId; + } + public void setJobId(Id jobId) { + this.jobId = jobId; + } + + public Metadata.DeployStatus getDeployStatus() { + return this.deployStatus; + } + public void setDeployStatus(Metadata.DeployStatus deployStatus) { + this.deployStatus = deployStatus; + } + + public boolean getSuccess() { + return this.success; + } + public void setSuccess(boolean success) { + this.success = success; + } + } + + // TODO: Callback is still a work in progress. In future, we may use this to provide + // status on UI (polling or email) + public class MetadataDeployCallback implements Metadata.DeployCallback { + + public MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus {get;set;} + + public void setMdDeployStatus(MetadataApexApiLoader.MetadataDeployStatus mdDeployStatus) { + this.mdDeployStatus = mdDeployStatus; + } + + public MetadataDeployCallback() { + } + + public void handleResult(Metadata.DeployResult result, + Metadata.DeployCallbackContext context) { + + if (result.status == Metadata.DeployStatus.Succeeded) { + mdDeployStatus.setSuccess(true); + mdDeployStatus.setDeployStatus(result.status); + } + else if (result.status == Metadata.DeployStatus.InProgress) { + // Deployment In Progress + mdDeployStatus.setSuccess(false); + mdDeployStatus.setDeployStatus(result.status); + } + else { + mdDeployStatus.setSuccess(false); + mdDeployStatus.setDeployStatus(result.status); + // Deployment was not successful + } + } + } } diff --git a/custom_md_loader/classes/MetadataLoaderClient.cls b/custom_md_loader/classes/MetadataLoaderClient.cls index 79780f9..59f2018 100644 --- a/custom_md_loader/classes/MetadataLoaderClient.cls +++ b/custom_md_loader/classes/MetadataLoaderClient.cls @@ -1,86 +1,86 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /** * Please note this is just a sample usage class. You need to replace hard-coded * values with real values. - * + * **/ public class MetadataLoaderClient { - public void migrateMetatdataApex() { - } + public void migrateMetatdataApex() { + } - /********************************************************* - * Desc This will create custom object and then migrate Custom Settings data - * to Custom Metadata Types records as is - * - * @param Name - * of Custom Setting Api (VAT_Settings_CS__c) - * @param Name - * of Custom Metadata Types Api (VAT_Settings__mdt) - * @return - *********************************************************/ - public void migrateAsIsWithObjCreation(String csName, String mdtName) { - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateAsIsWithObjCreation(csName, mdtName); - } + /********************************************************* + * Desc This will create custom object and then migrate Custom Settings data + * to Custom Metadata Types records as is + * + * @param Name + * of Custom Setting Api (VAT_Settings_CS__c) + * @param Name + * of Custom Metadata Types Api (VAT_Settings__mdt) + * @return + *********************************************************/ + public void migrateAsIsWithObjCreation(String csName, String mdtName) { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateAsIsWithObjCreation(csName, mdtName); + } - /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records as is - * - * @param Name - * of Custom Setting Api (VAT_Settings_CS__c) - * @param Name - * of Custom Metadata Types Api (VAT_Settings__mdt) - * @return - *********************************************************/ - public void migrateAsIsMapping(String csName, String mdtName) { - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateAsIsMapping(csName, mdtName); - } + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records as is + * + * @param Name + * of Custom Setting Api (VAT_Settings_CS__c) + * @param Name + * of Custom Metadata Types Api (VAT_Settings__mdt) + * @return + *********************************************************/ + public void migrateAsIsMapping(String csName, String mdtName) { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateAsIsMapping(csName, mdtName); + } - /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records if you - * have only one field mapping - * - * @param Name - * of Custom Setting Api.fieldName (VAT_Settings_CS__c.Active__c) - * @param Name - * of Custom Metadata Types Api.fieldMame - * (VAT_Settings__mdt.IsActive__c) - * @return - *********************************************************/ - public void migrateSimpleMapping(String csNameWithField, - String mdtNameWithField) { - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateSimpleMapping(csNameWithField, mdtNameWithField); - } + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records if you + * have only one field mapping + * + * @param Name + * of Custom Setting Api.fieldName (VAT_Settings_CS__c.Active__c) + * @param Name + * of Custom Metadata Types Api.fieldMame + * (VAT_Settings__mdt.IsActive__c) + * @return + *********************************************************/ + public void migrateSimpleMapping(String csNameWithField, + String mdtNameWithField) { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateSimpleMapping(csNameWithField, mdtNameWithField); + } - /********************************************************* - * Desc Migrate Custom Settings data to Custom Metadata Types records if you - * have only different Api names in Custom Settings and Custom Metadata - * Types - * - * @param Name - * of Custom Setting Api (VAT_Settings_CS__c) - * @param Name - * of Custom Metadata Types Api (VAT_Settings__mdt) - * @param Json - * Mapping (Sample below) { "Active__c" : "IsActive__c", - * "Timeout__c" : "GlobalTimeout__c", "EndPointURL__c" : - * "URL__c", } - * - * @return - *********************************************************/ - public void migrateCustomMapping(String csName, String mdtName, - String jsonMapping) { - MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); - loader.migrateCustomMapping(csName, mdtName, jsonMapping); - } + /********************************************************* + * Desc Migrate Custom Settings data to Custom Metadata Types records if you + * have only different Api names in Custom Settings and Custom Metadata + * Types + * + * @param Name + * of Custom Setting Api (VAT_Settings_CS__c) + * @param Name + * of Custom Metadata Types Api (VAT_Settings__mdt) + * @param Json + * Mapping (Sample below) { "Active__c" : "IsActive__c", + * "Timeout__c" : "GlobalTimeout__c", "EndPointURL__c" : + * "URL__c", } + * + * @return + *********************************************************/ + public void migrateCustomMapping(String csName, String mdtName, + String jsonMapping) { + MetadataLoader loader = MetadataLoaderFactory.getLoader(MetadataOpType.APEXWRAPPER); + loader.migrateCustomMapping(csName, mdtName, jsonMapping); + } } diff --git a/custom_md_loader/classes/MetadataLoaderFactory.cls b/custom_md_loader/classes/MetadataLoaderFactory.cls index 2c5f3d3..27de8e1 100644 --- a/custom_md_loader/classes/MetadataLoaderFactory.cls +++ b/custom_md_loader/classes/MetadataLoaderFactory.cls @@ -1,22 +1,22 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + public with sharing class MetadataLoaderFactory { public static MetadataLoader getLoader(MetadataOpType mt) { - MetadataLoader loader = null; - - if(mt == MetadataOpType.APEXWRAPPER) { - loader = new MetadataWrapperApiLoader(); - } - if(mt == MetadataOpType.METADATAAPEX) { - loader = new MetadataApexApiLoader(); - } - return loader; + MetadataLoader loader = null; + + if(mt == MetadataOpType.APEXWRAPPER) { + loader = new MetadataWrapperApiLoader(); + } + if(mt == MetadataOpType.METADATAAPEX) { + loader = new MetadataApexApiLoader(); + } + return loader; } -} \ No newline at end of file +} diff --git a/custom_md_loader/classes/MetadataMapper.cls b/custom_md_loader/classes/MetadataMapper.cls index 3945246..84dbfa7 100644 --- a/custom_md_loader/classes/MetadataMapper.cls +++ b/custom_md_loader/classes/MetadataMapper.cls @@ -1,41 +1,41 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /** * Interface for mapping between source object and target object fields. * Implementation of this interface will handle the mapping between source - * and target object fields. - * + * and target object fields. + * * */ public interface MetadataMapper { - - /** - * Maps the source fields with target fields. - * - * @param sFrom: source object - * @param sFrom: target object - * @param mapping: optional param, required for custom mapping in the form of json. - * */ - MetadataMappingInfo mapper(String sFrom, String sTo, String mapping); - // TODO: Currently, this is not implemented, but I think we should implement to - // validate the fields that are not supported by Custom Metadata Types. - - /** - * Validate the fields between source and target object. - * e.g. If source Custom Object is having a field of type 'masterdetail', - * then we should flag it an error or warning? - * - * */ - boolean validate(); + /** + * Maps the source fields with target fields. + * + * @param sFrom: source object + * @param sFrom: target object + * @param mapping: optional param, required for custom mapping in the form of json. + * */ + MetadataMappingInfo mapper(String sFrom, String sTo, String mapping); - /** - * Map for source-target field mapping - * - * */ - void mapSourceTarget(); -} \ No newline at end of file + // TODO: Currently, this is not implemented, but I think we should implement to + // validate the fields that are not supported by Custom Metadata Types. + + /** + * Validate the fields between source and target object. + * e.g. If source Custom Object is having a field of type 'masterdetail', + * then we should flag it an error or warning? + * + * */ + boolean validate(); + + /** + * Map for source-target field mapping + * + * */ + void mapSourceTarget(); +} diff --git a/custom_md_loader/classes/MetadataMapperCustom.cls b/custom_md_loader/classes/MetadataMapperCustom.cls index e838142..31a06c2 100644 --- a/custom_md_loader/classes/MetadataMapperCustom.cls +++ b/custom_md_loader/classes/MetadataMapperCustom.cls @@ -1,103 +1,103 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /** - * Custom mapping between source and target object fields based on json. - * + * Custom mapping between source and target object fields based on json. + * * */ public with sharing class MetadataMapperCustom extends MetadataMapperDefault { - + private String csFieldName; private String mdtFieldName; - private Map fieldsMap; - - public MetadataMapperCustom() { - super(); - } - - /** - * Maps the source fields with target fields. - * - * @param sFrom: source object, e.g. VAT_Settings__c - * @param sFrom: target object, e.g. VAT_Settings__mdt - * @param mapping: json mapping, e.g. {"Field_cs_1__c", "Field_mdt_1__c"} - * */ - public override MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { - try { - fetchSourceMetadataAndRecords(sFrom, sTo, mapping); - mapSourceTarget(); - } - catch (Exception e) { - throw e; - } - return mappingInfo; + private Map fieldsMap; + + public MetadataMapperCustom() { + super(); + } + + /** + * Maps the source fields with target fields. + * + * @param sFrom: source object, e.g. VAT_Settings__c + * @param sFrom: target object, e.g. VAT_Settings__mdt + * @param mapping: json mapping, e.g. {"Field_cs_1__c", "Field_mdt_1__c"} + * */ + public override MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { + try { + fetchSourceMetadataAndRecords(sFrom, sTo, mapping); + mapSourceTarget(); + } + catch (Exception e) { + throw e; + } + return mappingInfo; } - + /** * Fetches source object metadata and builds the mapping info - */ + */ private void fetchSourceMetadataAndRecords(String csName, String mdtName, String mapping) { - if(!mdtName.endsWith(AppConstants.MDT_SUFFIX)) { + if(!mdtName.endsWith(AppConstants.MDT_SUFFIX)) { throw new MetadataMigrationException(Label.MSG_MDT_END + AppConstants.MDT_SUFFIX); } - + List srcFieldNames = new List(); Map srcFieldResultMap = new Map(); - + try { - mappingInfo.setCustomSettingName(csName); - mappingInfo.setCustomMetadadataTypeName(mdtName); - - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csName).getDescribe(); - Map fields = objDef.fields.getMap(); - - this.fieldsMap = JsonUtilities.getValuesFromJson(mapping); - - for(String fieldName: fieldsMap.keySet()) { - srcFieldNames.add(fieldName); - DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); - srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); - } - - String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; - String query = selectClause + ' FROM ' + csName + ' LIMIT 50000'; - - List recordList = Database.query(query); - - mappingInfo.setSrcFieldNames(srcFieldNames); - mappingInfo.setRecordList(recordList); - mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - } - catch (Exception e) { - System.debug('MetadataMapperCustom.Error Message=' + e.getMessage()); - throw e; - } - + mappingInfo.setCustomSettingName(csName); + mappingInfo.setCustomMetadadataTypeName(mdtName); + + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csName).getDescribe(); + Map fields = objDef.fields.getMap(); + + this.fieldsMap = JsonUtilities.getValuesFromJson(mapping); + + for(String fieldName: fieldsMap.keySet()) { + srcFieldNames.add(fieldName); + DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); + srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); + } + + String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; + String query = selectClause + ' FROM ' + csName + ' LIMIT 50000'; + + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + } + catch (Exception e) { + System.debug('MetadataMapperCustom.Error Message=' + e.getMessage()); + throw e; + } + } - - // TODO: Currently, this is not implemented (well defaulted to true), but I think - // we should implement to validate the fields that are not supported by Custom Metadata Types. - - /** - * Validate the fields between source and target object. - * e.g. If source Custom Object is having a field of type 'masterdetail', - * then we should flag it an error or warning? - * - * */ - public override boolean validate(){ - return true; - } - - /** - * Map for source-target field mapping - * - * */ + + // TODO: Currently, this is not implemented (well defaulted to true), but I think + // we should implement to validate the fields that are not supported by Custom Metadata Types. + + /** + * Validate the fields between source and target object. + * e.g. If source Custom Object is having a field of type 'masterdetail', + * then we should flag it an error or warning? + * + * */ + public override boolean validate(){ + return true; + } + + /** + * Map for source-target field mapping + * + * */ public override void mapSourceTarget() { - mappingInfo.setCSToMDT_fieldMapping(this.fieldsMap); + mappingInfo.setCSToMDT_fieldMapping(this.fieldsMap); } - -} \ No newline at end of file + +} diff --git a/custom_md_loader/classes/MetadataMapperDefault.cls b/custom_md_loader/classes/MetadataMapperDefault.cls index 97dd4de..64fbf1c 100644 --- a/custom_md_loader/classes/MetadataMapperDefault.cls +++ b/custom_md_loader/classes/MetadataMapperDefault.cls @@ -1,113 +1,113 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /** * Default mapping between source and target object fields based on json. * This assumes that source object and target object are having exactly same - * fields metadata. - * + * fields metadata. + * * */ public virtual with sharing class MetadataMapperDefault implements MetadataMapper { - protected MetadataMappingInfo mappingInfo; - private List srcFieldNames; - - public MetadataMapperDefault() { - this.mappingInfo = new MetadataMappingInfo(); - } - - /** - * Maps the source fields with target fields. - * - * @param sFrom: source object - * @param sFrom: target object - * @param mapping: optional param, in this case, its null - * */ - public virtual MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { - try { - mappingInfo.setCustomSettingName(sFrom); - mappingInfo.setCustomMetadadataTypeName(sTo); - - fetchSourceMetadataAndRecords(sFrom); - mapSourceTarget(); - } - catch (Exception e) { - throw e; - } - return mappingInfo; - } + protected MetadataMappingInfo mappingInfo; + private List srcFieldNames; + + public MetadataMapperDefault() { + this.mappingInfo = new MetadataMappingInfo(); + } + + /** + * Maps the source fields with target fields. + * + * @param sFrom: source object + * @param sFrom: target object + * @param mapping: optional param, in this case, its null + * */ + public virtual MetadataMappingInfo mapper(String sFrom, String sTo, String mapping) { + try { + mappingInfo.setCustomSettingName(sFrom); + mappingInfo.setCustomMetadadataTypeName(sTo); + + fetchSourceMetadataAndRecords(sFrom); + mapSourceTarget(); + } + catch (Exception e) { + throw e; + } + return mappingInfo; + } /** * Fetches source object metadata and builds the mapping info - */ - private void fetchSourceMetadataAndRecords(String customSettingApiName) { - - if(!mappingInfo.getCustomMetadadataTypeName().endsWith(AppConstants.MDT_SUFFIX)) { - throw new MetadataMigrationException(Label.MSG_MDT_END + AppConstants.MDT_SUFFIX); - } - - srcFieldNames = new List(); - Map srcFieldResultMap = new Map(); - - try { - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(customSettingApiName).getDescribe(); - Map fields = objDef.fields.getMap(); - - String selectFields = ''; - for(String fieldName : fields.keySet()) { - DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); - String fieldQualifiedApiName = fieldDesc.getName(); - if(fieldQualifiedApiName.endsWith('__c')) { - srcFieldNames.add(fieldQualifiedApiName); - } - srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); - - } - - String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; - String query = selectClause + ' FROM ' + customSettingApiName + ' LIMIT 50000'; - List recordList = Database.query(query); - - mappingInfo.setSrcFieldNames(srcFieldNames); - mappingInfo.setRecordList(recordList); - mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - } - catch (Exception e) { - System.debug('MetadataMapperDefault.Error Message=' + e.getMessage()); - throw e; - } - } - - // TODO: Currently, this is not implemented (well defaulted to true), but I think - // we should implement to validate the fields that are not supported by Custom Metadata Types. - - /** - * Validate the fields between source and target object. - * e.g. If source Custom Object is having a field of type 'masterdetail', - * then we should flag it an error or warning? - * - * */ - public virtual boolean validate(){ - return true; - } - - /** - * Map for source-target field mapping - * - * */ - public virtual void mapSourceTarget() { - Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); - for(String fieldName: srcFieldNames) { - csToMDT_fieldMapping.put(fieldName, fieldName); - } - } - - public MetadataMappingInfo getMappingInfo() { - return mappingInfo; - } - -} \ No newline at end of file + */ + private void fetchSourceMetadataAndRecords(String customSettingApiName) { + + if(!mappingInfo.getCustomMetadadataTypeName().endsWith(AppConstants.MDT_SUFFIX)) { + throw new MetadataMigrationException(Label.MSG_MDT_END + AppConstants.MDT_SUFFIX); + } + + srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + try { + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(customSettingApiName).getDescribe(); + Map fields = objDef.fields.getMap(); + + String selectFields = ''; + for(String fieldName : fields.keySet()) { + DescribeFieldResult fieldDesc = fields.get(fieldName).getDescribe(); + String fieldQualifiedApiName = fieldDesc.getName(); + if(fieldQualifiedApiName.endsWith('__c')) { + srcFieldNames.add(fieldQualifiedApiName); + } + srcFieldResultMap.put(fieldName.toLowerCase(), fieldDesc); + + } + + String selectClause = 'SELECT ' + String.join(srcFieldNames, ', ') + ' ,Name '; + String query = selectClause + ' FROM ' + customSettingApiName + ' LIMIT 50000'; + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + } + catch (Exception e) { + System.debug('MetadataMapperDefault.Error Message=' + e.getMessage()); + throw e; + } + } + + // TODO: Currently, this is not implemented (well defaulted to true), but I think + // we should implement to validate the fields that are not supported by Custom Metadata Types. + + /** + * Validate the fields between source and target object. + * e.g. If source Custom Object is having a field of type 'masterdetail', + * then we should flag it an error or warning? + * + * */ + public virtual boolean validate(){ + return true; + } + + /** + * Map for source-target field mapping + * + * */ + public virtual void mapSourceTarget() { + Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); + for(String fieldName: srcFieldNames) { + csToMDT_fieldMapping.put(fieldName, fieldName); + } + } + + public MetadataMappingInfo getMappingInfo() { + return mappingInfo; + } + +} diff --git a/custom_md_loader/classes/MetadataMapperFactory.cls b/custom_md_loader/classes/MetadataMapperFactory.cls index a20976e..2682ad9 100644 --- a/custom_md_loader/classes/MetadataMapperFactory.cls +++ b/custom_md_loader/classes/MetadataMapperFactory.cls @@ -1,24 +1,24 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ public with sharing class MetadataMapperFactory { - public static MetadataMapperDefault getMapper(MetadataMapperType mt) { - MetadataMapperDefault mapper = null; - if(mt == MetadataMapperType.ASIS) { - mapper = new MetadataMapperDefault(); - } - if(mt == MetadataMapperType.SIMPLE) { - mapper = new MetadataMapperSimple(); - } - else if(mt == MetadataMapperType.CUSTOM) { - mapper = new MetadataMapperCustom(); - } - return mapper; - } + public static MetadataMapperDefault getMapper(MetadataMapperType mt) { + MetadataMapperDefault mapper = null; + if(mt == MetadataMapperType.ASIS) { + mapper = new MetadataMapperDefault(); + } + if(mt == MetadataMapperType.SIMPLE) { + mapper = new MetadataMapperSimple(); + } + else if(mt == MetadataMapperType.CUSTOM) { + mapper = new MetadataMapperCustom(); + } + return mapper; + } -} \ No newline at end of file +} diff --git a/custom_md_loader/classes/MetadataMapperSimple.cls b/custom_md_loader/classes/MetadataMapperSimple.cls index d467a05..b06aa2d 100644 --- a/custom_md_loader/classes/MetadataMapperSimple.cls +++ b/custom_md_loader/classes/MetadataMapperSimple.cls @@ -1,93 +1,93 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /** * Simple mapping between source and target object field. - * This option is for use-cases where you have only one field in source/target. - * + * This option is for use-cases where you have only one field in source/target. + * * */ public with sharing class MetadataMapperSimple extends MetadataMapperDefault { - private String csFieldName; - private String mdtFieldName; + private String csFieldName; + private String mdtFieldName; - public MetadataMapperSimple() { - super(); - } + public MetadataMapperSimple() { + super(); + } - /** - * Maps the source fields with target fields. - * - * @param sFrom: source object, e.g. VAT_Settings__c.IsActive__c - * @param sFrom: target object, e.g. VAT_Settings__mdt.Active__c - * @param mapping: in this case, mapping is null - * */ - public override MetadataMappingInfo mapper(String csName, String cmtName, String mapping) { - fetchSourceMetadataAndRecords(csName, cmtName); - mapSourceTarget(); + /** + * Maps the source fields with target fields. + * + * @param sFrom: source object, e.g. VAT_Settings__c.IsActive__c + * @param sFrom: target object, e.g. VAT_Settings__mdt.Active__c + * @param mapping: in this case, mapping is null + * */ + public override MetadataMappingInfo mapper(String csName, String cmtName, String mapping) { + fetchSourceMetadataAndRecords(csName, cmtName); + mapSourceTarget(); - return mappingInfo; - } + return mappingInfo; + } /** * Fetches source object metadata and builds the mapping info - */ - private void fetchSourceMetadataAndRecords(String csNameWithField, String mdtNameWithField) { - try { - List srcFieldNames = new List(); - Map srcFieldResultMap = new Map(); - - String[] csArray = csNameWithField.split('\\.'); - String[] mdtArray = mdtNameWithField.split('\\.'); - - mappingInfo.setCustomSettingName(csArray[0]); - mappingInfo.setCustomMetadadataTypeName(mdtArray[0]); - - csFieldName = csArray[1]; - mdtFieldName = mdtArray[1]; - - DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csArray[0]).getDescribe(); - Map fields = objDef.fields.getMap(); - DescribeFieldResult fieldDesc = fields.get(csFieldName).getDescribe(); - srcFieldResultMap.put(csFieldName.toLowerCase(), fieldDesc); - - srcFieldNames.add(csFieldName); - - String selectClause = 'SELECT ' + csArray[1] + ' ,Name '; - String query = selectClause + ' FROM ' + csArray[0] + ' LIMIT 50000'; - List recordList = Database.query(query); - - mappingInfo.setSrcFieldNames(srcFieldNames); - mappingInfo.setRecordList(recordList); - mappingInfo.setSrcFieldResultMap(srcFieldResultMap); - - } - catch (Exception e) { - System.debug('MetadataMapperSimple.Error Message=' + e.getMessage()); - throw e; - } - } - - // TODO: Currently, this is not implemented (well defaulted to true), but I think - // we should implement to validate the fields that are not supported by Custom Metadata Types. - - /** - * Validate the fields between source and target object. - * e.g. If source Custom Object is having a field of type 'masterdetail', - * then we should flag it an error or warning? - * - * */ - public override boolean validate(){ - return true; - } - - public override void mapSourceTarget() { - Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); - csToMDT_fieldMapping.put(csFieldName, mdtFieldName); - } - -} \ No newline at end of file + */ + private void fetchSourceMetadataAndRecords(String csNameWithField, String mdtNameWithField) { + try { + List srcFieldNames = new List(); + Map srcFieldResultMap = new Map(); + + String[] csArray = csNameWithField.split('\\.'); + String[] mdtArray = mdtNameWithField.split('\\.'); + + mappingInfo.setCustomSettingName(csArray[0]); + mappingInfo.setCustomMetadadataTypeName(mdtArray[0]); + + csFieldName = csArray[1]; + mdtFieldName = mdtArray[1]; + + DescribeSObjectResult objDef = Schema.getGlobalDescribe().get(csArray[0]).getDescribe(); + Map fields = objDef.fields.getMap(); + DescribeFieldResult fieldDesc = fields.get(csFieldName).getDescribe(); + srcFieldResultMap.put(csFieldName.toLowerCase(), fieldDesc); + + srcFieldNames.add(csFieldName); + + String selectClause = 'SELECT ' + csArray[1] + ' ,Name '; + String query = selectClause + ' FROM ' + csArray[0] + ' LIMIT 50000'; + List recordList = Database.query(query); + + mappingInfo.setSrcFieldNames(srcFieldNames); + mappingInfo.setRecordList(recordList); + mappingInfo.setSrcFieldResultMap(srcFieldResultMap); + + } + catch (Exception e) { + System.debug('MetadataMapperSimple.Error Message=' + e.getMessage()); + throw e; + } + } + + // TODO: Currently, this is not implemented (well defaulted to true), but I think + // we should implement to validate the fields that are not supported by Custom Metadata Types. + + /** + * Validate the fields between source and target object. + * e.g. If source Custom Object is having a field of type 'masterdetail', + * then we should flag it an error or warning? + * + * */ + public override boolean validate(){ + return true; + } + + public override void mapSourceTarget() { + Map csToMDT_fieldMapping = mappingInfo.getCSToMDT_fieldMapping(); + csToMDT_fieldMapping.put(csFieldName, mdtFieldName); + } + +} diff --git a/custom_md_loader/classes/MetadataMapperType.cls b/custom_md_loader/classes/MetadataMapperType.cls index c0e4c8e..b277f5f 100644 --- a/custom_md_loader/classes/MetadataMapperType.cls +++ b/custom_md_loader/classes/MetadataMapperType.cls @@ -1,8 +1,8 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ - + public enum MetadataMapperType { ASIS, SIMPLE, CUSTOM } diff --git a/custom_md_loader/classes/MetadataMappingInfo.cls b/custom_md_loader/classes/MetadataMappingInfo.cls index 3c86cde..1056457 100644 --- a/custom_md_loader/classes/MetadataMappingInfo.cls +++ b/custom_md_loader/classes/MetadataMappingInfo.cls @@ -1,78 +1,78 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ public with sharing class MetadataMappingInfo { - private final Set standardFields = new Set(); - private String customSettingName; - private String customMetadadataTypeName; + private final Set standardFields = new Set(); + private String customSettingName; + private String customMetadadataTypeName; - private List srcFieldNames; - private List recordList; - private Map srcFieldResultMap; + private List srcFieldNames; + private List recordList; + private Map srcFieldResultMap; - private Map csToMDT_fieldMapping = new Map(); + private Map csToMDT_fieldMapping = new Map(); - public MetadataMappingInfo() { - standardFields.add(AppConstants.DEV_NAME_ATTRIBUTE); - standardFields.add(AppConstants.LABEL_ATTRIBUTE); - standardFields.add(AppConstants.DESC_ATTRIBUTE); - } + public MetadataMappingInfo() { + standardFields.add(AppConstants.DEV_NAME_ATTRIBUTE); + standardFields.add(AppConstants.LABEL_ATTRIBUTE); + standardFields.add(AppConstants.DESC_ATTRIBUTE); + } - public Set getStandardFields() { - return standardFields; - } + public Set getStandardFields() { + return standardFields; + } - public List getSrcFieldNames() { - return srcFieldNames; - } + public List getSrcFieldNames() { + return srcFieldNames; + } - public List getRecordList() { - return recordList; - } + public List getRecordList() { + return recordList; + } - public void setSrcFieldNames(List names) { - this.srcFieldNames = names; - } + public void setSrcFieldNames(List names) { + this.srcFieldNames = names; + } - public void setRecordList(List records) { - this.recordList = records; - } + public void setRecordList(List records) { + this.recordList = records; + } - public Map getCSToMDT_fieldMapping() { - return this.csToMDT_fieldMapping; - } + public Map getCSToMDT_fieldMapping() { + return this.csToMDT_fieldMapping; + } - public void setCSToMDT_fieldMapping(Map csToMDT_fieldMapping) { - this.csToMDT_fieldMapping = csToMDT_fieldMapping; - } + public void setCSToMDT_fieldMapping(Map csToMDT_fieldMapping) { + this.csToMDT_fieldMapping = csToMDT_fieldMapping; + } - public String getCustomSettingName() { - return this.customSettingName; - } + public String getCustomSettingName() { + return this.customSettingName; + } - public void setCustomSettingName(String customSettingName) { - this.customSettingName = customSettingName; - } + public void setCustomSettingName(String customSettingName) { + this.customSettingName = customSettingName; + } - public String getCustomMetadadataTypeName() { - return this.customMetadadataTypeName; - } + public String getCustomMetadadataTypeName() { + return this.customMetadadataTypeName; + } - public void setCustomMetadadataTypeName(String customMetadadataTypeName) { - this.customMetadadataTypeName = customMetadadataTypeName; - } + public void setCustomMetadadataTypeName(String customMetadadataTypeName) { + this.customMetadadataTypeName = customMetadadataTypeName; + } - public Map getSrcFieldResultMap() { - return this.srcFieldResultMap; - } + public Map getSrcFieldResultMap() { + return this.srcFieldResultMap; + } - public void setSrcFieldResultMap(Map fieldResult) { - this.srcFieldResultMap = fieldResult; - } + public void setSrcFieldResultMap(Map fieldResult) { + this.srcFieldResultMap = fieldResult; + } -} \ No newline at end of file +} diff --git a/custom_md_loader/classes/MetadataMigrationController.cls b/custom_md_loader/classes/MetadataMigrationController.cls index 648f101..a79bfdf 100644 --- a/custom_md_loader/classes/MetadataMigrationController.cls +++ b/custom_md_loader/classes/MetadataMigrationController.cls @@ -1,203 +1,203 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ public class MetadataMigrationController { - static MetadataService.MetadataPort service = MetadataUtil.getPort(); - - private final Set standardFieldsInHeader = new Set(); - private List nonSortedApiNames; - - public boolean showRecordsTable{get;set;} - public String selectedType{get;set;} - public Blob csvFileBody{get;set;} - public SObject[] records{get;set;} - public List cmdTypes{public get;set;} - public String selectedOpTypeAsIs{get;set;} - public String selectedOpTypeSimple{get;set;} - public String selectedOpTypeCustom{get;set;} - public List opTypes{public get;set;} - public List objCreationOpTypes{public get;set;} - - public List fieldNamesForDisplay{public get;set;} - - public String customSettingFromFieldAsIs{public get;set;} - public String customSettingFromFieldSimple{public get;set;} - public String cmdToFieldSimple{public get;set;} - public String customSettingFromFieldJson{public get;set;} - public String cmdToFieldJson{public get;set;} - - public String csFieldObjCreation {public get;set;} - public String cmtFieldObjCreation {public get;set;} - public String opTypeFieldObjCreation {public get;set;} - - public String csNameApexMetadata{public get;set;} - public String cmdNameApexMetadata{public get;set;} - public String jsonMappingApexMetadata{public get;set;} - - public String jsonMapping{public get;set;} - - public boolean asyncDeployInProgress{get;set;} - - public boolean isMessage {get;set;} - - public MetadataOpType opType = MetadataOpType.APEXWRAPPER; - //public MetadataOpType opType = MetadataOpType.METADATAAPEX; - - public MetadataMigrationController() { - - service.timeout_x = 40000; - - isMessage = false; - asyncDeployInProgress = false; - - showRecordsTable = false; - loadCustomMetadataMetadata(); - - //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. - standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); - standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); - standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); - - opTypes = new List(); - opTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); - opTypes.add(new SelectOption(MetadataOpType.METADATAAPEX.name(), 'Async Operation')); - - objCreationOpTypes = new List(); - objCreationOpTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); - - } - - /** - * Queries to find all custom metadata types in the org and make it available to the VF page as drop down - */ - private void loadCustomMetadataMetadata(){ - List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; - for(SObject entityDefinition : entityDefinitions){ - String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); - if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)) { - if(cmdTypes == null) { - cmdTypes = new List(); - cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); - } - cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); - } - } - } - - private void init(String selectedOpType) { - opType = MetadataOpType.APEXWRAPPER; - if(selectedOpType == MetadataOpType.METADATAAPEX.name()) { - opType = MetadataOpType.METADATAAPEX; - } - } - - public PageReference migrateAsIsWithObjCreation() { - init(opTypeFieldObjCreation); - - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateAsIsWithObjCreation(csFieldObjCreation, cmtFieldObjCreation); - - MetadataResponse response = loader.getMetadataResponse(); - - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - public PageReference migrateAsIsMapping() { - init(selectedOpTypeAsIs); - - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateAsIsMapping(customSettingFromFieldAsIs, selectedType); - MetadataResponse response = loader.getMetadataResponse(); - - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - public PageReference migrateSimpleMapping() { - init(selectedOpTypeSimple); - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateSimpleMapping(customSettingFromFieldSimple, cmdToFieldSimple); - MetadataResponse response = loader.getMetadataResponse(); - if(response.isSuccess()) { - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else{ - List messages = response.getMessages(); - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } - - public PageReference migrateCustomMapping() { - init(selectedOpTypeCustom); - MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); - loader.migrateCustomMapping(customSettingFromFieldJson, cmdToFieldJson, jsonMapping); - MetadataResponse response = loader.getMetadataResponse(); - List messages = response.getMessages(); - - if(response.isSuccess()) { - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - else { - for(MetadataResponse.Message message: messages) { - ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); - ApexPages.addMessage(msg); - } - isMessage = true; - } - - return null; - } + static MetadataService.MetadataPort service = MetadataUtil.getPort(); + + private final Set standardFieldsInHeader = new Set(); + private List nonSortedApiNames; + + public boolean showRecordsTable{get;set;} + public String selectedType{get;set;} + public Blob csvFileBody{get;set;} + public SObject[] records{get;set;} + public List cmdTypes{public get;set;} + public String selectedOpTypeAsIs{get;set;} + public String selectedOpTypeSimple{get;set;} + public String selectedOpTypeCustom{get;set;} + public List opTypes{public get;set;} + public List objCreationOpTypes{public get;set;} + + public List fieldNamesForDisplay{public get;set;} + + public String customSettingFromFieldAsIs{public get;set;} + public String customSettingFromFieldSimple{public get;set;} + public String cmdToFieldSimple{public get;set;} + public String customSettingFromFieldJson{public get;set;} + public String cmdToFieldJson{public get;set;} + + public String csFieldObjCreation {public get;set;} + public String cmtFieldObjCreation {public get;set;} + public String opTypeFieldObjCreation {public get;set;} + + public String csNameApexMetadata{public get;set;} + public String cmdNameApexMetadata{public get;set;} + public String jsonMappingApexMetadata{public get;set;} + + public String jsonMapping{public get;set;} + + public boolean asyncDeployInProgress{get;set;} + + public boolean isMessage {get;set;} + + public MetadataOpType opType = MetadataOpType.APEXWRAPPER; + //public MetadataOpType opType = MetadataOpType.METADATAAPEX; + + public MetadataMigrationController() { + + service.timeout_x = 40000; + + isMessage = false; + asyncDeployInProgress = false; + + showRecordsTable = false; + loadCustomMetadataMetadata(); + + //No full name here since we don't want to allow that in the csv header. It is a generated field using type dev name and record dev name/label. + standardFieldsInHeader.add(AppConstants.DEV_NAME_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.LABEL_ATTRIBUTE); + standardFieldsInHeader.add(AppConstants.DESC_ATTRIBUTE); + + opTypes = new List(); + opTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); + opTypes.add(new SelectOption(MetadataOpType.METADATAAPEX.name(), 'Async Operation')); + + objCreationOpTypes = new List(); + objCreationOpTypes.add(new SelectOption(MetadataOpType.APEXWRAPPER.name(), 'Sync Operation')); + + } + + /** + * Queries to find all custom metadata types in the org and make it available to the VF page as drop down + */ + private void loadCustomMetadataMetadata(){ + List entityDefinitions =[select QualifiedApiName from EntityDefinition where IsCustomizable =true]; + for(SObject entityDefinition : entityDefinitions){ + String entityQualifiedApiName = (String)entityDefinition.get(AppConstants.QUALIFIED_API_NAME_ATTRIBUTE); + if(entityQualifiedApiName.endsWith(AppConstants.MDT_SUFFIX)) { + if(cmdTypes == null) { + cmdTypes = new List(); + cmdTypes.add(new SelectOption(AppConstants.SELECT_STRING, AppConstants.SELECT_STRING)); + } + cmdTypes.add(new SelectOption(entityQualifiedApiName, entityQualifiedApiName)); + } + } + } + + private void init(String selectedOpType) { + opType = MetadataOpType.APEXWRAPPER; + if(selectedOpType == MetadataOpType.METADATAAPEX.name()) { + opType = MetadataOpType.METADATAAPEX; + } + } + + public PageReference migrateAsIsWithObjCreation() { + init(opTypeFieldObjCreation); + + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateAsIsWithObjCreation(csFieldObjCreation, cmtFieldObjCreation); + + MetadataResponse response = loader.getMetadataResponse(); + + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateAsIsMapping() { + init(selectedOpTypeAsIs); + + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateAsIsMapping(customSettingFromFieldAsIs, selectedType); + MetadataResponse response = loader.getMetadataResponse(); + + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateSimpleMapping() { + init(selectedOpTypeSimple); + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateSimpleMapping(customSettingFromFieldSimple, cmdToFieldSimple); + MetadataResponse response = loader.getMetadataResponse(); + if(response.isSuccess()) { + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else{ + List messages = response.getMessages(); + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } + + public PageReference migrateCustomMapping() { + init(selectedOpTypeCustom); + MetadataLoader loader = MetadataLoaderFactory.getLoader(opType); + loader.migrateCustomMapping(customSettingFromFieldJson, cmdToFieldJson, jsonMapping); + MetadataResponse response = loader.getMetadataResponse(); + List messages = response.getMessages(); + + if(response.isSuccess()) { + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.INFO, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + else { + for(MetadataResponse.Message message: messages) { + ApexPages.Message msg = new ApexPages.Message(ApexPages.Severity.ERROR, message.messageDetail); + ApexPages.addMessage(msg); + } + isMessage = true; + } + + return null; + } } diff --git a/custom_md_loader/classes/MetadataMigrationException.cls b/custom_md_loader/classes/MetadataMigrationException.cls index c3e8b36..e68cac4 100644 --- a/custom_md_loader/classes/MetadataMigrationException.cls +++ b/custom_md_loader/classes/MetadataMigrationException.cls @@ -1,8 +1,8 @@ /** * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ -public class MetadataMigrationException extends Exception{} \ No newline at end of file +public class MetadataMigrationException extends Exception{} diff --git a/custom_md_loader/classes/MetadataObjectCreator.cls b/custom_md_loader/classes/MetadataObjectCreator.cls index e70d086..0aa2cdc 100644 --- a/custom_md_loader/classes/MetadataObjectCreator.cls +++ b/custom_md_loader/classes/MetadataObjectCreator.cls @@ -1,172 +1,172 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ public with sharing class MetadataObjectCreator { - private static MetadataService.MetadataPort service = MetadataUtil.getPort(); - // Supported data types during migration. If source custom setting or - // source custom object has extra data types than below map, it will - // not work. You can always use custom mapping approach in that case. - public static final Map displayTypeToTypeMap = - new Map{ - DisplayType.Boolean => 'Checkbox', - DisplayType.Date => 'Date', - DisplayType.DateTime => 'DateTime', - DisplayType.Double => 'Number', - DisplayType.Email => 'Email', - DisplayType.EncryptedString => 'Text', - DisplayType.Integer => 'Number', - DisplayType.Percent => 'Number', - DisplayType.Phone => 'Phone', - DisplayType.Picklist => 'Picklist', - DisplayType.String => 'Text', - DisplayType.TextArea => 'TextArea', - DisplayType.URL => 'Url'}; - - public static void createCustomObject(MetadataMappingInfo mappingInfo) { - try { - System.debug('createCustomObject -->'); - String fullName = mappingInfo.getCustomMetadadataTypeName(); - - System.debug('fullName ->' + fullName); - String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); - String label = pluralLabel; - pluralLabel = pluralLabel + 's'; - - MetadataService.CustomObject customObject = new MetadataService.CustomObject(); - customObject.fullName = fullName; - customObject.label = label; - customObject.pluralLabel = pluralLabel; - List results = - service.createMetadata( - new MetadataService.Metadata[] { customObject }); - handleSaveResults(results[0]); - - } - catch (Exception e) { - System.debug('createCustomOnbject.Exception-->' + e.getMessage()); - throw e; - } - } - - public static void createCustomField(MetadataMappingInfo mappingInfo) { - try { - System.debug('createCustomField -->'); - - String fullName = mappingInfo.getCustomMetadadataTypeName(); - - String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); - - String fieldFullName = ''; - String label = ''; - String type_x = ''; - - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - - List customFields = new List(); - integer counter = 0; - for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { - if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ - - Schema.DescribeFieldResult descFieldResult = descFieldResultMap.get(csField.toLowerCase()); - String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); - fieldFullName = fullName + '.' + cmtField; - label = descFieldResult.getLabel(); - type_x = displayTypeToTypeMap.get(descFieldResult.getType()); - - MetadataService.CustomField customField = new MetadataService.CustomField(); - customFields.add(customField); - customField.fullName = fieldFullName; - customField.label = label; - customField.type_x = type_x; - - // Field datatype specifics - if(type_x == 'Number' || type_x == 'Percent') { - customField.precision = descFieldResult.getPrecision(); - customField.scale = descFieldResult.getScale(); - } - if(type_x == 'Checkbox') { - customField.defaultValue = - descFieldResult.getDefaultValue() == null ? 'false' : String.valueOf(descFieldResult.getDefaultValue()); - } - - boolean lengthReq = true; - if(descFieldResult.getLength() == 0 - || type_x == 'Email' || type_x == 'Phone' - || type_x == 'URL' || type_x == 'Url' - || type_x == 'TextArea' || type_x == 'Picklist') { - lengthReq = false; - } - if(lengthReq && descFieldResult.getLength() != 0 ) { - customField.length = descFieldResult.getLength(); - } - if(type_x == 'Picklist') { - customField.type_x = 'Picklist'; - Metadataservice.Picklist pt = new Metadataservice.Picklist(); - pt.sorted = false; - List picklistValues = new List(); - for(Schema.PicklistEntry entry : descFieldResult.getPicklistValues()) { - Metadataservice.PicklistValue picklistValue = new Metadataservice.PicklistValue(); - picklistValue.fullName = entry.getLabel(); - picklistValue.default_x = entry.isDefaultValue(); - picklistValues.add(picklistValue); - } - pt.picklistValues = picklistValues; - customField.picklist = pt; - } - // process as batches of 10 - if(counter == 9) { - List results = - service.createMetadata(customFields); - handleSaveResults(results[0]); - customFields.clear(); - } - counter++; - } - } - if(customFields.size() > 0) { - List results = - service.createMetadata(customFields); - handleSaveResults(results[0]); - customFields.clear(); - } - } - catch (Exception e) { - System.debug('createCustomField.Exception-->' + e.getMessage()); - throw e; - } - } - - /** - * Example helper method to interpret a SaveResult, throws an exception if errors are found - **/ - private static void handleSaveResults(MetadataService.SaveResult saveResult) { - // Nothing to see? - if(saveResult==null || saveResult.success) - return; - // Construct error message and throw an exception - if(saveResult.errors!=null) { - List messages = new List(); - messages.add( - (saveResult.errors.size()==1 ? 'Error ' : 'Errors ') + - 'occurred processing component ' + saveResult.fullName + '.'); - for(MetadataService.Error error : saveResult.errors) - messages.add( - error.message + ' (' + error.statusCode + ').' + - ( error.fields!=null && error.fields.size()>0 ? - ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); - if(messages.size()>0) - throw new MetadataMigrationException(String.join(messages, ' ')); - } - if(!saveResult.success) - throw new MetadataMigrationException(Label.ERROR_REQUEST_FAILED_NO_ERROR); - } + private static MetadataService.MetadataPort service = MetadataUtil.getPort(); + // Supported data types during migration. If source custom setting or + // source custom object has extra data types than below map, it will + // not work. You can always use custom mapping approach in that case. + public static final Map displayTypeToTypeMap = + new Map{ + DisplayType.Boolean => 'Checkbox', + DisplayType.Date => 'Date', + DisplayType.DateTime => 'DateTime', + DisplayType.Double => 'Number', + DisplayType.Email => 'Email', + DisplayType.EncryptedString => 'Text', + DisplayType.Integer => 'Number', + DisplayType.Percent => 'Number', + DisplayType.Phone => 'Phone', + DisplayType.Picklist => 'Picklist', + DisplayType.String => 'Text', + DisplayType.TextArea => 'TextArea', + DisplayType.URL => 'Url'}; + + public static void createCustomObject(MetadataMappingInfo mappingInfo) { + try { + System.debug('createCustomObject -->'); + String fullName = mappingInfo.getCustomMetadadataTypeName(); + + System.debug('fullName ->' + fullName); + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); + String label = pluralLabel; + pluralLabel = pluralLabel + 's'; + + MetadataService.CustomObject customObject = new MetadataService.CustomObject(); + customObject.fullName = fullName; + customObject.label = label; + customObject.pluralLabel = pluralLabel; + List results = + service.createMetadata( + new MetadataService.Metadata[] { customObject }); + handleSaveResults(results[0]); + + } + catch (Exception e) { + System.debug('createCustomOnbject.Exception-->' + e.getMessage()); + throw e; + } + } + + public static void createCustomField(MetadataMappingInfo mappingInfo) { + try { + System.debug('createCustomField -->'); + + String fullName = mappingInfo.getCustomMetadadataTypeName(); + + String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel ->' + strippedLabel); + + String fieldFullName = ''; + String label = ''; + String type_x = ''; + + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + + List customFields = new List(); + integer counter = 0; + for(String csField : mappingInfo.getCSToMDT_fieldMapping().keySet()) { + if(mappingInfo.getCSToMDT_fieldMapping().get(csField).endsWith('__c')){ + + Schema.DescribeFieldResult descFieldResult = descFieldResultMap.get(csField.toLowerCase()); + String cmtField = mappingInfo.getCSToMDT_fieldMapping().get(csField); + fieldFullName = fullName + '.' + cmtField; + label = descFieldResult.getLabel(); + type_x = displayTypeToTypeMap.get(descFieldResult.getType()); + + MetadataService.CustomField customField = new MetadataService.CustomField(); + customFields.add(customField); + customField.fullName = fieldFullName; + customField.label = label; + customField.type_x = type_x; + + // Field datatype specifics + if(type_x == 'Number' || type_x == 'Percent') { + customField.precision = descFieldResult.getPrecision(); + customField.scale = descFieldResult.getScale(); + } + if(type_x == 'Checkbox') { + customField.defaultValue = + descFieldResult.getDefaultValue() == null ? 'false' : String.valueOf(descFieldResult.getDefaultValue()); + } + + boolean lengthReq = true; + if(descFieldResult.getLength() == 0 + || type_x == 'Email' || type_x == 'Phone' + || type_x == 'URL' || type_x == 'Url' + || type_x == 'TextArea' || type_x == 'Picklist') { + lengthReq = false; + } + if(lengthReq && descFieldResult.getLength() != 0 ) { + customField.length = descFieldResult.getLength(); + } + if(type_x == 'Picklist') { + customField.type_x = 'Picklist'; + Metadataservice.Picklist pt = new Metadataservice.Picklist(); + pt.sorted = false; + List picklistValues = new List(); + for(Schema.PicklistEntry entry : descFieldResult.getPicklistValues()) { + Metadataservice.PicklistValue picklistValue = new Metadataservice.PicklistValue(); + picklistValue.fullName = entry.getLabel(); + picklistValue.default_x = entry.isDefaultValue(); + picklistValues.add(picklistValue); + } + pt.picklistValues = picklistValues; + customField.picklist = pt; + } + // process as batches of 10 + if(counter == 9) { + List results = + service.createMetadata(customFields); + handleSaveResults(results[0]); + customFields.clear(); + } + counter++; + } + } + if(customFields.size() > 0) { + List results = + service.createMetadata(customFields); + handleSaveResults(results[0]); + customFields.clear(); + } + } + catch (Exception e) { + System.debug('createCustomField.Exception-->' + e.getMessage()); + throw e; + } + } + + /** + * Example helper method to interpret a SaveResult, throws an exception if errors are found + **/ + private static void handleSaveResults(MetadataService.SaveResult saveResult) { + // Nothing to see? + if(saveResult==null || saveResult.success) + return; + // Construct error message and throw an exception + if(saveResult.errors!=null) { + List messages = new List(); + messages.add( + (saveResult.errors.size()==1 ? 'Error ' : 'Errors ') + + 'occurred processing component ' + saveResult.fullName + '.'); + for(MetadataService.Error error : saveResult.errors) + messages.add( + error.message + ' (' + error.statusCode + ').' + + ( error.fields!=null && error.fields.size()>0 ? + ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); + if(messages.size()>0) + throw new MetadataMigrationException(String.join(messages, ' ')); + } + if(!saveResult.success) + throw new MetadataMigrationException(Label.ERROR_REQUEST_FAILED_NO_ERROR); + } } diff --git a/custom_md_loader/classes/MetadataResponse.cls b/custom_md_loader/classes/MetadataResponse.cls index 8adf6c4..1e527a7 100644 --- a/custom_md_loader/classes/MetadataResponse.cls +++ b/custom_md_loader/classes/MetadataResponse.cls @@ -1,62 +1,62 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ public with sharing class MetadataResponse { - private boolean isSuccess; - private List messages; - private MetadataMappingInfo mappingInfo; - - public MetadataResponse() { - } - - public MetadataResponse(boolean bIsSuccess, MetadataMappingInfo info, List messagesList) { - this.isSuccess = bIsSuccess; - this.messages = messagesList; - this.mappingInfo = info; - } - - public boolean isSuccess() { - return this.isSuccess; - } - - public void setIsSuccess(boolean isSuccess) { - this.isSuccess = isSuccess; - } - - public void setMappingInfo(MetadataMappingInfo info) { - this.mappingInfo = info; - } - public MetadataMappingInfo getMappingInfo() { - return this.mappingInfo; - } - - public List getMessages() { - return this.messages; - } - - public void setMessages(List msg) { - this.messages = msg; - } - - public with sharing class Message { - public Integer messageCode; - public String messageDetail; - - public Message() { - } - - public Message(Integer code, String message) { - this.messageCode = code; - this.messageDetail = message; - } - } - - public String debug() { - return 'MetadataResponse{' + 'success=' + isSuccess() + ', messages=' + getMessages() + ', mapping info=' + getMappingInfo() + '}'; - } + private boolean isSuccess; + private List messages; + private MetadataMappingInfo mappingInfo; + + public MetadataResponse() { + } + + public MetadataResponse(boolean bIsSuccess, MetadataMappingInfo info, List messagesList) { + this.isSuccess = bIsSuccess; + this.messages = messagesList; + this.mappingInfo = info; + } + + public boolean isSuccess() { + return this.isSuccess; + } + + public void setIsSuccess(boolean isSuccess) { + this.isSuccess = isSuccess; + } + + public void setMappingInfo(MetadataMappingInfo info) { + this.mappingInfo = info; + } + public MetadataMappingInfo getMappingInfo() { + return this.mappingInfo; + } + + public List getMessages() { + return this.messages; + } + + public void setMessages(List msg) { + this.messages = msg; + } + + public with sharing class Message { + public Integer messageCode; + public String messageDetail; + + public Message() { + } + + public Message(Integer code, String message) { + this.messageCode = code; + this.messageDetail = message; + } + } + + public String debug() { + return 'MetadataResponse{' + 'success=' + isSuccess() + ', messages=' + getMessages() + ', mapping info=' + getMappingInfo() + '}'; + } } diff --git a/custom_md_loader/classes/MetadataWrapperApiLoader.cls b/custom_md_loader/classes/MetadataWrapperApiLoader.cls index a9a52c2..b79ac23 100644 --- a/custom_md_loader/classes/MetadataWrapperApiLoader.cls +++ b/custom_md_loader/classes/MetadataWrapperApiLoader.cls @@ -1,207 +1,207 @@ -/* +/* * Copyright (c) 2016, salesforce.com, inc. * All rights reserved. - * Licensed under the BSD 3-Clause license. + * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ public with sharing class MetadataWrapperApiLoader extends MetadataLoader { - private static MetadataService.MetadataPort port; - - public static MetadataService.MetadataPort getPort() { - if (port == null) { - port = new MetadataService.MetadataPort(); - port.sessionHeader = new MetadataService.SessionHeader_element(); - port.sessionHeader.sessionId = UserInfo.getSessionId(); - } - return port; - } - - public override void migrateAsIsWithObjCreation(String csName, String cmtName) { - try{ - super.migrateAsIsWithObjCreation(csName, cmtName); - MetadataMappingInfo mappingInfo = getMapper().getMappingInfo(); - - if(!response.isSuccess()) { - throw new MetadataMigrationException(Label.ERROR_OP_FAILED); - return; - } - MetadataObjectCreator.createCustomObject(mappingInfo); - MetadataObjectCreator.createCustomField(mappingInfo); - - migrate(mappingInfo); - } - catch (Exception e) { - List messages = response.getMessages(); - if(messages == null) { - messages = new List(); - } - messages.add(new MetadataResponse.Message(300, e.getMessage())); - response.setIsSuccess(false); - response.setMessages(messages); - - return; - } - buildResponse(); - } - - public override void migrateAsIsMapping(String csName, String cmtName) { - super.migrateAsIsMapping(csName, cmtName); - buildResponse(); - } - - public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { - super.migrateSimpleMapping(csNameWithField, cmtNameWithField); - buildResponse(); - } - - public override void migrateCustomMapping(String csName, String cmtName, String mapping) { - super.migrateCustomMapping(csName, cmtName, mapping); - buildResponse(); - } - - private void buildResponse() { - if(response.IsSuccess()) { - List messages = new List(); - messages.add(new MetadataResponse.Message(100, Label.MSG_MIGRATION_COMPLETED)); - response.setIsSuccess(true); - response.setMessages(messages); - } - } - - public override void migrate(MetadataMappingInfo mappingInfo) { - System.debug('MetadataWrapperApiLoader.migrate -->'); - - try { - String devName; - String label; - Integer rowCount = 0; - - String cmdName = mappingInfo.getCustomMetadadataTypeName(); - Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); - Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); - - MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[mappingInfo.getRecordList().size()]; - Map fieldsAndValues = new Map(); - - for(sObject csRecord : mappingInfo.getRecordList()) { - - String typeDevName = cmdName.subString(0, cmdName.indexOf(AppConstants.MDT_SUFFIX)); - System.debug('typeDevName ->' + typeDevName); - - for(String csField : srcTgtFieldsMap.keySet()) { - // Set Target, Source - Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); - - if(descCSFieldResult.getType().name() == 'DATETIME') { - - if(csRecord.get(csField) != null) { - Datetime dt = DateTime.valueOf(csRecord.get(csField)); - // TODO: Fetch date format from user pref? - String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); - fieldsAndValues.put(srcTgtFieldsMap.get(csField), formattedDateTime); - } - } - else { - fieldsAndValues.put(srcTgtFieldsMap.get(csField), String.valueOf(csRecord.get(csField))); - } - } - - if(csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) != null) { - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); - fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); - - String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); - String tempVal = strippedLabel.substring(0, 1); - - if(tempVal.isNumeric() || tempVal == '-') { - strippedLabel = 'X' + strippedLabel; - } - - System.debug('strippedLabel -> 1 *' + strippedLabel); - strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel -> 2 *' + strippedLabel); - - //default fullName to type_dev_name.label - fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); - - System.debug(AppConstants.FULL_NAME_ATTRIBUTE + ' ::: ' + typeDevName + '.' + strippedLabel); - } - customMetadataRecords[rowCount++] = transformToCustomMetadata(mappingInfo.getStandardFields(), fieldsAndValues); - } - upsertMetadataAndValidate(customMetadataRecords); - - } - catch (Exception e) { - System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); - List messages = new List(); - messages.add(new MetadataResponse.Message(100, e.getMessage())); - - response.setIsSuccess(false); - response.setMessages(messages); - - } - } - - /* - * Transformation utility to turn the configuration values into custom metadata values - * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata - * values which can be passed in one update has been increased to 200 values (just for custom metadata) - * We recommend to create new type if more fields are needed. - * Using https://github.com/financialforcedev/apex-mdapi - */ - private MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ - MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); - customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); - customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); - customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); - - //custom fields - MetadataService.CustomMetadataValue[] customMetadataValues = new List(); - if(fieldsAndValues != null) { - for (String fieldName : fieldsAndValues.keySet()) { - if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ - MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); - cmRecordValue.field=fieldName; - cmRecordValue.value= fieldsAndValues.get(fieldName); - customMetadataValues.add(cmRecordValue); - } - } - } - customMetadata.values = customMetadataValues; - return customMetadata; - } - - private void upsertMetadataAndValidate(MetadataService.Metadata[] records) { - List results = getPort().upsertMetadata(records); - if(results!=null) { - for(MetadataService.UpsertResult upsertResult : results) { - if(upsertResult==null || upsertResult.success) { - continue; - } - // Construct error message and throw an exception - if(upsertResult.errors!=null){ - List messages = new List(); - messages.add( - (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + - 'occured processing component ' + upsertResult.fullName + '.'); - for(MetadataService.Error error : upsertResult.errors){ - messages.add(error.message + ' (' + error.statusCode + ').' + - ( error.fields!=null && error.fields.size()>0 ? - ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); - } - if(messages.size()>0) { - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); - return; - } - } - if(!upsertResult.success) { - ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, Label.ERROR_REQUEST_FAILED_NO_ERROR)); - return; - } - } - } - } - + private static MetadataService.MetadataPort port; + + public static MetadataService.MetadataPort getPort() { + if (port == null) { + port = new MetadataService.MetadataPort(); + port.sessionHeader = new MetadataService.SessionHeader_element(); + port.sessionHeader.sessionId = UserInfo.getSessionId(); + } + return port; + } + + public override void migrateAsIsWithObjCreation(String csName, String cmtName) { + try{ + super.migrateAsIsWithObjCreation(csName, cmtName); + MetadataMappingInfo mappingInfo = getMapper().getMappingInfo(); + + if(!response.isSuccess()) { + throw new MetadataMigrationException(Label.ERROR_OP_FAILED); + return; + } + MetadataObjectCreator.createCustomObject(mappingInfo); + MetadataObjectCreator.createCustomField(mappingInfo); + + migrate(mappingInfo); + } + catch (Exception e) { + List messages = response.getMessages(); + if(messages == null) { + messages = new List(); + } + messages.add(new MetadataResponse.Message(300, e.getMessage())); + response.setIsSuccess(false); + response.setMessages(messages); + + return; + } + buildResponse(); + } + + public override void migrateAsIsMapping(String csName, String cmtName) { + super.migrateAsIsMapping(csName, cmtName); + buildResponse(); + } + + public override void migrateSimpleMapping(String csNameWithField, String cmtNameWithField) { + super.migrateSimpleMapping(csNameWithField, cmtNameWithField); + buildResponse(); + } + + public override void migrateCustomMapping(String csName, String cmtName, String mapping) { + super.migrateCustomMapping(csName, cmtName, mapping); + buildResponse(); + } + + private void buildResponse() { + if(response.IsSuccess()) { + List messages = new List(); + messages.add(new MetadataResponse.Message(100, Label.MSG_MIGRATION_COMPLETED)); + response.setIsSuccess(true); + response.setMessages(messages); + } + } + + public override void migrate(MetadataMappingInfo mappingInfo) { + System.debug('MetadataWrapperApiLoader.migrate -->'); + + try { + String devName; + String label; + Integer rowCount = 0; + + String cmdName = mappingInfo.getCustomMetadadataTypeName(); + Map descFieldResultMap = mappingInfo.getSrcFieldResultMap(); + Map srcTgtFieldsMap = mappingInfo.getCSToMDT_fieldMapping(); + + MetadataService.Metadata[] customMetadataRecords = new MetadataService.Metadata[mappingInfo.getRecordList().size()]; + Map fieldsAndValues = new Map(); + + for(sObject csRecord : mappingInfo.getRecordList()) { + + String typeDevName = cmdName.subString(0, cmdName.indexOf(AppConstants.MDT_SUFFIX)); + System.debug('typeDevName ->' + typeDevName); + + for(String csField : srcTgtFieldsMap.keySet()) { + // Set Target, Source + Schema.DescribeFieldResult descCSFieldResult = descFieldResultMap.get(csField.toLowerCase()); + + if(descCSFieldResult.getType().name() == 'DATETIME') { + + if(csRecord.get(csField) != null) { + Datetime dt = DateTime.valueOf(csRecord.get(csField)); + // TODO: Fetch date format from user pref? + String formattedDateTime = dt.format('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ'); + fieldsAndValues.put(srcTgtFieldsMap.get(csField), formattedDateTime); + } + } + else { + fieldsAndValues.put(srcTgtFieldsMap.get(csField), String.valueOf(csRecord.get(csField))); + } + } + + if(csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) != null) { + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); + fieldsAndValues.put(AppConstants.LABEL_ATTRIBUTE, (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE) ); + + String strippedLabel = (String)csRecord.get(AppConstants.CS_NAME_ATTRIBUTE); + String tempVal = strippedLabel.substring(0, 1); + + if(tempVal.isNumeric() || tempVal == '-') { + strippedLabel = 'X' + strippedLabel; + } + + System.debug('strippedLabel -> 1 *' + strippedLabel); + strippedLabel = strippedLabel.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); + System.debug('strippedLabel -> 2 *' + strippedLabel); + + //default fullName to type_dev_name.label + fieldsAndValues.put(AppConstants.FULL_NAME_ATTRIBUTE, typeDevName + '.'+ strippedLabel); + + System.debug(AppConstants.FULL_NAME_ATTRIBUTE + ' ::: ' + typeDevName + '.' + strippedLabel); + } + customMetadataRecords[rowCount++] = transformToCustomMetadata(mappingInfo.getStandardFields(), fieldsAndValues); + } + upsertMetadataAndValidate(customMetadataRecords); + + } + catch (Exception e) { + System.debug('MetadataWrapperApiLoader.Error Message=' + e.getMessage()); + List messages = new List(); + messages.add(new MetadataResponse.Message(100, e.getMessage())); + + response.setIsSuccess(false); + response.setMessages(messages); + + } + } + + /* + * Transformation utility to turn the configuration values into custom metadata values + * This method to modify Metadata is only approved for Custom Metadata Records. Note that the number of custom metadata + * values which can be passed in one update has been increased to 200 values (just for custom metadata) + * We recommend to create new type if more fields are needed. + * Using https://github.com/financialforcedev/apex-mdapi + */ + private MetadataService.CustomMetadata transformToCustomMetadata(Set standardFields, Map fieldsAndValues){ + MetadataService.CustomMetadata customMetadata = new MetadataService.CustomMetadata(); + customMetadata.label = fieldsAndValues.get(AppConstants.LABEL_ATTRIBUTE); + customMetadata.fullName = fieldsAndValues.get(AppConstants.FULL_NAME_ATTRIBUTE); + customMetadata.description = fieldsAndValues.get(AppConstants.DESC_ATTRIBUTE); + + //custom fields + MetadataService.CustomMetadataValue[] customMetadataValues = new List(); + if(fieldsAndValues != null) { + for (String fieldName : fieldsAndValues.keySet()) { + if(!standardFields.contains(fieldName) && !AppConstants.FULL_NAME_ATTRIBUTE.equals(fieldName)){ + MetadataService.CustomMetadataValue cmRecordValue = new MetadataService.CustomMetadataValue(); + cmRecordValue.field=fieldName; + cmRecordValue.value= fieldsAndValues.get(fieldName); + customMetadataValues.add(cmRecordValue); + } + } + } + customMetadata.values = customMetadataValues; + return customMetadata; + } + + private void upsertMetadataAndValidate(MetadataService.Metadata[] records) { + List results = getPort().upsertMetadata(records); + if(results!=null) { + for(MetadataService.UpsertResult upsertResult : results) { + if(upsertResult==null || upsertResult.success) { + continue; + } + // Construct error message and throw an exception + if(upsertResult.errors!=null){ + List messages = new List(); + messages.add( + (upsertResult.errors.size()==1 ? 'Error ' : 'Errors ') + + 'occured processing component ' + upsertResult.fullName + '.'); + for(MetadataService.Error error : upsertResult.errors){ + messages.add(error.message + ' (' + error.statusCode + ').' + + ( error.fields!=null && error.fields.size()>0 ? + ' Fields ' + String.join(error.fields, ',') + '.' : '' ) ); + } + if(messages.size()>0) { + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, String.join(messages, ' '))); + return; + } + } + if(!upsertResult.success) { + ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, Label.ERROR_REQUEST_FAILED_NO_ERROR)); + return; + } + } + } + } + } From 2a0c18e182d387238fa05e971d35622dce2299aa Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Wed, 11 Oct 2017 15:18:28 -0700 Subject: [PATCH 84/93] formatting: tabs to spaces Changes w.r.t. supporting migration of Custom Settings or Custom Objects to Custom Metadata Types --- custom_md_loader/pages/CMTMigrator.page | 256 ++++++++++++------------ 1 file changed, 130 insertions(+), 126 deletions(-) diff --git a/custom_md_loader/pages/CMTMigrator.page b/custom_md_loader/pages/CMTMigrator.page index d76ff44..126f626 100644 --- a/custom_md_loader/pages/CMTMigrator.page +++ b/custom_md_loader/pages/CMTMigrator.page @@ -6,93 +6,98 @@ */ --> + - - + -
      -
    1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types
      -
    2. +
    3. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types
    4. +
      + +
    5. This solution provides four different options to do the migration
    6. +
      + +
    7. Option 1: Migrate Custom Settings/Custom Objects to new Custom Metadata Type
    8. +
      +
        +
      • Creates Custom Metadata Type and migrate Custom Settings/Custom Objects data to
        + Custom Metadata Types records as is. It will need following two inputs.
        + Api Name of Custom Setting/Custom Object (e.g. VAT_Settings_CS__c)
        + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) +
      • +
      +
      +
    9. Option 2: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type
    10. +
      +
        +
      • Migrate Custom Settings/Custom Objects data to
        + existing Custom Metadata Types records as is. It will need following two inputs.
        + Api Name of Custom Setting/Custom Object (e.g. VAT_Settings_CS__c)
        + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) +
      • +
      +
      +
    11. Option 3: Migrate - Simple Mapping
    12. +
      +
        +
      • Migrate Custom Settings/Custom Objects data to
        + existing Custom Metadata Types records using simple mapping. It will need following two inputs.
        + Api Name of Custom Setting/Custom Object.fieldName (e.g. VAT_Settings_CS__c.Active__c)
        + Api Name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c)
      • +
      +
      +
    13. Option 4: Migrate - Custom Mapping
    14. +
      +
        +
      • Migrate Custom Settings/Custom Objects data to
        + existing Custom Metadata Types records using custom Json mapping. It will need following two inputs.
        + Api Name of Custom Setting/Custom Object (e.g. VAT_Settings_CS__c)
        + Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt)
        + Json Mapping (Sample below)
        + {
        + "Active__c" : "IsActive__c",
        + "Timeout__c" : "GlobalTimeout__c",
        + "EndPointURL__c" : "URL__c"
        + } +
      • +

      -
    15. Solution provides two different options to do the migration
    16. +
    17. Custom Metadata Types label and names

    18. -
        -
      • Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated.
        +
          +
        • Custom Setting/Custom Object record name converted into Custom Metadata Types label and name
        • -
        • Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated.
          - To check the status of async migration, go to Deploy -> Deployment Status +
        • e.g. Name special character replaced with "_" in Custom Metadata Type names
        • -
        -
        -
      • Migrate Custom Settings to new Custom Metadata Type
      • -
        -
          -
        • Creates Custom Metadata Type and migrate Custom Settings/Custom Objects data to
          - Custom Metadata Types records as is. It will need following two inputs.
          - Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
          - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) +
        • e.g. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X"
        -
        -
      • Migrate Custom Settings to existing Custom Metadata Type
      • -
        -
          -
        • Migrate Custom Settings/Custom Objects data to
          - existing Custom Metadata Types records as is. It will need following two inputs.
          - Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
          - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt)
        • -
        -
        -
      • Migrate - Simple Mapping
        -
      • -
        -
          -
        • Migrate Custom Settings/Custom Objects data to
          - existing Custom Metadata Types records using simple mapping. It will need following two inputs.
          - Api Name of Custom Setting.fieldName (e.g. VAT_Settings_CS__c.Active__c)
          - Api Name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c)
        • -
        -
        -
      • Migrate - Custom Mapping
        -
      • -
        -
          -
        • Migrate Custom Settings/Custom Objects data to
          - existing Custom Metadata Types records using custom Json mapping. It will need following two inputs.
          - Api Name of Custom Setting (e.g. VAT_Settings_CS__c)
          - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt)
          - Json Mapping (Sample below)
          - {
          - "Active__c" : "IsActive__c",
          - "Timeout__c" : "GlobalTimeout__c",
          - "EndPointURL__c" : "URL__c"
          - } -
        • -

        -
      • Custom Metadata Types label and names
      • +
      • Sync/Async operations

        • -
        • Custom Setting record name converted into Custom Metadata Types label and name
          -
        • - -
        • e.g. Custom Setting name special character replaced with "_" in Custom Metadata Type names
          +
        • Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated.
        • -
        • e.g. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X" +
        • Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated.
          + To check the status of async migration, go to Deploy -> Deployment Status

        +
      • Custom Settings of type hierarchy not supported
      • @@ -105,79 +110,77 @@
        -
    -
    - - - - - - - - - - - - - - - - - - -
    Custom Setting/Custom Objects Name (From)
    Custom Metadata Type Name (To)
    Operation Type - - -
    - -
    -
    - -
    -
    -
    - - - - - - - - - - - - - - - - + + + + + +
    Custom Setting/Custom Objects Name (From)
    Custom Metadata Type Name (To) - - -
    Operation Type - - -
    + + + + + + + + + + + + + +
    Custom Setting/Custom Objects Name (From)
    Custom Metadata Type Name (To)
    Operation Type + + +
    + +
    +
    + +
    +
    +
    - + + + + + + + + + + + + + + + +
    Custom Setting/Custom Objects Name (From)
    Custom Metadata Type Name (To) + + +
    Operation Type + + +

    - +
    - + - + - + @@ -190,24 +193,24 @@

    - +
    - +
    Custom Setting/Custom Objects, Format: CS.fieldName
    Custom Metadata Type, Format: CMT.fieldName
    Operation Type
    - + - + - + @@ -220,11 +223,12 @@

    - +
    - + + \ No newline at end of file From 53c529e6b07410b856a14cf1c247fd177a341c30 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Thu, 12 Oct 2017 15:52:41 -0700 Subject: [PATCH 85/93] remove debugs and other cleanups Changes w.r.t. supporting migration of Custom Settings or Custom Objects to Custom Metadata Types --- custom_md_loader/classes/MetadataLoader.cls | 1 - custom_md_loader/classes/MetadataObjectCreator.cls | 6 ------ 2 files changed, 7 deletions(-) diff --git a/custom_md_loader/classes/MetadataLoader.cls b/custom_md_loader/classes/MetadataLoader.cls index 34ca381..a7c087c 100644 --- a/custom_md_loader/classes/MetadataLoader.cls +++ b/custom_md_loader/classes/MetadataLoader.cls @@ -122,7 +122,6 @@ public virtual with sharing class MetadataLoader { } public virtual void migrate(MetadataMappingInfo mappingInfo) { - System.debug('MetadataLoader.migrate -->'); } public MetadataMapperDefault getMapper() { diff --git a/custom_md_loader/classes/MetadataObjectCreator.cls b/custom_md_loader/classes/MetadataObjectCreator.cls index 0aa2cdc..4c109f8 100644 --- a/custom_md_loader/classes/MetadataObjectCreator.cls +++ b/custom_md_loader/classes/MetadataObjectCreator.cls @@ -28,12 +28,9 @@ public with sharing class MetadataObjectCreator { public static void createCustomObject(MetadataMappingInfo mappingInfo) { try { - System.debug('createCustomObject -->'); String fullName = mappingInfo.getCustomMetadadataTypeName(); - System.debug('fullName ->' + fullName); String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); String pluralLabel = fullName.subString(0, fullName.indexOf(AppConstants.MDT_SUFFIX)); String label = pluralLabel; @@ -57,12 +54,9 @@ public with sharing class MetadataObjectCreator { public static void createCustomField(MetadataMappingInfo mappingInfo) { try { - System.debug('createCustomField -->'); - String fullName = mappingInfo.getCustomMetadadataTypeName(); String strippedLabel = fullName.replaceAll('\\W+', '_').replaceAll('__+', '_').replaceAll('\\A[^a-zA-Z]+', '').replaceAll('_$', ''); - System.debug('strippedLabel ->' + strippedLabel); String fieldFullName = ''; String label = ''; From f7e7bd77e36840af9fd9c13c5d082caaf0662db4 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Thu, 12 Oct 2017 15:54:34 -0700 Subject: [PATCH 86/93] remove debugs and other cleanups Changes w.r.t. supporting migration of Custom Settings or Custom Objects to Custom Metadata Types --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a1aa4d0..ed02a1e 100644 --- a/README.md +++ b/README.md @@ -76,10 +76,12 @@ Input the following: --Api Name of Custom Setting (e.g. VAT_Settings_CS__c) --Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) --Json Mapping (Sample below) - { - "Active__c" : "IsActive__c", - "Timeout__c" : "GlobalTimeout__c", - } + { + "Active__c" : "IsActive__c", + "Timeout__c" : "GlobalTimeout__c", + } + Please note, key should be the Custom Setting/Object field name and that the value is the CMT field name. + Click on 'Migrate' ## Custom metadata migrator: more details @@ -92,7 +94,7 @@ Click on 'Migrate' 2. Custom Metadata Types label and names - Custom Setting/Custom Object record name converted into Custom Metadata Types label and name. - Custom Setting name special character replaced with "_" in Custom Metadata Type names - - If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X" + - If Custom Setting name starts with digit, then Custom Metadata Types name will be prepended with "X" 3. Custom Settings of type hierarchy not supported. From 3800beefbf0e83093181000da6392e2d062e9a82 Mon Sep 17 00:00:00 2001 From: Anoop Singh Date: Thu, 12 Oct 2017 15:55:06 -0700 Subject: [PATCH 87/93] remove debugs and other cleanups Changes w.r.t. supporting migration of Custom Settings or Custom Objects to Custom Metadata Types --- custom_md_loader/pages/CMTMigrator.page | 116 ++---------------------- 1 file changed, 10 insertions(+), 106 deletions(-) diff --git a/custom_md_loader/pages/CMTMigrator.page b/custom_md_loader/pages/CMTMigrator.page index 126f626..0514930 100644 --- a/custom_md_loader/pages/CMTMigrator.page +++ b/custom_md_loader/pages/CMTMigrator.page @@ -14,110 +14,14 @@ - + - -
      -
    1. Solution to migrate Custom Settings/Custom Objects to Custom Metadata Types
    2. -
      - -
    3. This solution provides four different options to do the migration
    4. -
      - -
    5. Option 1: Migrate Custom Settings/Custom Objects to new Custom Metadata Type
    6. -
      -
        -
      • Creates Custom Metadata Type and migrate Custom Settings/Custom Objects data to
        - Custom Metadata Types records as is. It will need following two inputs.
        - Api Name of Custom Setting/Custom Object (e.g. VAT_Settings_CS__c)
        - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) -
      • -
      -
      -
    7. Option 2: Migrate Custom Settings/Custom Objects to existing Custom Metadata Type
    8. -
      -
        -
      • Migrate Custom Settings/Custom Objects data to
        - existing Custom Metadata Types records as is. It will need following two inputs.
        - Api Name of Custom Setting/Custom Object (e.g. VAT_Settings_CS__c)
        - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt) -
      • -
      -
      -
    9. Option 3: Migrate - Simple Mapping
    10. -
      -
        -
      • Migrate Custom Settings/Custom Objects data to
        - existing Custom Metadata Types records using simple mapping. It will need following two inputs.
        - Api Name of Custom Setting/Custom Object.fieldName (e.g. VAT_Settings_CS__c.Active__c)
        - Api Name of Custom Metadata Types.fieldName (e.g. VAT_Settings__mdt.Active__c)
      • -
      -
      -
    11. Option 4: Migrate - Custom Mapping
    12. -
      -
        -
      • Migrate Custom Settings/Custom Objects data to
        - existing Custom Metadata Types records using custom Json mapping. It will need following two inputs.
        - Api Name of Custom Setting/Custom Object (e.g. VAT_Settings_CS__c)
        - Api Name of Custom Metadata Types (e.g. VAT_Settings__mdt)
        - Json Mapping (Sample below)
        - {
        - "Active__c" : "IsActive__c",
        - "Timeout__c" : "GlobalTimeout__c",
        - "EndPointURL__c" : "URL__c"
        - } -
      • -
      -
      - -
    13. Custom Metadata Types label and names
    14. -
      -
        -
      • Custom Setting/Custom Object record name converted into Custom Metadata Types label and name
        -
      • - -
      • e.g. Name special character replaced with "_" in Custom Metadata Type names
        -
      • - -
      • e.g. If Custom Setting name starts with digit, then Custom Metadata Types name will be appended with "X" -
      • -
      -
      - -
    15. Sync/Async operations
    16. -
      -
        -
      • Sync Operation: Migration will happen synchronously. Maximum 200 records can be migrated.
        -
      • - -
      • Async Operation: Migration will happen asynchronously. Maximum 50000 records can be migrated.
        - To check the status of async migration, go to Deploy -> Deployment Status -
      • -
      -
      - -
    17. Custom Settings of type hierarchy not supported
      -
    18. - -
      -
    19. Custom Objects with field types not supported in Custom Metadata Types not supported
      -
    20. - -
      -
    21. Currency field on Custom Settings can't be migrated
      -
    22. -
      - -
    -
    - - - +
    Custom Setting/Custom Objects Name
    Custom Metadata Type Name
    Custom Setting, JSON, example:
    Operation Type
    - + @@ -141,11 +45,11 @@ - +
    Custom Setting/Custom Objects Name (From) Custom Setting/Custom Object Name (From)
    - + @@ -171,11 +75,11 @@ - +
    Custom Setting/Custom Objects Name (From) Custom Setting/Custom Object Name (From)
    - + @@ -198,10 +102,10 @@ - +
    Custom Setting/Custom Objects, Format: CS.fieldNameCustom Setting/Custom Object, Format: CS.fieldName
    - + @@ -209,7 +113,7 @@ - + From 6415849ef98d11f430331377de4a70df660f7618 Mon Sep 17 00:00:00 2001 From: Carolyn Date: Thu, 20 Dec 2018 16:26:26 -0800 Subject: [PATCH 88/93] Escape pagemessages Internal ref number: W-5616540 rev cschell --- custom_md_loader/pages/CustomMetadataRecordUploader.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_md_loader/pages/CustomMetadataRecordUploader.page b/custom_md_loader/pages/CustomMetadataRecordUploader.page index 67c50e2..d22a11b 100644 --- a/custom_md_loader/pages/CustomMetadataRecordUploader.page +++ b/custom_md_loader/pages/CustomMetadataRecordUploader.page @@ -8,7 +8,7 @@ - + From d4595a47943e058ab404612b1b791b10ec33feb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcell=20Csisz=C3=A1r?= Date: Mon, 23 Sep 2019 15:28:22 +0200 Subject: [PATCH 89/93] small typo fix in createCustomObject method --- custom_md_loader/classes/MetadataObjectCreator.cls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_md_loader/classes/MetadataObjectCreator.cls b/custom_md_loader/classes/MetadataObjectCreator.cls index 4c109f8..3b7114b 100644 --- a/custom_md_loader/classes/MetadataObjectCreator.cls +++ b/custom_md_loader/classes/MetadataObjectCreator.cls @@ -47,7 +47,7 @@ public with sharing class MetadataObjectCreator { } catch (Exception e) { - System.debug('createCustomOnbject.Exception-->' + e.getMessage()); + System.debug('createCustomObject.Exception-->' + e.getMessage()); throw e; } } From adcaa137fc84cd3238ca2dc58aa5ffae2ac833e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9ferson=20Chaves?= <1755734+jefersonchaves@users.noreply.github.com> Date: Thu, 24 Oct 2019 15:56:43 +0100 Subject: [PATCH 90/93] Update README.md Fix a small mistake that was causing the header to not show properly. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ed02a1e..3aeebbe 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Custom metadata loader is a tool for creating custom metadata records from a csv Custom metadata loader has a sample custom metadata type CountryMapping__mdt that allows users to map country codes to country names. -#How to deploy custom metadata loader +# How to deploy custom metadata loader 1. Download the folder custom_md_loader and zip all the files inside this folder. Package.xml should be at the top level of the zipped file. 2. Log in to your developer organization via workbench and deploy this zip file. (migration -> deploy) From d209fbe6e8a0e54691136ba821dce190a963147d Mon Sep 17 00:00:00 2001 From: Rodion-R <60274461+Rodion-R@users.noreply.github.com> Date: Thu, 13 Aug 2020 16:17:18 -0700 Subject: [PATCH 91/93] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 3aeebbe..568614b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ +# Using CLI Commands + +Salesforce CLI commands for custom metadata types are available in v49. The custom metadata loader is no longer supported or maintained. As such, Salesforce does not guarantee the functionality or performance of the loader. + +The CLI commands simplify development and help you build automation and synchronize your source from scratch orgs when working with custom metadata types. CLI commands offer more functionality than the custom metadata loader. You can create custom metadata types, generate fields, create records, bulk insert records from a CSV file, and generate custom metadata types from an sObject. In addition, there's no limit on the number of records that can be loaded. + +See the following for more information, + +* [Create and Manage Custom Metadata Types Using CLI](https://help.salesforce.com/articleView?id=custommetadatatypes_cli.htm) +* [cmdt Commands](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_cmdt.htm#cli_reference_force_cmdt) + # Custom Metadata Loader From de8a469c9e08d58da88f2b2569a48b510eed4cda Mon Sep 17 00:00:00 2001 From: Rodion-R <60274461+Rodion-R@users.noreply.github.com> Date: Fri, 14 Aug 2020 10:57:59 -0700 Subject: [PATCH 92/93] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 568614b..388c96f 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Salesforce CLI commands for custom metadata types are available in v49. The cust The CLI commands simplify development and help you build automation and synchronize your source from scratch orgs when working with custom metadata types. CLI commands offer more functionality than the custom metadata loader. You can create custom metadata types, generate fields, create records, bulk insert records from a CSV file, and generate custom metadata types from an sObject. In addition, there's no limit on the number of records that can be loaded. -See the following for more information, +See the following for more information: * [Create and Manage Custom Metadata Types Using CLI](https://help.salesforce.com/articleView?id=custommetadatatypes_cli.htm) * [cmdt Commands](https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_force_cmdt.htm#cli_reference_force_cmdt) From ce6d6624d081f2a7c5a880f04648f417065ae60e Mon Sep 17 00:00:00 2001 From: svc-scm <48930134+svc-scm@users.noreply.github.com> Date: Tue, 12 Oct 2021 03:10:31 -0700 Subject: [PATCH 93/93] Updated/Added CODEOWNERS with ECCN --- CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..522fa4a --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,2 @@ +# Comment line immediately above ownership line is reserved for related gus information. Please be careful while editing. +#ECCN:Open Source
    Custom Setting/Custom Objects NameCustom Setting/Custom Object Name
    Custom Setting, JSON, example: Json Mapping