Package io.meeds.chat.rest
Class MatrixRest
java.lang.Object
io.meeds.chat.rest.MatrixRest
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
@RestController
@RequestMapping("/matrix")
public class MatrixRest
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetByRoomId(String roomId) getDirectMessagingRoom(DirectMessagingRoom directMessagingRoom) getDirectMessagingRoom(String firstParticipant, String secondParticipant) org.springframework.http.ResponseEntity<org.exoplatform.social.rest.entity.IdentityEntity> getIdentityByUserMatrixId(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.context.request.WebRequest webRequest, String userMatrixId) getMatrixRoomBySpaceId(String spaceId) booleanlinkSpaceToRoom(String spaceGroupId, String roomId, Boolean create) org.springframework.http.ResponseEntity<RoomList> processRooms(jakarta.servlet.http.HttpServletRequest request, RoomList rooms) org.springframework.http.ResponseEntity<String> updatePresenceStatus(Presence presence)
-
Constructor Details
-
MatrixRest
public MatrixRest()
-
-
Method Details
-
getMatrixRoomBySpaceId
-
getDirectMessagingRoom
@GetMapping("dmRoom") @Secured("users") public DirectMessagingRoom getDirectMessagingRoom(@RequestParam(name="firstParticipant") String firstParticipant, @RequestParam(name="secondParticipant") String secondParticipant) -
getDirectMessagingRoom
@PostMapping @Secured("users") public DirectMessagingRoom getDirectMessagingRoom(@RequestBody DirectMessagingRoom directMessagingRoom) -
notify
-
linkSpaceToRoom
-
getUserDirectMessagingRooms
-
getByRoomId
-
getIdentityByUserMatrixId
@GetMapping("userByMatrixId") @Secured("users") public org.springframework.http.ResponseEntity<org.exoplatform.social.rest.entity.IdentityEntity> getIdentityByUserMatrixId(jakarta.servlet.http.HttpServletRequest request, org.springframework.web.context.request.WebRequest webRequest, @RequestParam(name="userMatrixId") String userMatrixId) -
processRooms
-
updatePresenceStatus
-