# Uses of Class
org.silverpeas.components.gallery.model.Media

Packages that use Media
Package
Description
org.silverpeas.components.gallery.constant
org.silverpeas.components.gallery.dao
org.silverpeas.components.gallery.delegate
org.silverpeas.components.gallery.model
org.silverpeas.components.gallery.notification.user
org.silverpeas.components.gallery.process
org.silverpeas.components.gallery.process.media
org.silverpeas.components.gallery.service

- ## Uses of Media in org.silverpeas.components.gallery.constant

  Methods in org.silverpeas.components.gallery.constant with type parameters of type Media
  Modifier and Type
  Method
  Description
  `<M extends Media>
  M`
  MediaType.`newInstance()`
  Methods in org.silverpeas.components.gallery.constant with parameters of type Media
  Modifier and Type
  Method
  Description
  `static URI`
  GalleryResourceURIs.`buildMediaContentURI(Media media, MediaResolution mediaResolution)`
  Centralized the build of a media content URI according to the specified resolution.
  `static URI`
  GalleryResourceURIs.`buildMediaEmbedURI(Media media, MediaResolution mediaResolution)`
  Centralized the build of a media embed URI according to the specified resolution.
  `static URI`
  GalleryResourceURIs.`buildMediaInAlbumURI(AlbumDetail album, Media media)`
  Centralized the build of a media URI contained in a specified album.
  `static URI`
  GalleryResourceURIs.`buildVideoThumbnailURI(Media media, org.silverpeas.core.io.media.video.ThumbnailPeriod thumbnail)`
  Centralized the build of a video thumbnail URI according to the given ThumbnailPeriod.

- ## Uses of Media in org.silverpeas.components.gallery.dao

  Methods in org.silverpeas.components.gallery.dao that return Media
  Modifier and Type
  Method
  Description
  `static Media`
  MediaDAO.`getByCriteria(MediaCriteria criteria)`
  Gets the media behind the specified criteria.
  Methods in org.silverpeas.components.gallery.dao that return types with arguments of type Media
  Modifier and Type
  Method
  Description
  `static List<Media>`
  MediaDAO.`findByCriteria(MediaCriteria criteria)`
  Finds media according to the given criteria.
  `List<Media>`
  MediaSQLQueryBuilder.`orderingResult(List<Media> media)`
  Methods in org.silverpeas.components.gallery.dao with parameters of type Media
  Modifier and Type
  Method
  Description
  `static void`
  MediaDAO.`deleteAllMediaPath(Media media)`
  Deletes the album links of the specified media.
  `static void`
  MediaDAO.`deleteMedia(Media media)`
  Deletes the specified media (and its album links).
  `static Collection<String>`
  MediaDAO.`getAlbumIdsOf(Media media)`
  Gets the identifier list of albums which the given media is associated to.
  `static String`
  MediaDAO.`saveMedia(org.silverpeas.core.persistence.datasource.OperationContext context, Media media)`
  Saves (insert or update) a media.
  `static void`
  MediaDAO.`saveMediaPath(Media media, String albumId)`
  Saves the album link for the given media.
  Method parameters in org.silverpeas.components.gallery.dao with type arguments of type Media
  Modifier and Type
  Method
  Description
  `List<Media>`
  MediaSQLQueryBuilder.`orderingResult(List<Media> media)`

- ## Uses of Media in org.silverpeas.components.gallery.delegate

  Methods in org.silverpeas.components.gallery.delegate that return Media
  Modifier and Type
  Method
  Description
  `Media`
  MediaDataCreateDelegate.`newInstance()`
  Gets a new media instance according to known media type.
  Methods in org.silverpeas.components.gallery.delegate that return types with arguments of type Media
  Modifier and Type
  Method
  Description
  `Map<Media,Boolean>`
  GalleryPasteDelegate.`getMediaToPaste()`
  Methods in org.silverpeas.components.gallery.delegate with parameters of type Media
  Modifier and Type
  Method
  Description
  `void`
  GalleryPasteDelegate.`addMedia(Media media, boolean isCut)`
  `void`
  AbstractMediaDataDelegate.`updateHeader(Media media)`
  Perform a header data update

