Class AlbumEntity
- java.lang.Object
-
- org.silverpeas.components.gallery.web.AlbumEntity
-
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.rs.WebEntity
public class AlbumEntity extends Object implements org.silverpeas.core.web.rs.WebEntity
- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAlbumEntity()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMedia(AbstractMediaEntity mediaEntity)Adding a media the the album.static AlbumEntitycreateFrom(AlbumDetail album, String language)Creates a new album entity from the specified album.protected StringgetDescription()protected StringgetId()protected Map<String,AbstractMediaEntity>getMediaList()protected URIgetParentURI()protected StringgetTitle()URIgetURI()protected voidsetDescription(String description)protected voidsetId(String id)protected voidsetTitle(String title)AlbumEntitywithParentURI(URI parentURI)Sets a parentURI to this entity.AlbumEntitywithURI(URI uri)Sets a URI to this entity.
-
-
-
Method Detail
-
createFrom
public static AlbumEntity createFrom(AlbumDetail album, String language)
Creates a new album entity from the specified album.- Parameters:
album-language-- Returns:
- the entity representing the specified album.
-
withURI
public AlbumEntity withURI(URI uri)
Sets a URI to this entity. With this URI, it can then be accessed through the Web.- Parameters:
uri- the web entity URI.- Returns:
- itself.
-
withParentURI
public AlbumEntity withParentURI(URI parentURI)
Sets a parentURI to this entity.- Parameters:
parentURI- the parent web entity URI.- Returns:
- itself.
-
getURI
public URI getURI()
- Specified by:
getURIin interfaceorg.silverpeas.core.web.rs.WebEntity
-
getParentURI
protected URI getParentURI()
-
setId
protected void setId(String id)
-
getId
protected String getId()
-
setTitle
protected void setTitle(String title)
-
getTitle
protected String getTitle()
-
setDescription
protected void setDescription(String description)
-
getDescription
protected String getDescription()
-
getMediaList
protected Map<String,AbstractMediaEntity> getMediaList()
-
addMedia
public void addMedia(AbstractMediaEntity mediaEntity)
Adding a media the the album.- Parameters:
mediaEntity-
-
-