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 java.lang.String |
altText |
protected java.lang.Long |
id |
protected java.lang.String |
tags |
protected java.lang.String |
title |
protected java.lang.String |
url |
context| Constructor and Description |
|---|
MediaWrapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowOverrideUrl() |
void |
setAllowOverrideUrl(boolean allow) |
void |
setUrl(java.lang.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 java.lang.Long id
protected java.lang.String title
protected java.lang.String url
protected java.lang.String altText
protected java.lang.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(java.lang.String url)
url - Copyright © 2018. All Rights Reserved.