public class InMemoryMucRepository extends Object implements IMucRepository
| Modifier and Type | Class and Description |
|---|---|
static class |
InMemoryMucRepository.InternalRoom |
| Modifier and Type | Field and Description |
|---|---|
protected Map<tigase.xmpp.BareJID,InMemoryMucRepository.InternalRoom> |
allRooms |
protected Logger |
log |
protected Map<tigase.xmpp.BareJID,Room> |
rooms |
| Constructor and Description |
|---|
InMemoryMucRepository(MucContext mucConfig,
MucDAO dao) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToAllRooms(tigase.xmpp.BareJID roomJid,
InMemoryMucRepository.InternalRoom internalRoom) |
Room |
createNewRoom(tigase.xmpp.BareJID roomJID,
tigase.xmpp.JID senderJid) |
void |
destroyRoom(Room room,
tigase.xml.Element destroyElement) |
Map<tigase.xmpp.BareJID,Room> |
getActiveRooms() |
RoomConfig |
getDefaultRoomConfig() |
Map<tigase.xmpp.BareJID,String> |
getPublicVisibleRooms(String domain) |
tigase.xmpp.BareJID[] |
getPublicVisibleRoomsIdList() |
Room |
getRoom(tigase.xmpp.BareJID roomJID) |
String |
getRoomName(String jid) |
boolean |
isRoomIdExists(String newRoomName) |
void |
leaveRoom(Room room) |
protected void |
removeFromAllRooms(tigase.xmpp.BareJID roomJid) |
protected void |
roomConfigChanged(RoomConfig roomConfig,
Set<String> modifiedVars) |
void |
updateDefaultRoomConfig(RoomConfig config) |
protected final Map<tigase.xmpp.BareJID,InMemoryMucRepository.InternalRoom> allRooms
protected Logger log
public InMemoryMucRepository(MucContext mucConfig, MucDAO dao) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic Room createNewRoom(tigase.xmpp.BareJID roomJID, tigase.xmpp.JID senderJid) throws tigase.component.exceptions.RepositoryException
createNewRoom in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic void destroyRoom(Room room, tigase.xml.Element destroyElement) throws tigase.component.exceptions.RepositoryException
destroyRoom in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic Map<tigase.xmpp.BareJID,Room> getActiveRooms()
getActiveRooms in interface IMucRepositorypublic RoomConfig getDefaultRoomConfig() throws tigase.component.exceptions.RepositoryException
getDefaultRoomConfig in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic Map<tigase.xmpp.BareJID,String> getPublicVisibleRooms(String domain) throws tigase.component.exceptions.RepositoryException
getPublicVisibleRooms in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic tigase.xmpp.BareJID[] getPublicVisibleRoomsIdList()
throws tigase.component.exceptions.RepositoryException
getPublicVisibleRoomsIdList in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic Room getRoom(tigase.xmpp.BareJID roomJID) throws tigase.component.exceptions.RepositoryException
getRoom in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic String getRoomName(String jid) throws tigase.component.exceptions.RepositoryException
getRoomName in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic boolean isRoomIdExists(String newRoomName)
isRoomIdExists in interface IMucRepositorypublic void leaveRoom(Room room)
leaveRoom in interface IMucRepositorypublic void updateDefaultRoomConfig(RoomConfig config) throws tigase.component.exceptions.RepositoryException
updateDefaultRoomConfig in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionprotected void addToAllRooms(tigase.xmpp.BareJID roomJid,
InMemoryMucRepository.InternalRoom internalRoom)
protected void removeFromAllRooms(tigase.xmpp.BareJID roomJid)
protected void roomConfigChanged(RoomConfig roomConfig, Set<String> modifiedVars)
Copyright © 2007–2017 Tigase. All rights reserved.