Class SeriesEndpoint
java.lang.Object
org.opencastproject.adminui.endpoint.SeriesEndpoint
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidjavax.ws.rs.core.ResponseapplyAclToSeries(String seriesId, String acl, boolean override) javax.ws.rs.core.ResponsecreateNewSeries(String metadata) javax.ws.rs.core.ResponsedeleteMultipleSeries(String seriesIdsContent) javax.ws.rs.core.ResponsedeleteSeries(String id) javax.ws.rs.core.ResponsedeleteSeriesProperty(String seriesId, String propertyName) javax.ws.rs.core.ResponsedeleteSeriesTheme(String seriesID) javax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetSeriesAccessInformation(String seriesId) javax.ws.rs.core.ResponsegetSeriesEvents(String seriesId) javax.ws.rs.core.ResponsegetSeriesHostPages(String seriesId) javax.ws.rs.core.ResponsegetSeriesMetadata(String series) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetSeriesPropertiesAsJson(String seriesId) javax.ws.rs.core.ResponsegetSeriesProperty(String seriesId, String propertyName) javax.ws.rs.core.ResponsegetSeriesTheme(String seriesId) javax.ws.rs.core.ResponsegetTobiraPage(String path) getUserSeriesByAccess(boolean writeAccess) Search all user series with write or read-only permissions.voidOSGi callback if properties file is presentjavax.ws.rs.core.ResponseremoveSeriesTobiraPath(String seriesId, String currentPath) voidsetAclServiceFactory(org.opencastproject.authorization.xacml.manager.api.AclServiceFactory aclServiceFactory) OSGi callback for the acl service factoryvoidsetAdminUIConfiguration(AdminUIConfiguration adminUIConfiguration) OSGi DI.voidsetIndex(org.opencastproject.elasticsearch.index.ElasticsearchIndex index) OSGi callback for the search index.voidsetIndexService(org.opencastproject.index.service.api.IndexService indexService) OSGi DI.voidsetListProvidersService(org.opencastproject.list.api.ListProvidersService listProvidersService) OSGi callback for the list provider servicevoidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback for the security servicevoidsetSeriesService(org.opencastproject.series.api.SeriesService seriesService) OSGi callback for the series service.javax.ws.rs.core.ResponseupdateSeriesMetadata(String seriesID, String metadataJSON) javax.ws.rs.core.ResponseupdateSeriesProperty(String seriesId, String name, String value) javax.ws.rs.core.ResponseupdateSeriesTheme(String seriesID, long themeId) javax.ws.rs.core.ResponseupdateSeriesTobiraPath(String seriesId, String pathComponents, String currentPath, String targetPath)
-
Field Details
-
THEME_KEY
- See Also:
-
SERIES_HASEVENTS_DELETE_ALLOW_KEY
- See Also:
-
SERIESTAB_ONLYSERIESWITHWRITEACCESS_KEY
- See Also:
-
EVENTSFILTER_ONLYSERIESWITHWRITEACCESS_KEY
- See Also:
-
TOBIRA_CONFIG
-
-
Constructor Details
-
SeriesEndpoint
public SeriesEndpoint()
-
-
Method Details
-
setSeriesService
public void setSeriesService(org.opencastproject.series.api.SeriesService seriesService) OSGi callback for the series service. -
setIndex
public void setIndex(org.opencastproject.elasticsearch.index.ElasticsearchIndex index) OSGi callback for the search index. -
setIndexService
public void setIndexService(org.opencastproject.index.service.api.IndexService indexService) OSGi DI. -
setListProvidersService
public void setListProvidersService(org.opencastproject.list.api.ListProvidersService listProvidersService) OSGi callback for the list provider service -
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback for the security service -
setAclServiceFactory
public void setAclServiceFactory(org.opencastproject.authorization.xacml.manager.api.AclServiceFactory aclServiceFactory) OSGi callback for the acl service factory -
setAdminUIConfiguration
OSGi DI. -
activate
-
modified
OSGi callback if properties file is present -
getSeriesAccessInformation
@GET @Path("{seriesId}/access.json") @Produces("application/json") public javax.ws.rs.core.Response getSeriesAccessInformation(@PathParam("seriesId") String seriesId) throws org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
getSeriesMetadata
@GET @Produces("application/json") @Path("{seriesId}/metadata.json") public javax.ws.rs.core.Response getSeriesMetadata(@PathParam("seriesId") String series) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.util.NotFoundException, org.opencastproject.elasticsearch.api.SearchIndexException - Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.elasticsearch.api.SearchIndexException
-
updateSeriesMetadata
@PUT @Path("{seriesId}/metadata") public javax.ws.rs.core.Response updateSeriesMetadata(@PathParam("seriesId") String seriesID, @FormParam("metadata") String metadataJSON) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.util.NotFoundException, org.opencastproject.elasticsearch.api.SearchIndexException - Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.util.NotFoundExceptionorg.opencastproject.elasticsearch.api.SearchIndexException
-
getNewMetadata
@GET @Path("new/metadata") public javax.ws.rs.core.Response getNewMetadata() -
getNewThemes
@GET @Path("new/themes") public javax.ws.rs.core.Response getNewThemes() -
getTobiraPage
@GET @Path("new/tobira/page") @Produces("application/json") public javax.ws.rs.core.Response getTobiraPage(@QueryParam("path") String path) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
createNewSeries
@POST @Path("new") public javax.ws.rs.core.Response createNewSeries(@FormParam("metadata") String metadata) throws org.opencastproject.security.api.UnauthorizedException - Throws:
org.opencastproject.security.api.UnauthorizedException
-
deleteSeries
@DELETE @Path("{seriesId}") @Produces("application/json") public javax.ws.rs.core.Response deleteSeries(@PathParam("seriesId") String id) throws org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
deleteMultipleSeries
@POST @Path("deleteSeries") @Produces("application/json") public javax.ws.rs.core.Response deleteMultipleSeries(String seriesIdsContent) throws org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
getSeries
@GET @Produces("application/json") @Path("series.json") public javax.ws.rs.core.Response getSeries(@QueryParam("filter") String filter, @QueryParam("sort") String sort, @QueryParam("offset") int offset, @QueryParam("limit") int limit) throws org.opencastproject.security.api.UnauthorizedException - Throws:
org.opencastproject.security.api.UnauthorizedException
-
getUserSeriesByAccess
Search all user series with write or read-only permissions.- Parameters:
writeAccess- true: write access false: read-only access- Returns:
- user series with write or read-only access, depending on the parameter
-
getSeriesPropertiesAsJson
@GET @Produces("application/json") @Path("{id}/properties") public javax.ws.rs.core.Response getSeriesPropertiesAsJson(@PathParam("id") String seriesId) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.util.NotFoundException
-
getSeriesProperty
@GET @Produces("application/json") @Path("{seriesId}/property/{propertyName}.json") public javax.ws.rs.core.Response getSeriesProperty(@PathParam("seriesId") String seriesId, @PathParam("propertyName") String propertyName) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.util.NotFoundException
-
updateSeriesProperty
@POST @Path("/{seriesId}/property") public javax.ws.rs.core.Response updateSeriesProperty(@PathParam("seriesId") String seriesId, @FormParam("name") String name, @FormParam("value") String value) throws org.opencastproject.security.api.UnauthorizedException - Throws:
org.opencastproject.security.api.UnauthorizedException
-
deleteSeriesProperty
@DELETE @Path("{seriesId}/property/{propertyName}") public javax.ws.rs.core.Response deleteSeriesProperty(@PathParam("seriesId") String seriesId, @PathParam("propertyName") String propertyName) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.util.NotFoundException
-
getSeriesTheme
@GET @Produces("application/json") @Path("{seriesId}/theme.json") public javax.ws.rs.core.Response getSeriesTheme(@PathParam("seriesId") String seriesId) -
updateSeriesTheme
@PUT @Path("{seriesId}/theme") public javax.ws.rs.core.Response updateSeriesTheme(@PathParam("seriesId") String seriesID, @FormParam("themeId") long themeId) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.util.NotFoundException
-
deleteSeriesTheme
@DELETE @Path("{seriesId}/theme") public javax.ws.rs.core.Response deleteSeriesTheme(@PathParam("seriesId") String seriesID) throws org.opencastproject.security.api.UnauthorizedException, org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.security.api.UnauthorizedExceptionorg.opencastproject.util.NotFoundException
-
getSeriesHostPages
@GET @Path("{seriesId}/tobira/pages") public javax.ws.rs.core.Response getSeriesHostPages(@PathParam("seriesId") String seriesId) -
updateSeriesTobiraPath
@POST @Path("{seriesId}/tobira/path") public javax.ws.rs.core.Response updateSeriesTobiraPath(@PathParam("seriesId") String seriesId, @FormParam("pathComponents") String pathComponents, @FormParam("currentPath") String currentPath, @FormParam("targetPath") String targetPath) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
removeSeriesTobiraPath
@DELETE @Path("{seriesId}/tobira/{currentPath}") public javax.ws.rs.core.Response removeSeriesTobiraPath(@PathParam("seriesId") String seriesId, @PathParam("currentPath") String currentPath) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
applyAclToSeries
@POST @Path("/{seriesId}/access") public javax.ws.rs.core.Response applyAclToSeries(@PathParam("seriesId") String seriesId, @FormParam("acl") String acl, @DefaultValue("false") @FormParam("override") boolean override) throws org.opencastproject.elasticsearch.api.SearchIndexException - Throws:
org.opencastproject.elasticsearch.api.SearchIndexException
-
getSeriesEvents
@GET @Path("{seriesId}/hasEvents.json") @Produces("application/json") public javax.ws.rs.core.Response getSeriesEvents(@PathParam("seriesId") String seriesId) throws Exception - Throws:
Exception
-
getSeriesOptions
@GET @Path("configuration.json") @Produces("application/json") public javax.ws.rs.core.Response getSeriesOptions() -
getOnlySeriesWithWriteAccessSeriesTab
-
getOnlySeriesWithWriteAccessEventsFilter
-