- ## Uses of Media in org.silverpeas.components.gallery.model

  Subclasses of Media in org.silverpeas.components.gallery.model
  Modifier and Type
  Class
  Description
  `class`
  `InternalMedia`
  This class represents a Media that the content (the file in other words) is saved on the Silverpeas workspace.
  `class`
  `Photo`
  This class represents a Photo.
  `class`
  `Sound`
  This class represents a Sound.
  `class`
  `Streaming`
  This class represents a Streaming.
  `class`
  `Video`
  This class represents a Video.
  Methods in org.silverpeas.components.gallery.model that return Media
  Modifier and Type
  Method
  Description
  `abstract Media`
  Media.`getCopy()`
  Creates a copy of the instance.
  `Media`
  AlbumMedia.`getMedia()`
  The media.
  `Media`
  MediaWithStatus.`getMedia()`
  Methods in org.silverpeas.components.gallery.model that return types with arguments of type Media
  Modifier and Type
  Method
  Description
  `List<Media>`
  AlbumDetail.`getMedia()`
  `List<Media>`
  MediaCriteriaProcessor.`orderingResult(List<Media> media)`
  This method must be called after the media list is entirely loaded.
  Methods in org.silverpeas.components.gallery.model with parameters of type Media
  Modifier and Type
  Method
  Description
  `protected org.silverpeas.core.util.comparator.AbstractComplexComparator<Media>.org.silverpeas.core.util.comparator.AbstractComplexComparator.ValueBuffer`
  MediaLogicalComparator.`getValuesToCompare(Media media)`
  Method parameters in org.silverpeas.components.gallery.model with type arguments of type Media
  Modifier and Type
  Method
  Description
  `List<Media>`
  MediaCriteriaProcessor.`orderingResult(List<Media> media)`
  This method must be called after the media list is entirely loaded.
  `void`
  AlbumDetail.`setMedia(Collection<Media> media)`
  Constructors in org.silverpeas.components.gallery.model with parameters of type Media
  Modifier
  Constructor
  Description
  ``
  `AlbumMedia(String albumId, Media media)`
  `protected`
  `Media(Media other)`
  ``
  `MediaSelection(Media media)`
  ``
  `MediaWithStatus(Media media, boolean update)`

- ## Uses of Media in org.silverpeas.components.gallery.notification.user

  Methods in org.silverpeas.components.gallery.notification.user with parameters of type Media
  Modifier and Type
  Method
  Description
  `protected void`
  GalleryUserAlertNotification.`perform(Media resource)`
  `protected void`
  GalleryUserAlertNotification.`performNotificationResource(String language, Media resource, org.silverpeas.core.notification.user.model.NotificationResourceData notificationResourceData)`
  `protected void`
  GalleryUserAlertNotification.`performTemplateData(String language, Media resource, org.silverpeas.core.template.SilverpeasTemplate template)`
  Constructors in org.silverpeas.components.gallery.notification.user with parameters of type Media
  Modifier
  Constructor
  Description
  ``
  `GalleryUserAlertNotification(org.silverpeas.core.node.model.NodePK nodePK, Media resource, org.silverpeas.core.admin.user.model.User sender)`

- ## Uses of Media in org.silverpeas.components.gallery.process

  Methods in org.silverpeas.components.gallery.process that return Media
  Modifier and Type
  Method
  Description
  `protected Media`
  AbstractGalleryDataProcess.`getMedia()`
  `protected Media`
  AbstractGalleryFileProcess.`getMedia()`
  Methods in org.silverpeas.components.gallery.process with parameters of type Media
  Modifier and Type
  Method
  Description
  `void`
  GalleryProcessManagement.`addCreateMediaProcesses(Media media, String albumId, Object file, Watermark watermark, MediaDataCreateDelegate delegate)`
  `void`
  GalleryProcessManagement.`addDeleteMediaProcesses(Media media)`
  Adds processes to delete the given media
  `void`
  GalleryProcessManagement.`addIndexMediaProcesses(Media media)`
  Adds processes to index the given media
  `void`
  GalleryProcessManagement.`addPasteMediaProcesses(Media mediaToPaste, org.silverpeas.core.node.model.NodePK toAlbum, boolean isCut)`
  `void`
  GalleryProcessManagement.`addUpdateMediaProcesses(Media media, Watermark watermark, MediaDataUpdateDelegate delegate)`
  Constructors in org.silverpeas.components.gallery.process with parameters of type Media
  Modifier
  Constructor
  Description
  `protected`
  `AbstractGalleryDataProcess(Media media)`
  `protected`
  `AbstractGalleryFileProcess(Media media)`

