removeAllUserMarketDataSnapshot(userName);
}
}
private void removeAllUserViewDefinitions(String userName) {
ConfigMaster configMaster = getServices().getConfigMaster();
if (configMaster != null) {
Iterator<Entry<ExternalId, Set<ObjectId>>> iterator = _viewDefinitionIds.entrySet().iterator();
while (iterator.hasNext()) {
Entry<ExternalId, Set<ObjectId>> entry = iterator.next();
ExternalId identifier = entry.getKey();
if (identifier.getScheme().getName().equals(userName)) {
Set<ObjectId> viewDefinitions = entry.getValue();
for (ObjectId viewDefinitionId : viewDefinitions) {
configMaster.remove(viewDefinitionId);
s_logger.debug("View definition {} discarded for {}/{}", new Object[]{viewDefinitionId, userName, identifier.getValue()});
}
iterator.remove();
}
}