Loading src/main/java/org/etsi/osl/tmf/gsm674/api/GeographicSiteManagementApiController.java +3 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,8 @@ public class GeographicSiteManagementApiController implements GeographicSiteMana Individual ind = individualRepoService.findByUsername(principal.getName()); GeographicSite gs= geographicSiteManagementService.findGeographicSiteByRelatedPartyId(ind.getId()); if (gs==null) gs =new GeographicSite(); if (gs==null) { gs =new GeographicSite(); GeographicSubAddressValue geographicSubAddressValue=new GeographicSubAddressValue(); GeographicAddressValue geographicAddressValue=new GeographicAddressValue(); geographicAddressValue.setGeographicSubAddress(geographicSubAddressValue); Loading @@ -77,6 +78,7 @@ public class GeographicSiteManagementApiController implements GeographicSiteMana List<PlaceRefOrValue> placeRefOrValues=new ArrayList<>(); placeRefOrValues.add(placeRefOrValue); gs.setPlace(placeRefOrValues); } return new ResponseEntity<GeographicSite>(gs,HttpStatus.OK); } else if ( authentication.getAuthorities().contains( new SimpleGrantedAuthority( UserRoleType.ROLE_ADMIN.getValue() ) ) ){ Loading Loading
src/main/java/org/etsi/osl/tmf/gsm674/api/GeographicSiteManagementApiController.java +3 −1 Original line number Diff line number Diff line Loading @@ -69,7 +69,8 @@ public class GeographicSiteManagementApiController implements GeographicSiteMana Individual ind = individualRepoService.findByUsername(principal.getName()); GeographicSite gs= geographicSiteManagementService.findGeographicSiteByRelatedPartyId(ind.getId()); if (gs==null) gs =new GeographicSite(); if (gs==null) { gs =new GeographicSite(); GeographicSubAddressValue geographicSubAddressValue=new GeographicSubAddressValue(); GeographicAddressValue geographicAddressValue=new GeographicAddressValue(); geographicAddressValue.setGeographicSubAddress(geographicSubAddressValue); Loading @@ -77,6 +78,7 @@ public class GeographicSiteManagementApiController implements GeographicSiteMana List<PlaceRefOrValue> placeRefOrValues=new ArrayList<>(); placeRefOrValues.add(placeRefOrValue); gs.setPlace(placeRefOrValues); } return new ResponseEntity<GeographicSite>(gs,HttpStatus.OK); } else if ( authentication.getAuthorities().contains( new SimpleGrantedAuthority( UserRoleType.ROLE_ADMIN.getValue() ) ) ){ Loading