The following function is there in IRoom and can be used for such modifications from the server-side.
/**
* Resets the properties and the locks held
* @param properties the new properties of the room
* @param locks the new locks assigned per user
* @return
*/
public boolean resetPropertiesAndLockMaps(HashMap<String,Object> properties, HashMap<String, IUser> locks);