nicknack-server/src/main/java/com/github/kmbulebu/nicknack/server/web/StatesController.java
@RequestMapping(value="", method={RequestMethod.GET, RequestMethod.HEAD})
	public Resources<StatesResource> getAllStates() throws StateDefinitionNotFoundException, ProviderNotFoundException, AttributeDefinitionNotFoundException {
		if (LOG.isTraceEnabled()) {
			LOG.entry();
		}
		
		final Resources<StatesResource> resources = getAllStates(statesService.getAllStates(), null);
			
		if (LOG.isTraceEnabled()) {
			LOG.exit(resources);	
		}
		return resources;
	}
@RequestMapping(value="", method={RequestMethod.GET, RequestMethod.HEAD})
	public Resources<StatesResource> getAllStates() throws StateDefinitionNotFoundException, ProviderNotFoundException, AttributeDefinitionNotFoundException {
		if (LOG.isTraceEnabled()) {
			LOG.entry();
		}
		
		final Resources<StatesResource> resources = getAllStates(statesService.getAllStates(), null);
			
		if (LOG.isTraceEnabled()) {
			LOG.exit(resources);	
		}
		return resources;
	}
@ RequestMapping ( value = "" , method = { RequestMethod . GET , RequestMethod . HEAD } ) public Resources < StatesResource > getAllStates ( ) throws StateDefinitionNotFoundException , ProviderNotFoundException , AttributeDefinitionNotFoundException { if ( LOG . isTraceEnabled ( ) ) { LOG . entry ( ) ; } final Resources < StatesResource > resources = getAllStates ( statesService . getAllStates ( ) , null ) ; 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 .