Class DefaultApiRegistrationService
- java.lang.Object
-
- de.hybris.platform.apiregistryservices.services.impl.DefaultApiRegistrationService
-
- All Implemented Interfaces:
ApiRegistrationService
public class DefaultApiRegistrationService extends java.lang.Object implements ApiRegistrationService
Default implementation ofApiRegistrationService
-
-
Constructor Summary
Constructors Constructor Description DefaultApiRegistrationService()
-
Method Summary
-
-
-
Method Detail
-
registerExposedDestination
public void registerExposedDestination(ExposedDestinationModel destination) throws ApiRegistrationException
Description copied from interface:ApiRegistrationServiceRegister an ExposedDestination- Specified by:
registerExposedDestinationin interfaceApiRegistrationService- Parameters:
destination- ExposedDestination to be registered- Throws:
ApiRegistrationException- in case when failed to register Destination
-
unregisterExposedDestination
public void unregisterExposedDestination(ExposedDestinationModel destination) throws ApiRegistrationException
Description copied from interface:ApiRegistrationServiceUnregister an ExposedDestination- Specified by:
unregisterExposedDestinationin interfaceApiRegistrationService- Parameters:
destination- ExposedDestination to be unregistered- Throws:
ApiRegistrationException- in case when failed to unregister Destination
-
retrieveRegisteredExposedDestinations
public java.util.List<RegisteredDestinationData> retrieveRegisteredExposedDestinations(DestinationChannel destinationChannel, DestinationTargetModel destinationTarget) throws ApiRegistrationException
Description copied from interface:ApiRegistrationServiceRetrieves all registered exposed destinations from target system- Specified by:
retrieveRegisteredExposedDestinationsin interfaceApiRegistrationService- Parameters:
destinationChannel- destination channel of the target systemdestinationTarget- destination target- Returns:
- list of destination data
- Throws:
ApiRegistrationException- in case when retrieving destinations fails
-
unregisterExposedDestinationByTargetId
public void unregisterExposedDestinationByTargetId(java.lang.String targetId, DestinationTargetModel destinationTarget) throws ApiRegistrationExceptionDescription copied from interface:ApiRegistrationServiceUnregister exposed destination from target system- Specified by:
unregisterExposedDestinationByTargetIdin interfaceApiRegistrationService- Parameters:
targetId- target id of the registered destinationdestinationTarget- destination target- Throws:
ApiRegistrationException- in case when failed to unregister Destination
-
checkIfChannelSupported
protected void checkIfChannelSupported(DestinationChannel channel) throws ApiRegistrationException
- Throws:
ApiRegistrationException
-
getApiRegistrationStrategyMap
protected java.util.Map<DestinationChannel,ApiRegistrationStrategy> getApiRegistrationStrategyMap()
-
setApiRegistrationStrategyMap
public void setApiRegistrationStrategyMap(java.util.Map<DestinationChannel,ApiRegistrationStrategy> apiRegistrationStrategyMap)
-
getDestinationService
protected DestinationService<AbstractDestinationModel> getDestinationService()
-
setDestinationService
public void setDestinationService(DestinationService destinationService)
-
-