|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openutils.mgnlmedia.media.utils.MediaLoadUtils
public class MediaLoadUtils
Utility Class that manages loading files into media repository
| Constructor Summary | |
|---|---|
MediaLoadUtils()
|
|
| Method Summary | |
|---|---|
static info.magnolia.cms.core.Content |
getOrCreateFullPath(info.magnolia.cms.core.HierarchyManager mgr,
String path)
Get the content node matching required path using hierarchy manager. |
static info.magnolia.cms.core.Content |
loadEntry(InputStream inputStream,
String parent,
String filename,
boolean overwrite)
Loads a file in the media repository |
static info.magnolia.cms.core.Content |
loadExternalVideo(String videourl,
String parent,
String filename,
boolean overwrite)
Loads a media linking to an external video. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaLoadUtils()
| Method Detail |
|---|
public static info.magnolia.cms.core.Content loadExternalVideo(String videourl,
String parent,
String filename,
boolean overwrite)
throws javax.jcr.RepositoryException,
IOException
videourl - absolute video urlparent - media folderfilename - video filenameoverwrite - overwrite an exxisting media
javax.jcr.RepositoryException - exception working on media repository
IOException - exception working with file stream
public static info.magnolia.cms.core.Content loadEntry(InputStream inputStream,
String parent,
String filename,
boolean overwrite)
throws javax.jcr.RepositoryException,
IOException
inputStream - file input streamparent - parent folder nodefilename - filenameoverwrite - overwrite if already exists?
javax.jcr.RepositoryException - exception working on media repository
IOException - exception working with file stream
public static info.magnolia.cms.core.Content getOrCreateFullPath(info.magnolia.cms.core.HierarchyManager mgr,
String path)
throws javax.jcr.RepositoryException
mgr - hierarchy managerpath - path to get or create
javax.jcr.RepositoryException - exception getting or creating path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||