Ejemplo n.º 1
0
 @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();
 }
Ejemplo n.º 2
0
 @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();
 }
Ejemplo n.º 3
0
 @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();
 }
Ejemplo n.º 4
0
 @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();
 }