public class TopicResourceHandler extends DefaultResourceHandler<CreateTopicParameter,EditTopicParameter,DeleteTopicParameter,GetTopicParameter,GetCollectionTopicParameter>
TopicResource| Constructor and Description |
|---|
TopicResourceHandler()
Set the validator for the resource handler
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
handleCreateInternally(CreateTopicParameter createTopicParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Request to create a topic
|
javax.ws.rs.core.Response |
handleDeleteInternally(DeleteTopicParameter deleteTopicParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Request to delete a topic
|
javax.ws.rs.core.Response |
handleEditInternally(EditTopicParameter editTopicParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Request to edit a topic
|
javax.ws.rs.core.Response |
handleGetInternally(GetTopicParameter getTopicParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Retrieve a single topic from the server
|
javax.ws.rs.core.Response |
handleListInternally(GetCollectionTopicParameter getCollectionTopicParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String sessionId,
javax.ws.rs.core.Request request)
Get an collection of topics
|
handleCreate, handleDelete, handleEdit, handleGet, handleList, setValidatorpublic TopicResourceHandler()
public javax.ws.rs.core.Response handleCreateInternally(CreateTopicParameter createTopicParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws BlogValidationException, NotFoundException, AuthorizationException, ResponseBuildException, ExtensionNotSupportedException
handleCreateInternally in class DefaultResourceHandler<CreateTopicParameter,EditTopicParameter,DeleteTopicParameter,GetTopicParameter,GetCollectionTopicParameter>createTopicParameter - - 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 - - The sessionId for the sessionrequest - - javax requestBlogValidationException - parameter to get blog are not validAuthorizationException - user is not authorizied.NotFoundException - can not found element.ResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedpublic javax.ws.rs.core.Response handleDeleteInternally(DeleteTopicParameter deleteTopicParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws BlogNotFoundException, NoteManagementAuthorizationException, ResponseBuildException, ExtensionNotSupportedException, BlogAccessException
handleDeleteInternally in class DefaultResourceHandler<CreateTopicParameter,EditTopicParameter,DeleteTopicParameter,GetTopicParameter,GetCollectionTopicParameter>deleteTopicParameter - - 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 - - The sessionId for the sessionrequest - - javax requestBlogNotFoundException - ExceptionNoteManagementAuthorizationException - ExceptionResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedBlogAccessException - no access to the topicpublic javax.ws.rs.core.Response handleEditInternally(EditTopicParameter editTopicParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws BlogValidationException, AuthorizationException, NotFoundException, BlogNotFoundException, ResponseBuildException, ExtensionNotSupportedException
handleEditInternally in class DefaultResourceHandler<CreateTopicParameter,EditTopicParameter,DeleteTopicParameter,GetTopicParameter,GetCollectionTopicParameter>editTopicParameter - - 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 - - The sessionId for the sessionrequest - - javax requestBlogValidationException - topic input parameter are not validNotFoundException - topic is not foundAuthorizationException - user is not authorizedBlogNotFoundException - can not found topicResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedpublic javax.ws.rs.core.Response handleGetInternally(GetTopicParameter getTopicParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws BlogNotFoundException, ResponseBuildException, ExtensionNotSupportedException, BlogAccessException
handleGetInternally in class DefaultResourceHandler<CreateTopicParameter,EditTopicParameter,DeleteTopicParameter,GetTopicParameter,GetCollectionTopicParameter>getTopicParameter - - 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 - - The sessionId for the sessionrequest - - javax requestBlogNotFoundException - blog was not foundResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedBlogAccessExceptionpublic javax.ws.rs.core.Response handleListInternally(GetCollectionTopicParameter getCollectionTopicParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String sessionId, javax.ws.rs.core.Request request) throws IllegalRequestParameterException, ResponseBuildException, ExtensionNotSupportedException
handleListInternally in class DefaultResourceHandler<CreateTopicParameter,EditTopicParameter,DeleteTopicParameter,GetTopicParameter,GetCollectionTopicParameter>getCollectionTopicParameter - - 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 - - The sessionId for the sessionrequest - - javax requestIllegalRequestParameterException - request parameter is not validResponseBuildException - exception while building the responseExtensionNotSupportedException - extension is not supportedCopyright © 2019 Communote team. All rights reserved.