Package io.meeds.chat.storage
Class MatrixRoomStorage
java.lang.Object
io.meeds.chat.storage.MatrixRoomStorage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDirectMessagingRoom(String firstParticipantId, String secondParticipantId) getMatrixDMRoomsOfUser(String user) getMatrixRoomBySpaceId(String spaceId, boolean includeDisabled) Get a list of rooms linked to spacesvoidremoveMatrixRoom(String roomId) saveDirectMessagingRoom(String firstParticipantId, String secondParticipantId, String roomId) saveRoomForSpace(String spaceId, String roomId) setRoomEnabled(String roomId, RoomStatus status) Enable or disable a roomstatic RoomtoRoomModel(RoomEntity roomEntity) Converts a RoomEntity to a Room model
-
Constructor Details
-
MatrixRoomStorage
public MatrixRoomStorage()
-
-
Method Details
-
getMatrixRoomBySpaceId
-
saveRoomForSpace
-
saveDirectMessagingRoom
-
getDirectMessagingRoom
-
getMatrixDMRoomsOfUser
-
removeMatrixRoom
-
getById
-
toRoomModel
Converts a RoomEntity to a Room model- Parameters:
roomEntity- the JPA entity for room- Returns:
- Room object
-
getSpaceRooms
Get a list of rooms linked to spaces- Returns:
- List of SpaceRoom
-
setRoomEnabled
Enable or disable a room- Parameters:
roomId- the ID of the Chat roomstatus- the status to set: ENABLE, DISABLED, ENABLE_IN6PROGRESS, DISABLE_IN_PROGRESS- Returns:
- the updated room
-