Class OfferBase
java.lang.Object
com.day.cq.analytics.testandtarget.OfferBase
- Direct Known Subclasses:
SaveOfferRequest,ViewOfferRequest,ViewOfferResponse
Parent object for the request objects involved in Adobe Target offer synchronization
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the offer content, as set in Adobe TargetReturns the path of this offer from the AEM repositorylonggetId()Returns the offer id, as retrieved from Adobe TargetRetrieves the metadata object attached to this offer reuquest.getName()Returns the name of the offergetType()Returns the offer type.voidsetMacMetadata(MacMetadata metadata) Sets the metadata for this offer.voidvoidsetWorkspace(String workspace) Optional id of workspace to which the offer belongs.
-
Constructor Details
-
OfferBase
-
-
Method Details
-
getName
Returns the name of the offer- Returns:
- a
Stringobject containing the offer name
-
getId
public long getId()Returns the offer id, as retrieved from Adobe Target- Returns:
- the id of the offer. If the offer hasn't been synchronized with Target this value is 0
-
getContentPath
Returns the path of this offer from the AEM repository- Returns:
- the offer path
-
getContent
Returns the offer content, as set in Adobe Target- Returns:
- the offer content. This is usually a callback to an AEM function which pulls the content from the repository
-
setMacMetadata
Sets the metadata for this offer.- Parameters:
metadata- aMacMetadataobject. Note that the object must contain the mandatory metadata.
-
getMacMetadata
Retrieves the metadata object attached to this offer reuquest.- Returns:
- a
MacMetadataobject
-
getType
Returns the offer type.- Returns:
- the offer type.
-
setType
- Parameters:
type- offer type
-
getWorkspace
- Returns:
- the offer workspace id
-
setWorkspace
Optional id of workspace to which the offer belongs. Max length is 250 characters. By default, Default workspace is assumed.- Parameters:
workspace- id of workspace
-