Package org.opencastproject.editor
Class EditorServiceImpl
java.lang.Object
org.opencastproject.editor.EditorServiceImpl
- All Implemented Interfaces:
EditorService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.opencastproject.editor.api.EditorService
JOB_TYPE, TARGET_FILE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) protected List<SegmentData> getDeletedSegments(MediaPackage mediaPackage, List<SegmentData> segments) 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 lockRequest) Create or refresh lock for the mediapackageprotected List<SegmentData> mergeSegments(List<SegmentData> segments, List<SegmentData> segments2) voidsetAuthorizationService(AuthorizationService authorizationService) voidsetEditData(String mediaPackageId, EditingData editingData) Store information about edited data relevant to the given mediaPackageIdvoidsetElasticsearchIndex(ElasticsearchIndex elasticsearchIndex) voidsetIndexService(IndexService index) voidunlockMediaPackage(String mediaPackageId, LockData lockRequest) Remove lock for the mediapackage
-
Field Details
-
OPT_PREVIEW_SUBTYPE
- See Also:
-
OPT_PREVIEW_TAG
- See Also:
-
OPT_WAVEFORM_SUBTYPE
- See Also:
-
OPT_SMIL_CATALOG_FLAVOR
- See Also:
-
OPT_SMIL_CATALOG_TAGS
- See Also:
-
OPT_SMIL_SILENCE_FLAVOR
- See Also:
-
OPT_PREVIEW_VIDEO_SUBTYPE
- See Also:
-
OPT_CAPTIONS_FLAVOR
- See Also:
-
OPT_THUMBNAILSUBTYPE
- See Also:
-
OPT_THUMBNAIL_WF_PROPERTY
- See Also:
-
OPT_THUMBNAIL_PRIORITY_FLAVOR
- See Also:
-
OPT_LOCAL_PUBLICATION
- See Also:
-
OPT_LOCK_ENABLED
- See Also:
-
OPT_LOCK_TIMEOUT
- See Also:
-
OPT_LOCK_REFRESH
- See Also:
-
-
Constructor Details
-
EditorServiceImpl
public EditorServiceImpl()
-
-
Method Details
-
setElasticsearchIndex
-
setIndexService
-
setAuthorizationService
-
getSmilCatalogFlavor
-
getSmilCatalogTags
-
getPreviewVideoSubtype
-
getSmilSilenceFlavor
-
getPreviewTag
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) -
getDeletedSegments
protected List<SegmentData> getDeletedSegments(MediaPackage mediaPackage, List<SegmentData> segments) -
mergeSegments
-
lockMediaPackage
public void lockMediaPackage(String mediaPackageId, LockData lockRequest) throws EditorServiceException Description copied from interface:EditorServiceCreate or refresh lock for the mediapackage- Specified by:
lockMediaPackagein interfaceEditorService- Parameters:
mediaPackageId-lockRequest- identify the owner of the lock- Throws:
EditorServiceException- if invalid mediapackge or locked by other
-
unlockMediaPackage
public void unlockMediaPackage(String mediaPackageId, LockData lockRequest) throws EditorServiceException Description copied from interface:EditorServiceRemove lock for the mediapackage- Specified by:
unlockMediaPackagein interfaceEditorService- Parameters:
mediaPackageId-lockRequest- identify the owner of the lock- Throws:
EditorServiceException- if invalid mediapackge or locked by other
-
getEditData
public EditingData getEditData(String mediaPackageId) throws EditorServiceException, UnauthorizedException Description copied from interface:EditorServiceProvide information to edit video and audio data relevant to the given mediaPackageId- Specified by:
getEditDatain interfaceEditorService- Throws:
EditorServiceExceptionUnauthorizedException
-
setEditData
public void setEditData(String mediaPackageId, EditingData editingData) throws EditorServiceException, IOException Description copied from interface:EditorServiceStore information about edited data relevant to the given mediaPackageId- Specified by:
setEditDatain interfaceEditorService- Parameters:
editingData-- Throws:
EditorServiceExceptionIOException
-
getMetadata
Description copied from interface:EditorServiceProvide all meta information about the given mediaPackageId- Specified by:
getMetadatain interfaceEditorService- Throws:
EditorServiceException
-