Interface TargetMediator
- All Superinterfaces:
TestandtargetCampaignMediator
The
TargetMediator creates and keeps sync of reusable Adobe Target objects such as segments and offers-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteCampaign(String campaignPath) Deletes the Target campaign associated with the campaign at the provided path.voiddeleteOffer(Configuration configuration, long id) Deprecated.voiddeleteOffer(Configuration configuration, long id, SaveOfferRequest request) Deletes the Target offer with the the provided id.longsyncOffer(Configuration configuration, SaveOfferRequest request) Synchronizes an offer with Adobe Target.longsyncOffer(Configuration configuration, String offerPath) Synchronizes an offer with Adobe Target.longsyncSegment(Configuration configuration, String segmentPath) Synchronizes a segment with Adobe TargetMethods inherited from interface com.day.cq.analytics.testandtarget.TestandtargetCampaignMediator
deactivatePublishCampaign, syncAuthorCampaign, syncPublishCampaign
-
Field Details
-
PN_EXTERNAL_ID
Deprecated.UsePN_PUBLISH_EXTERNAL_IDorPN_AUTHOR_EXTERNAL_IDinsteadThe JCR property that holds the Adobe Target id on the managed objects- See Also:
-
PN_AUTHOR_EXTERNAL_ID
The JCR property that holds the Adobe Target id on the managed objects on the author instance.- See Also:
-
PN_PUBLISH_EXTERNAL_ID
The JCR property that holds the Adobe Target id on the managed objects on the author instance.- See Also:
-
-
Method Details
-
syncOffer
Synchronizes an offer with Adobe Target. After a successful synchronization this method returns the object id from Target- Parameters:
configuration- the cloud services configuration containing the Adobe Target account detailsofferPath- the repository path of the offer.- Returns:
- the object id from Target
- Throws:
TestandtargetException-TestandtargetException
-
syncOffer
Synchronizes an offer with Adobe Target. After a successful synchronization this method returns the object id from Adobe Target.- Parameters:
configuration- the Adobe Target cloud service configuration.request- aSaveOfferRequestobject containing the offer's data - title and content.- Returns:
- the offerId generated by Adobe Target.
- Throws:
TestandtargetException- if any errors are encountered during synchronization
-
syncSegment
Synchronizes a segment with Adobe Target- Parameters:
configuration- the cloud services configuration containing the Adobe Target account detailssegmentPath- Segment Path- Returns:
- the object id from Target.
- Throws:
TestandtargetException-TestandtargetException
-
deleteCampaign
Deletes the Target campaign associated with the campaign at the provided path.- Parameters:
campaignPath- the repository path of the campaign.- Throws:
TestandtargetException-TestandtargetException
-
deleteOffer
Deprecated.Deletes the Target offer with the the provided id.- Parameters:
configuration- the cloud services configuration containing the Adobe Target account details.id- the offer id.- Throws:
TestandtargetException-TestandtargetException
-
deleteOffer
void deleteOffer(Configuration configuration, long id, SaveOfferRequest request) throws TestandtargetException Deletes the Target offer with the the provided id.- Parameters:
configuration- the cloud services configuration containing the Adobe Target account details.id- the offer id.request- aSaveOfferRequestobject containing the offer's data- Throws:
TestandtargetException-TestandtargetException
-
PN_PUBLISH_EXTERNAL_IDorPN_AUTHOR_EXTERNAL_IDinstead