public class UserPreferenceResourceHandler extends DefaultResourceHandler<DefaultParameter,EditUserPreferenceParameter,DefaultParameter,GetUserPreferenceParameter,DefaultParameter>
Constructor and Description |
---|
UserPreferenceResourceHandler() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response |
handleEditInternally(EditUserPreferenceParameter editParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request) |
protected javax.ws.rs.core.Response |
handleGetInternally(GetUserPreferenceParameter parameters,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
hook method, which should be implemented by subclasses, in order to perform actual resource
querying
|
handleCreateInternally, handleDeleteInternally, handleListInternally
handleCreate, handleDelete, handleEdit, handleGet, handleList, setValidator
protected javax.ws.rs.core.Response handleEditInternally(EditUserPreferenceParameter editParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws ResponseBuildException, ExtensionNotSupportedException, NotFoundException, AuthorizationException
handleEditInternally
in class DefaultResourceHandler<DefaultParameter,EditUserPreferenceParameter,DefaultParameter,GetUserPreferenceParameter,DefaultParameter>
editParameter
- edit parameterrequestedMimeType
- mimeTypeuriInfo
- urirequestSessionId
- session idrequest
- requestExtensionNotSupportedException
- Thrown, when building the response failed.ResponseBuildException
- Thrown, when building the response failed.AuthorizationException
- Thrown, when the current user is not allowed to access the given preferences.NotFoundException
- Thrown, when there are not preferences registered for the given type.protected javax.ws.rs.core.Response handleGetInternally(GetUserPreferenceParameter parameters, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws AuthorizationException, ResponseBuildException, ExtensionNotSupportedException
handleGetInternally
in class DefaultResourceHandler<DefaultParameter,EditUserPreferenceParameter,DefaultParameter,GetUserPreferenceParameter,DefaultParameter>
parameters
- get parameterrequestedMimeType
- mimeTypeuriInfo
- urirequestSessionId
- session idrequest
- requestAuthorizationException
- Thrown, when the current user is not allowed to access the given preferences.ExtensionNotSupportedException
- Thrown, when building the response failed.ResponseBuildException
- Thrown, when building the response failed.Copyright © 2019 Communote team. All rights reserved.