- ## Uses of Media in org.silverpeas.components.gallery.process.media

  Methods in org.silverpeas.components.gallery.process.media with parameters of type Media
  Modifier and Type
  Method
  Description
  `static GalleryCreateMediaDataProcess`
  GalleryCreateMediaDataProcess.`getInstance(Media media, String albumId, MediaDataCreateDelegate delegate)`
  `static GalleryCreateMediaFileProcess`
  GalleryCreateMediaFileProcess.`getInstance(Media media, Object file, Watermark watermark)`
  `static GalleryDeindexMediaDataProcess`
  GalleryDeindexMediaDataProcess.`getInstance(Media media)`
  `static GalleryDeleteMediaDataProcess`
  GalleryDeleteMediaDataProcess.`getInstance(Media media)`
  `static GalleryDeleteMediaFileProcess`
  GalleryDeleteMediaFileProcess.`getInstance(Media media)`
  `static GalleryIndexMediaDataProcess`
  GalleryIndexMediaDataProcess.`getInstance(Media media)`
  Process to index a media in Database
  `static GalleryPasteMediaDataProcess`
  GalleryPasteMediaDataProcess.`getInstance(Media media, String albumId, MediaPK fromMediaPk, boolean isCut)`
  `static GalleryPasteMediaFileProcess`
  GalleryPasteMediaFileProcess.`getInstance(Media media, MediaPK fromMediaPk, boolean isCut)`
  `static GalleryUpdateMediaDataProcess`
  GalleryUpdateMediaDataProcess.`getInstance(Media media)`
  `static GalleryUpdateMediaDataProcess`
  GalleryUpdateMediaDataProcess.`getInstance(Media media, MediaDataUpdateDelegate delegate)`
  `static GalleryUpdateMediaFileProcess`
  GalleryUpdateMediaFileProcess.`getInstance(Media media, org.silverpeas.core.util.file.FileItem fileItem, Watermark watermark)`
  Constructors in org.silverpeas.components.gallery.process.media with parameters of type Media
  Modifier
  Constructor
  Description
  `protected`
  `GalleryCreateMediaDataProcess(Media media, String albumId, MediaDataCreateDelegate delegate)`
  `protected`
  `GalleryCreateMediaFileProcess(Media media, Object file, Watermark watermark)`
  `protected`
  `GalleryDeindexMediaDataProcess(Media media)`
  `protected`
  `GalleryDeleteMediaDataProcess(Media media)`
  `protected`
  `GalleryDeleteMediaFileProcess(Media media)`
  `protected`
  `GalleryIndexMediaDataProcess(Media media)`
  Default hidden constructor
  `protected`
  `GalleryPasteMediaDataProcess(Media media, String albumId, MediaPK fromMediaPk, boolean isCut)`
  `protected`
  `GalleryPasteMediaFileProcess(Media media, MediaPK fromMediaPk, boolean isCut)`
  `protected`
  `GalleryUpdateMediaDataProcess(Media media, MediaDataUpdateDelegate delegate, boolean updateTechnicalData)`
  `protected`
  `GalleryUpdateMediaFileProcess(Media media, org.silverpeas.core.util.file.FileItem fileItem, Watermark watermark)`

