Interface TargetMediator
-
- All Superinterfaces:
TestandtargetCampaignMediator
@ProviderType public interface TargetMediator extends TestandtargetCampaignMediator
TheTargetMediator
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.String
PN_AUTHOR_EXTERNAL_ID
The JCR property that holds the Adobe Target id on the managed objects on the author instance.static java.lang.String
PN_EXTERNAL_ID
Deprecated.UsePN_PUBLISH_EXTERNAL_ID
orPN_AUTHOR_EXTERNAL_ID
insteadstatic java.lang.String
PN_PUBLISH_EXTERNAL_ID
The 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 void
deleteCampaign(java.lang.String campaignPath)
Deletes the Target campaign associated with the campaign at the provided path.void
deleteOffer(Configuration configuration, long id)
Deprecated.void
deleteOffer(Configuration configuration, long id, SaveOfferRequest request)
Deletes the Target offer with the the provided id.long
syncOffer(Configuration configuration, SaveOfferRequest request)
Synchronizes an offer with Adobe Target.long
syncOffer(Configuration configuration, java.lang.String offerPath)
Synchronizes an offer with Adobe Target.long
syncSegment(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_ID
orPN_AUTHOR_EXTERNAL_ID
insteadThe 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
- aSaveOfferRequest
object 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 TestandtargetException
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 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
- aSaveOfferRequest
object containing the offer's data- Throws:
TestandtargetException
-TestandtargetException
-
-