public class MediaWrapper extends BaseWrapper implements APIWrapper<Media>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowOverrideUrl
This allows us to control whether the URL should / can be overwritten, for example by the static asset service.
|
protected String |
altText |
protected Long |
id |
protected String |
tags |
protected String |
title |
protected String |
url |
context| Constructor and Description |
|---|
MediaWrapper() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAltText() |
Long |
getId() |
String |
getTags() |
String |
getTitle() |
String |
getUrl() |
boolean |
isAllowOverrideUrl() |
void |
setAllowOverrideUrl(boolean allow) |
void |
setAltText(String altText) |
void |
setId(Long id) |
void |
setTags(String tags) |
void |
setTitle(String title) |
void |
setUrl(String url)
Call this only if allowOverrideUrl is true, and only AFTER you call wrap.
|
void |
wrapDetails(Media media,
javax.servlet.http.HttpServletRequest request) |
void |
wrapSummary(Media media,
javax.servlet.http.HttpServletRequest request) |
createElementWrappers, setApplicationContextprotected boolean allowOverrideUrl
protected Long id
protected String title
protected String url
protected String altText
protected String tags
public void wrapDetails(Media media, javax.servlet.http.HttpServletRequest request)
wrapDetails in interface APIWrapper<Media>public void wrapSummary(Media media, javax.servlet.http.HttpServletRequest request)
wrapSummary in interface APIWrapper<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 © 2015. All Rights Reserved.