org.broadleafcommerce.core.web.api.wrapper
Class MediaWrapper
java.lang.Object
org.broadleafcommerce.core.web.api.wrapper.BaseWrapper
org.broadleafcommerce.core.web.api.wrapper.MediaWrapper
- All Implemented Interfaces:
- APIWrapper<Media>, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
public class MediaWrapper
- extends BaseWrapper
- implements APIWrapper<Media>
JAXB wrapper class for Media.
| Fields inherited from class org.broadleafcommerce.core.web.api.wrapper.BaseWrapper |
context |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allowOverrideUrl
protected boolean allowOverrideUrl
- This allows us to control whether the URL should / can be overwritten, for example by the static asset service.
id
protected Long id
title
protected String title
url
protected String url
altText
protected String altText
tags
protected String tags
MediaWrapper
public MediaWrapper()
wrap
public void wrap(Media media,
javax.servlet.http.HttpServletRequest request)
- Specified by:
wrap in interface APIWrapper<Media>
isAllowOverrideUrl
public boolean isAllowOverrideUrl()
setAllowOverrideUrl
public void setAllowOverrideUrl(boolean allow)
setUrl
public void setUrl(String url)
- Call this only if allowOverrideUrl is true, and only AFTER you call wrap.
- Parameters:
url -
Copyright © 2013. All Rights Reserved.