Class ThemesEndpoint
java.lang.Object
org.opencastproject.adminui.endpoint.ThemesEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.framework.BundleContext bundleContext) javax.ws.rs.core.ResponsecreateTheme(boolean isDefault, String name, String description, Boolean bumperActive, Boolean trailerActive, Boolean titleSlideActive, Boolean licenseSlideActive, Boolean watermarkActive, String bumperFile, String trailerFile, String watermarkFile, String titleSlideBackground, String licenseSlideBackground, String titleSlideMetadata, String licenseSlideDescription, String watermarkPosition) javax.ws.rs.core.ResponsedeleteTheme(long themeId) javax.ws.rs.core.ResponsegetThemeResponse(long id) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetThemeUsage(long themeId) voidsetIndex(ElasticsearchIndex index) OSGi DI.voidsetSecurityService(SecurityService securityService) OSGi callback for the security service.voidsetSeriesService(SeriesService seriesService) OSGi DI.voidsetStaticFileRestService(StaticFileRestService staticFileRestService) OSGi DI.voidsetStaticFileService(StaticFileService staticFileService) OSGi DI.voidsetThemesServiceDatabase(ThemesServiceDatabase themesServiceDatabase) OSGi callback for the themes service database.javax.ws.rs.core.ResponseupdateTheme(long themeId, Boolean isDefault, String name, String description, Boolean bumperActive, Boolean trailerActive, Boolean titleSlideActive, Boolean licenseSlideActive, Boolean watermarkActive, String bumperFile, String trailerFile, String watermarkFile, String titleSlideBackground, String licenseSlideBackground, String titleSlideMetadata, String licenseSlideDescription, String watermarkPosition)
-
Constructor Details
-
ThemesEndpoint
public ThemesEndpoint()
-
-
Method Details
-
setThemesServiceDatabase
OSGi callback for the themes service database. -
setSecurityService
OSGi callback for the security service. -
setIndex
OSGi DI. -
setSeriesService
OSGi DI. -
setStaticFileService
OSGi DI. -
setStaticFileRestService
OSGi DI. -
activate
public void activate(org.osgi.framework.BundleContext bundleContext) -
getThemes
-
getThemeResponse
@GET @Path("{themeId}.json") @Produces("application/json") public javax.ws.rs.core.Response getThemeResponse(@PathParam("themeId") long id) -
getThemeUsage
@GET @Path("{themeId}/usage.json") @Produces("application/json") public javax.ws.rs.core.Response getThemeUsage(@PathParam("themeId") long themeId) -
createTheme
@POST @Path("") public javax.ws.rs.core.Response createTheme(@FormParam("default") boolean isDefault, @FormParam("name") String name, @FormParam("description") String description, @FormParam("bumperActive") Boolean bumperActive, @FormParam("trailerActive") Boolean trailerActive, @FormParam("titleSlideActive") Boolean titleSlideActive, @FormParam("licenseSlideActive") Boolean licenseSlideActive, @FormParam("watermarkActive") Boolean watermarkActive, @FormParam("bumperFile") String bumperFile, @FormParam("trailerFile") String trailerFile, @FormParam("watermarkFile") String watermarkFile, @FormParam("titleSlideBackground") String titleSlideBackground, @FormParam("licenseSlideBackground") String licenseSlideBackground, @FormParam("titleSlideMetadata") String titleSlideMetadata, @FormParam("licenseSlideDescription") String licenseSlideDescription, @FormParam("watermarkPosition") String watermarkPosition) -
updateTheme
@PUT @Path("{themeId}") public javax.ws.rs.core.Response updateTheme(@PathParam("themeId") long themeId, @FormParam("default") Boolean isDefault, @FormParam("name") String name, @FormParam("description") String description, @FormParam("bumperActive") Boolean bumperActive, @FormParam("trailerActive") Boolean trailerActive, @FormParam("titleSlideActive") Boolean titleSlideActive, @FormParam("licenseSlideActive") Boolean licenseSlideActive, @FormParam("watermarkActive") Boolean watermarkActive, @FormParam("bumperFile") String bumperFile, @FormParam("trailerFile") String trailerFile, @FormParam("watermarkFile") String watermarkFile, @FormParam("titleSlideBackground") String titleSlideBackground, @FormParam("licenseSlideBackground") String licenseSlideBackground, @FormParam("titleSlideMetadata") String titleSlideMetadata, @FormParam("licenseSlideDescription") String licenseSlideDescription, @FormParam("watermarkPosition") String watermarkPosition) throws NotFoundException - Throws:
NotFoundException
-
deleteTheme
@DELETE @Path("{themeId}") public javax.ws.rs.core.Response deleteTheme(@PathParam("themeId") long themeId) throws NotFoundException, UnauthorizedException
-