| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.silverpeas.gallery.web.AbstractMediaEntity<T>
public abstract class AbstractMediaEntity<T extends AbstractMediaEntity<T>>
Web entity abstraction which provides common media informations of the entity
| Constructor Summary | |
|---|---|
protected  | 
AbstractMediaEntity()
 | 
protected  | 
AbstractMediaEntity(Media media)
Instantiating a new web entity from the corresponding data  | 
| Method Summary | |
|---|---|
 boolean | 
equals(Object obj)
 | 
protected  String | 
getAuthor()
 | 
protected  String | 
getDescription()
 | 
 int | 
getHeight()
 | 
protected  String | 
getId()
 | 
protected  URI | 
getParentURI()
 | 
 URI | 
getThumbUrl()
 | 
protected  String | 
getTitle()
 | 
 MediaType | 
getType()
 | 
 URI | 
getURI()
 | 
 URI | 
getUrl()
 | 
 int | 
getWidth()
 | 
 int | 
hashCode()
 | 
protected  void | 
setAuthor(String author)
 | 
protected  void | 
setDescription(String description)
 | 
protected  void | 
setId(String id)
 | 
protected  void | 
setTitle(String title)
 | 
 void | 
setType(MediaType type)
 | 
 T | 
withHeight(int height)
 | 
 T | 
withOriginalUrl(URI originalUrl)
 | 
 T | 
withParentURI(URI parentURI)
Sets a parentURI to this entity.  | 
 T | 
withThumbUrl(URI thumbUrl)
 | 
 T | 
withURI(URI uri)
Sets a URI to this entity.  | 
 T | 
withWidth(int width)
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected AbstractMediaEntity(Media media)
media - the mediaprotected AbstractMediaEntity()
| Method Detail | 
|---|
public T withURI(URI uri)
uri - the web entity URI.
public T withParentURI(URI parentURI)
parentURI - the parent web entity URI.
public T withOriginalUrl(URI originalUrl)
public T withThumbUrl(URI thumbUrl)
public T withWidth(int width)
public T withHeight(int height)
public URI getURI()
getURI in interface com.silverpeas.web.Exposableprotected URI getParentURI()
public void setType(MediaType type)
public MediaType getType()
protected void setId(String id)
protected String getId()
protected void setTitle(String title)
protected String getTitle()
protected void setDescription(String description)
protected String getDescription()
protected void setAuthor(String author)
protected String getAuthor()
public URI getThumbUrl()
public URI getUrl()
public int getHeight()
public int getWidth()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||