Loading src/main/java/it/inaf/oats/vospace/parent/exchange/ArchiveEntryDescriptor.java +12 −10 Original line number Diff line number Diff line Loading @@ -5,18 +5,24 @@ */ 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 { private final String vosPath; 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.targetNodeVosPath = targetNodeVosPath; } public ArchiveEntryDescriptor(String vosPath) { this(vosPath, null); this(vosPath, vosPath); } public String getVosPath() { Loading @@ -24,16 +30,12 @@ public class ArchiveEntryDescriptor { } public String getTargetNodeVosPath() { if (targetNodeVosPath == null) { return vosPath; } else { return targetNodeVosPath; } } @Transient public boolean isPointingToAnotherNode() { return (targetNodeVosPath != null && !targetNodeVosPath.equals(vosPath)); return !targetNodeVosPath.equals(vosPath); } } Loading
src/main/java/it/inaf/oats/vospace/parent/exchange/ArchiveEntryDescriptor.java +12 −10 Original line number Diff line number Diff line Loading @@ -5,18 +5,24 @@ */ 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 { private final String vosPath; 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.targetNodeVosPath = targetNodeVosPath; } public ArchiveEntryDescriptor(String vosPath) { this(vosPath, null); this(vosPath, vosPath); } public String getVosPath() { Loading @@ -24,16 +30,12 @@ public class ArchiveEntryDescriptor { } public String getTargetNodeVosPath() { if (targetNodeVosPath == null) { return vosPath; } else { return targetNodeVosPath; } } @Transient public boolean isPointingToAnotherNode() { return (targetNodeVosPath != null && !targetNodeVosPath.equals(vosPath)); return !targetNodeVosPath.equals(vosPath); } }