Class DefaultDestinationTargetRegistrationStrategy
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.strategies.impl.DefaultDestinationTargetRegistrationStrategy
-
- All Implemented Interfaces:
DestinationTargetRegistrationStrategy
public class DefaultDestinationTargetRegistrationStrategy extends java.lang.Object implements DestinationTargetRegistrationStrategy
Default implementation ofDestinationTargetRegistrationStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultDestinationTargetRegistrationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidderegisterDestinationTarget(DestinationTargetModel destinationTarget)Unregister exposed destinations of the given destination targetvoidregisterDestinationTarget(DestinationTargetModel destinationTarget, java.util.Map<java.lang.String,java.lang.String> params)Register a destination target and its assigned destinations and events in the target systemjava.util.List<java.lang.String>syncDestinationTargetWithRemoteSystem(DestinationTargetModel destinationTarget)Sync destination target with the remote system.
-
-
-
Method Detail
-
registerDestinationTarget
public void registerDestinationTarget(DestinationTargetModel destinationTarget, java.util.Map<java.lang.String,java.lang.String> params) throws ApiRegistrationException
Description copied from interface:DestinationTargetRegistrationStrategyRegister a destination target and its assigned destinations and events in the target system- Specified by:
registerDestinationTargetin interfaceDestinationTargetRegistrationStrategy- Parameters:
destinationTarget- the destination targetparams- the parameters map which is used for passing additional parameters- Throws:
ApiRegistrationException- in case the registration fails
-
deregisterDestinationTarget
public void deregisterDestinationTarget(DestinationTargetModel destinationTarget) throws ApiRegistrationException, DeleteDestinationTargetNotPossibleException
Description copied from interface:DestinationTargetRegistrationStrategyUnregister exposed destinations of the given destination target- Specified by:
deregisterDestinationTargetin interfaceDestinationTargetRegistrationStrategy- Parameters:
destinationTarget- the destination target- Throws:
ApiRegistrationException- in case the unregistration failsDeleteDestinationTargetNotPossibleException- in case of deregistering the destination target is not allowed
-
syncDestinationTargetWithRemoteSystem
public java.util.List<java.lang.String> syncDestinationTargetWithRemoteSystem(DestinationTargetModel destinationTarget) throws ApiRegistrationException
Description copied from interface:DestinationTargetRegistrationStrategySync destination target with the remote system.- Specified by:
syncDestinationTargetWithRemoteSystemin interfaceDestinationTargetRegistrationStrategy- Parameters:
destinationTarget- the destination target- Returns:
- list of sync failed destinations
- Throws:
ApiRegistrationException- in case the synchronization fails
-
-