public interface MediaPublishingProvider
Modifier and Type | Method and Description |
---|---|
String |
getEmbedCode(String mediaId,
String account)
Retrieve the HTML code for embedding the media
|
String |
getPublishedUrl(String mediaId,
String account)
Retrieve the URL for the published media
|
Map<String,String> |
getStats(String mediaId,
String account)
Retrieve a map of statistics (depends on the provider)
|
boolean |
isAvailable()
Checks if the provider is available
|
boolean |
isMediaAvailable(PublishableMedia media)
Checks it the given
PublishableMedia is acessible |
boolean |
isMediaPublished(String mediaId,
String account)
Checks if a media is published by the provider
|
boolean |
unpublish(PublishableMedia media)
Unpublish the media
|
String |
upload(PublishableMedia media,
MediaPublishingProgressListener progressListener,
String account,
Map<String,String> options)
Upload the media
|
String upload(PublishableMedia media, MediaPublishingProgressListener progressListener, String account, Map<String,String> options) throws IOException
IOException
boolean unpublish(PublishableMedia media) throws IOException
IOException
String getPublishedUrl(String mediaId, String account)
String getEmbedCode(String mediaId, String account)
Map<String,String> getStats(String mediaId, String account)
boolean isAvailable()
boolean isMediaAvailable(PublishableMedia media)
PublishableMedia
is acessibleboolean isMediaPublished(String mediaId, String account)
Copyright © 2018 Nuxeo. All rights reserved.