public class MongoMucDAO extends tigase.muc.repository.AbstractMucDAO<MongoDataSource,byte[]>
| Modifier and Type | Field and Description |
|---|---|
protected com.mongodb.client.MongoCollection<org.bson.Document> |
roomAffilaitionsCollection |
protected com.mongodb.client.MongoCollection<org.bson.Document> |
roomsCollection |
| Constructor and Description |
|---|
MongoMucDAO() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
calculateHash(String user) |
byte[] |
createRoom(tigase.muc.RoomWithId<byte[]> room) |
void |
destroyRoom(tigase.xmpp.BareJID roomJID) |
protected byte[] |
generateId(tigase.xmpp.BareJID user) |
Map<tigase.xmpp.BareJID,tigase.muc.Affiliation> |
getAffiliations(tigase.muc.RoomWithId<byte[]> room) |
tigase.muc.RoomWithId<byte[]> |
getRoom(tigase.xmpp.BareJID roomJID) |
ArrayList<tigase.xmpp.BareJID> |
getRoomsJIDList() |
void |
setAffiliation(tigase.muc.RoomWithId<byte[]> room,
tigase.xmpp.BareJID jid,
tigase.muc.Affiliation affiliation) |
void |
setDataSource(MongoDataSource dataSource) |
void |
setSubject(tigase.muc.RoomWithId<byte[]> room,
String subject,
String creatorNickname,
Date changeDate) |
void |
updateRoomConfig(tigase.muc.RoomConfig roomConfig) |
protected com.mongodb.client.MongoCollection<org.bson.Document> roomsCollection
protected com.mongodb.client.MongoCollection<org.bson.Document> roomAffilaitionsCollection
public byte[] createRoom(tigase.muc.RoomWithId<byte[]> room)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void destroyRoom(tigase.xmpp.BareJID roomJID)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic Map<tigase.xmpp.BareJID,tigase.muc.Affiliation> getAffiliations(tigase.muc.RoomWithId<byte[]> room) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic tigase.muc.RoomWithId<byte[]> getRoom(tigase.xmpp.BareJID roomJID)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic ArrayList<tigase.xmpp.BareJID> getRoomsJIDList() throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void setAffiliation(tigase.muc.RoomWithId<byte[]> room,
tigase.xmpp.BareJID jid,
tigase.muc.Affiliation affiliation)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void setSubject(tigase.muc.RoomWithId<byte[]> room,
String subject,
String creatorNickname,
Date changeDate)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void updateRoomConfig(tigase.muc.RoomConfig roomConfig)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void setDataSource(MongoDataSource dataSource)
protected byte[] generateId(tigase.xmpp.BareJID user)
throws tigase.db.TigaseDBException
tigase.db.TigaseDBExceptionprotected byte[] calculateHash(String user) throws tigase.db.TigaseDBException
tigase.db.TigaseDBExceptionCopyright © 2017 "Tigase, Inc.". All rights reserved.