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(org.opencastproject.elasticsearch.index.ElasticsearchIndex index) OSGi DI.voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback for the security service.voidsetSeriesService(org.opencastproject.series.api.SeriesService seriesService) OSGi DI.voidsetStaticFileRestService(org.opencastproject.staticfiles.endpoint.StaticFileRestService staticFileRestService) OSGi DI.voidsetStaticFileService(org.opencastproject.staticfiles.api.StaticFileService staticFileService) OSGi DI.voidsetThemesServiceDatabase(org.opencastproject.themes.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
public void setThemesServiceDatabase(org.opencastproject.themes.ThemesServiceDatabase themesServiceDatabase) OSGi callback for the themes service database. -
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback for the security service. -
setIndex
public void setIndex(org.opencastproject.elasticsearch.index.ElasticsearchIndex index) OSGi DI. -
setSeriesService
public void setSeriesService(org.opencastproject.series.api.SeriesService seriesService) OSGi DI. -
setStaticFileService
public void setStaticFileService(org.opencastproject.staticfiles.api.StaticFileService staticFileService) OSGi DI. -
setStaticFileRestService
public void setStaticFileRestService(org.opencastproject.staticfiles.endpoint.StaticFileRestService staticFileRestService) 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) throws Exception - Throws:
Exception
-
getThemeUsage
@GET @Path("{themeId}/usage.json") @Produces("application/json") public javax.ws.rs.core.Response getThemeUsage(@PathParam("themeId") long themeId) throws Exception - Throws:
Exception
-
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 org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
deleteTheme
@DELETE @Path("{themeId}") public javax.ws.rs.core.Response deleteTheme(@PathParam("themeId") long themeId) throws org.opencastproject.util.NotFoundException, org.opencastproject.security.api.UnauthorizedException - Throws:
org.opencastproject.util.NotFoundExceptionorg.opencastproject.security.api.UnauthorizedException
-