public class NoteResourceHandler extends DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,DefaultParameter>
Constructor and Description |
---|
NoteResourceHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
handleCreateInternally(CreateNoteParameter createNoteParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Create a single note on the server.
|
javax.ws.rs.core.Response |
handleDeleteInternally(DeleteNoteParameter deleteNoteParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Delete a note on the server
|
javax.ws.rs.core.Response |
handleEditInternally(EditNoteParameter editNoteParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Changes an existing note on the server
|
javax.ws.rs.core.Response |
handleGetInternally(GetNoteParameter getNoteParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Retrieve a single note from the server
|
handleListInternally
handleCreate, handleDelete, handleEdit, handleGet, handleList, setValidator
public javax.ws.rs.core.Response handleCreateInternally(CreateNoteParameter createNoteParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws IllegalRequestParameterException, BlogNotFoundException, AuthorizationException, NoteStoringPreProcessorException, NoteNotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleCreateInternally
in class DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,DefaultParameter>
createNoteParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datasessionId
- sessionIdrequest
- - javax requestNoteStoringPreProcessorException
- ExceptionIllegalRequestParameterException
- if text value is wrongNoteManagementAuthorizationException
- user is not authorizedBlogNotFoundException
- blog was not foundNoteNotFoundException
- note was not foundResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedAuthorizationException
- Thrown, when the user is not allowed to update the attachments.public javax.ws.rs.core.Response handleDeleteInternally(DeleteNoteParameter deleteNoteParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws NoteManagementAuthorizationException, ResponseBuildException, ExtensionNotSupportedException
handleDeleteInternally
in class DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,DefaultParameter>
deleteNoteParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datasessionId
- sessionIdrequest
- - javax requestNoteManagementAuthorizationException
- user is not authorizedResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedpublic javax.ws.rs.core.Response handleEditInternally(EditNoteParameter editNoteParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws IllegalRequestParameterException, NoteNotFoundException, AuthorizationException, BlogNotFoundException, NoteStoringPreProcessorException, ResponseBuildException, ExtensionNotSupportedException
handleEditInternally
in class DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,DefaultParameter>
editNoteParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datasessionId
- sessionIdrequest
- - javax requestNoteStoringPreProcessorException
- ExceptionIllegalRequestParameterException
- if text value is wrongNoteManagementAuthorizationException
- user is not authorizedBlogNotFoundException
- blog was not foundNoteNotFoundException
- note was not foundResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedAuthorizationException
- Thrown, when the user is not allowed to update the attachments.public javax.ws.rs.core.Response handleGetInternally(GetNoteParameter getNoteParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws AuthorizationException, NoteNotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleGetInternally
in class DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,DefaultParameter>
getNoteParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- - is the mime type that indicates which data exchange format to useuriInfo
- - this object is created by the request and contains some request specific datasessionId
- sessionIdrequest
- - javax requestNoteNotFoundException
- ExceptionAuthorizationException
- ExceptionResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedCopyright © 2019 Communote team. All rights reserved.