Package org.silverpeas.components.gallery.model

## Class AlbumMedia

- java.lang.Object
- - org.silverpeas.components.gallery.model.AlbumMedia

- All Implemented Interfaces:
    `Serializable`

      public class AlbumMedia
      extends Object
      implements Serializable

  Represents a couple of an album and a media.

  It is useful when manipulating data that have just been created, updated or deleted.

  Author:
    silveryocha
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AlbumMedia​(String albumId, Media media)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `AlbumDetail` | `getAlbum()` | Gets the `AlbumDetail` which has been concerned by the manipulation of the `Media`.
    `String` | `getAlbumId()` | Gets the identifier of the album which has been concerned by the manipulation of the `Media`.
    `Media` | `getMedia()` | The media.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AlbumMedia

          public AlbumMedia​(String albumId,
                            Media media)

  - ### Method Detail

    - #### getAlbumId

          public String getAlbumId()

      Gets the identifier of the album which has been concerned by the manipulation of the `Media`.
      Returns:
        a string.

    - #### getAlbum

          public AlbumDetail getAlbum()

      Gets the `AlbumDetail` which has been concerned by the manipulation of the `Media`.
      Returns:
        the cached `AlbumDetail`.

    - #### getMedia

          public Media getMedia()

      The media.
      Returns:
        a `Media`.