Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
org.etsi.osl.tmf.api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSL
code
org.etsi.osl.tmf.api
Commits
84c71fc0
Commit
84c71fc0
authored
1 year ago
by
Konstantinos Poulakakis
Browse files
Options
Downloads
Patches
Plain Diff
TMF 673 revert update geographic sub address list.
parent
4f55d76a
No related branches found
No related tags found
1 merge request
!20
Tmf 673 feature
Pipeline
#5593
failed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/etsi/osl/tmf/gam673/mapper/MapperUtils.java
+0
-20
0 additions, 20 deletions
...main/java/org/etsi/osl/tmf/gam673/mapper/MapperUtils.java
with
0 additions
and
20 deletions
src/main/java/org/etsi/osl/tmf/gam673/mapper/MapperUtils.java
+
0
−
20
View file @
84c71fc0
...
...
@@ -30,30 +30,10 @@ public class MapperUtils {
for
(
GeographicSubAddress
n
:
newGeographicAddress
.
getGeographicSubAddresses
()){
if
(
n
.
getUuid
()==
null
){
existingGeographicAddress
.
addGeographicSubAddress
(
n
);
}
else
{
for
(
GeographicSubAddress
oldGeographicSubAddress
:
existingGeographicAddress
.
geographicSubAddresses
()){
if
(
n
.
getUuid
().
equals
(
oldGeographicSubAddress
.
getUuid
())){
GeographicSubAddress
geographicSubAddress
=
geographicSubAddressMap
(
n
,
oldGeographicSubAddress
);
}
}
}
}
}
return
existingGeographicAddress
;
}
public
static
GeographicSubAddress
geographicSubAddressMap
(
GeographicSubAddress
newGeographicSubAddress
,
GeographicSubAddress
existingGeographicSubAddress
){
if
(
newGeographicSubAddress
.
getSubAddressType
()!=
null
)
existingGeographicSubAddress
.
setSubAddressType
(
newGeographicSubAddress
.
getSubAddressType
());
if
(
newGeographicSubAddress
.
getName
()!=
null
)
existingGeographicSubAddress
.
setName
(
newGeographicSubAddress
.
getName
());
if
(
newGeographicSubAddress
.
getBuildingName
()!=
null
)
existingGeographicSubAddress
.
setBuildingName
(
newGeographicSubAddress
.
getBuildingName
());
if
(
newGeographicSubAddress
.
getLevelNumber
()!=
null
)
existingGeographicSubAddress
.
setLevelNumber
(
newGeographicSubAddress
.
getLevelNumber
());
if
(
newGeographicSubAddress
.
getLevelType
()!=
null
)
existingGeographicSubAddress
.
setLevelType
(
newGeographicSubAddress
.
getLevelType
());
if
(
newGeographicSubAddress
.
getPrivateStreetName
()!=
null
)
existingGeographicSubAddress
.
setPrivateStreetName
(
newGeographicSubAddress
.
getPrivateStreetName
());
if
(
newGeographicSubAddress
.
getPrivateStreetNumber
()!=
null
)
existingGeographicSubAddress
.
setPrivateStreetNumber
(
newGeographicSubAddress
.
getPrivateStreetNumber
());
if
(
newGeographicSubAddress
.
getSubUnitNumber
()!=
null
)
existingGeographicSubAddress
.
setSubUnitNumber
(
newGeographicSubAddress
.
getSubUnitNumber
());
if
(
newGeographicSubAddress
.
getSubUnitType
()!=
null
)
existingGeographicSubAddress
.
setSubUnitType
(
newGeographicSubAddress
.
getSubUnitType
());
return
existingGeographicSubAddress
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment