Class AlbumEntity
java.lang.Object
org.silverpeas.components.gallery.web.AlbumEntity
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.rs.WebEntity
- Author:
- Yohann Chastagnier
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMedia(AbstractMediaEntity<?> mediaEntity) Adding a media in the album.static AlbumEntitycreateFrom(AlbumDetail album, String language) Creates a new album entity from the specified album.protected Stringprotected StringgetId()protected Map<String,AbstractMediaEntity<?>> protected URIprotected StringgetTitle()getURI()protected voidsetDescription(String description) protected voidprotected voidwithParentURI(URI parentURI) Sets a parentURI to this entity.Sets a URI to this entity.
-
Constructor Details
-
AlbumEntity
protected AlbumEntity()
-
-
Method Details
-
createFrom
Creates a new album entity from the specified album.- Parameters:
album- the album from which the entity is constructed.language- the language in which it is created- Returns:
- the entity representing the specified album.
-
withURI
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
Sets a parentURI to this entity.- Parameters:
parentURI- the parent web entity URI.- Returns:
- itself.
-
getURI
- Specified by:
getURIin interfaceorg.silverpeas.core.web.rs.WebEntity
-
getParentURI
-
setId
-
getId
-
setTitle
-
getTitle
-
setDescription
-
getDescription
-
getMediaList
-
addMedia
Adding a media in the album.- Parameters:
mediaEntity- the media to add
-