Package org.silverpeas.components.gallery.process.media

## Class GalleryUpdateMediaFileProcess

- java.lang.Object
- - org.silverpeas.core.process.AbstractProcess<C>
  - - org.silverpeas.core.process.management.AbstractFileProcess<org.silverpeas.core.process.management.ProcessExecutionContext>
    - - org.silverpeas.components.gallery.process.AbstractGalleryFileProcess
      - - org.silverpeas.components.gallery.process.media.GalleryUpdateMediaFileProcess

- All Implemented Interfaces:
    `org.silverpeas.core.process.SilverpeasProcess<org.silverpeas.core.process.management.ProcessExecutionContext>`

      public class GalleryUpdateMediaFileProcess
      extends AbstractGalleryFileProcess

  Process to update a media on file system
  Author:
    Yohann Chastagnier

- - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `GalleryUpdateMediaFileProcess​(Media media, org.silverpeas.core.util.file.FileItem fileItem, Watermark watermark)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static GalleryUpdateMediaFileProcess` | `getInstance​(Media media, org.silverpeas.core.util.file.FileItem fileItem, Watermark watermark)` |
    `void` | `processFiles​(org.silverpeas.core.process.management.ProcessExecutionContext context, org.silverpeas.core.process.session.ProcessSession session, org.silverpeas.core.process.io.file.FileHandler fileHandler)` |

    - ### Methods inherited from class org.silverpeas.components.gallery.process.AbstractGalleryFileProcess

      `getMedia`

    - ### Methods inherited from class org.silverpeas.core.process.management.AbstractFileProcess

      `getProcessType, process`

    - ### Methods inherited from class org.silverpeas.core.process.AbstractProcess

      `onFailure, onSuccessful`

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

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

- - ### Constructor Detail

    - #### GalleryUpdateMediaFileProcess

          protected GalleryUpdateMediaFileProcess​(Media media,
                                                  org.silverpeas.core.util.file.FileItem fileItem,
                                                  Watermark watermark)

  - ### Method Detail

    - #### getInstance

          public static GalleryUpdateMediaFileProcess getInstance​(Media media,
                                                                  org.silverpeas.core.util.file.FileItem fileItem,
                                                                  Watermark watermark)

    - #### processFiles

          public void processFiles​(org.silverpeas.core.process.management.ProcessExecutionContext context,
                                   org.silverpeas.core.process.session.ProcessSession session,
                                   org.silverpeas.core.process.io.file.FileHandler fileHandler)
                            throws Exception

      Specified by:
        `processFiles` in class `org.silverpeas.core.process.management.AbstractFileProcess<org.silverpeas.core.process.management.ProcessExecutionContext>`
      Throws:
        `Exception`