Interface LtiService
public interface LtiService
Interface for implementing functionality available in the LTI GUI
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcopyEventToSeries(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 seriesvoidsetEventMetadataJson(String eventId, String metadataJson) Set the event metadatavoidupsertEvent(LtiFileUpload file, String captions, String captionFormat, String captionLanguage, String eventId, String seriesId, String metadataJson) Upload a new event or update existing event's metadata
-
Field Details
-
JOB_TYPE
- See Also:
-
-
Method Details
-
listJobs
List currently running jobs for the series- Parameters:
seriesId- ID of the series- Returns:
- A list of jobs
-
upsertEvent
void upsertEvent(LtiFileUpload file, String captions, String captionFormat, String captionLanguage, String eventId, String seriesId, String metadataJson) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.util.NotFoundException Upload a new event or update existing event's metadata- 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:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.util.NotFoundException
-
copyEventToSeries
Copy an event to a different series- Parameters:
eventId- Event ID to copyseriesId- Series ID to copy into
-
getEventMetadata
String getEventMetadata(String eventId) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException Returns the event metadata for a specific event- Parameters:
eventId- ID of the event- Returns:
- The event metadata list
- Throws:
org.opencastproject.util.NotFoundException- If the event doesn't existorg.opencastproject.security.api.UnauthorizedException- If the user cannot access the event
-
getNewEventMetadata
String getNewEventMetadata()Returns the event metadata for a new event- Returns:
- The event metadata list
-
setEventMetadataJson
void setEventMetadataJson(String eventId, String metadataJson) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException Set the event metadata- Parameters:
eventId- ID of the eventmetadataJson- New metadata of the event as JSON- Throws:
org.opencastproject.util.NotFoundException- If the event doesn't existorg.opencastproject.security.api.UnauthorizedException- If the user cannot access the event
-
delete
Deletes the specified event- Parameters:
eventId- ID of the event
-