tigase.muc.repository.inmemory
Class InMemoryMucRepository

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

public class InMemoryMucRepository
extends java.lang.Object
implements IMucRepository

Author:
bmalkow

Field Summary
protected  java.util.logging.Logger log
           
 
Constructor Summary
InMemoryMucRepository(MucConfig mucConfig, MucDAO dao)
           
 
Method Summary
 Room createNewRoom(java.lang.String roomId, java.lang.String senderJid)
           
 RoomConfig getDefaultRoomConfig()
           
 java.lang.String[] getPublicVisibleRoomsIdList()
           
 Room getRoom(java.lang.String roomId)
           
 java.lang.String getRoomName(java.lang.String jid)
           
 boolean isRoomIdExists(java.lang.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 java.util.logging.Logger log
Constructor Detail

InMemoryMucRepository

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

createNewRoom

public Room createNewRoom(java.lang.String roomId,
                          java.lang.String senderJid)
                   throws RepositoryException
Specified by:
createNewRoom in interface IMucRepository
Throws:
RepositoryException

getDefaultRoomConfig

public RoomConfig getDefaultRoomConfig()
                                throws RepositoryException
Specified by:
getDefaultRoomConfig in interface IMucRepository
Throws:
RepositoryException

getPublicVisibleRoomsIdList

public java.lang.String[] getPublicVisibleRoomsIdList()
                                               throws RepositoryException
Specified by:
getPublicVisibleRoomsIdList in interface IMucRepository
Throws:
RepositoryException

getRoom

public Room getRoom(java.lang.String roomId)
             throws RepositoryException
Specified by:
getRoom in interface IMucRepository
Throws:
RepositoryException

getRoomName

public java.lang.String getRoomName(java.lang.String jid)
                             throws RepositoryException
Specified by:
getRoomName in interface IMucRepository
Returns:
Throws:
RepositoryException

isRoomIdExists

public boolean isRoomIdExists(java.lang.String newRoomName)
Specified by:
isRoomIdExists in interface IMucRepository
Returns:

leaveRoom

public void leaveRoom(Room room)
Specified by:
leaveRoom in interface IMucRepository


Copyright © 2007-2009 Tigase. All Rights Reserved.