public class MediaPublishingServiceImpl extends DefaultComponent implements MediaPublishingService
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
static String |
PROVIDER_EP |
protected MediaPublishingProviderRegistry |
providers |
lastModified, name
Constructor and Description |
---|
MediaPublishingServiceImpl() |
Modifier and Type | Method and Description |
---|---|
String[] |
getAvailableProviders(DocumentModel doc)
Return a list of the available media publishing services for the given document
|
MediaPublishingProvider |
getProvider(String provider)
Return the provider with the given name.
|
String |
publish(DocumentModel doc,
String serviceId,
String account,
Map<String,String> options)
Schedules an upload
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
void |
unpublish(DocumentModel doc,
String provider)
Unpublish the media
|
activate, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected static final org.apache.commons.logging.Log log
public static final String PROVIDER_EP
protected MediaPublishingProviderRegistry providers
public MediaPublishingServiceImpl()
public String[] getAvailableProviders(DocumentModel doc)
MediaPublishingService
getAvailableProviders
in interface MediaPublishingService
public MediaPublishingProvider getProvider(String provider)
MediaPublishingService
getProvider
in interface MediaPublishingService
public String publish(DocumentModel doc, String serviceId, String account, Map<String,String> options)
MediaPublishingService
publish
in interface MediaPublishingService
doc
- the Document to uploadserviceId
- the id of the media publishing providerpublic void unpublish(DocumentModel doc, String provider)
MediaPublishingService
unpublish
in interface MediaPublishingService
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
Copyright © 2019 Nuxeo. All rights reserved.