Class WebserviceSpecificationPopulator
java.lang.Object
de.hybris.platform.kymaintegrationservices.populators.WebserviceSpecificationPopulator
- All Implemented Interfaces:
Populator<ExposedDestinationModel,ServiceRegistrationData>
public class WebserviceSpecificationPopulator
extends Object
implements Populator<ExposedDestinationModel,ServiceRegistrationData>
Kyma specific implementation of Populator that populates Webservice specification DTO.
ServiceRegistrationData-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ApiSpecificationDataprotected BasicAuthDataextractBasic(BasicCredentialModel credential) protected CredentialsDataextractCredentials(AbstractCredentialModel credential) protected OAuthDataextractOAuth(ExposedOAuthCredentialModel credential) protected com.fasterxml.jackson.databind.ObjectMappervoidpopulate(ExposedDestinationModel source, ServiceRegistrationData target) Populate the target instance with values from the source instance.voidsetJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper jacksonObjectMapper)
-
Field Details
-
METADATA_PATH
- See Also:
-
ODATA_TYPE
- See Also:
-
-
Constructor Details
-
WebserviceSpecificationPopulator
public WebserviceSpecificationPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ExposedDestinationModel,ServiceRegistrationData> - Parameters:
source- the source objecttarget- the target to fill
-
extractApiSpecification
- Parameters:
source- ApiConfiguration- Returns:
- ApiSpecification (url, api documentation, credentials)
-
extractCredentials
- Parameters:
credential- AbstractCredentialModel- Returns:
- CredentialsData credentials
-
extractBasic
- Parameters:
credential- BasicCredentialModel- Returns:
- BasicAuthData credentials
-
extractOAuth
- Parameters:
credential- ExposedOAuthCredentialModel- Returns:
- OAuth credentials
-
getJacksonObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper getJacksonObjectMapper() -
setJacksonObjectMapper
public void setJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper jacksonObjectMapper)
-