tigase.muc.repository.inmemory
Class InMemoryMucRepository
java.lang.Object
tigase.muc.repository.inmemory.InMemoryMucRepository
- All Implemented Interfaces:
- IMucRepository
public class InMemoryMucRepository
- extends Object
- implements IMucRepository
- Author:
- bmalkow
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected Logger log
InMemoryMucRepository
public InMemoryMucRepository(MucConfig mucConfig,
MucDAO dao)
throws RepositoryException
- Throws:
RepositoryException
createNewRoom
public Room createNewRoom(tigase.xmpp.BareJID roomJID,
tigase.xmpp.JID senderJid)
throws RepositoryException
- Specified by:
createNewRoom in interface IMucRepository
- Throws:
RepositoryException
destroyRoom
public void destroyRoom(Room room)
throws RepositoryException
- Specified by:
destroyRoom in interface IMucRepository
- Throws:
RepositoryException
getActiveRooms
public Map<tigase.xmpp.BareJID,Room> getActiveRooms()
- Specified by:
getActiveRooms in interface IMucRepository
getDefaultRoomConfig
public RoomConfig getDefaultRoomConfig()
throws RepositoryException
- Specified by:
getDefaultRoomConfig in interface IMucRepository
- Throws:
RepositoryException
getPublicVisibleRoomsIdList
public tigase.xmpp.BareJID[] getPublicVisibleRoomsIdList()
throws RepositoryException
- Specified by:
getPublicVisibleRoomsIdList in interface IMucRepository
- Throws:
RepositoryException
getRoom
public Room getRoom(tigase.xmpp.BareJID roomJID)
throws RepositoryException,
MUCException,
tigase.util.TigaseStringprepException
- Specified by:
getRoom in interface IMucRepository
- Throws:
RepositoryException
MUCException
tigase.util.TigaseStringprepException
getRoomName
public String getRoomName(String jid)
throws RepositoryException
- Specified by:
getRoomName in interface IMucRepository
- Returns:
-
- Throws:
RepositoryException
isRoomIdExists
public boolean isRoomIdExists(String newRoomName)
- Specified by:
isRoomIdExists in interface IMucRepository
- Returns:
leaveRoom
public void leaveRoom(Room room)
- Specified by:
leaveRoom in interface IMucRepository
Copyright © 2007-2012 Tigase. All Rights Reserved.