introduced certificate update feature in ORCPublicCertificateDatabase

This commit is contained in:
Axel Uhl
2020-03-11 00:57:19 +01:00
parent ffc00ddbf0
commit 6ed66a94e3
4 changed files with 82 additions and 19 deletions
@@ -10,7 +10,6 @@ import com.sap.sse.common.Distance;
import com.sap.sse.common.Duration;
import com.sap.sse.common.Speed;
import com.sap.sse.common.TimePoint;
import com.sap.sse.common.Util.Pair;
import com.sap.sse.common.WithID;
import com.sap.sse.common.impl.DegreeBearingImpl;
@@ -88,15 +87,6 @@ public interface ORCCertificate extends WithID, Serializable {
*/
CountryCode getIssuingCountry();
/**
* A unique key of the boat to which this certificate belongs; it consists of the {@link #getFileId() file ID} and the
* {@link #getIssuingCountry() issuing country}. For any such key the ORC database delivers at most one valid certificate
* at any given time.
*/
default Pair<String, CountryCode> getBoatKey() {
return new Pair<>(getFileId(), getIssuingCountry());
}
/**
* Returns the sailnumber of the {@link Competitor} which this certificate belongs to.
*