if (op instanceof AddParticipant) {
if(LOG.isInfoLoggable()) {
LOG.info("Update contains AddParticipant for " + ((AddParticipant)op).getParticipantId());
}
ParticipantId user = ((AddParticipant) op).getParticipantId();
// Check first if we need to update views for this user.
for (Listener listener : listeners) {
listener.onParticipantAdded(waveletName, user);
}
} else if (op instanceof RemoveParticipant) {
ParticipantId user = ((RemoveParticipant) op).getParticipantId();
for (Listener listener : listeners) {
listener.onParticipantRemoved(waveletName, user);
}
}
}