public class MacMetadata
extends java.lang.Object
Constructor and Description |
---|
MacMetadata() |
Modifier and Type | Method and Description |
---|---|
MacMetadata |
addAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
Adds a Marketing Cloud Metadata attribute / value pair to this offerr request.
|
MacMetadata |
addAttribute(java.lang.String attributeName,
java.lang.String[] attributeValues) |
static MacMetadata |
generateMandatoryMetadata(java.lang.String editUrl,
java.lang.String remoteModifiedBy)
Generates the mandatory metadata.
|
java.util.Map<java.lang.String,java.lang.String> |
getMarketingCloudMetadata()
Retrieves the list of the Marketing Cloud Metadata attributes.
|
java.lang.String |
getValue(java.lang.String attributeName)
Retrieves the value of a specific attribute from this metadata set
|
java.lang.String[] |
getValues(java.lang.String attributeName)
Retrieves the value of a specific attribute from this metadata set, specifying what type should the returned value be
|
void |
removeAttribute(java.lang.String attributeName)
Removes a Marketing Cloud Metadata attribute from the list.
|
public MacMetadata addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
RuntimeException
if any of the above mentioned restrictions are hit.attributeName
- the name of the attributeattributeValue
- the value of the attributepublic MacMetadata addAttribute(java.lang.String attributeName, java.lang.String[] attributeValues)
public void removeAttribute(java.lang.String attributeName)
attributeName
- the name of the attribute.public java.util.Map<java.lang.String,java.lang.String> getMarketingCloudMetadata()
Map
having the attribute names as keys and the attribute values as values.public java.lang.String getValue(java.lang.String attributeName)
attributeName
- the name of the attributeString
containing the value, or null
if the value is not found or it's not a String
.public java.lang.String[] getValues(java.lang.String attributeName)
attributeName
- the name of the attributepublic static MacMetadata generateMandatoryMetadata(java.lang.String editUrl, java.lang.String remoteModifiedBy)
editUrl
- the URL which is used to access the objectremoteModifiedBy
- the user which performed the last modificationMacMetadata
object containing the three attributes above"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"