Interface TargetMediator

    • Field Detail

      • 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 - a SaveOfferRequest 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