- ## Uses of Media in org.silverpeas.components.gallery.service

  Methods in org.silverpeas.components.gallery.service that return Media
  Modifier and Type
  Method
  Description
  `Media`
  DefaultGalleryService.`createMedia(org.silverpeas.core.admin.user.model.UserDetail user, String componentInstanceId, Watermark watermark, MediaDataCreateDelegate delegate)`
  `Media`
  GalleryService.`createMedia(org.silverpeas.core.admin.user.model.UserDetail user, String componentInstanceId, Watermark watermark, MediaDataCreateDelegate delegate)`
  `Media`
  DefaultGalleryService.`getMedia(MediaPK mediaPK)`
  `Media`
  DefaultGalleryService.`getMedia(MediaPK mediaPK, MediaCriteria.VISIBILITY visibility)`
  `Media`
  GalleryService.`getMedia(MediaPK mediaPK)`
  `Media`
  GalleryService.`getMedia(MediaPK mediaPK, MediaCriteria.VISIBILITY visibility)`
  Methods in org.silverpeas.components.gallery.service that return types with arguments of type Media
  Modifier and Type
  Method
  Description
  `Collection<Media>`
  DefaultGalleryService.`getAllMedia(String instanceId, MediaCriteria.VISIBILITY visibility)`
  `Collection<Media>`
  DefaultGalleryService.`getAllMedia(org.silverpeas.core.node.model.NodePK nodePK, MediaCriteria.VISIBILITY visibility)`
  `Collection<Media>`
  GalleryService.`getAllMedia(String instanceId, MediaCriteria.VISIBILITY visibility)`
  `Collection<Media>`
  GalleryService.`getAllMedia(org.silverpeas.core.node.model.NodePK nodePK, MediaCriteria.VISIBILITY visibility)`
  `Collection<Media>`
  DefaultGalleryService.`getAllMediaThatWillBeNotVisible(int nbDays)`
  `Collection<Media>`
  GalleryService.`getAllMediaThatWillBeNotVisible(int nbDays)`
  `Optional<Media>`
  DefaultGalleryService.`getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)`
  `Optional<Media>`
  GalleryService.`getContributionById(org.silverpeas.core.contribution.model.ContributionIdentifier contributionId)`
  `List<Media>`
  DefaultGalleryService.`getLastRegisteredMedia(String instanceId)`
  `List<Media>`
  GalleryService.`getLastRegisteredMedia(String instanceId)`
  `List<Media>`
  DefaultGalleryService.`getMedia(List<String> mediaIds, String componentInstanceId)`
  `List<Media>`
  DefaultGalleryService.`getMedia(List<String> mediaIds, String componentInstanceId, MediaCriteria.VISIBILITY visibility)`
  `List<Media>`
  GalleryService.`getMedia(List<String> mediaIds, String componentInstanceId)`
  `List<Media>`
  GalleryService.`getMedia(List<String> mediaIds, String componentInstanceId, MediaCriteria.VISIBILITY visibility)`
  `Collection<Media>`
  DefaultGalleryService.`getNotVisible(String instanceId)`
  `Collection<Media>`
  GalleryService.`getNotVisible(String instanceId)`
  `Collection<Media>`
  DefaultGalleryService.`search(org.silverpeas.core.index.search.model.QueryDescription query)`
  `Collection<Media>`
  GalleryService.`search(org.silverpeas.core.index.search.model.QueryDescription query)`
  Methods in org.silverpeas.components.gallery.service with parameters of type Media
  Modifier and Type
  Method
  Description
  `void`
  DefaultGalleryService.`addMediaToAlbums(Media media, String... albums)`
  `void`
  GalleryService.`addMediaToAlbums(Media media, String... albums)`
  `Collection<String>`
  DefaultGalleryService.`getAlbumIdsOf(Media media)`
  `Collection<String>`
  GalleryService.`getAlbumIdsOf(Media media)`
  `void`
  DefaultGalleryService.`removeMediaFromAllAlbums(Media media)`
  `void`
  GalleryService.`removeMediaFromAllAlbums(Media media)`
  `void`
  DefaultGalleryService.`updateMedia(org.silverpeas.core.admin.user.model.UserDetail user, String componentInstanceId, Media media, Watermark watermark, MediaDataUpdateDelegate delegate)`
  `void`
  GalleryService.`updateMedia(org.silverpeas.core.admin.user.model.UserDetail user, String componentInstanceId, Media media, Watermark watermark, MediaDataUpdateDelegate delegate)`