/** * Create a new group chat server. * * @param subdomain * Subdomain portion of the conference services (for example, * conference for conference.example.org) * @param description * Short description of service for disco and such. If * <tt>null</tt> or empty, a default value will be used. * @param isHidden * True if this service should be hidden from services views. * @throws IllegalArgumentException * if the provided subdomain is an invalid, according to the JID * domain definition. */ public MultiUserChatServiceImpl(String subdomain, String description, Boolean isHidden) { // Check subdomain and throw an IllegalArgumentException if its invalid new JID(null,subdomain + "." + XMPPServer.getInstance().getServerInfo().getXMPPDomain(), null); this.chatServiceName = subdomain; if (description != null && description.trim().length() > 0) { this.chatDescription = description; } else { this.chatDescription = LocaleUtils.getLocalizedString("muc.service-name"); } this.isHidden = isHidden; historyStrategy = new HistoryStrategy(null); }
this.registrationEnabled = MUCPersistenceManager.getBooleanProperty(mucService.getServiceName(), "room.registrationEnabled", true); roomHistory = new MUCRoomHistory(this, new HistoryStrategy(mucService.getHistoryStrategy())); this.iqOwnerHandler = new IQOwnerHandler(this, packetRouter); this.iqAdminHandler = new IQAdminHandler(this, packetRouter);
mucService = XMPPServer.getInstance().getMultiUserChatManager().getMultiUserChatService(subdomain); if (mucService == null) throw new IllegalArgumentException("MUC service not found for subdomain: " + subdomain); roomHistory = new MUCRoomHistory(this, new HistoryStrategy(mucService.getHistoryStrategy()));
/** * Create a new group chat server. * * @param subdomain * Subdomain portion of the conference services (for example, * conference for conference.example.org) * @param description * Short description of service for disco and such. If * <tt>null</tt> or empty, a default value will be used. * @param isHidden * True if this service should be hidden from services views. * @throws IllegalArgumentException * if the provided subdomain is an invalid, according to the JID * domain definition. */ public MultiUserChatServiceImpl(String subdomain, String description, Boolean isHidden) { // Check subdomain and throw an IllegalArgumentException if its invalid new JID(null,subdomain + "." + XMPPServer.getInstance().getServerInfo().getXMPPDomain(), null); this.chatServiceName = subdomain; if (description != null && description.trim().length() > 0) { this.chatDescription = description; } else { this.chatDescription = LocaleUtils.getLocalizedString("muc.service-name"); } this.isHidden = isHidden; historyStrategy = new HistoryStrategy(null); }
this.registrationEnabled = MUCPersistenceManager.getBooleanProperty(mucService.getServiceName(), "room.registrationEnabled", true); roomHistory = new MUCRoomHistory(this, new HistoryStrategy(mucService.getHistoryStrategy())); this.iqOwnerHandler = new IQOwnerHandler(this, packetRouter); this.iqAdminHandler = new IQAdminHandler(this, packetRouter);
mucService = XMPPServer.getInstance().getMultiUserChatManager().getMultiUserChatService(subdomain); if (mucService == null) throw new IllegalArgumentException("MUC service not found for subdomain: " + subdomain); roomHistory = new MUCRoomHistory(this, new HistoryStrategy(mucService.getHistoryStrategy()));