Class SaveOfferRequest
java.lang.Object
com.day.cq.analytics.testandtarget.OfferBase
com.day.cq.analytics.testandtarget.SaveOfferRequest
A request object used to create an offer in Adobe Target
-
Constructor Summary
ConstructorsConstructorDescriptionSaveOfferRequest
(long id, String name, String content) Constructs aSaveOfferRequest
using the parameters required to update an offerSaveOfferRequest
(String name, String content) Constructs an object of this type using the minimal required to create an offer.SaveOfferRequest
(String name, String content, String editUrl, String remoteModifiedBy) -
Method Summary
Methods inherited from class com.day.cq.analytics.testandtarget.OfferBase
getId, getMacMetadata, getType, getWorkspace, setMacMetadata, setType, setWorkspace
-
Constructor Details
-
SaveOfferRequest
Constructs aSaveOfferRequest
using the parameters required to update an offer- Parameters:
id
- the offer id, as assigned by Adobe Target. This cannot be 0name
- the offer namecontent
- the content of the offer
-
SaveOfferRequest
Constructs an object of this type using the minimal required to create an offer.- Parameters:
name
- the offer namecontent
- the content of the offer
-
SaveOfferRequest
-
-
Method Details
-
getName
Description copied from class:OfferBase
Returns the name of the offer -
getContentPath
Description copied from class:OfferBase
Returns the path of this offer from the AEM repository- Overrides:
getContentPath
in classOfferBase
- Returns:
- the offer path
-
getContent
Description copied from class:OfferBase
Returns the offer content, as set in Adobe Target- Overrides:
getContent
in classOfferBase
- Returns:
- the offer content. This is usually a callback to an AEM function which pulls the content from the repository
-
toString
-