Class ConfigurablePublicationServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.publication.configurable.remote.ConfigurablePublicationServiceRemoteImpl
- All Implemented Interfaces:
ConfigurablePublicationService
public class ConfigurablePublicationServiceRemoteImpl
extends RemoteBase
implements ConfigurablePublicationService
A remote publication service invoker.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
RemoteBase.HttpClientClosingInputStream -
Field Summary
Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.publication.api.ConfigurablePublicationService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreplace(MediaPackage mediaPackage, String channelId, Collection<? extends MediaPackageElement> addElements, Set<String> retractElementIds) Replaces media package elements.replaceSync(MediaPackage mediaPackage, String channelId, Collection<? extends MediaPackageElement> addElements, Set<String> retractElementIds) Synchronously replaces media package elements.voidsetRemoteServiceManager(ServiceRegistry serviceRegistry) Sets the remote service manager.voidsetTrustedHttpClient(TrustedHttpClient trustedHttpClient) Sets the trusted http clientMethods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, elementsFromHttpResponse, getResponse, getResponse, runRequest
-
Constructor Details
-
ConfigurablePublicationServiceRemoteImpl
public ConfigurablePublicationServiceRemoteImpl()
-
-
Method Details
-
replace
public Job replace(MediaPackage mediaPackage, String channelId, Collection<? extends MediaPackageElement> addElements, Set<String> retractElementIds) throws PublicationException, MediaPackageException Description copied from interface:ConfigurablePublicationServiceReplaces media package elements.- Specified by:
replacein interfaceConfigurablePublicationService- Parameters:
mediaPackage- the media packagechannelId- the id of the publication channeladdElements- the media package elements to be addedretractElementIds- the ids of the media package elements to be removed- Returns:
- The job
- Throws:
PublicationException- if there was a problem publishing the mediaMediaPackageException- if there was a problem with the mediapackage element
-
replaceSync
public Publication replaceSync(MediaPackage mediaPackage, String channelId, Collection<? extends MediaPackageElement> addElements, Set<String> retractElementIds) throws PublicationException, MediaPackageException Description copied from interface:ConfigurablePublicationServiceSynchronously replaces media package elements.- Specified by:
replaceSyncin interfaceConfigurablePublicationService- Parameters:
mediaPackage- the media packagechannelId- the id of the publication channeladdElements- the media package elements to be addedretractElementIds- the ids of the media package elements to be removed- Returns:
- The publication with the updated media package.
- Throws:
PublicationException- if there was a problem publishing the mediaMediaPackageException- if there was a problem with the mediapackage element
-
setTrustedHttpClient
Description copied from class:RemoteBaseSets the trusted http client- Overrides:
setTrustedHttpClientin classRemoteBase- Parameters:
trustedHttpClient-
-
setRemoteServiceManager
Description copied from class:RemoteBaseSets the remote service manager.- Overrides:
setRemoteServiceManagerin classRemoteBase- Parameters:
serviceRegistry-
-