Interface TargetMediator
- 
- All Superinterfaces:
 TestandtargetCampaignMediator
@ProviderType public interface TargetMediator extends TestandtargetCampaignMediator
The TargetMediator creates and keeps sync of reusable Adobe Target objects such as segments and offers 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPN_AUTHOR_EXTERNAL_IDThe JCR property that holds the Adobe Target id on the managed objects on the author instance.static java.lang.StringPN_EXTERNAL_IDDeprecated.UsePN_PUBLISH_EXTERNAL_IDorPN_AUTHOR_EXTERNAL_IDinsteadstatic java.lang.StringPN_PUBLISH_EXTERNAL_IDThe JCR property that holds the Adobe Target id on the managed objects on the author instance. 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voiddeleteCampaign(java.lang.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, java.lang.String offerPath)Synchronizes an offer with Adobe Target.longsyncSegment(Configuration configuration, java.lang.String segmentPath)Synchronizes a segment with Adobe Target- 
Methods inherited from interface com.day.cq.analytics.testandtarget.TestandtargetCampaignMediator
deactivatePublishCampaign, syncAuthorCampaign, syncPublishCampaign 
 - 
 
 - 
 
- 
- 
Field Detail
- 
PN_EXTERNAL_ID
static final java.lang.String 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:
 - Constant Field Values
 
 
- 
PN_AUTHOR_EXTERNAL_ID
static final java.lang.String PN_AUTHOR_EXTERNAL_ID
The JCR property that holds the Adobe Target id on the managed objects on the author instance.- See Also:
 - Constant Field Values
 
 
- 
PN_PUBLISH_EXTERNAL_ID
static final java.lang.String PN_PUBLISH_EXTERNAL_ID
The JCR property that holds the Adobe Target id on the managed objects on the author instance.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
syncOffer
long syncOffer(Configuration configuration, java.lang.String offerPath) throws TestandtargetException
Synchronizes an offer with Adobe Target. After a successful synchronization this method returns the object id from Target- Parameters:
 offerPath- the repository path of the offer.configuration- the cloud services configuration containing the Adobe Target account details- Returns:
 - the object id from Target
 - Throws:
 TestandtargetException-TestandtargetException
 
- 
syncOffer
long syncOffer(Configuration configuration, SaveOfferRequest request) throws TestandtargetException
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
long syncSegment(Configuration configuration, java.lang.String segmentPath) throws TestandtargetException
Synchronizes a segment with Adobe Target- Parameters:
 segmentPath- Segment Pathconfiguration- the cloud services configuration containing the Adobe Target account details- Returns:
 - the object id from Target.
 - Throws:
 TestandtargetException-TestandtargetException
 
- 
deleteCampaign
void deleteCampaign(java.lang.String campaignPath) throws TestandtargetExceptionDeletes the Target campaign associated with the campaign at the provided path.- Parameters:
 campaignPath- the repository path of the campaign.- Throws:
 TestandtargetException-TestandtargetException
 
- 
deleteOffer
@Deprecated void deleteOffer(Configuration configuration, long id) throws TestandtargetException
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
 
 - 
 
 -