com.broadleafcommerce.core.rest.api.v2.wrapper.MediaWrapper@Deprecated public class MediaWrapper extends BaseWrapper implements APIWrapper<org.broadleafcommerce.common.media.domain.Media>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowOverrideUrl
Deprecated.
This allows us to control whether the URL should / can be overwritten, for example by the static asset service.
|
protected String |
altText
Deprecated.
|
protected Long |
id
Deprecated.
|
protected String |
tags
Deprecated.
|
protected String |
title
Deprecated.
|
protected String |
url
Deprecated.
|
context| Constructor and Description |
|---|
MediaWrapper()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAltText()
Deprecated.
|
Long |
getId()
Deprecated.
|
String |
getTags()
Deprecated.
|
String |
getTitle()
Deprecated.
|
String |
getUrl()
Deprecated.
|
boolean |
isAllowOverrideUrl()
Deprecated.
|
void |
setAllowOverrideUrl(boolean allow)
Deprecated.
|
void |
setAltText(String altText)
Deprecated.
|
void |
setId(Long id)
Deprecated.
|
void |
setTags(String tags)
Deprecated.
|
void |
setTitle(String title)
Deprecated.
|
void |
setUrl(String url)
Deprecated.
Call this only if allowOverrideUrl is true, and only AFTER you call wrap.
|
void |
wrapDetails(org.broadleafcommerce.common.media.domain.Media media,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
void |
wrapSummary(org.broadleafcommerce.common.media.domain.Media media,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
createElementWrappers, setApplicationContext, transferAdditionalFieldsFromWrapperprotected boolean allowOverrideUrl
protected Long id
protected String title
protected String url
protected String altText
protected String tags
public void wrapDetails(org.broadleafcommerce.common.media.domain.Media media,
javax.servlet.http.HttpServletRequest request)
wrapDetails in interface APIWrapper<org.broadleafcommerce.common.media.domain.Media>public void wrapSummary(org.broadleafcommerce.common.media.domain.Media media,
javax.servlet.http.HttpServletRequest request)
wrapSummary in interface APIWrapper<org.broadleafcommerce.common.media.domain.Media>public boolean isAllowOverrideUrl()
public void setAllowOverrideUrl(boolean allow)
public String getUrl()
public void setUrl(String url)
url - public Long getId()
public void setId(Long id)
id - the id to setpublic String getTitle()
public void setTitle(String title)
title - the title to setpublic String getAltText()
public void setAltText(String altText)
altText - the altText to setpublic String getTags()
public void setTags(String tags)
tags - the tags to setCopyright © 2020. All rights reserved.