Class MucDAO


  • public class MucDAO
    extends Object
    Author:
    bmalkow
    • Constructor Detail

      • MucDAO

        public MucDAO​(MucContext config,
                      tigase.db.UserRepository repository)
               throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
    • Method Detail

      • createRoom

        public void createRoom​(Room room)
                        throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • destroyRoom

        public void destroyRoom​(tigase.xmpp.BareJID roomJID)
                         throws tigase.component.exceptions.RepositoryException
        Parameters:
        roomJID -
        Throws:
        tigase.component.exceptions.RepositoryException
      • getCreationDate

        public Date getCreationDate​(tigase.xmpp.BareJID roomJID)
                             throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • getRepository

        public tigase.db.UserRepository getRepository()
      • getRoomName

        public String getRoomName​(String jid)
                           throws tigase.component.exceptions.RepositoryException
        Parameters:
        jid -
        Returns:
        Throws:
        tigase.component.exceptions.RepositoryException
      • getRoomsJIDList

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

        public String getSubject​(tigase.xmpp.BareJID roomJID)
                          throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • getSubjectCreationDate

        public Date getSubjectCreationDate​(tigase.xmpp.BareJID roomJID)
                                    throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • getSubjectCreatorNickname

        public String getSubjectCreatorNickname​(tigase.xmpp.BareJID roomJID)
                                         throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • readRoom

        public Room readRoom​(tigase.xmpp.BareJID roomJID)
                      throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
      • setAffiliation

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

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

        public void updateLastAccessDate​(tigase.xmpp.BareJID roomJID)
                                  throws tigase.component.exceptions.RepositoryException
        Parameters:
        roomJID -
        Throws:
        tigase.component.exceptions.RepositoryException
      • updateRoomConfig

        public void updateRoomConfig​(RoomConfig roomConfig)
                              throws tigase.component.exceptions.RepositoryException
        Parameters:
        roomConfig -
        Throws:
        tigase.component.exceptions.RepositoryException