Class PersistenceConfigurationAbstractOrderEntryLinkStrategyImpl
java.lang.Object
de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.SessionServiceAware
de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.PersistenceConfigurationAbstractOrderEntryLinkStrategyImpl
- All Implemented Interfaces:
ConfigurationAbstractOrderEntryLinkStrategy
public class PersistenceConfigurationAbstractOrderEntryLinkStrategyImpl
extends SessionServiceAware
implements ConfigurationAbstractOrderEntryLinkStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAbstractOrderEntryForConfigId(String configId) Retrieves abstract order entry belonging to a specific config IDgetCartEntryForConfigId(String configId) Retrieves cart entry key belonging to a specific config IDgetCartEntryForDraftConfigId(String configId) Retrieves cart entry key belonging to a specific darfted config IDgetConfigIdForCartEntry(String cartEntryKey) Retrieves config identifier from the session for a given cart entry key.protected ConfigurationReleaseProductLinkStrategygetDraftConfigIdForCartEntry(String cartEntryKey) Retrieves the drafted config identifier from the session for a given cart entry key.protected ModelServiceprotected ProductConfigurationPersistenceServiceprotected ProductConfigurationModelbooleanisDocumentRelated(String configId) Checks whether the given configuration is realted to any documentprotected AbstractOrderEntryModelreleaseCartEntryProductRelation(String cartEntryId) voidremoveConfigIdForCartEntry(String cartEntryKey) Removes config ID for cart entryvoidremoveDraftConfigIdForCartEntry(String cartEntryKey) Removes the drafted config ID for a cart entryvoidremoveSessionArtifactsForCartEntry(String cartEntryId) Removes all session artifacts belonging to a cart entryvoidsetConfigIdForCartEntry(String cartEntryKey, String configId) Stores configuration ID for a cart entry key into the sessionvoidsetConfigurationReleaseProductLinkStrategy(ConfigurationReleaseProductLinkStrategy configurationReleaseProductLinkStrategy) voidsetDraftConfigIdForCartEntry(String cartEntryKey, String configId) Stores the draft configuration ID for a cart entry key into the sessionvoidsetModelService(ModelService modelService) voidsetPersistenceService(ProductConfigurationPersistenceService persistenceService) Methods inherited from class de.hybris.platform.sap.productconfig.services.strategies.lifecycle.impl.SessionServiceAware
getSessionAccessService, setSessionAccessService
-
Constructor Details
-
PersistenceConfigurationAbstractOrderEntryLinkStrategyImpl
public PersistenceConfigurationAbstractOrderEntryLinkStrategyImpl()
-
-
Method Details
-
setConfigIdForCartEntry
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyStores configuration ID for a cart entry key into the session- Specified by:
setConfigIdForCartEntryin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
cartEntryKey- String representation of the cart entry primary keyconfigId- ID of a runtime configuration object
-
setDraftConfigIdForCartEntry
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyStores the draft configuration ID for a cart entry key into the session- Specified by:
setDraftConfigIdForCartEntryin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
cartEntryKey- String representation of the cart entry primary keyconfigId- ID of a runtime configuration object
-
getConfigIdForCartEntry
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyRetrieves config identifier from the session for a given cart entry key. In case a draft configuration exists, this is returned with priority.- Specified by:
getConfigIdForCartEntryin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
cartEntryKey- String representation of the cart entry primary key- Returns:
- ID of a runtime configuration object
-
getDraftConfigIdForCartEntry
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyRetrieves the drafted config identifier from the session for a given cart entry key. In case a draft configuration exists, this is returned with priority.- Specified by:
getDraftConfigIdForCartEntryin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
cartEntryKey- String representation of the cart entry primary key- Returns:
- ID of a runtime configuration object
-
getCartEntryForConfigId
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyRetrieves cart entry key belonging to a specific config ID- Specified by:
getCartEntryForConfigIdin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
configId- id of the configuration- Returns:
- String representation of the cart entry primary key
-
getAbstractOrderEntryForConfigId
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyRetrieves abstract order entry belonging to a specific config ID- Specified by:
getAbstractOrderEntryForConfigIdin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
configId- id of the configuration- Returns:
- Abstract order entry model
-
getCartEntryForDraftConfigId
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyRetrieves cart entry key belonging to a specific darfted config ID- Specified by:
getCartEntryForDraftConfigIdin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
configId- id of the configuration maintained as draft- Returns:
- String representation of the cart entry primary key
-
removeConfigIdForCartEntry
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyRemoves config ID for cart entry- Specified by:
removeConfigIdForCartEntryin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
cartEntryKey- cart entry key
-
removeDraftConfigIdForCartEntry
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyRemoves the drafted config ID for a cart entry- Specified by:
removeDraftConfigIdForCartEntryin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
cartEntryKey- cart entry key
-
removeSessionArtifactsForCartEntry
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyRemoves all session artifacts belonging to a cart entry- Specified by:
removeSessionArtifactsForCartEntryin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
cartEntryId- cart entry key
-
releaseCartEntryProductRelation
-
getModelService
-
setModelService
-
getPersistenceService
-
setPersistenceService
-
getProductConfiguration
-
isDocumentRelated
Description copied from interface:ConfigurationAbstractOrderEntryLinkStrategyChecks whether the given configuration is realted to any document- Specified by:
isDocumentRelatedin interfaceConfigurationAbstractOrderEntryLinkStrategy- Parameters:
configId- configId- Returns:
- true if the config is related to any document
-
setConfigurationReleaseProductLinkStrategy
public void setConfigurationReleaseProductLinkStrategy(ConfigurationReleaseProductLinkStrategy configurationReleaseProductLinkStrategy) -
getConfigurationReleaseProductLinkStrategy
-