Class UserSettingsEndpoint
java.lang.Object
org.opencastproject.adminui.endpoint.UserSettingsEndpoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.service.component.ComponentContext cc) OSGi callback.javax.ws.rs.core.ResponsecreateUserSetting(String key, String value) javax.ws.rs.core.ResponsedeleteUserSetting(long id) javax.ws.rs.core.ResponsegetUserSettings(int limit, int offset) voidsetSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback to set the security servicevoidsetUserSettingsService(UserSettingsService userSettingsService) OSGi callback to set the service to retrieve user settings from.javax.ws.rs.core.ResponseupdateUserSetting(int id, String key, String value)
-
Constructor Details
-
UserSettingsEndpoint
public UserSettingsEndpoint()
-
-
Method Details
-
setUserSettingsService
OSGi callback to set the service to retrieve user settings from. -
setSecurityService
public void setSecurityService(org.opencastproject.security.api.SecurityService securityService) OSGi callback to set the security service -
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 org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.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 org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-
deleteUserSetting
@DELETE @Path("/setting/{settingId}") public javax.ws.rs.core.Response deleteUserSetting(@PathParam("settingId") long id) throws org.opencastproject.util.NotFoundException - Throws:
org.opencastproject.util.NotFoundException
-