@Bean(name="mucRepository",
parent=MUCComponent.class,
active=true)
public class InMemoryMucRepository
extends Object
implements IMucRepository, tigase.kernel.beans.Initializable
| Modifier and Type | Class and Description |
|---|---|
static class |
InMemoryMucRepository.InternalRoom |
| Modifier and Type | Field and Description |
|---|---|
protected Map<tigase.xmpp.jid.BareJID,InMemoryMucRepository.InternalRoom> |
allRooms |
protected Logger |
log |
protected Map<tigase.xmpp.jid.BareJID,RoomWithId> |
rooms |
ID| Constructor and Description |
|---|
InMemoryMucRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToAllRooms(tigase.xmpp.jid.BareJID roomJid,
InMemoryMucRepository.InternalRoom internalRoom) |
Room |
createNewRoom(tigase.xmpp.jid.BareJID roomJID,
tigase.xmpp.jid.JID senderJid) |
void |
destroyRoom(Room room,
tigase.xml.Element destroyElement) |
Map<tigase.xmpp.jid.BareJID,Room> |
getActiveRooms() |
RoomConfig |
getDefaultRoomConfig() |
Map<tigase.xmpp.jid.BareJID,String> |
getPublicVisibleRooms(String domain) |
tigase.xmpp.jid.BareJID[] |
getPublicVisibleRoomsIdList() |
Room |
getRoom(tigase.xmpp.jid.BareJID roomJID) |
void |
initialize() |
boolean |
isRoomIdExists(String newRoomName) |
void |
leaveRoom(Room room) |
protected void |
removeFromAllRooms(tigase.xmpp.jid.BareJID roomJid) |
protected void |
roomConfigChanged(RoomConfig roomConfig,
Set<String> modifiedVars) |
void |
updateDefaultRoomConfig(RoomConfig config) |
protected final Map<tigase.xmpp.jid.BareJID,InMemoryMucRepository.InternalRoom> allRooms
protected final Map<tigase.xmpp.jid.BareJID,RoomWithId> rooms
protected Logger log
public Room createNewRoom(tigase.xmpp.jid.BareJID roomJID, tigase.xmpp.jid.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.jid.BareJID,Room> getActiveRooms()
getActiveRooms in interface IMucRepositorypublic RoomConfig getDefaultRoomConfig() throws tigase.component.exceptions.RepositoryException
getDefaultRoomConfig in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic Map<tigase.xmpp.jid.BareJID,String> getPublicVisibleRooms(String domain) throws tigase.component.exceptions.RepositoryException
getPublicVisibleRooms in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic tigase.xmpp.jid.BareJID[] getPublicVisibleRoomsIdList()
throws tigase.component.exceptions.RepositoryException
getPublicVisibleRoomsIdList in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic Room getRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException
getRoom in interface IMucRepositorytigase.component.exceptions.RepositoryExceptionpublic void initialize()
initialize in interface tigase.kernel.beans.Initializablepublic 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.jid.BareJID roomJid,
InMemoryMucRepository.InternalRoom internalRoom)
protected void removeFromAllRooms(tigase.xmpp.jid.BareJID roomJid)
protected void roomConfigChanged(RoomConfig roomConfig, Set<String> modifiedVars)
Copyright © 2007–2019 "Tigase, Inc.". All rights reserved.