Handle cas risky authentication detected event.

@param event the event
545796
@EventListener
    public void handleCasRiskyAuthenticationDetectedEvent(final CasRiskyAuthenticationDetectedEvent event) {
        if (this.casEventRepository != null) {
            val dto = prepareCasEvent(event);
            dto.putEventId(event.getService().getName());
            dto.setPrincipalId(event.getAuthentication().getPrincipal().getId());
            this.casEventRepository.save(dto);
        }
    }
523013
@EventListener
    public void handleCasRegisteredServiceSavedEvent(final CasRegisteredServiceSavedEvent event) {
        LOGGER.trace("Received event [{}]", event);
        this.publisher.publish(event.getRegisteredService(), event);
    }
128183
@Override
    public void notifyWebAppSecurityConfigChanged(WebAppSecurityConfigChangeEvent event) {
        List<String> attributes = event.getModifiedAttributeList();
        if (isAppRestartRequired(attributes)) {
            recycleApplications();
        }
    }
442529
public Closeable onAuthenticationSuccessEvent(final Consumer<BitfinexAccountSymbol> listener) {
        authSuccessConsumers.offer(listener);
        return () -> authSuccessConsumers.remove(listener);
    }
431341
@Override
	public void handleEvent(String event, Map<ISFSEventParam, Object> params) {
		handleExtendedEvent(event, new SFSEvent(null, params));
	}
1053566
@Override
    public void configurationEvent(ConfigurationEvent event) {
        if (event.getType() == ConfigurationEvent.CM_UPDATED && pids.contains(event.getPid())) {
            populateDestinationPermissions();
            runtimeSecurityService.modifyMessagingServices(this);
        }

    }
757186
protected void ensureEventSource(UUID eventSource, Event event) {
		if (event.getSource() == null) {
			if (eventSource != null) {
				event.setSource(new Address(getSpaceID(), eventSource));
			} else {
				throw new AssertionError("Every event must have a source"); //$NON-NLS-1$
			}
		}
	}
552635
@EventHandler
    public void handle(AuthorizationListChangedEvent event) {
        ChargingStation chargingStation = repository.findOne(event.getChargingStationId().getId());

        if (chargingStation != null) {
            Set<LocalAuthorization> updatedLocalAuthorizations = toLocalAuthorizationSet(event.getIdentifyingTokens());

            if(AuthorizationListUpdateType.FULL.equals(event.getUpdateType())) {
                chargingStation.setLocalAuths(updatedLocalAuthorizations);
            } else {
                updateAuthorizationList(chargingStation, updatedLocalAuthorizations);
            }
            chargingStation.setLocalAuthorizationListVersion(event.getVersion());
            repository.createOrUpdate(chargingStation);
        }
    }
628299
@Override
    public void handleEvent(Event event) {
        String topic = event.getTopic();
        if (topic.equalsIgnoreCase(ChannelFramework.EVENT_STOPCHAIN.getName())) {
            String chainName = event.getProperty(ChannelFramework.EVENT_CHAINNAME, String.class);
            if (null != chainName) {
                stopChain(chainName, event);
            } else {
                String channelName = event.getProperty(ChannelFramework.EVENT_CHANNELNAME, String.class);
                if (null != channelName) {
                    stopChannel(channelName, event);
                }
            }
        } else if (topic.equalsIgnoreCase(EVENT_CHECK_MISSING.getName())) {
            ChannelUtils.checkMissingConfig();
        }
    }
1297686
protected void fireTriggerEvent(TriggerEvent event) {
        try {
            for (TriggerListener listener : listeners) {
                listener.triggerValidation(event);
            }
        } catch (RuntimeException e) {
            uncheckedExceptionHandler.handleException(e);
        } catch (Error e) {
            uncheckedExceptionHandler.handleError(e);
        }
    }
1007890
function _validEvent(event) {
        if (window.navigator.platform.substr(0, 3) === "Mac") {
            // Mac
            return event.metaKey;
        } else {
            // Windows
            return event.ctrlKey;
        }
    }
487060
public boolean handleEvent(ValidationEvent event) {
		LOGGER.info("");
		LOGGER.info("EventT");
		LOGGER.info("\tSeverity: " + event.getSeverity());
		LOGGER.info("\tMessage: " + event.getMessage());
		LOGGER.info("\tLinked Excpetion: " + event.getLinkedException());
		LOGGER.info("\tLocator");
		LOGGER.info("\tLine Number: "
				+ event.getLocator().getLineNumber());
		LOGGER.info("\tColumn Number: "
				+ event.getLocator().getColumnNumber());
		LOGGER.info("\tOffset: " + event.getLocator().getOffset());
		LOGGER.info("\tObject: " + event.getLocator().getObject());
		LOGGER.info("\tNode: " + event.getLocator().getNode());
		LOGGER.info("\tURL: " + event.getLocator().getURL());
		return true;
	}
929713
public <T> void handleEvent(final T event) throws EventException {
		final Class<?> type = event.getClass();
		if (!this.cachedListeners.containsKey(event.getClass())) {
			this.cachedListeners.put(type, new LinkedList<ListenerInstancePair<?>>());
			for (final ListenerInstancePair<?> listener : this.listeners) {
				final Type observableType = GenericsUtil.getEntityGenericType(listener.listener.getClass(), 0, Listener.class);
				final Class<?> observable = GenericsUtil.guessClazz(observableType);
				if (observable.isAssignableFrom(type)) {
					this.cachedListeners.get(type).add(listener);
				}
			}
		}
		@SuppressWarnings("unchecked")
		final List<ListenerInstancePair<T>> resolvedListeners = List.class.cast(this.cachedListeners.get(event.getClass()));
		for (final ListenerInstancePair<T> listener : resolvedListeners) {
			listener.handleEvent(event, null);
		}
	}
721644
public void runtimeEventOccurred(RuntimeEvent event)
  {
    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) 
      SibTr.debug(tc, "runtimeEventOccurred", event);
  }
607991
public boolean needAuthorization(ResponseEvent event) {
    Response response = event.getResponse();
    int status = response.getStatusCode();

    if ((status == Response.UNAUTHORIZED) || (status == Response.PROXY_AUTHENTICATION_REQUIRED)) {
      return true;
    }

    return false;
  }
1103319
@Override
	public void onApplicationEvent(ApplicationEvent event) {
		if (event instanceof ContextRefreshedEvent) {
		    // Firstly dump out all the properties read from the various files
		    dumpProperties();
            // now init the identity resolver
            setIdentityResolver(identityResolverFactory.getIdentityResolver());
            // start
            start();
		}
	}
333081
public void fire(TestSuiteFinishedEvent event) {
        String suiteUid = event.getUid();

        TestSuiteResult testSuite = testSuiteStorage.remove(suiteUid);
        if (testSuite == null) {
            return;
        }
        event.process(testSuite);

        testSuite.setVersion(getVersion());
        testSuite.getLabels().add(AllureModelUtils.createProgrammingLanguageLabel());

        writeTestSuiteResult(testSuite);

        notifier.fire(event);
    }