public class OfferBase
extends java.lang.Object
Constructor and Description |
---|
OfferBase(long id,
java.lang.String name,
java.lang.String content) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Returns the offer content, as set in Adobe Target
|
java.lang.String |
getContentPath()
Returns the path of this offer from the AEM repository
|
long |
getId()
Returns the offer id, as retrieved from Adobe Target
|
MacMetadata |
getMacMetadata()
Retrieves the metadata object attached to this offer reuquest.
|
java.lang.String |
getName()
Returns the name of the offer
|
java.lang.String |
getType()
Returns the offer type.
|
java.lang.String |
getWorkspace() |
void |
setMacMetadata(MacMetadata metadata)
Sets the metadata for this offer.
|
void |
setType(java.lang.String type) |
void |
setWorkspace(java.lang.String workspace)
Optional id of workspace to which the offer belongs.
|
public OfferBase(long id, java.lang.String name, java.lang.String content)
public java.lang.String getName()
String
object containing the offer namepublic long getId()
public java.lang.String getContentPath()
public java.lang.String getContent()
public void setMacMetadata(MacMetadata metadata)
metadata
- a MacMetadata
object. Note that the object must contain the mandatory metadata.public MacMetadata getMacMetadata()
MacMetadata
objectpublic java.lang.String getType()
public void setType(java.lang.String type)
type
- offer typepublic java.lang.String getWorkspace()
public void setWorkspace(java.lang.String workspace)
workspace
- id of workspaceCopyright © 2010 - 2020 Adobe. All Rights Reserved