public class RoleResourceHandler extends DefaultResourceHandler<CreateRoleParameter,DefaultParameter,DefaultParameter,GetRoleParameter,GetCollectionRoleParameter>
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
|
protected javax.ws.rs.core.Response |
handleListInternally(GetCollectionRoleParameter listParameter,
String requestedMimeType,
javax.ws.rs.core.UriInfo uriInfo,
String requestSessionId,
javax.ws.rs.core.Request request)
hook method, which should be implemented by subclasses, in order to perform actual resource
querying
|
handleDeleteInternally, handleEditInternally
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, CommunoteEntityNotFoundException, NoBlogManagerLeftException, ResponseBuildException, ExtensionNotSupportedException, AuthorizationException
handleCreateInternally
in class DefaultResourceHandler<CreateRoleParameter,DefaultParameter,DefaultParameter,GetRoleParameter,GetCollectionRoleParameter>
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,GetCollectionRoleParameter>
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 supportedprotected javax.ws.rs.core.Response handleListInternally(GetCollectionRoleParameter listParameter, String requestedMimeType, javax.ws.rs.core.UriInfo uriInfo, String requestSessionId, javax.ws.rs.core.Request request) throws Exception
DefaultResourceHandler
handleListInternally
in class DefaultResourceHandler<CreateRoleParameter,DefaultParameter,DefaultParameter,GetRoleParameter,GetCollectionRoleParameter>
listParameter
- get list parameterrequestedMimeType
- mimeTypeuriInfo
- urirequestSessionId
- session idrequest
- requestException
- if anything goes wrongCopyright © 2019 Communote team. All rights reserved.