Class DefaultConfigurationAssignmentResolverStrategyImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.services.ssc.strategies.lifecycle.impl.DefaultConfigurationAssignmentResolverStrategyImpl
-
- All Implemented Interfaces:
ConfigurationAssignmentResolverStrategy
public class DefaultConfigurationAssignmentResolverStrategyImpl extends java.lang.Object implements ConfigurationAssignmentResolverStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringQUERY_ATTRIBUTE_CART_ENTRY_KEYprotected static java.lang.StringQUERY_GET_ENTRY_BY_PK
-
Constructor Summary
Constructors Constructor Description DefaultConfigurationAssignmentResolverStrategyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlexibleSearchServicegetFlexibleSearchService()protected SessionAccessServicegetSessionAccessService()java.util.DateretrieveCreationDateForRelatedEntry(java.lang.String configId)Returns the creation date of the associated AbstractOrderEntryprotected AbstractOrderEntryModelretrieveOrderEntry(java.lang.String configId)ProductConfigurationRelatedObjectTyperetrieveRelatedObjectType(AbstractOrderModel order)Returns the object type of the given orderProductConfigurationRelatedObjectTyperetrieveRelatedObjectType(java.lang.String configId)Returns the object type to which the product configuration assigned.java.lang.StringretrieveRelatedProductCode(java.lang.String configId)Returns the related Product codevoidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetSessionAccessService(SessionAccessService sessionAccessService)
-
-
-
Field Detail
-
QUERY_ATTRIBUTE_CART_ENTRY_KEY
protected static final java.lang.String QUERY_ATTRIBUTE_CART_ENTRY_KEY
- See Also:
- Constant Field Values
-
QUERY_GET_ENTRY_BY_PK
protected static final java.lang.String QUERY_GET_ENTRY_BY_PK
- See Also:
- Constant Field Values
-
-
Method Detail
-
retrieveRelatedObjectType
public ProductConfigurationRelatedObjectType retrieveRelatedObjectType(java.lang.String configId)
Description copied from interface:ConfigurationAssignmentResolverStrategyReturns the object type to which the product configuration assigned.- Specified by:
retrieveRelatedObjectTypein interfaceConfigurationAssignmentResolverStrategy- Parameters:
configId- Configuration id- Returns:
- the object type to which the product configuration assigned
-
retrieveCreationDateForRelatedEntry
public java.util.Date retrieveCreationDateForRelatedEntry(java.lang.String configId)
Description copied from interface:ConfigurationAssignmentResolverStrategyReturns the creation date of the associated AbstractOrderEntry- Specified by:
retrieveCreationDateForRelatedEntryin interfaceConfigurationAssignmentResolverStrategy- Parameters:
configId- configuration id- Returns:
- creation date if entry exists, otherwise null
-
retrieveRelatedObjectType
public ProductConfigurationRelatedObjectType retrieveRelatedObjectType(AbstractOrderModel order)
Description copied from interface:ConfigurationAssignmentResolverStrategyReturns the object type of the given order- Specified by:
retrieveRelatedObjectTypein interfaceConfigurationAssignmentResolverStrategy- Parameters:
order- order object- Returns:
- the object type
-
retrieveRelatedProductCode
public java.lang.String retrieveRelatedProductCode(java.lang.String configId)
Description copied from interface:ConfigurationAssignmentResolverStrategyReturns the related Product code- Specified by:
retrieveRelatedProductCodein interfaceConfigurationAssignmentResolverStrategy- Parameters:
configId- configuration id- Returns:
- the related Product code, if available
-
retrieveOrderEntry
protected AbstractOrderEntryModel retrieveOrderEntry(java.lang.String configId)
-
getSessionAccessService
protected SessionAccessService getSessionAccessService()
-
setSessionAccessService
public void setSessionAccessService(SessionAccessService sessionAccessService)
-
getFlexibleSearchService
protected FlexibleSearchService getFlexibleSearchService()
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-