Package tigase.muc.repository
Class MucDAOMDBean
java.lang.Object
tigase.db.beans.MDRepositoryBean<T>
tigase.db.beans.MDRepositoryBeanWithStatistics<IMucDAO>
tigase.muc.repository.MucDAOMDBean
- All Implemented Interfaces:
tigase.db.DataSourceAware,tigase.kernel.beans.Initializable,tigase.kernel.beans.RegistrarBean,tigase.kernel.beans.RegistrarBeanWithDefaultBeanClass,tigase.kernel.beans.UnregisterAware,IMucDAO,tigase.stats.ComponentStatisticsProvider,tigase.stats.StatisticsProviderIfc
@Bean(name="muc-dao",
parent=MUCComponent.class,
active=true)
public class MucDAOMDBean
extends tigase.db.beans.MDRepositoryBeanWithStatistics<IMucDAO>
implements IMucDAO
Created by andrzej on 16.10.2016.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class tigase.db.beans.MDRepositoryBean
tigase.db.beans.MDRepositoryBean.MDRepositoryConfigBean<A extends tigase.db.DataSourceAware>, tigase.db.beans.MDRepositoryBean.SelectorType -
Field Summary
Fields inherited from class tigase.db.beans.MDRepositoryBean
aliases, dataSourceSelection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateRoom(RoomWithId room) voiddestroyRoom(tigase.xmpp.jid.BareJID roomJID) findClassForDataSource(tigase.db.DataSource dataSource) Map<tigase.xmpp.jid.BareJID,RoomAffiliation> getAffiliations(RoomWithId room) Class<?>protected IMucDAOgetRepository(String domain) getRoom(tigase.xmpp.jid.BareJID roomJID) getRoomAvatar(RoomWithId room) List<tigase.xmpp.jid.BareJID>voidsetAffiliation(RoomWithId room, tigase.xmpp.jid.BareJID jid, RoomAffiliation affiliation) voidsetDataSource(tigase.db.DataSource dataSource) voidsetSubject(RoomWithId room, String subject, String creatorNickname, Date changeDate) voidupdateRoomAvatar(RoomWithId room, String encodedAvatar, String hash) voidupdateRoomConfig(RoomConfig roomConfig) Methods inherited from class tigase.db.beans.MDRepositoryBeanWithStatistics
everyHour, everyMinute, everySecond, getRepositories, getStatistics, setStatisticsEnabled, updateDataSourceAware, wrapInProxyMethods inherited from class tigase.db.beans.MDRepositoryBean
beforeUnregister, getName, initialize, initializeRepository, onDataSourceChange, register, registerIfNotExists, repositoriesStream, setDataSourceBean, unregister
-
Constructor Details
-
MucDAOMDBean
public MucDAOMDBean()
-
-
Method Details
-
belongsTo
- Specified by:
belongsToin interfacetigase.stats.ComponentStatisticsProvider
-
createRoom
- Specified by:
createRoomin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
destroyRoom
public void destroyRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException - Specified by:
destroyRoomin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
getAffiliations
public Map<tigase.xmpp.jid.BareJID,RoomAffiliation> getAffiliations(RoomWithId room) throws tigase.component.exceptions.RepositoryException - Specified by:
getAffiliationsin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
getRoom
public RoomWithId getRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException -
getRoomsJIDList
public List<tigase.xmpp.jid.BareJID> getRoomsJIDList() throws tigase.component.exceptions.RepositoryException- Specified by:
getRoomsJIDListin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
setAffiliation
public void setAffiliation(RoomWithId room, tigase.xmpp.jid.BareJID jid, RoomAffiliation affiliation) throws tigase.component.exceptions.RepositoryException - Specified by:
setAffiliationin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
updateRoomAvatar
public void updateRoomAvatar(RoomWithId room, String encodedAvatar, String hash) throws tigase.component.exceptions.RepositoryException - Specified by:
updateRoomAvatarin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
getRoomAvatar
- Specified by:
getRoomAvatarin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
setSubject
public void setSubject(RoomWithId room, String subject, String creatorNickname, Date changeDate) throws tigase.component.exceptions.RepositoryException - Specified by:
setSubjectin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
updateRoomConfig
public void updateRoomConfig(RoomConfig roomConfig) throws tigase.component.exceptions.RepositoryException - Specified by:
updateRoomConfigin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
getDefaultBeanClass
- Specified by:
getDefaultBeanClassin interfacetigase.kernel.beans.RegistrarBeanWithDefaultBeanClass
-
setDataSource
public void setDataSource(tigase.db.DataSource dataSource) - Specified by:
setDataSourcein interfacetigase.db.DataSourceAware
-
getRepository
- Overrides:
getRepositoryin classtigase.db.beans.MDRepositoryBeanWithStatistics<IMucDAO>
-
findClassForDataSource
protected Class<? extends IMucDAO> findClassForDataSource(tigase.db.DataSource dataSource) throws tigase.db.DBInitException - Specified by:
findClassForDataSourcein classtigase.db.beans.MDRepositoryBean<IMucDAO>- Throws:
tigase.db.DBInitException
-