Class UserSettingsEndpoint

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

@Path("/admin-ng/user-settings") public class UserSettingsEndpoint extends Object
  • Constructor Details

    • UserSettingsEndpoint

      public UserSettingsEndpoint()
  • Method Details

    • setUserSettingsService

      public void setUserSettingsService(UserSettingsService userSettingsService)
      OSGi callback to set the service to retrieve user settings from.
    • activate

      protected void activate(org.osgi.service.component.ComponentContext cc)
      OSGi callback.
    • getUserSettings

      @GET @Path("/settings.json") @Produces("application/json") public javax.ws.rs.core.Response getUserSettings(@QueryParam("limit") int limit, @QueryParam("offset") int offset) throws IOException
      Throws:
      IOException
    • createUserSetting

      @POST @Path("/setting") @Produces("application/json") public javax.ws.rs.core.Response createUserSetting(@FormParam("key") String key, @FormParam("value") String value) throws NotFoundException
      Throws:
      NotFoundException
    • updateUserSetting

      @PUT @Path("/setting/{settingId}") @Produces("application/json") public javax.ws.rs.core.Response updateUserSetting(@PathParam("settingId") int id, @FormParam("key") String key, @FormParam("value") String value) throws NotFoundException
      Throws:
      NotFoundException
    • deleteUserSetting

      @DELETE @Path("/setting/{settingId}") public javax.ws.rs.core.Response deleteUserSetting(@PathParam("settingId") long id) throws NotFoundException
      Throws:
      NotFoundException