@DELETE @Path("/group/{groupname}") public Response deleteMUCRoomMemberGroup( @PathParam("groupname") String groupname, @DefaultValue("conference") @QueryParam("servicename") String serviceName, @PathParam("roomName") String roomName) throws ServiceException { MUCRoomController.getInstance().deleteAffiliation(serviceName, roomName, groupname); return Response.status(Status.OK).build(); }
@DELETE @Path("/{jid}") public Response deleteMUCRoomOutcast( @PathParam("jid") String jid, @DefaultValue("conference") @QueryParam("servicename") String serviceName, @PathParam("roomName") String roomName) throws ServiceException { MUCRoomController.getInstance().deleteAffiliation(serviceName, roomName, jid); return Response.status(Status.OK).build(); }
@POST @Path("/group/{groupname}") public Response addMUCRoomMemberGroup( @DefaultValue("conference") @QueryParam("servicename") String serviceName, @PathParam("groupname") String groupname, @PathParam("roomName") String roomName) throws ServiceException { MUCRoomController.getInstance().addMember(serviceName, roomName, groupname); return Response.status(Status.CREATED).build(); }
@POST @Path("/{jid}") public Response addMUCRoomOutcast( @DefaultValue("conference") @QueryParam("servicename") String serviceName, @PathParam("jid") String jid, @PathParam("roomName") String roomName) throws ServiceException { MUCRoomController.getInstance().addOutcast(serviceName, roomName, jid); return Response.status(Status.CREATED).build(); }