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, handleListInternallyhandleCreate, handleDelete, handleEdit, handleGet, handleList, setValidatorpublic 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, CommunoteEntityNotFoundException, NoBlogManagerLeftException, ResponseBuildException, ExtensionNotSupportedException, AuthorizationException
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 requestBlogNotFoundException - 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 supportedAuthorizationException - in case the the current user tries to become manager of a topic but is not the
client managerpublic 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.