com.liferay.portlet.amazonrankings.util
Class AmazonRankingsWebCacheItem
java.lang.Object
com.liferay.portlet.amazonrankings.util.AmazonRankingsWebCacheItem
- All Implemented Interfaces:
- com.liferay.portal.kernel.webcache.WebCacheItem, java.io.Serializable
public class AmazonRankingsWebCacheItem
- extends java.lang.Object
- implements com.liferay.portal.kernel.webcache.WebCacheItem
View Source
- Author:
- Brian Wing Shun Chan
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
convert(java.lang.String key)
|
protected com.amazonaws.a2s.model.Item |
getItem(com.amazonaws.a2s.model.ItemLookupResponse itemLookupResponse)
|
protected com.amazonaws.a2s.model.ItemLookupRequest |
getItemLookupRequest(java.lang.String isbn)
|
protected com.amazonaws.a2s.model.OfferListing |
getOfferListing(com.amazonaws.a2s.model.Item item)
|
protected double |
getPrice(com.amazonaws.a2s.model.Price price)
|
long |
getRefreshTime()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AmazonRankingsWebCacheItem
public AmazonRankingsWebCacheItem(java.lang.String isbn)
convert
public java.lang.Object convert(java.lang.String key)
throws com.liferay.portal.kernel.webcache.WebCacheException
- Specified by:
convert
in interface com.liferay.portal.kernel.webcache.WebCacheItem
- Throws:
com.liferay.portal.kernel.webcache.WebCacheException
getRefreshTime
public long getRefreshTime()
- Specified by:
getRefreshTime
in interface com.liferay.portal.kernel.webcache.WebCacheItem
getItem
protected com.amazonaws.a2s.model.Item getItem(com.amazonaws.a2s.model.ItemLookupResponse itemLookupResponse)
throws java.lang.Exception
- Throws:
java.lang.Exception
getItemLookupRequest
protected com.amazonaws.a2s.model.ItemLookupRequest getItemLookupRequest(java.lang.String isbn)
getOfferListing
protected com.amazonaws.a2s.model.OfferListing getOfferListing(com.amazonaws.a2s.model.Item item)
getPrice
protected double getPrice(com.amazonaws.a2s.model.Price price)