Interface DestinationTargetService

  • All Known Implementing Classes:
    DefaultDestinationTargetService

    public interface DestinationTargetService
    Service layer interface for destination targets
    • Method Detail

      • createDestinationTarget

        DestinationTargetModel createDestinationTarget​(DestinationTargetModel source,
                                                       java.lang.String newId,
                                                       DestinationChannel destinationChannel)
                                                throws ApiRegistrationException
        Create a new destination target from the template destination target with the given id
        Parameters:
        source - the destination target which is used as a template
        newId - the id of the new destination target
        destinationChannel - channel of the new destination target
        Returns:
        the new destination target
        Throws:
        ApiRegistrationException - in case the DestinationTargetCloningStrategy doesn't exist for the given destination target
      • registerDestinationTarget

        void registerDestinationTarget​(DestinationTargetModel destinationTarget,
                                       java.util.Map<java.lang.String,​java.lang.String> params)
                                throws ApiRegistrationException
        Register a destination target and its assigned destinations and events in the target system
        Parameters:
        destinationTarget - the destination target
        params - the parameters map which is used for passing additional parameters
        Throws:
        ApiRegistrationException - in case the registration fails
      • createEventConfigurations

        void createEventConfigurations​(DestinationTargetModel source,
                                       DestinationTargetModel target,
                                       java.util.List<EventConfigurationModel> eventConfigurations)
                                throws ApiRegistrationException
        Create event configurations for the target destination.
        Parameters:
        source - the destination target which is used to create event configurations
        target - the destination target which owns the new event configurations
        eventConfigurations - the list of event configurations
        Throws:
        ApiRegistrationException - in case the DestinationTargetCloningStrategy doesn't exist for the given destination target
      • registerExposedDestinations

        java.util.Map<java.lang.String,​java.lang.String> registerExposedDestinations​(DestinationTargetModel destinationTarget)
        Register all exposed destinations of the given destination target.
        Parameters:
        destinationTarget - the destination target of exposed destinations
        Returns:
        the map of failed exposed destinations and error messages
      • deleteDestinationTarget

        void deleteDestinationTarget​(DestinationTargetModel destinationTarget)
                              throws ApiRegistrationException
        Delete destination target and all related objects of it such as destinations, event configurations.
        Parameters:
        destinationTarget - the destinations target
        Throws:
        ApiRegistrationException - in case the DestinationTargetCloningStrategy doesn't exist for the given destination target
      • getDestinationTargetByCredentialId

        DestinationTargetModel getDestinationTargetByCredentialId​(java.lang.String credentialId)
        Get the destination target for a specific credential id
        Parameters:
        credentialId - id of the credential
        Returns:
        a destination target
      • getDestinationTargetById

        DestinationTargetModel getDestinationTargetById​(java.lang.String id)
        Get the destination target for a specific id
        Parameters:
        id - id of the destination target
        Returns:
        a destination target