Package org.jivesoftware.smackx.muclight
Class MultiUserChatLightManager
- java.lang.Object
-
- org.jivesoftware.smack.Manager
-
- org.jivesoftware.smackx.muclight.MultiUserChatLightManager
-
public final class MultiUserChatLightManager extends org.jivesoftware.smack.ManagerMulti-User Chat Light manager class.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidblockRoom(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid roomJid)Block a room.voidblockRooms(org.jxmpp.jid.DomainBareJid mucLightService, java.util.List<org.jxmpp.jid.Jid> roomsJids)Block rooms.voidblockUser(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid userJid)Block a user.voidblockUsers(org.jxmpp.jid.DomainBareJid mucLightService, java.util.List<org.jxmpp.jid.Jid> usersJids)Block users.static MultiUserChatLightManagergetInstanceFor(org.jivesoftware.smack.XMPPConnection connection)Get a instance of a MUC Light manager for the given connection.java.util.List<org.jxmpp.jid.DomainBareJid>getLocalServices()Returns a collection with the XMPP addresses of the MUC Light services.MultiUserChatLightgetMultiUserChatLight(org.jxmpp.jid.EntityBareJid jid)Obtain the MUC Light.java.util.List<org.jxmpp.jid.Jid>getOccupiedRooms(org.jxmpp.jid.DomainBareJid mucLightService)Returns a List of the rooms the user occupies.java.util.List<org.jxmpp.jid.Jid>getRoomsBlocked(org.jxmpp.jid.DomainBareJid mucLightService)Get rooms blocked.java.util.List<org.jxmpp.jid.Jid>getUsersAndRoomsBlocked(org.jxmpp.jid.DomainBareJid mucLightService)Get users and rooms blocked.java.util.List<org.jxmpp.jid.Jid>getUsersBlocked(org.jxmpp.jid.DomainBareJid mucLightService)Get users blocked.booleanisFeatureSupported(org.jxmpp.jid.DomainBareJid mucLightService)Returns true if Multi-User Chat Light feature is supported by the server.voidunblockRoom(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid roomJid)Unblock a room.voidunblockRooms(org.jxmpp.jid.DomainBareJid mucLightService, java.util.List<org.jxmpp.jid.Jid> roomsJids)Unblock rooms.voidunblockUser(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid userJid)Unblock a user.voidunblockUsers(org.jxmpp.jid.DomainBareJid mucLightService, java.util.List<org.jxmpp.jid.Jid> usersJids)Unblock users.
-
-
-
Method Detail
-
getInstanceFor
public static MultiUserChatLightManager getInstanceFor(org.jivesoftware.smack.XMPPConnection connection)
Get a instance of a MUC Light manager for the given connection.- Parameters:
connection- TODO javadoc me please- Returns:
- a MUCLight manager.
-
getMultiUserChatLight
public MultiUserChatLight getMultiUserChatLight(org.jxmpp.jid.EntityBareJid jid)
Obtain the MUC Light.- Parameters:
jid- TODO javadoc me please- Returns:
- the MUCLight.
-
isFeatureSupported
public boolean isFeatureSupported(org.jxmpp.jid.DomainBareJid mucLightService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionReturns true if Multi-User Chat Light feature is supported by the server.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- true if Multi-User Chat Light feature is supported by the server.
- Throws:
org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.java.lang.InterruptedException- if the calling thread was interrupted.
-
getOccupiedRooms
public java.util.List<org.jxmpp.jid.Jid> getOccupiedRooms(org.jxmpp.jid.DomainBareJid mucLightService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionReturns a List of the rooms the user occupies.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- a List of the rooms the user occupies.
- Throws:
org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
getLocalServices
public java.util.List<org.jxmpp.jid.DomainBareJid> getLocalServices() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionReturns a collection with the XMPP addresses of the MUC Light services.- Returns:
- a collection with the XMPP addresses of the MUC Light services.
- Throws:
org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
getUsersAndRoomsBlocked
public java.util.List<org.jxmpp.jid.Jid> getUsersAndRoomsBlocked(org.jxmpp.jid.DomainBareJid mucLightService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionGet users and rooms blocked.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- the list of users and rooms blocked
- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
getRoomsBlocked
public java.util.List<org.jxmpp.jid.Jid> getRoomsBlocked(org.jxmpp.jid.DomainBareJid mucLightService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionGet rooms blocked.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- the list of rooms blocked
- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
getUsersBlocked
public java.util.List<org.jxmpp.jid.Jid> getUsersBlocked(org.jxmpp.jid.DomainBareJid mucLightService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionGet users blocked.- Parameters:
mucLightService- TODO javadoc me please- Returns:
- the list of users blocked
- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
blockRoom
public void blockRoom(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid roomJid) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionBlock a room.- Parameters:
mucLightService- TODO javadoc me pleaseroomJid- TODO javadoc me please- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
blockRooms
public void blockRooms(org.jxmpp.jid.DomainBareJid mucLightService, java.util.List<org.jxmpp.jid.Jid> roomsJids) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionBlock rooms.- Parameters:
mucLightService- TODO javadoc me pleaseroomsJids- TODO javadoc me please- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
blockUser
public void blockUser(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid userJid) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionBlock a user.- Parameters:
mucLightService- TODO javadoc me pleaseuserJid- TODO javadoc me please- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
blockUsers
public void blockUsers(org.jxmpp.jid.DomainBareJid mucLightService, java.util.List<org.jxmpp.jid.Jid> usersJids) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionBlock users.- Parameters:
mucLightService- TODO javadoc me pleaseusersJids- TODO javadoc me please- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
unblockRoom
public void unblockRoom(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid roomJid) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionUnblock a room.- Parameters:
mucLightService- TODO javadoc me pleaseroomJid- TODO javadoc me please- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
unblockRooms
public void unblockRooms(org.jxmpp.jid.DomainBareJid mucLightService, java.util.List<org.jxmpp.jid.Jid> roomsJids) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionUnblock rooms.- Parameters:
mucLightService- TODO javadoc me pleaseroomsJids- TODO javadoc me please- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
unblockUser
public void unblockUser(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid userJid) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionUnblock a user.- Parameters:
mucLightService- TODO javadoc me pleaseuserJid- TODO javadoc me please- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
unblockUsers
public void unblockUsers(org.jxmpp.jid.DomainBareJid mucLightService, java.util.List<org.jxmpp.jid.Jid> usersJids) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedExceptionUnblock users.- Parameters:
mucLightService- TODO javadoc me pleaseusersJids- TODO javadoc me please- Throws:
org.jivesoftware.smack.SmackException.NoResponseException- if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException- if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException- if the XMPP connection is not connected.java.lang.InterruptedException- if the calling thread was interrupted.
-
-