Class ThemesEndpoint

java.lang.Object
org.opencastproject.adminui.endpoint.ThemesEndpoint

@Path("/admin-ng/themes") public class ThemesEndpoint extends Object
  • 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

      @GET @Produces("application/json") @Path("themes.json") public javax.ws.rs.core.Response getThemes(@QueryParam("filter") String filter, @QueryParam("limit") int limit, @QueryParam("offset") int offset, @QueryParam("sort") String sort)
    • 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.NotFoundException
      org.opencastproject.security.api.UnauthorizedException