public class PublishableMediaAdapter extends Object implements PublishableMedia
Constructor and Description |
---|
PublishableMediaAdapter(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
String |
getAccount(String provider) |
Blob |
getBlob() |
String |
getDescription() |
String |
getEmbedCode(String provider) |
String |
getId(String provider) |
Map<String,Object> |
getProvider(String provider) |
List<Map<String,Object>> |
getProviders() |
Map<String,String> |
getStats(String provider) |
String |
getTitle() |
String |
getUrl(String provider) |
boolean |
isPublishedByProvider(String provider) |
void |
putProvider(Map<String,Object> provider) |
void |
removeProvider(String provider) |
void |
setId(String id) |
void |
setProviders(List<Map<String,Object>> providers) |
public PublishableMediaAdapter(DocumentModel doc)
public Map<String,Object> getProvider(String provider)
getProvider
in interface PublishableMedia
public void putProvider(Map<String,Object> provider)
putProvider
in interface PublishableMedia
public void removeProvider(String provider)
removeProvider
in interface PublishableMedia
public boolean isPublishedByProvider(String provider)
isPublishedByProvider
in interface PublishableMedia
public List<Map<String,Object>> getProviders()
getProviders
in interface PublishableMedia
public void setProviders(List<Map<String,Object>> providers)
setProviders
in interface PublishableMedia
public String getId(String provider)
getId
in interface PublishableMedia
public String getAccount(String provider)
getAccount
in interface PublishableMedia
public void setId(String id)
setId
in interface PublishableMedia
public String getTitle()
getTitle
in interface PublishableMedia
public String getDescription()
getDescription
in interface PublishableMedia
public Blob getBlob()
getBlob
in interface PublishableMedia
public String getUrl(String provider)
getUrl
in interface PublishableMedia
public String getEmbedCode(String provider)
getEmbedCode
in interface PublishableMedia
Copyright © 2018 Nuxeo. All rights reserved.