tigase.muc.repository.inmemory
Class InMemoryMucRepository

java.lang.Object
  extended by tigase.muc.repository.inmemory.InMemoryMucRepository
All Implemented Interfaces:
IMucRepository

public class InMemoryMucRepository
extends Object
implements IMucRepository

Author:
bmalkow

Field Summary
protected  Logger log
           
 
Constructor Summary
InMemoryMucRepository(MucConfig mucConfig, MucDAO dao)
           
 
Method Summary
 Room createNewRoom(tigase.xmpp.BareJID roomJID, tigase.xmpp.JID senderJid)
           
 void destroyRoom(Room room)
           
 Map<tigase.xmpp.BareJID,Room> getActiveRooms()
           
 RoomConfig getDefaultRoomConfig()
           
 tigase.xmpp.BareJID[] getPublicVisibleRoomsIdList()
           
 Room getRoom(tigase.xmpp.BareJID roomJID)
           
 String getRoomName(String jid)
           
 boolean isRoomIdExists(String newRoomName)
           
 void leaveRoom(Room room)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Logger log
Constructor Detail

InMemoryMucRepository

public InMemoryMucRepository(MucConfig mucConfig,
                             MucDAO dao)
                      throws RepositoryException
Throws:
RepositoryException
Method Detail

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.