1 11 12 package org.jivesoftware.messenger.muc; 13 14 import java.util.List ; 15 import java.util.Collection ; 16 17 import org.jivesoftware.messenger.auth.UnauthorizedException; 18 import org.jivesoftware.messenger.user.UserNotFoundException; 19 import org.xmpp.packet.Message; 20 import org.xmpp.packet.JID; 21 import org.xmpp.component.Component; 22 23 30 public interface MultiUserChatServer extends Component { 31 32 39 String getServiceDomain(); 40 41 46 String getServiceName(); 47 48 54 void setServiceName(String name); 55 56 62 Collection <String > getSysadmins(); 63 64 70 void addSysadmin(String userJID); 71 72 77 void removeSysadmin(String userJID); 78 79 85 boolean isRoomCreationRestricted(); 86 87 93 void setRoomCreationRestricted(boolean roomCreationRestricted); 94 95 101 Collection <String > getUsersAllowedToCreate(); 102 103 108 void addUserAllowedToCreate(String userJID); 109 110 115 void removeUserAllowedToCreate(String userJID); 116 117 126 void setKickIdleUsersTimeout(int timeout); 127 128 135 int getKickIdleUsersTimeout(); 136 137 143 void setUserIdleTime(int idle); 144 145 151 int getUserIdleTime(); 152 153 161 void setLogConversationsTimeout(int timeout); 162 163 171 int getLogConversationsTimeout(); 172 173 180 void setLogConversationBatchSize(int size); 181 182 187 int getLogConversationBatchSize(); 188 189 194 HistoryStrategy getHistoryStrategy(); 195 196 206 MUCRoom getChatRoom(String roomName, JID userjid) throws UnauthorizedException; 207 208 214 MUCRoom getChatRoom(String roomName); 215 216 222 List <MUCRoom> getChatRooms(); 223 224 230 boolean hasChatRoom(String roomName); 231 232 237 void removeChatRoom(String roomName); 238 239 244 void removeUser(JID jabberID); 245 246 253 MUCUser getChatUser(JID userjid) throws UserNotFoundException; 254 255 261 void serverBroadcast(String msg) throws UnauthorizedException; 262 263 268 public long getTotalChatTime(); 269 270 285 void logConversation(MUCRoom room, Message message, JID sender); 286 } | Popular Tags |