private void checkAuthorization(GetEntityUriInfo uriInfo, String operation) throws UnauthorizedException { String entityName = uriInfo.getTargetType().toString(); if(!AuthorizationService.hasEntityAccess(entityName, operation)){ //logger.error(accessDenied); throw new UnauthorizedException(accessDenied); } }
feedProperties = getEntityProviderProperties(oDataJPAContext, resultsView); if (resultsView.getTargetType() instanceof EdmEntityType) { odataResponse = EntityProvider.writeEntry(contentType, resultsView.getTargetEntitySet(), edmPropertyValueMap, feedProperties);