Code example for Principal

Methods: getName

0
	 
	private static final Logger logger = LoggerFactory.getLogger(EventLogController.class);
	 
	@RequestMapping(method = RequestMethod.GET) 
	public @ResponseBody List<EventLog> getAllEventLogs(Principal principal) {
		logger.info("User {}::Request to get all eventLogs.", principal.getName());
		 
		return eventLogService.getAllRecentEventLogs();
	} 
 
}