com.silverpeas.gallery.process.media
Class GalleryPasteMediaFileProcess

java.lang.Object
  extended by org.silverpeas.process.AbstractProcess<C>
      extended by org.silverpeas.process.management.AbstractFileProcess<GalleryProcessExecutionContext>
          extended by com.silverpeas.gallery.process.AbstractGalleryFileProcess
              extended by com.silverpeas.gallery.process.media.GalleryPasteMediaFileProcess
All Implemented Interfaces:
org.silverpeas.process.SilverpeasProcess<GalleryProcessExecutionContext>

public class GalleryPasteMediaFileProcess
extends AbstractGalleryFileProcess

Process to paste a media on file system

Author:
Yohann Chastagnier

Constructor Summary
protected GalleryPasteMediaFileProcess(Media media, MediaPK fromMediaPk, boolean isCutted)
          Default hidden constructor
 
Method Summary
static GalleryPasteMediaFileProcess getInstance(Media media, MediaPK fromMediaPk, boolean isCutted)
          Gets an instance
 void processFiles(GalleryProcessExecutionContext context, org.silverpeas.process.session.ProcessSession session, org.silverpeas.process.io.file.FileHandler fileHandler)
           
 
Methods inherited from class com.silverpeas.gallery.process.AbstractGalleryFileProcess
getMedia, getOrganisationController
 
Methods inherited from class org.silverpeas.process.management.AbstractFileProcess
getProcessType, process
 
Methods inherited from class org.silverpeas.process.AbstractProcess
onFailure, onSuccessful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GalleryPasteMediaFileProcess

protected GalleryPasteMediaFileProcess(Media media,
                                       MediaPK fromMediaPk,
                                       boolean isCutted)
Default hidden constructor

Parameters:
media -
fromMediaPk -
isCutted -
Method Detail

getInstance

public static GalleryPasteMediaFileProcess getInstance(Media media,
                                                       MediaPK fromMediaPk,
                                                       boolean isCutted)
Gets an instance

Parameters:
media -
fromMediaPk -
isCutted -
Returns:

processFiles

public void processFiles(GalleryProcessExecutionContext context,
                         org.silverpeas.process.session.ProcessSession session,
                         org.silverpeas.process.io.file.FileHandler fileHandler)
                  throws Exception
Specified by:
processFiles in class org.silverpeas.process.management.AbstractFileProcess<GalleryProcessExecutionContext>
Throws:
Exception


Copyright © 2016 Silverpeas. All Rights Reserved.