Ejemplo n.º 1
0
 @Path("/{uuid}")
 @GET
 @ApiOperation(value = "Find a thread", response = ThreadDto.class)
 @ApiResponses({@ApiResponse(code = 403, message = "User isn't admin.")})
 @Override
 public ThreadDto find(@PathParam("uuid") String uuid) throws BusinessException {
   return threadFacade.find(uuid);
 }
Ejemplo n.º 2
0
 @Path("/")
 @DELETE
 @ApiOperation(value = "Delete a thread.")
 @ApiResponses({@ApiResponse(code = 403, message = "User isn't admin.")})
 @Override
 public void delete(ThreadDto thread) throws BusinessException {
   threadFacade.delete(thread.getUuid());
 }
Ejemplo n.º 3
0
 @Path("/")
 @GET
 @ApiOperation(value = "Find all threads.", response = ThreadDto.class, responseContainer = "Set")
 @ApiResponses({@ApiResponse(code = 403, message = "User isn't admin.")})
 @Override
 public Set<ThreadDto> findAll() throws BusinessException {
   return threadFacade.findAll();
 }
Ejemplo n.º 4
0
 @Path("/")
 @PUT
 @ApiOperation(value = "Update a thread.")
 @ApiResponses({@ApiResponse(code = 403, message = "User isn't admin.")})
 @Override
 public ThreadDto update(ThreadDto thread) throws BusinessException {
   return threadFacade.update(thread);
 }
Ejemplo n.º 5
0
 @Path("/{uuid}/members")
 @GET
 @ApiOperation(
     value = "Find all thread members.",
     response = ThreadDto.class,
     responseContainer = "Set")
 @ApiResponses({@ApiResponse(code = 403, message = "User isn't admin.")})
 @Override
 public Set<ThreadMemberDto> members(@PathParam("uuid") String uuid) throws BusinessException {
   return threadFacade.members(uuid);
 }