public class RoleResourceHandler extends DefaultResourceHandler<CreateRoleParameter,DefaultParameter,DefaultParameter,GetRoleParameter,DefaultParameter>
Constructor and Description |
---|
RoleResourceHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
handleCreateInternally(CreateRoleParameter createRoleParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Create the role of internal user for blog
|
javax.ws.rs.core.Response |
handleGetInternally(GetRoleParameter getRoleParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
Get blog role
|
handleDeleteInternally, handleEditInternally, handleListInternally
handleCreate, handleDelete, handleEdit, handleGet, handleList, setValidator
public javax.ws.rs.core.Response handleCreateInternally(CreateRoleParameter createRoleParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws BlogNotFoundException, BlogAccessException, CommunoteEntityNotFoundException, NoBlogManagerLeftException, ResponseBuildException, ExtensionNotSupportedException
handleCreateInternally
in class DefaultResourceHandler<CreateRoleParameter,DefaultParameter,DefaultParameter,GetRoleParameter,DefaultParameter>
createRoleParameter
- - 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
- sessionIdrequest
- - javax requestBlogAccessException
- can not access blogBlogNotFoundException
- blog not foundBlogAccessException
- can not access blogCommunoteEntityNotFoundException
- can not found entity (user/group)NoBlogManagerLeftException
- no active user with managment rightsResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedpublic javax.ws.rs.core.Response handleGetInternally(GetRoleParameter getRoleParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws ResponseBuildException, ExtensionNotSupportedException
handleGetInternally
in class DefaultResourceHandler<CreateRoleParameter,DefaultParameter,DefaultParameter,GetRoleParameter,DefaultParameter>
getRoleParameter
- - 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
- sessionIdrequest
- - javax requestResponseBuildException
- exception while building the responseExtensionNotSupportedException
- extension is not supportedCopyright © 2019 Communote team. All rights reserved.