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
7018dd6b
Commit
7018dd6b
authored
3 years ago
by
Nicola Fulvio Calabria
Browse files
Options
Downloads
Patches
Plain Diff
Refactoring of archive creation
parent
a79606ed
No related branches found
No related tags found
No related merge requests found
Pipeline
#5679
passed
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/it/inaf/oats/vospace/parent/exchange/ArchiveEntryDescriptor.java
+39
-0
39 additions, 0 deletions
.../oats/vospace/parent/exchange/ArchiveEntryDescriptor.java
with
39 additions
and
0 deletions
src/main/java/it/inaf/oats/vospace/parent/exchange/ArchiveEntryDescriptor.java
0 → 100644
+
39
−
0
View file @
7018dd6b
/*
* This file is part of vospace-rest
* Copyright (C) 2021 Istituto Nazionale di Astrofisica
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package
it.inaf.oats.vospace.parent.exchange
;
public
class
ArchiveEntryDescriptor
{
private
final
String
vosPath
;
private
final
String
targetNodeVosPath
;
public
ArchiveEntryDescriptor
(
String
vosPath
,
String
targetNodeVosPath
)
{
this
.
vosPath
=
vosPath
;
this
.
targetNodeVosPath
=
targetNodeVosPath
;
}
public
ArchiveEntryDescriptor
(
String
vosPath
)
{
this
(
vosPath
,
null
);
}
public
String
getVosPath
()
{
return
vosPath
;
}
public
String
getTargetNodeVosPath
()
{
if
(
targetNodeVosPath
==
null
)
{
return
vosPath
;
}
else
{
return
targetNodeVosPath
;
}
}
public
boolean
isPointingToAnotherNode
()
{
return
(
targetNodeVosPath
!=
null
&&
!
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