public class CommerceMediaResolverUtil
extends java.lang.Object
| Constructor and Description |
|---|
CommerceMediaResolverUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDefaultUrl(long groupId) |
static java.lang.String |
getDownloadUrl(long cpAttachmentFileEntryId) |
static java.lang.String |
getDownloadURL(long commerceAccountId,
long cpAttachmentFileEntryId) |
static byte[] |
getMediaBytes(javax.servlet.http.HttpServletRequest httpServletRequest) |
static java.lang.String |
getThumbnailUrl(long cpAttachmentFileEntryId) |
static java.lang.String |
getThumbnailURL(long commerceAccountId,
long cpAttachmentFileEntryId) |
static java.lang.String |
getUrl(long cpAttachmentFileEntryId) |
static java.lang.String |
getURL(long commerceAccountId,
long cpAttachmentFileEntryId) |
static void |
sendMediaBytes(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse) |
static void |
sendMediaBytes(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.String download) |
public static java.lang.String getDefaultUrl(long groupId)
public static java.lang.String getDownloadUrl(long cpAttachmentFileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getDownloadURL(long commerceAccountId,
long cpAttachmentFileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static byte[] getMediaBytes(javax.servlet.http.HttpServletRequest httpServletRequest)
throws java.io.IOException,
com.liferay.portal.kernel.exception.PortalException
java.io.IOExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getThumbnailUrl(long cpAttachmentFileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getThumbnailURL(long commerceAccountId,
long cpAttachmentFileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getUrl(long cpAttachmentFileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static java.lang.String getURL(long commerceAccountId,
long cpAttachmentFileEntryId)
throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalExceptionpublic static void sendMediaBytes(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws java.io.IOException,
com.liferay.portal.kernel.exception.PortalException
java.io.IOExceptioncom.liferay.portal.kernel.exception.PortalExceptionpublic static void sendMediaBytes(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
java.lang.String download)
throws java.io.IOException,
com.liferay.portal.kernel.exception.PortalException
java.io.IOExceptioncom.liferay.portal.kernel.exception.PortalException