From d4090b8cf1fd256f270dadf5aa1bfd932648b793 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Mon, 5 Oct 2020 13:09:29 -0600 Subject: [PATCH] Change the Quota model: add a name property: Associates a quota with an order for easier recognition. refs https://github.com/DataONEorg/bookkeeper/issues/65 --- .../org/dataone/bookkeeper/api/Quota.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/main/java/org/dataone/bookkeeper/api/Quota.java b/src/main/java/org/dataone/bookkeeper/api/Quota.java index 2073162..16d78d0 100644 --- a/src/main/java/org/dataone/bookkeeper/api/Quota.java +++ b/src/main/java/org/dataone/bookkeeper/api/Quota.java @@ -73,6 +73,9 @@ public class Quota { /* The quota owner id */ private String owner; + /* A name that helps associate a quota with an order */ + private String name; + /** * Construct an empty Quota */ @@ -306,6 +309,22 @@ public void setOwner(String owner) { this.owner = owner; } + /** + * Get the quota name + * @return the quota name + */ + public String getName() { + return name; + } + + /** + * Get the quota name + * @param name the quota name + */ + public void setName(String name) { + this.name = name; + } + /** * Determine object equality based on the equality of all fields * @param o the object to be compared