publishService
Summary
Defines a publish service to manage medias, categories and properties.
Item Index
Methods
- addMedia
- cacheClear
- getCategoriesByKey
- getCategoriesOptions
- getConfiguration
- getPlatforms
- getProperties
- getTaxonomyCategory
- loadMedia
- loadPlatforms
- loadProperties
- loadTaxonomyCategory
- publishMedia
- removeChapters
- removeTags
- retryMedia
- saveMediasSettings
- saveTlsSettings
- startMediaUpload
- unpublishMedia
- updateChapter
- updateMedia
- updateTag
Methods
addMedia
Syntax
Summary
Adds a media.
Parameters:
- 
                        InformationObjectabout the media 
Returns:
An HTTP promise resolving when media has been added
cacheClear
Syntax
cacheClear
        - 
                        [type]
Summary
Clears a publish service cache.
Parameters:
- 
                        [type]String optionalThe cache element to clear (properties, categories or editor), null to clear all caches 
getCategoriesByKey
Syntax
Summary
Gets list of categories indexed by keys.
Returns:
The list of categories
getCategoriesOptions
Syntax
Summary
Gets the list of categories formatted for an HTMLSelect element.
Returns:
The list of categories
getConfiguration
Syntax
Summary
Retrieves publish plugin configuration.
Returns:
The HTTP promise
getPlatforms
Syntax
Summary
Gets the list of available platforms.
Returns:
The HTTP promise
loadMedia
Syntax
Summary
Loads a media by its id.
Parameters:
- 
                        idStringThe media id 
Returns:
The HTTP promise
loadPlatforms
Syntax
Summary
Loads the list of available media platforms from server.
Returns:
The promise used to retrieve platforms from server
publishMedia
Syntax
Summary
Publishes the given media.
Parameters:
- 
                        idStringThe id of the media to publish 
Returns:
The HTTP promise
removeChapters
Syntax
removeChapters
        - 
                        id
- 
                        chapterIds
Summary
Removes chapters from media.
Returns:
The HTTP promise
retryMedia
Syntax
Summary
Retries a media.
If a media is on error, the upload / publication process has stopped and can be retried.
Parameters:
- 
                        idStringThe id of the media to retry 
Returns:
The HTTP promise
saveMediasSettings
Syntax
saveMediasSettings
        - 
                        data
Summary
Saves medias settings.
Parameters:
- 
                        dataObjectThe medias settings 
Returns:
The HTTP promise
saveTlsSettings
Syntax
saveTlsSettings
        - 
                        data
Summary
Saves TLS settings.
Parameters:
- 
                        dataObjectThe TLS settings 
Returns:
The HTTP promise
startMediaUpload
Syntax
Summary
Asks server to start uploading a media waiting for manual upload.
Parameters:
Returns:
The HTTP promise
unpublishMedia
Syntax
Summary
Unpublishes the given media.
Parameters:
- 
                        idStringThe id of the media to unpublish 
Returns:
The HTTP promise
updateChapter
Syntax
updateChapter
        - 
                        id
- 
                        chapter
Summary
Updates a chapter associated to the specified media.
Parameters:
Returns:
The HTTP promise
updateMedia
Syntax
Summary
Update a media
Parameters:
- 
                        InformationObjectabout the media 
Returns:
An HTTP promise resolving when media has been updated
updateTag
Syntax
Summary
Updates a tag associated to the specified media.
Parameters:
Returns:
The HTTP promise