Class SaveOfferRequest
- java.lang.Object
-
- com.day.cq.analytics.testandtarget.OfferBase
-
- com.day.cq.analytics.testandtarget.SaveOfferRequest
-
public class SaveOfferRequest extends OfferBase
A request object used to create an offer in Adobe Target
-
-
Constructor Summary
Constructors Constructor Description SaveOfferRequest(long id, java.lang.String name, java.lang.String content)Constructs aSaveOfferRequestusing the parameters required to update an offerSaveOfferRequest(java.lang.String name, java.lang.String content)Constructs an object of this type using the minimal required to create an offer.SaveOfferRequest(java.lang.String name, java.lang.String content, java.lang.String editUrl, java.lang.String remoteModifiedBy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContent()Returns the offer content, as set in Adobe Targetjava.lang.StringgetContentPath()Returns the path of this offer from the AEM repositoryjava.lang.StringgetName()Returns the name of the offerjava.lang.StringtoString()-
Methods inherited from class com.day.cq.analytics.testandtarget.OfferBase
getId, getMacMetadata, getType, getWorkspace, setMacMetadata, setType, setWorkspace
-
-
-
-
Constructor Detail
-
SaveOfferRequest
public SaveOfferRequest(long id, java.lang.String name, java.lang.String content)Constructs aSaveOfferRequestusing 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
public SaveOfferRequest(java.lang.String name, java.lang.String content)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
public SaveOfferRequest(java.lang.String name, java.lang.String content, java.lang.String editUrl, java.lang.String remoteModifiedBy)
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from class:OfferBaseReturns the name of the offer
-
getContentPath
public java.lang.String getContentPath()
Description copied from class:OfferBaseReturns the path of this offer from the AEM repository- Overrides:
getContentPathin classOfferBase- Returns:
- the offer path
-
getContent
public java.lang.String getContent()
Description copied from class:OfferBaseReturns the offer content, as set in Adobe Target- Overrides:
getContentin classOfferBase- Returns:
- the offer content. This is usually a callback to an AEM function which pulls the content from the repository
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-