Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vospace-parent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
VOSpace INAF
vospace-parent
Commits
20079f92
Commit
20079f92
authored
3 years ago
by
Nicola Fulvio Calabria
Browse files
Options
Downloads
Patches
Plain Diff
Minor refactoring
parent
7018dd6b
No related branches found
No related tags found
No related merge requests found
Pipeline
#6695
failed
2 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/it/inaf/oats/vospace/parent/exchange/ArchiveEntryDescriptor.java
+12
-10
12 additions, 10 deletions
.../oats/vospace/parent/exchange/ArchiveEntryDescriptor.java
with
12 additions
and
10 deletions
src/main/java/it/inaf/oats/vospace/parent/exchange/ArchiveEntryDescriptor.java
+
12
−
10
View file @
20079f92
...
@@ -5,18 +5,24 @@
...
@@ -5,18 +5,24 @@
*/
*/
package
it.inaf.oats.vospace.parent.exchange
;
package
it.inaf.oats.vospace.parent.exchange
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
java.beans.Transient
;
public
class
ArchiveEntryDescriptor
{
public
class
ArchiveEntryDescriptor
{
private
final
String
vosPath
;
private
final
String
vosPath
;
private
final
String
targetNodeVosPath
;
private
final
String
targetNodeVosPath
;
public
ArchiveEntryDescriptor
(
String
vosPath
,
String
targetNodeVosPath
)
{
@JsonCreator
public
ArchiveEntryDescriptor
(
@JsonProperty
(
"vosPath"
)
String
vosPath
,
@JsonProperty
(
"targetNodeVosPath"
)
String
targetNodeVosPath
)
{
this
.
vosPath
=
vosPath
;
this
.
vosPath
=
vosPath
;
this
.
targetNodeVosPath
=
targetNodeVosPath
;
this
.
targetNodeVosPath
=
targetNodeVosPath
;
}
}
public
ArchiveEntryDescriptor
(
String
vosPath
)
{
public
ArchiveEntryDescriptor
(
String
vosPath
)
{
this
(
vosPath
,
null
);
this
(
vosPath
,
vosPath
);
}
}
public
String
getVosPath
()
{
public
String
getVosPath
()
{
...
@@ -24,16 +30,12 @@ public class ArchiveEntryDescriptor {
...
@@ -24,16 +30,12 @@ public class ArchiveEntryDescriptor {
}
}
public
String
getTargetNodeVosPath
()
{
public
String
getTargetNodeVosPath
()
{
if
(
targetNodeVosPath
==
null
)
{
return
vosPath
;
}
else
{
return
targetNodeVosPath
;
return
targetNodeVosPath
;
}
}
}
@Transient
public
boolean
isPointingToAnotherNode
()
{
public
boolean
isPointingToAnotherNode
()
{
return
(
targetNodeVosPath
!=
null
&&
return
!
targetNodeVosPath
.
equals
(
vosPath
);
!
targetNodeVosPath
.
equals
(
vosPath
));
}
}
}
}
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