Class DefaultCachingStrategy
- java.lang.Object
-
- de.hybris.platform.promotions.jalo.DefaultCachingStrategy
-
- All Implemented Interfaces:
CachingStrategy
public class DefaultCachingStrategy extends java.lang.Object implements CachingStrategy
Created with IntelliJ IDEA. User: gary Date: 24/06/2013 Time: 12:54 To change this template use File | Settings | File Templates.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDefaultCachingStrategy.SessionCacheContainer
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSESSION_CACHE_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description DefaultCachingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PromotionResult>get(java.lang.String code)protected java.util.Map<java.lang.String,java.util.List<PromotionResult>>getCache()protected SessionServicegetSessionService()voidput(java.lang.String code, java.util.List<PromotionResult> results)voidremove(java.lang.String code)voidsetSessionService(SessionService sessionService)
-
-
-
Field Detail
-
SESSION_CACHE_ATTRIBUTE
public static final java.lang.String SESSION_CACHE_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
put
public void put(java.lang.String code, java.util.List<PromotionResult> results)- Specified by:
putin interfaceCachingStrategy
-
get
public java.util.List<PromotionResult> get(java.lang.String code)
- Specified by:
getin interfaceCachingStrategy
-
remove
public void remove(java.lang.String code)
- Specified by:
removein interfaceCachingStrategy
-
getCache
protected java.util.Map<java.lang.String,java.util.List<PromotionResult>> getCache()
-
getSessionService
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
-