Hi Teresa,
Long time, no see..
Well. I am also stuck in the same problem.. Following is the code i am using for creating rooms from plugins. And you can see i am adding them to use their default language and flooding filters.. But its not working.. Users are freely using the foul languages
Code:
private void createRoomInZone(String zoneName, String roomName, int capacity, ExtensionComponentConfiguration roomPlugin, RoomVariable roomVar)
{
try
{
RoomConfiguration roomConfig = new RoomConfiguration();
roomConfig.setName(roomName);
roomConfig.setCapacity(capacity);
roomConfig.setPersistent(true);
roomConfig.addPlugin(roomPlugin);
roomConfig.setUsingFloodingFilter(true);
roomConfig.setUsingLanguageFilter(true);
roomConfig.setNonOperatorUpdateAllowed(true);
roomConfig.setNonOperatorVariableUpdateAllowed(true);
if ( roomVar != null )
roomConfig.addVariable(roomVar);
UserConfig[] userConfigs = new UserConfig[0];
RoomResponse response = getApi().createRoomInNamedZone(zoneName, false, roomConfig, userConfigs);
if (response.getStatus() == Status.Success)
{
//System.out.println(" Room Successfully created. --> "+response.getZoneId()+" : "+response.getRoomId());
}
else
{
for (ErrorType error : response.getErrors())
{
System.out.println("Error while creating room "+response.getRoomId()+" Error: "+error.toString());
}
}
}
catch(Exception e)
{
logger.error("AdminPlugin: createRoomInZone: Caught exception while creating room "+roomName+"in zone "+zoneName+" error "+printException(e));
}
}
Point to be noted here is, any room created from the client and the filters attached from the client works fine.. Only the server created rooms are having this problem.. But I have a requirement to create certain rooms from the server. Please help.
Thanks
Sankar