Class EditorServiceRemoteImpl
java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.editor.remote.EditorServiceRemoteImpl
- All Implemented Interfaces:
EditorService
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase
RemoteBase.HttpClientClosingInputStream -
Field Summary
FieldsFields inherited from class org.opencastproject.serviceregistry.api.RemoteBase
client, elementsFromHttpResponse, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.editor.api.EditorService
JOB_TYPE, TARGET_FILE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionCreates a remote implementation for the given type of service. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoDeleteForMediaPackage(String mediaPackageId, String urlSuffix) protected StringdoGetForMediaPackage(String mediaPackageId, String urlSuffix) protected voiddoPostForMediaPackage(String mediaPackageId, String urlSuffix, String data) protected voidprotected voidevaluateResponseCode(org.apache.http.HttpResponse response) getEditData(String mediaPackageId) Provide information to edit video and audio data relevant to the given mediaPackageIdgetMetadata(String mediaPackageId) Provide all meta information about the given mediaPackageIdvoidlockMediaPackage(String mediaPackageId, LockData lockData) Create or refresh lock for the mediapackagevoidsetEditData(String mediaPackageId, EditingData editingData) Store information about edited data relevant to the given mediaPackageIdvoidsetRemoteServiceManager(ServiceRegistry remoteServiceManager) Sets the remote service manager.voidSets the trusted http clientvoidunlockMediaPackage(String mediaPackageId, LockData lockData) Remove lock for the mediapackageMethods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, getResponse, getResponse, runRequest
-
Field Details
-
EDIT_SUFFIX
- See Also:
-
LOCK_SUFFIX
- See Also:
-
METADATA_SUFFIX
- See Also:
-
-
Constructor Details
-
EditorServiceRemoteImpl
public EditorServiceRemoteImpl()Creates a remote implementation for the given type of service.
-
-
Method Details
-
getEditData
Description copied from interface:EditorServiceProvide information to edit video and audio data relevant to the given mediaPackageId- Specified by:
getEditDatain interfaceEditorService- Throws:
EditorServiceException
-
setEditData
public void setEditData(String mediaPackageId, EditingData editingData) throws EditorServiceException Description copied from interface:EditorServiceStore information about edited data relevant to the given mediaPackageId- Specified by:
setEditDatain interfaceEditorService- Parameters:
editingData-- Throws:
EditorServiceException
-
getMetadata
Description copied from interface:EditorServiceProvide all meta information about the given mediaPackageId- Specified by:
getMetadatain interfaceEditorService- Throws:
EditorServiceException
-
lockMediaPackage
public void lockMediaPackage(String mediaPackageId, LockData lockData) throws EditorServiceException Description copied from interface:EditorServiceCreate or refresh lock for the mediapackage- Specified by:
lockMediaPackagein interfaceEditorService- Parameters:
mediaPackageId-lockData- identify the owner of the lock- Throws:
EditorServiceException- if invalid mediapackge or locked by other
-
unlockMediaPackage
public void unlockMediaPackage(String mediaPackageId, LockData lockData) throws EditorServiceException Description copied from interface:EditorServiceRemove lock for the mediapackage- Specified by:
unlockMediaPackagein interfaceEditorService- Parameters:
mediaPackageId-lockData- identify the owner of the lock- Throws:
EditorServiceException- if invalid mediapackge or locked by other
-
doDeleteForMediaPackage
protected String doDeleteForMediaPackage(String mediaPackageId, String urlSuffix) throws EditorServiceException - Throws:
EditorServiceException
-
doGetForMediaPackage
protected String doGetForMediaPackage(String mediaPackageId, String urlSuffix) throws EditorServiceException - Throws:
EditorServiceException
-
doPostForMediaPackage
protected void doPostForMediaPackage(String mediaPackageId, String urlSuffix, String data) throws EditorServiceException - Throws:
EditorServiceException
-
doPostFormForMediaPackage
protected void doPostFormForMediaPackage(String mediaPackageId, String urlSuffix, Map<String, String> params) throws EditorServiceException- Throws:
EditorServiceException
-
evaluateResponseCode
protected void evaluateResponseCode(org.apache.http.HttpResponse response) throws EditorServiceException - Throws:
EditorServiceException
-
setTrustedHttpClient
Description copied from class:RemoteBaseSets the trusted http client- Overrides:
setTrustedHttpClientin classRemoteBase- Parameters:
client-
-
setRemoteServiceManager
Description copied from class:RemoteBaseSets the remote service manager.- Overrides:
setRemoteServiceManagerin classRemoteBase- Parameters:
remoteServiceManager-
-