|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.core.AbstractDateStamped
org.davesag.generica.core.AbstractContent
org.davesag.generica.core.AbstractExtensibleContent
org.davesag.generica.core.Media
The Media bean represents some very basic information about a
piece of media. Note that we don't keen the actual binary data in this
object.
| Field Summary | |
protected String |
theFilePath
The media's file path. |
protected String |
theLinkBackURL
The media's linkback url. |
protected MediaType |
theMediaType
The medias's type. |
protected String |
theSourceURL
The media's source url. |
protected String |
theTitle
The media's title. |
| Fields inherited from class org.davesag.generica.core.AbstractExtensibleContent |
theMetaData |
| Fields inherited from class org.davesag.generica.core.AbstractContent |
theCountryCode, theLanguageCode |
| Fields inherited from class org.davesag.generica.core.AbstractDateStamped |
theCreated, theId, theLastModified |
| Constructor Summary | |
Media()
Null constructor required by hibernate. |
|
Media(String title,
String sourceurl,
String linkbackurl,
String filepath)
Constructor takes a title and source url and populates a simple media object. |
|
| Method Summary | |
boolean |
equals(Object o)
Tests if the supplied object is equal to this Media, ie do they have the same Id? |
String |
getFilePath()
get the path on disk of the actual media file. |
String |
getLinkBackURL()
get the linkback url, ie the url that any links back should point to. |
MediaType |
getMediaType()
get the type of media. |
String |
getSourceURL()
get the source url of this media, ie where the media file actually is. |
String |
getTitle()
the title of this media |
int |
hashcode()
Objects must override the hashcode if they override the equals method. |
void |
setFilePath(String filepath)
set the file path. |
void |
setLinkBackURL(String linkback)
set the linkback url. |
void |
setMediaType(MediaType mediatype)
set the media type. |
void |
setSourceURL(String sourceurl)
set the source url. |
void |
setTitle(String title)
set the title |
String |
toString()
a simple string representation of this media. |
| Methods inherited from class org.davesag.generica.core.AbstractExtensibleContent |
addMetaData, getMetaData, getMetaData, removeMetaData, setMetaData |
| Methods inherited from class org.davesag.generica.core.AbstractContent |
getCountryCode, getLanguageCode, getLocale, setCountryCode, setLanguageCode, setLocale |
| Methods inherited from class org.davesag.generica.core.AbstractDateStamped |
getCreated, getId, getLastModified, setCreated, setId, setLastModified, setTemplateId |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.davesag.generica.core.DateStamped |
getCreated, getLastModified, setCreated, setLastModified |
| Field Detail |
protected String theTitle
protected String theSourceURL
protected String theLinkBackURL
protected String theFilePath
protected MediaType theMediaType
| Constructor Detail |
public Media()
public Media(String title,
String sourceurl,
String linkbackurl,
String filepath)
title - The title of the Media.sourceurl - The url of the actual piece of media.linkbackurl - The optional url of the web page containing the
media.filepath - The path to a copy of the actual media file if
sotred locally.| Method Detail |
public String getTitle()
public void setTitle(String title)
title - the title.public String getSourceURL()
public void setSourceURL(String sourceurl)
sourceurl - the source url.public String getLinkBackURL()
public void setLinkBackURL(String linkback)
linkback - the linkback url.public String getFilePath()
public void setFilePath(String filepath)
filepath - the relative file path.public MediaType getMediaType()
public void setMediaType(MediaType mediatype)
mediatype - the relative media type.public boolean equals(Object o)
equals in class AbstractExtensibleContento - The object to test against this Media. Must also be a Media
to make sense.
public int hashcode()
hashcode in class AbstractContentMerchant.public String toString()
toString in class AbstractContent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||