class GlobalAttributeDefinitionRestController {

    @RequestMapping(value = GLOBAL_ATTRIBUTE_DEFINITIONS_URI_PREFIX +
        "/globalAttributeDefinitionLevels/{globalAttributeDefinitionLevel}/globalAttributeDefinitionNames/{globalAttributeDefinitionName}",
        method = RequestMethod.DELETE)
    @Secured(SecurityFunctions.FN_GLOBAL_ATTRIBUTE_DEFINITIONS_DELETE)
    public GlobalAttributeDefinition deleteGlobalAttributeDefinition(@PathVariable("globalAttributeDefinitionLevel") String globalAttributeDefinitionLevel,
        @PathVariable("globalAttributeDefinitionName") String globalAttributeDefinitionName)
    {
        GlobalAttributeDefinitionKey globalAttributeDefinitionKey =
            new GlobalAttributeDefinitionKey(globalAttributeDefinitionLevel, globalAttributeDefinitionName);
        return globalAttributeDefinitionService.deleteGlobalAttributeDefinition(globalAttributeDefinitionKey);
    }

}