/** * Creates a new MUC service and registers it with the manager, and starts up the service. * * @param subdomain Subdomain of the MUC service. * @param description Description of the MUC service (can be null for default description) * @param isHidden True if the service is hidden from view in services lists. * @return MultiUserChatService implementation that was just created. * @throws AlreadyExistsException if the service already exists. */ public MultiUserChatServiceImpl createMultiUserChatService(String subdomain, String description, Boolean isHidden) throws AlreadyExistsException { if (getMultiUserChatServiceID(subdomain) != null) throw new AlreadyExistsException(); MultiUserChatServiceImpl muc = new MultiUserChatServiceImpl(subdomain, description, isHidden); insertService(subdomain, description, isHidden); registerMultiUserChatService(muc); return muc; }
/** * Creates a new MUC service and registers it with the manager, and starts up the service. * * @param subdomain Subdomain of the MUC service. * @param description Description of the MUC service (can be null for default description) * @param isHidden True if the service is hidden from view in services lists. * @return MultiUserChatService implementation that was just created. * @throws AlreadyExistsException if the service already exists. */ public MultiUserChatServiceImpl createMultiUserChatService(String subdomain, String description, Boolean isHidden) throws AlreadyExistsException { if (getMultiUserChatServiceID(subdomain) != null) throw new AlreadyExistsException(); MultiUserChatServiceImpl muc = new MultiUserChatServiceImpl(subdomain, description, isHidden); insertService(subdomain, description, isHidden); registerMultiUserChatService(muc); return muc; }