Class DefaultPunchOutSessionPopulator
- java.lang.Object
-
- de.hybris.platform.b2b.punchout.populators.impl.DefaultPunchOutSessionPopulator
-
- All Implemented Interfaces:
Populator<CXML,PunchOutSession>
public class DefaultPunchOutSessionPopulator extends java.lang.Object implements Populator<CXML,PunchOutSession>
Populator fromCXMLtoPunchOutSession.
-
-
Constructor Summary
Constructors Constructor Description DefaultPunchOutSessionPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<Organization>convertCredentialsToOrganizations(java.util.List<Credential> credentials)protected java.lang.StringgetSharedSecret(Credential credential)voidpopulate(CXML source, PunchOutSession target)Populate the target instance with values from the source instance.protected voidpopulateBuyerCookie(PunchOutSession output, PunchOutSetupRequest request)protected voidpopulateOrganizationInfo(Header header, PunchOutSession punchoutSession)protected voidpopulateShippingInfo(PunchOutSession output, PunchOutSetupRequest request)protected PostalAddresstoPostalAddress(PostalAddress postalAddress)
-
-
-
Method Detail
-
populate
public void populate(CXML source, PunchOutSession target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<CXML,PunchOutSession>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
populateOrganizationInfo
protected void populateOrganizationInfo(Header header, PunchOutSession punchoutSession)
-
convertCredentialsToOrganizations
protected java.util.List<Organization> convertCredentialsToOrganizations(java.util.List<Credential> credentials)
-
getSharedSecret
protected java.lang.String getSharedSecret(Credential credential)
-
populateShippingInfo
protected void populateShippingInfo(PunchOutSession output, PunchOutSetupRequest request)
-
toPostalAddress
protected PostalAddress toPostalAddress(PostalAddress postalAddress)
-
populateBuyerCookie
protected void populateBuyerCookie(PunchOutSession output, PunchOutSetupRequest request)
-
-