com.silverpeas.gallery.web
Class MediaBuilder

java.lang.Object
  extended by com.silverpeas.gallery.web.MediaBuilder

public class MediaBuilder
extends Object

Author:
Yohann Chastagnier

Nested Class Summary
protected  class MediaBuilder.PhotoMock
          Mock of photo entity
protected  class MediaBuilder.SoundMock
          Mock of sound entity
protected  class MediaBuilder.StreamingMock
          Mock of streaming entity
protected  class MediaBuilder.VideoMock
          Mock of video entity
 
Method Summary
 Photo buildPhoto(String photoId, String componentId)
           
 Sound buildSound(String soundId, String componentId)
           
 Streaming buildStreaming(String streamingId, String componentId)
           
 Video buildVideo(String videoId, String componentId)
           
protected static void fillCommonData(Media media, String mediaId, String componentId)
           
protected static void fillInternalData(InternalMedia media)
           
static MediaBuilder getMediaBuilder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMediaBuilder

public static MediaBuilder getMediaBuilder()

buildPhoto

public Photo buildPhoto(String photoId,
                        String componentId)

buildVideo

public Video buildVideo(String videoId,
                        String componentId)

buildSound

public Sound buildSound(String soundId,
                        String componentId)

buildStreaming

public Streaming buildStreaming(String streamingId,
                                String componentId)

fillCommonData

protected static void fillCommonData(Media media,
                                     String mediaId,
                                     String componentId)

fillInternalData

protected static void fillInternalData(InternalMedia media)


Copyright © 2016 Silverpeas. All Rights Reserved.