Skip to content

Commit

Permalink
Change the Quota model: add a name property:
Browse files Browse the repository at this point in the history
Associates a quota with an order for easier recognition.

refs #65
  • Loading branch information
csjx committed Oct 5, 2020
1 parent f9bdfd4 commit d4090b8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/java/org/dataone/bookkeeper/api/Quota.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d4090b8

Please sign in to comment.