|
|
|
@ -169,9 +169,21 @@ public ChatRoom createChatRoom(
|
|
|
|
final Map<String, Object> roomProperties)
|
|
|
|
final Map<String, Object> roomProperties)
|
|
|
|
throws OperationFailedException,
|
|
|
|
throws OperationFailedException,
|
|
|
|
OperationNotSupportedException
|
|
|
|
OperationNotSupportedException
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return findOrCreateRoom(roomName);
|
|
|
|
return findOrCreateRoom(roomName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (IllegalArgumentException e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
String message =
|
|
|
|
|
|
|
|
IrcActivator.getResources().getI18NString(
|
|
|
|
|
|
|
|
"service.gui.CREATE_CHAT_ROOM_ERROR", new String[]
|
|
|
|
|
|
|
|
{ roomName });
|
|
|
|
|
|
|
|
throw new OperationFailedException(message,
|
|
|
|
|
|
|
|
OperationFailedException.ILLEGAL_ARGUMENT, e);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Returns a reference to a chatRoom named <tt>roomName</tt>.
|
|
|
|
* Returns a reference to a chatRoom named <tt>roomName</tt>.
|
|
|
|
|