MFWED_ApiTypes Class
Global class containing types used in the WebEditor API.
Namespace
mfwe
Classes
DynamoFolderResponse Class
Folder information from Dynamo
Fields
Description
AURAENABLED
Folder name, description
Signature
global DescriptionType
String
Name
AURAENABLED
Name of the folder
Signature
global NameType
String
Table
AURAENABLED
The table name
Signature
global TableType
String
Col
AURAENABLED
List of columns in the folder
Signature
global ColType
List<ColumnNode>
error
AURAENABLED
Error message if any
Signature
global errorType
String
ColumnNode Class
Column information from Dynamo
Fields
Attr
AURAENABLED
Column attribute
Signature
global AttrType
String
ColName
AURAENABLED
Column name
Signature
global ColNameType
String
DefaultValue
AURAENABLED
Column default values
Signature
global DefaultValueType
String
LabelIndex
AURAENABLED
Label index
Signature
global LabelIndexType
String
Length
AURAENABLED
Column length
Signature
global LengthType
String
Mandatory
AURAENABLED
Column mandatory or not
Signature
global MandatoryType
Integer
NotNULL
AURAENABLED
Column type null or not
Signature
global NotNULLType
Integer
Type
AURAENABLED
Column type
Signature
global TypeType
String
OnlineDocuments Class
A hierarchical list of ALL templates from Metaforce. Use keywords to filter out relevant templates.
Fields
Root
AURAENABLED
Root node of the document tree
Signature
global RootType
DocumentNode
Distributions
AURAENABLED
List of distribution methods
Signature
global DistributionsType
List<String>
error
AURAENABLED
Error message if any
Signature
global errorType
String
userClassifications
AURAENABLED
User classifications
Signature
global userClassificationsType
Map<String,Boolean>
DocumentNode Class
A hierarchical list of templates from Metaforce. Use keywords to filter out relevant templates.
Fields
Name
AURAENABLED
Name of the document
Signature
global NameType
String
Documents
AURAENABLED
List of documents
Signature
global DocumentsType
List<Template>
ChildNodes
AURAENABLED
List of child nodes
Signature
global ChildNodesType
List<DocumentNode>
Template Class
Template details from Metaforce.
Fields
Name
AURAENABLED
Template name
Signature
global NameType
String
Description
AURAENABLED
Template description
Signature
global DescriptionType
String
AttributeStoreKey
AURAENABLED
Attribute store key if any
Signature
global AttributeStoreKeyType
String
HasProcess
AURAENABLED
True if template has process, e.g. will launch web editor
Signature
global HasProcessType
Boolean
KeyWords
AURAENABLED
List of all keywords the template has, Keywords are typically: ‘USERSELECTABLE’, ‘SOBJECT’, ‘RECEIVERINTEMPLATE’ etc
Signature
global KeyWordsType
List<String>
ArchiveSearchResponse Class
List of all documents, with its metadata, found when searching Metaforce archive.
Fields
DocumentModel
AURAENABLED
List of document models
Signature
global DocumentModelType
List<DocumentModelCls>
Count
AURAENABLED
Total count of documents found
Signature
global CountType
Integer
error
AURAENABLED
Error message if any
Signature
global errorType
String
DocumentModelCls Class
Document details from Metaforce archive.
Fields
ArchiveDate
AURAENABLED
Archiving date and time
Signature
global ArchiveDateType
Datetime
id
AURAENABLED
Document id
Signature
global idType
String
ContentType
AURAENABLED
Content type of the document
Signature
global ContentTypeType
String
Metadata
AURAENABLED
Map of metadata fields
Signature
global MetadataType
Map<String,String>
PartitionKey
AURAENABLED
Partition key
Signature
global PartitionKeyType
String
SearchSpec Class
Class used for creating an archive search specification, Metaforce metadata field name, value and compare operator. Valid values for comparer are: ‘AND’ or ‘OR’.
Fields
key
AURAENABLED
Metaforce metadata field name
Signature
global keyType
String
value
AURAENABLED
Metaforce metadata field value
Signature
global valueType
String
comparer
AURAENABLED
Compare operator, ‘AND’ or ‘OR’
Signature
global comparerType
String
Constructors
SearchSpec(key, value, comparer)
Constructor for search spec
Signature
global SearchSpec(String key, String value, String comparer)Parameters
| Name | Type | Description |
|---|---|---|
| key | String | Metaforce metadata field name to search on |
| value | String | Metaforce metadata field value to search for |
| comparer | String | Compare operator, ‘AND’ or ‘OR’ |
ArchiveSchemaResponse Class
This class contains all schema details from Metaforce. Used by getSchemas() method.
Fields
Name
AURAENABLED
Name of the schema
Signature
global NameType
String
PartitionKey
AURAENABLED
Schema partition key
Signature
global PartitionKeyType
String
AllowedScopes
AURAENABLED
List of allowed scopes
Signature
global AllowedScopesType
List<String>
RequiredSearchFields
AURAENABLED
List of required search fields
Signature
global RequiredSearchFieldsType
List<String>
EncryptedColumns
AURAENABLED
List of all encrypted columns in the schema
Signature
global EncryptedColumnsType
EncryptedColumn
Schema
AURAENABLED
The schema with type, properties and list of required fields
Signature
global SchemaType
SchemaClass
Columns
AURAENABLED
List of all columns in the schema
Signature
global ColumnsType
List<ColumnClass>
error
AURAENABLED
Error message if any
Signature
global errorType
String
ColumnClass Class
Class representing each column with name and type in the schema
Fields
Name
AURAENABLED
Column name
Signature
global NameType
String
Type
AURAENABLED
Column type
Signature
global TypeType
String
SchemaClass Class
Fields
type
AURAENABLED
Schema type
Signature
global typeType
String
additionalProperties
AURAENABLED
Additional properties for Schema exists or not
Signature
global additionalPropertiesType
Boolean
required
AURAENABLED
List of required fields
Signature
global requiredType
List<String>
EncryptedColumn Class
Class representing all encrypted columns in the schema
Fields
DataColumns
AURAENABLED
List of encrypted columns
Signature
global DataColumnsType
List<String>
SorterCls Class
Class used for creating a dynamo search specification, Metaforce metadata field name, value and compare operator. Valid values for comparer are: ‘AND’ or ‘OR’.
Fields
column
Column name to sort on
Signature
global columnType
String
sortOrder
Sort order, ‘ASC’ or ‘DESC’
Signature
global sortOrderType
String
Constructors
SorterCls()
Default constructor for sorter
Signature
global SorterCls()SorterCls(column, sortOrder)
Constructor for sorter to set column name and sort order
Signature
global SorterCls(String column, String sortOrder)Parameters
| Name | Type | Description |
|---|---|---|
| column | String | Name of column to sort on |
| sortOrder | String | Sort order, ‘ASC’ or ‘DESC’ |
WhereConditionsCls Class
Class used for creating a dynamo search specification, Metaforce metadata field name, etc
Fields
value
Metaforce metadata field value
Signature
global valueType
String
comparer
Compare operator, e.g. ‘EQ’, ‘NE’, ‘GT’, ‘LT’, ‘GE’, ‘LE’
Signature
global comparerType
String
column
Metaforce metadata field name
Signature
global columnType
String
chainer
Chainer, ‘AND’ or ‘OR’
Signature
global chainerType
String
Constructors
WhereConditionsCls()
Default constructor for where conditions
Signature
global WhereConditionsCls()WhereConditionsCls(value, comparer, column, chainer)
Constructor for where conditions to set value, comparer, column and chainer
Signature
global WhereConditionsCls(String value, String comparer, String column, String chainer)Parameters
| Name | Type | Description |
|---|---|---|
| value | String | Metaforce metadata field value |
| comparer | String | Compare operator, e.g. ‘EQ’, ‘NE’, ‘GT’, ‘LT’, ‘GE’, ‘LE’ |
| column | String | Metaforce metadata field name |
| chainer | String | Chainer, ‘AND’ or ‘OR’ |
DynamoSearchResponse Class
List of all documents, with its metadata, found when searching Metaforce dynamo.
Fields
Columns
AURAENABLED
List of search column objects
Signature
global ColumnsType
List<DynamoSearchColumnObject>
error
AURAENABLED
Error message if any
Signature
global errorType
String
Constructors
DynamoSearchResponse()
Default constructor for dynamo search response
Signature
global DynamoSearchResponse()DynamoSearchColumnObject Class
Class representing each column with name and value in the dynamo search response
Fields
name
AURAENABLED
Column name
Signature
global nameType
String
value
AURAENABLED
Column value
Signature
global valueType
String
Constructors
DynamoSearchColumnObject(name, value)
Constructor for dynamo search column object
Signature
global DynamoSearchColumnObject(String name, String value)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | Metaforce metadata field name |
| value | String | Metaforce metadata field value |
ArchiveUploadResponse Class
Document details from uploading document to archive
Fields
id
AURAENABLED
Document id
Signature
global idType
String
partitionKey
AURAENABLED
Partition key
Signature
global partitionKeyType
String
archiveDate
AURAENABLED
Archive date
Signature
global archiveDateType
String
retentionPolicy
AURAENABLED
retention policy
Signature
global retentionPolicyType
String
contentType
AURAENABLED
Content type
Signature
global contentTypeType
String
metadata
AURAENABLED
Map of metadata, key value pairs
Signature
global metadataType
Map<String,String>
error
AURAENABLED
Error message if any
Signature
global errorType
String
ArchiveUpdateMetadataResponse Class
Document details from updating document metadata in archive
Fields
id
AURAENABLED
Document id
Signature
global idType
String
partitionKey
AURAENABLED
Partition key
Signature
global partitionKeyType
String
archiveDate
AURAENABLED
Archive date
Signature
global archiveDateType
String
DistributeSendResponse Class
Document details from sending and distributing a document
Fields
CorrelationId
AURAENABLED
Correlation id
Signature
global CorrelationIdType
String
Id
AURAENABLED
DescriptionDocument
id
Signature
global IdType
String
Distribution
AURAENABLED
Distribution method
Signature
global DistributionType
String
JobId
AURAENABLED
Job id of the document
Signature
global JobIdType
String
DocId
AURAENABLED
Doc id of the document
Signature
global DocIdType
String
error
AURAENABLED
Error message if any
Signature
global errorType
String
ComplexNode Class
The ComplexNode class represents a hierarchy of data nodes. Each node represents a data element with attributes and children. The data element is typically a Salesforce record.
Fields
name
Name of the node
Signature
global nameType
String
attributes
Map of attributes for the node, key value pairs
Signature
global attributesType
Map<String,String>
children
List of children nodes, building up the hierarchy
Signature
global childrenType
List<ComplexNode>
Constructors
ComplexNode(SObjectName, recordId, templateName, description)
Default constructor for ComplexNode
Signature
global ComplexNode(String SObjectName, String recordId, String templateName, String description)Parameters
| Name | Type | Description |
|---|---|---|
| SObjectName | String | Name of SObject, typically ‘Contact’, ‘Account’ etc |
| recordId | String | Salesforce record id |
| templateName | String | Name of the template |
| description | String | Description of the template |
ComplexNode(name)
Simple constructor for ComplexNode with name only
Signature
global ComplexNode(String name)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | Name of the node |
Methods
addAttribute(key, value)
Add an attribute to the node.
Signature
global ComplexNode addAttribute(String key, String value)Parameters
| Name | Type | Description |
|---|---|---|
| key | String | Name of the attribute |
| value | String | Value of the attribute |
Return Type
ComplexNode
The node with the added attribute. Reuse the node for chaining.
addChild(node)
Add a child node to the node.
Signature
global ComplexNode addChild(ComplexNode node)Parameters
| Name | Type | Description |
|---|---|---|
| node | ComplexNode | The child node to add |
Return Type
ComplexNode
The node with the added child. Reuse the node for chaining.
addChildren(nodes)
Add a list of child nodes to the node.
Signature
global ComplexNode addChildren(List<ComplexNode> nodes)Parameters
| Name | Type | Description |
|---|---|---|
| nodes | List<ComplexNode> | List of child nodes to add to the node |
Return Type
ComplexNode
The node with the added children. Reuse the node for chaining.
KeyValueData Class
Class representing a key value pair with a type
Fields
key
AURAENABLED
Key of the key value pair
Signature
global keyType
String
value
AURAENABLED
Value of the key value pair
Signature
global valueType
String
type
AURAENABLED
Type of the key value pair
Signature
global typeType
String
Constructors
KeyValueData(key, value)
Constructor for key value pair, defaulting to String type
Signature
global KeyValueData(String key, String value)Parameters
| Name | Type | Description |
|---|---|---|
| key | String | The name of the key |
| value | String | The value of the key |
KeyValueData(key, value, type)
Constructor for key value pair, explicitly stating type
Signature
global KeyValueData(String key, String value, String type)Parameters
| Name | Type | Description |
|---|---|---|
| key | String | The name of the key |
| value | String | The value of the key |
| type | String | The type of the key, typically String, Integer, Date etc |
WebEditDocumentResponse Class
Wrapper class for result from creating a webeditor session
Fields
DxmlUID
Resulting dxml unique Id, identifies the webeditor document session
Signature
global DxmlUIDType
String
StartURL
URL to start the webeditor session
Signature
global StartURLType
String
ValidTo
Valid to date and time for the webeditor session
Signature
global ValidToType
Datetime
error
Error message if any
Signature
global errorType
String
Constructors
WebEditDocumentResponse(DxmlUID, StartURL, ValidTo, error)
Constructor for WebEditDocumentResponse
Signature
global WebEditDocumentResponse(String DxmlUID, String StartURL, Datetime ValidTo, String error)Parameters
| Name | Type | Description |
|---|---|---|
| DxmlUID | String | Dxml unique Id for the webeditor session |
| StartURL | String | URL to start the webeditor session |
| ValidTo | Datetime | Valid to date and time for the webeditor session |
| error | String | Error message if any |
Attribute Class
Wrapper class for result from retrieving attribute store from Metaforce
Fields
name
AURAENABLED
Name of the attribute
Signature
global nameType
String
value
AURAENABLED
Value of the attribute
Signature
global valueType
String
Constructors
Attribute(name, value)
Constructor for Attribute
Signature
global Attribute(String name, String value)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | Name of the attribute |
| value | String | Value of the attribute |
AttributeDocumentDetail Class
Wrapper class for result from retrieving attribute store from Metaforce
Fields
attributes
AURAENABLED
List of attributes
Signature
global attributesType
List<Attribute>
Methods
addAttribute(name, value)
Constructor for AttributeDocumentDetail
Signature
global AttributeDocumentDetail addAttribute(String name, String value)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | Name of the attribute |
| value | String | Value of the attribute |
Return Type
AttributeDocumentDetail
The AttributeDocumentDetail with the added attribute. Reuse the AttributeDocumentDetail for chaining.
AttributeDocument Class
Wrapper class for result from retrieving attribute document from Metaforce
Fields
id
AURAENABLED
Attribute Document id
Signature
global idType
String
type
AURAENABLED
Attribute Document type
Signature
global typeType
String
AttributeStore Class
Wrapper class for result from retrieving attribute store from Metaforce
Fields
environment
AURAENABLED
Environment of the attribute store
Signature
global environmentType
Integer
documents
AURAENABLED
List of attribute documents
Signature
global documentsType
List<AttributeDocument>
Constructors
AttributeStore()
Default constructor for AttributeStore
Signature
global AttributeStore()Enums
SourceFormat Enum
Source format for the document to be uploaded to Metaforce.
Values
| Value | Description |
|---|---|
| COMPLEX_NODE | Source format is of Complex Node type, a type supporting hierarchies of data nodes |
| XML_DOM | Source format is of XML DOM type, a type supporting hierarchical XML data |
| XML_STRING | Source format is of XML String type |