@Name(value="mediaPublishing") @Scope(value=EVENT) public class MediaPublishingActions extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
class |
MediaPublishingActions.UploadStatus
Data transfer object to report on the state of a video upload.
|
Modifier and Type | Field and Description |
---|---|
protected ActionContextProvider |
actionContextProvider |
protected CoreSession |
documentManager |
protected org.jboss.seam.faces.FacesMessages |
facesMessages |
protected NavigationContext |
navigationContext |
protected ResourcesAccessor |
resourcesAccessor |
protected WebActions |
webActions |
Constructor and Description |
---|
MediaPublishingActions() |
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true, required=false) protected transient org.jboss.seam.faces.FacesMessages facesMessages
@In(create=true, required=false) protected transient ActionContextProvider actionContextProvider
@In(create=true, required=false) protected transient WebActions webActions
@In(create=true) protected transient ResourcesAccessor resourcesAccessor
@In(create=true) protected transient NavigationContext navigationContext
public MediaPublishingActions()
public String[] getAvailableServices(DocumentModel doc)
public MediaPublishingActions.UploadStatus getUploadStatus(DocumentModel doc, String uploadServiceName)
public boolean isPublished(DocumentModel doc, String provider)
public String getPublishedURL(DocumentModel doc, String provider)
public String getEmbedCode(DocumentModel doc, String provider)
public String getStatusMessageFor(MediaPublishingActions.UploadStatus status)
public String getSelectedAccount()
public void setSelectedAccount(String selectedAccount)
public DocumentModel getCurrentDoc()
public List<Action> getProviderOptionsWidgets(String provider)
public Map<String,String> getOptions()
public void setOptions(Map<String,String> options)
public boolean canPublish(String provider)
public boolean isMediaAvailable(DocumentModel doc, String provider)
Copyright © 2015 Nuxeo SA. All rights reserved.