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) getDMRoomByRoomId(String roomId) getMatrixDMRoomsOfUser(String user) getMatrixRoomBySpaceId(String spaceId) org.exoplatform.social.core.space.model.SpacegetSpaceIdByMatrixRoomId(String roomId) longGet a list of rooms linked to spacesgetSpaceRoomsBySpaceIds(List<String> spaceIds) Load the list of space roomsvoidremoveMatrixRoom(String roomId) saveDirectMessagingRoom(String firstParticipantId, String secondParticipantId, String roomId) saveRoomForSpace(String spaceId, String roomId) static RoomtoRoomModel(RoomEntity roomEntity) Converts a RoomEntity to a Room model
-
Constructor Details
-
MatrixRoomStorage
public MatrixRoomStorage()
-
-
Method Details
-
getMatrixRoomBySpaceId
-
getSpaceIdByMatrixRoomId
-
getDMRoomByRoomId
-
saveRoomForSpace
-
saveDirectMessagingRoom
-
getSpaceRoomCount
public long getSpaceRoomCount() -
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
-
getSpaceRoomsBySpaceIds
Load the list of space rooms- Parameters:
spaceIds- : list of space IDs- Returns:
- List of Rooms
-