public class NoteResourceHandler extends DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,GetCollectionNoteParameter>
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
|
javax.ws.rs.core.Response |
handleListInternally(GetCollectionNoteParameter getCollectionNoteParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Get method for the NoteCollection
|
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, ResponseBuildException, ExtensionNotSupportedException
handleCreateInternally
in class DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,GetCollectionNoteParameter>
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 wrongAuthorizationException
- user is not authorizedBlogNotFoundException
- blog was not foundResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedpublic 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 AuthorizationException, ResponseBuildException, ExtensionNotSupportedException
handleDeleteInternally
in class DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,GetCollectionNoteParameter>
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 requestAuthorizationException
- 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,GetCollectionNoteParameter>
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 wrongAuthorizationException
- user is not authorizedBlogNotFoundException
- blog was not foundNoteNotFoundException
- note was not foundResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedpublic 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,GetCollectionNoteParameter>
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 supportedpublic javax.ws.rs.core.Response handleListInternally(GetCollectionNoteParameter getCollectionNoteParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws ResponseBuildException, ExtensionNotSupportedException
handleListInternally
in class DefaultResourceHandler<CreateNoteParameter,EditNoteParameter,DeleteNoteParameter,GetNoteParameter,GetCollectionNoteParameter>
getCollectionNoteParameter
- - an object that contains all the parameter that can or have to be used for such a
requestrequestedMimeType
- The requested mimetype.uriInfo
- All request information.sessionId
- the current session Id.request
- - javax requestResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedCopyright © 2019 Communote team. All rights reserved.