Class DefaultNDCOfferFacade
java.lang.Object
de.hybris.platform.ndc182shoppingfacades.facades.impl.DefaultNDCOfferFacade
- All Implemented Interfaces:
NDCOfferFacade
Concrete implementation of
NDCOfferFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevictOffer(String offerID) Evicts offer if error occursprotected org.springframework.cache.CacheManagerGets cache manager.protected StringGets cache name.getOfferById(String offerId) The method performs a lookup retrieving information about the offervoidsetCacheManager(org.springframework.cache.CacheManager cacheManager) Sets cache manager.voidsetCacheName(String cacheName) Sets cache name.voidstoreOffer(NDCOfferData offer) Persists theNDCOfferData
-
Constructor Details
-
DefaultNDCOfferFacade
public DefaultNDCOfferFacade()
-
-
Method Details
-
getOfferById
Description copied from interface:NDCOfferFacadeThe method performs a lookup retrieving information about the offer- Specified by:
getOfferByIdin interfaceNDCOfferFacade- Parameters:
offerId- the offer id- Returns:
- the NDCOfferData
-
storeOffer
Description copied from interface:NDCOfferFacadePersists theNDCOfferData- Specified by:
storeOfferin interfaceNDCOfferFacade- Parameters:
offer- the offer- Throws:
NDCCacheException
-
evictOffer
Description copied from interface:NDCOfferFacadeEvicts offer if error occurs- Specified by:
evictOfferin interfaceNDCOfferFacade- Parameters:
offerID- the offer id- Throws:
NDCCacheException
-
getCacheManager
protected org.springframework.cache.CacheManager getCacheManager()Gets cache manager.- Returns:
- the cache manager
-
setCacheManager
public void setCacheManager(org.springframework.cache.CacheManager cacheManager) Sets cache manager.- Parameters:
cacheManager- the cache manager
-
getCacheName
Gets cache name.- Returns:
- the cache name
-
setCacheName
Sets cache name.- Parameters:
cacheName- the cache name
-