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:ApiRegistrationService
Register an ExposedDestination- Specified by:
registerExposedDestination
in 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:ApiRegistrationService
Unregister an ExposedDestination- Specified by:
unregisterExposedDestination
in 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:ApiRegistrationService
Retrieves all registered exposed destinations from target system- Specified by:
retrieveRegisteredExposedDestinations
in 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 ApiRegistrationException
Description copied from interface:ApiRegistrationService
Unregister exposed destination from target system- Specified by:
unregisterExposedDestinationByTargetId
in 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)
-
-