Class LtiServiceImpl
java.lang.Object
org.opencastproject.lti.service.impl.LtiServiceImpl
- All Implemented Interfaces:
LtiService
The LTI service implementation
-
Field Summary
Fields inherited from interface org.opencastproject.lti.service.api.LtiService
JOB_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) voidaddCatalogUIAdapter(EventCatalogUIAdapter catalogUIAdapter) OSGi DI.voidcopyEventToSeries(String eventId, String seriesId) Copy an event to a different seriesvoidDeletes the specified eventgetEventMetadata(String eventId) Returns the event metadata for a specific eventReturns the event metadata for a new eventList currently running jobs for the seriesvoidmodified(org.osgi.service.component.ComponentContext cc) voidremoveCatalogUIAdapter(EventCatalogUIAdapter catalogUIAdapter) OSGi DI.voidsetAssetManager(AssetManager assetManager) OSGi DIvoidsetAuthorizationService(AuthorizationService authorizationService) OSGi DIvoidsetEventMetadataJson(String eventId, String metadataJson) Set the event metadatavoidsetIndexService(IndexService indexService) OSGi DIvoidsetIngestService(IngestService ingestService) OSGi DIvoidsetSearchIndex(ElasticsearchIndex searchIndex) OSGi DIvoidsetSeriesService(SeriesService seriesService) OSGI DIvoidsetWorkflowService(WorkflowService workflowService) OSGi DIvoidsetWorkspace(Workspace workspace) OSGi DIvoidupsertEvent(LtiFileUpload file, String captions, String captionFormat, String captionLanguage, String eventId, String seriesId, String metadataJson) Upload a new event or update existing event's metadata
-
Constructor Details
-
LtiServiceImpl
public LtiServiceImpl()
-
-
Method Details
-
setAuthorizationService
OSGi DI -
setSeriesService
OSGI DI -
setAssetManager
OSGi DI -
setWorkflowService
OSGi DI -
setWorkspace
OSGi DI -
setSearchIndex
OSGi DI -
setIndexService
OSGi DI -
setIngestService
OSGi DI -
addCatalogUIAdapter
OSGi DI. -
removeCatalogUIAdapter
OSGi DI. -
activate
public void activate(org.osgi.service.component.ComponentContext cc) -
modified
public void modified(org.osgi.service.component.ComponentContext cc) -
listJobs
Description copied from interface:LtiServiceList currently running jobs for the series- Specified by:
listJobsin interfaceLtiService- Parameters:
seriesId- ID of the series- Returns:
- A list of jobs
-
upsertEvent
public void upsertEvent(LtiFileUpload file, String captions, String captionFormat, String captionLanguage, String eventId, String seriesId, String metadataJson) throws UnauthorizedException, NotFoundException Description copied from interface:LtiServiceUpload a new event or update existing event's metadata- Specified by:
upsertEventin interfaceLtiService- Parameters:
file- File to uploadcaptions- Subtitles fileeventId- ID of the event (can benullfor new events)seriesId- ID of the seriesmetadataJson- Metadata for the event as JSON string- Throws:
UnauthorizedExceptionNotFoundException
-
copyEventToSeries
Description copied from interface:LtiServiceCopy an event to a different series- Specified by:
copyEventToSeriesin interfaceLtiService- Parameters:
eventId- Event ID to copyseriesId- Series ID to copy into
-
getEventMetadata
Description copied from interface:LtiServiceReturns the event metadata for a specific event- Specified by:
getEventMetadatain interfaceLtiService- Parameters:
eventId- ID of the event- Returns:
- The event metadata list
- Throws:
NotFoundException- If the event doesn't existUnauthorizedException- If the user cannot access the event
-
getNewEventMetadata
Description copied from interface:LtiServiceReturns the event metadata for a new event- Specified by:
getNewEventMetadatain interfaceLtiService- Returns:
- The event metadata list
-
setEventMetadataJson
public void setEventMetadataJson(String eventId, String metadataJson) throws NotFoundException, UnauthorizedException Description copied from interface:LtiServiceSet the event metadata- Specified by:
setEventMetadataJsonin interfaceLtiService- Parameters:
eventId- ID of the eventmetadataJson- New metadata of the event as JSON- Throws:
NotFoundException- If the event doesn't existUnauthorizedException- If the user cannot access the event
-
delete
Description copied from interface:LtiServiceDeletes the specified event- Specified by:
deletein interfaceLtiService- Parameters:
id- ID of the event
-