tigase.muc.repository
Class MucDAO

java.lang.Object
  extended by tigase.muc.repository.MucDAO

public class MucDAO
extends Object

Author:
bmalkow

Field Summary
protected  Logger log
           
 
Constructor Summary
MucDAO(MucConfig config, tigase.db.UserRepository repository)
           
 
Method Summary
 void createRoom(Room room)
           
 void destroyRoom(tigase.xmpp.BareJID roomJID)
           
 Date getCreationDate(tigase.xmpp.BareJID roomJID)
           
 String getRoomName(String jid)
           
 ArrayList<tigase.xmpp.BareJID> getRoomsJIDList()
           
 String getSubject(tigase.xmpp.BareJID roomJID)
           
 Date getSubjectCreationDate(tigase.xmpp.BareJID roomJID)
           
 String getSubjectCreatorNickname(tigase.xmpp.BareJID roomJID)
           
 Room readRoom(tigase.xmpp.BareJID roomJID)
           
 void setAffiliation(tigase.xmpp.BareJID roomJID, tigase.xmpp.BareJID jid, Affiliation affiliation)
           
 void setSubject(tigase.xmpp.BareJID roomJID, String subject, String creatorNickname, Date changeDate)
           
 void updateLastAccessDate(tigase.xmpp.BareJID roomJID)
           
 void updateRoomConfig(RoomConfig roomConfig)
           
 
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

MucDAO

public MucDAO(MucConfig config,
              tigase.db.UserRepository repository)
       throws RepositoryException
Throws:
RepositoryException
Method Detail

createRoom

public void createRoom(Room room)
                throws RepositoryException
Throws:
RepositoryException

destroyRoom

public void destroyRoom(tigase.xmpp.BareJID roomJID)
                 throws RepositoryException
Parameters:
roomJID -
Throws:
RepositoryException

getCreationDate

public Date getCreationDate(tigase.xmpp.BareJID roomJID)
                     throws RepositoryException
Throws:
RepositoryException

getRoomName

public String getRoomName(String jid)
                   throws RepositoryException
Parameters:
jid -
Returns:
Throws:
RepositoryException

getRoomsJIDList

public ArrayList<tigase.xmpp.BareJID> getRoomsJIDList()
                                               throws RepositoryException
Returns:
Throws:
RepositoryException

getSubject

public String getSubject(tigase.xmpp.BareJID roomJID)
                  throws RepositoryException
Throws:
RepositoryException

getSubjectCreationDate

public Date getSubjectCreationDate(tigase.xmpp.BareJID roomJID)
                            throws RepositoryException
Throws:
RepositoryException

getSubjectCreatorNickname

public String getSubjectCreatorNickname(tigase.xmpp.BareJID roomJID)
                                 throws RepositoryException
Throws:
RepositoryException

readRoom

public Room readRoom(tigase.xmpp.BareJID roomJID)
              throws RepositoryException,
                     MUCException,
                     tigase.util.TigaseStringprepException
Throws:
RepositoryException
MUCException
tigase.util.TigaseStringprepException

setAffiliation

public void setAffiliation(tigase.xmpp.BareJID roomJID,
                           tigase.xmpp.BareJID jid,
                           Affiliation affiliation)
                    throws RepositoryException
Parameters:
roomJID -
affiliation -
jid -
affiliations -
Throws:
RepositoryException

setSubject

public void setSubject(tigase.xmpp.BareJID roomJID,
                       String subject,
                       String creatorNickname,
                       Date changeDate)
                throws RepositoryException
Parameters:
roomJID -
changeDate -
msg -
Throws:
RepositoryException

updateLastAccessDate

public void updateLastAccessDate(tigase.xmpp.BareJID roomJID)
                          throws RepositoryException
Parameters:
roomJID -
Throws:
RepositoryException

updateRoomConfig

public void updateRoomConfig(RoomConfig roomConfig)
                      throws RepositoryException
Parameters:
roomConfig -
Throws:
RepositoryException


Copyright © 2007-2012 Tigase. All Rights Reserved.