@PreAuthorize ("hasAnyRole('ROLE_DOWNLOAD','ROLE_SEARCH')")
@Transactional (readOnly=true, propagation=Propagation.REQUIRED)
public InputStream getProductThumbnail (Long id)
{
// TODO remove method cause not used
Product product = getProduct (id);
if (!product.getThumbnailFlag ()) return null;
try
{
return new FileInputStream (product.getThumbnailPath ());
}
catch (Exception e)
{
LOGGER.warn ("Cannot retrieve Thumbnail from product id #" + id,e);
}
return null;
}
ProductService.java 文件源码
java
阅读 29
收藏 0
点赞 0
评论 0
项目:dhus-core
作者:
评论列表
文章目录