Class DefaultApiRegistrationStrategy
java.lang.Object
de.hybris.platform.apiregistryservices.strategies.impl.DefaultApiRegistrationStrategy
- All Implemented Interfaces:
ApiRegistrationStrategy
Default implementation of @
ApiRegistrationStrategy-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterExposedDestination(ExposedDestinationModel destination) Send api specification to register exposed destinationretrieveRegisteredExposedDestinations(DestinationTargetModel destinationTarget) Retrieves all registered exposed destination from target systemvoidunregisterExposedDestination(ExposedDestinationModel destination) Send api specification to unregister exposed destinationvoidunregisterExposedDestinationByTargetId(String targetId, String destinationTargetId) Unregister exposed destination from target system
-
Constructor Details
-
DefaultApiRegistrationStrategy
public DefaultApiRegistrationStrategy()
-
-
Method Details
-
registerExposedDestination
public void registerExposedDestination(ExposedDestinationModel destination) throws ApiRegistrationException Description copied from interface:ApiRegistrationStrategySend api specification to register exposed destination- Specified by:
registerExposedDestinationin interfaceApiRegistrationStrategy- Throws:
ApiRegistrationException
-
unregisterExposedDestination
public void unregisterExposedDestination(ExposedDestinationModel destination) throws ApiRegistrationException Description copied from interface:ApiRegistrationStrategySend api specification to unregister exposed destination- Specified by:
unregisterExposedDestinationin interfaceApiRegistrationStrategy- Throws:
ApiRegistrationException
-
retrieveRegisteredExposedDestinations
public List<RegisteredDestinationData> retrieveRegisteredExposedDestinations(DestinationTargetModel destinationTarget) throws ApiRegistrationException Description copied from interface:ApiRegistrationStrategyRetrieves all registered exposed destination from target system- Specified by:
retrieveRegisteredExposedDestinationsin interfaceApiRegistrationStrategy- Returns:
- list of destination data
- Throws:
ApiRegistrationException- in case when retrieving destinations fails
-
unregisterExposedDestinationByTargetId
public void unregisterExposedDestinationByTargetId(String targetId, String destinationTargetId) throws ApiRegistrationException Description copied from interface:ApiRegistrationStrategyUnregister exposed destination from target system- Specified by:
unregisterExposedDestinationByTargetIdin interfaceApiRegistrationStrategy- Parameters:
targetId- target id of the registered destinationdestinationTargetId- id of the destination target- Throws:
ApiRegistrationException
-