Class DefaultSapCpqQuoteService
- java.lang.Object
-
- com.sap.hybris.sapcpqquoteintegration.service.impl.DefaultSapCpqQuoteService
-
- All Implemented Interfaces:
SapCpqQuoteService
public class DefaultSapCpqQuoteService extends java.lang.Object implements SapCpqQuoteService
Default Implementation of SapCpqQuoteService
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringORDER_BY_VERSION_DESCprotected static java.lang.StringQUOTES_QUERYprotected static java.lang.StringSALES_AREA_QUERYprotected static java.lang.StringSALES_AREA_WHERE_CLAUSEprotected static java.lang.StringWHERE_CODE_CLAUSE
-
Constructor Summary
Constructors Constructor Description DefaultSapCpqQuoteService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuoteModelgetCurrentQuoteForExternalQuoteId(java.lang.String externalQuoteId)Method that fetches quote based on externalQuoteIdde.hybris.platform.servicelayer.search.FlexibleSearchServicegetFlexibleSearchService()java.lang.StringgetSiteAndStoreFromSalesArea(java.lang.String salesOrganization, java.lang.String distributionChannel, java.lang.String division)Method that fetches base storevoidsetFlexibleSearchService(de.hybris.platform.servicelayer.search.FlexibleSearchService flexibleSearchService)
-
-
-
Field Detail
-
SALES_AREA_QUERY
protected static final java.lang.String SALES_AREA_QUERY
- See Also:
- Constant Field Values
-
SALES_AREA_WHERE_CLAUSE
protected static final java.lang.String SALES_AREA_WHERE_CLAUSE
- See Also:
- Constant Field Values
-
QUOTES_QUERY
protected static final java.lang.String QUOTES_QUERY
- See Also:
- Constant Field Values
-
WHERE_CODE_CLAUSE
protected static final java.lang.String WHERE_CODE_CLAUSE
- See Also:
- Constant Field Values
-
ORDER_BY_VERSION_DESC
protected static final java.lang.String ORDER_BY_VERSION_DESC
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCurrentQuoteForExternalQuoteId
public QuoteModel getCurrentQuoteForExternalQuoteId(java.lang.String externalQuoteId)
Description copied from interface:SapCpqQuoteServiceMethod that fetches quote based on externalQuoteId- Specified by:
getCurrentQuoteForExternalQuoteIdin interfaceSapCpqQuoteService- Parameters:
externalQuoteId- Quote External Id- Returns:
- QuoteModel the Quote Model
-
getSiteAndStoreFromSalesArea
public java.lang.String getSiteAndStoreFromSalesArea(java.lang.String salesOrganization, java.lang.String distributionChannel, java.lang.String division)Description copied from interface:SapCpqQuoteServiceMethod that fetches base store- Specified by:
getSiteAndStoreFromSalesAreain interfaceSapCpqQuoteService- Parameters:
salesOrganization- Sales OrganizationdistributionChannel- Distribution Channeldivision- Division- Returns:
- Base store name
-
setFlexibleSearchService
public void setFlexibleSearchService(de.hybris.platform.servicelayer.search.FlexibleSearchService flexibleSearchService)
-
getFlexibleSearchService
public de.hybris.platform.servicelayer.search.FlexibleSearchService getFlexibleSearchService()
-
-