public class LikeResourceHandler extends DefaultResourceHandler<CreateLikeParameter,DefaultParameter,DeleteLikeParameter,DefaultParameter,GetCollectionLikeParameter>
| Constructor and Description |
|---|
LikeResourceHandler() |
| Modifier and Type | Method and Description |
|---|---|
NoteService |
getNoteManagement()
Getter for the
NoteService |
PropertyManagement |
getPropertyManagement()
Getter for the
PropertyManagement |
javax.ws.rs.core.Response |
handleCreateInternally(CreateLikeParameter createLikeParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to set note as favorite
|
javax.ws.rs.core.Response |
handleDeleteInternally(DeleteLikeParameter deleteLikeParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to delete note as favorite
|
javax.ws.rs.core.Response |
handleListInternally(GetCollectionLikeParameter getCollectionLikeParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Request to list the likes of note
|
handleEditInternally, handleGetInternallyhandleCreate, handleDelete, handleEdit, handleGet, handleList, setValidatorpublic NoteService getNoteManagement()
NoteServiceNoteServicepublic PropertyManagement getPropertyManagement()
PropertyManagementPropertyManagementpublic javax.ws.rs.core.Response handleCreateInternally(CreateLikeParameter createLikeParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws AuthorizationException, NotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleCreateInternally in class DefaultResourceHandler<CreateLikeParameter,DefaultParameter,DeleteLikeParameter,DefaultParameter,GetCollectionLikeParameter>createLikeParameter - - 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 datarequestSessionId - - The sessionId for the sessionrequest - - javax requestLikeResourceAuthorizationException - user is not authorizedNotFoundException - can note found propertyResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedpublic javax.ws.rs.core.Response handleDeleteInternally(DeleteLikeParameter deleteLikeParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws AuthorizationException, NotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleDeleteInternally in class DefaultResourceHandler<CreateLikeParameter,DefaultParameter,DeleteLikeParameter,DefaultParameter,GetCollectionLikeParameter>deleteLikeParameter - - 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 datarequestSessionId - - The sessionId for the sessionrequest - - javax requestLikeResourceAuthorizationException - user is not authorizedNotFoundException - can not found propertyResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedpublic javax.ws.rs.core.Response handleListInternally(GetCollectionLikeParameter getCollectionLikeParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws AuthorizationException, ResponseBuildException, ExtensionNotSupportedException
handleListInternally in class DefaultResourceHandler<CreateLikeParameter,DefaultParameter,DeleteLikeParameter,DefaultParameter,GetCollectionLikeParameter>getCollectionLikeParameter - - 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 datarequestSessionId - - The sessionId for the sessionrequest - - javax requestLikeResourceAuthorizationException - user is not authorizedResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedCopyright © 2019 Communote team. All rights reserved.