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 |
|---|---|
boolean |
isAllowOverrideUrl() |
void |
setAllowOverrideUrl(boolean allow) |
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) |
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 void setUrl(String url)
url - Copyright © 2013. All Rights Reserved.