Class GalleryCreateMediaDataProcess
- java.lang.Object
-
- org.silverpeas.core.process.AbstractProcess<C>
-
- org.silverpeas.core.process.management.AbstractDataProcess<org.silverpeas.core.process.management.ProcessExecutionContext>
-
- org.silverpeas.components.gallery.process.AbstractGalleryDataProcess
-
- org.silverpeas.components.gallery.process.media.GalleryCreateMediaDataProcess
-
- All Implemented Interfaces:
org.silverpeas.core.process.SilverpeasProcess<org.silverpeas.core.process.management.ProcessExecutionContext>
public class GalleryCreateMediaDataProcess extends AbstractGalleryDataProcess
Process to create a media in Database- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GalleryCreateMediaDataProcess(Media media, String albumId, MediaDataCreateDelegate delegate)
Default hidden constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GalleryCreateMediaDataProcess
getInstance(Media media, String albumId, MediaDataCreateDelegate delegate)
Gets an instancevoid
onSuccessful()
protected void
processData(org.silverpeas.core.process.management.ProcessExecutionContext context, org.silverpeas.core.process.session.ProcessSession session)
-
Methods inherited from class org.silverpeas.components.gallery.process.AbstractGalleryDataProcess
createMedia, getGalleryBm, getGalleryContentManager, getGenericRecordSetManager, getMedia, getOrganisationController, getPublicationTemplateManager, getXMLFormName, process, updateMedia
-
-
-
-
Constructor Detail
-
GalleryCreateMediaDataProcess
protected GalleryCreateMediaDataProcess(Media media, String albumId, MediaDataCreateDelegate delegate)
Default hidden constructor- Parameters:
media
-delegate
-
-
-
Method Detail
-
getInstance
public static GalleryCreateMediaDataProcess getInstance(Media media, String albumId, MediaDataCreateDelegate delegate)
Gets an instance- Parameters:
media
-delegate
-- Returns:
-
processData
protected void processData(org.silverpeas.core.process.management.ProcessExecutionContext context, org.silverpeas.core.process.session.ProcessSession session) throws Exception
- Specified by:
processData
in classAbstractGalleryDataProcess
- Throws:
Exception
-
onSuccessful
public void onSuccessful() throws Exception
- Specified by:
onSuccessful
in interfaceorg.silverpeas.core.process.SilverpeasProcess<org.silverpeas.core.process.management.ProcessExecutionContext>
- Overrides:
onSuccessful
in classorg.silverpeas.core.process.AbstractProcess<org.silverpeas.core.process.management.ProcessExecutionContext>
- Throws:
Exception
-
-