Class PreferencesResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.client.impl.preferences.PreferencesResource
- All Implemented Interfaces:
RestResource
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PreferencesQueue
protected final PrincipalService
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionPreferencesResource
(PersistenceService persistenceService, PrincipalService principalService, PreferencesQueue preferencesQueue) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
deletePreferences
(String key) getPreferences
(String key) jakarta.ws.rs.core.Response
setPreferences
(UpdatePreferencesBean updateBean) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Field Details
-
principalService
-
preferencesQueue
-
-
Constructor Details
-
PreferencesResource
public PreferencesResource(PersistenceService persistenceService, PrincipalService principalService, PreferencesQueue preferencesQueue)
-
-
Method Details
-
getAllPreferences
-
getPreferences
@GET @Path("/{key}") @Produces("application/json") public PreferencesBean getPreferences(@PathParam("key") String key) -
setPreferences
-
deletePreferences
@DELETE @Path("/{key}") public jakarta.ws.rs.core.Response deletePreferences(@PathParam("key") String key)
-