nicknack-server/src/main/java/com/github/kmbulebu/nicknack/server/web/EventDefinitionsController.java
@RequestMapping(value="", method={RequestMethod.GET, RequestMethod.HEAD})
	public Resources<EventDefinitionResource> getEventDefinitions() throws EventDefinitionNotFoundException, ProviderNotFoundException, AttributeDefinitionNotFoundException {
		if (LOG.isTraceEnabled()) {
			LOG.entry();
		}
		
		final Resources<EventDefinitionResource> resources = getEventDefinitions(eventDefinitionService.getEventDefinitions());
		
		
		if (LOG.isTraceEnabled()) {
			LOG.exit(resources);	
		}
		return resources;
	}
@RequestMapping(value="", method={RequestMethod.GET, RequestMethod.HEAD})
	public Resources<EventDefinitionResource> getEventDefinitions() throws EventDefinitionNotFoundException, ProviderNotFoundException, AttributeDefinitionNotFoundException {
		if (LOG.isTraceEnabled()) {
			LOG.entry();
		}
		
		final Resources<EventDefinitionResource> resources = getEventDefinitions(eventDefinitionService.getEventDefinitions());
		
		
		if (LOG.isTraceEnabled()) {
			LOG.exit(resources);	
		}
		return resources;
	}
@ RequestMapping ( value = "" , method = { RequestMethod . GET , RequestMethod . HEAD } ) public Resources < EventDefinitionResource > getEventDefinitions ( ) throws EventDefinitionNotFoundException , ProviderNotFoundException , AttributeDefinitionNotFoundException { if ( LOG . isTraceEnabled ( ) ) { LOG . entry ( ) ; } final Resources < EventDefinitionResource > resources = getEventDefinitions ( eventDefinitionService . getEventDefinitions ( ) ) ; if ( LOG . isTraceEnabled ( ) ) { LOG . exit ( resources ) ; } return resources ; }
TODO Refactor HATEOAS link building. Time for ResourceAssembler or moving this stuff up the service. Although moving it up will create a circular dep.
TODO Refactor HATEOAS link building . Time for ResourceAssembler or moving this stuff up the service . Although moving it up will create a circular dep .