public class Invoice extends PermissionsAware implements Serializable, Comparable<Invoice>, FirstTierModel
Invoice class.
| Constructor and Description |
|---|
Invoice()
Constructor for Invoice.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Invoice that) |
boolean |
equals(Object other) |
String |
getClientNotes()
Getter for the field
clientNotes. |
Date |
getCreateTimestamp()
Getter for the field
createTimestamp. |
Integer |
getDaysUntilDue()
Getter for the field
daysUntilDue. |
Date |
getEndDate()
Getter for the field
endDate. |
Set<Expense> |
getExpenses()
Getter for the field
expenses. |
String |
getExternalId()
Getter for the field
externalId. |
Integer |
getInvoiceId()
Getter for the field
invoiceId. |
String |
getNotes()
Getter for the field
notes. |
Registration |
getOwner()
Getter for the field
owner. |
Double |
getPaidAmount()
Getter for the field
paidAmount. |
Date |
getStartDate()
Getter for the field
startDate. |
InvoiceState |
getState()
Getter for the field
state. |
Integer |
getSwAccession()
Getter for the field
swAccession. |
boolean |
givesPermissionInternal(Registration registration,
Set<Integer> considered)
Short-circuit permission checking by providing a set of entities that have already been checked
|
int |
hashCode() |
boolean |
isFinalized()
isFinalized.
|
boolean |
isFullyPaid()
isFullyPaid.
|
void |
setClientNotes(String clientNotes)
Setter for the field
clientNotes. |
void |
setCreateTimestamp(Date createTimestamp)
Setter for the field
createTimestamp. |
void |
setDaysUntilDue(Integer daysUntilDue)
Setter for the field
daysUntilDue. |
void |
setEndDate(Date endDate)
Setter for the field
endDate. |
void |
setExpenses(Set<Expense> expenses)
Setter for the field
expenses. |
void |
setExternalId(String externalId)
Setter for the field
externalId. |
void |
setFinalized(boolean finalized)
Setter for the field
finalized. |
void |
setFullyPaid(boolean fullyPaid)
Setter for the field
fullyPaid. |
void |
setInvoiceId(Integer invoiceId)
Setter for the field
invoiceId. |
void |
setNotes(String notes)
Setter for the field
notes. |
void |
setOwner(Registration owner)
Setter for the field
owner. |
void |
setPaidAmount(Double paidAmount)
Setter for the field
paidAmount. |
void |
setStartDate(Date startDate)
Setter for the field
startDate. |
void |
setState(InvoiceState state)
Setter for the field
state. |
void |
setSwAccession(Integer swAccession)
Setter for the field
swAccession. |
String |
toString() |
givesPermission, givesPermissionpublic int compareTo(Invoice that)
compareTo in interface Comparable<Invoice>that - public boolean givesPermissionInternal(Registration registration, Set<Integer> considered)
PermissionsAwaregivesPermissionInternal in class PermissionsAwarepublic Integer getInvoiceId()
Getter for the field invoiceId.
Integer object.public void setInvoiceId(Integer invoiceId)
Setter for the field invoiceId.
invoiceId - a Integer object.public Registration getOwner()
Getter for the field owner.
Registration object.public void setOwner(Registration owner)
Setter for the field owner.
owner - a Registration object.public void setStartDate(Date startDate)
Setter for the field startDate.
startDate - a Date object.public void setEndDate(Date endDate)
Setter for the field endDate.
endDate - a Date object.public InvoiceState getState()
Getter for the field state.
String object.public void setState(InvoiceState state)
Setter for the field state.
state - a String object.public boolean isFinalized()
isFinalized.
public void setFinalized(boolean finalized)
Setter for the field finalized.
finalized - a boolean.public boolean isFullyPaid()
isFullyPaid.
public void setFullyPaid(boolean fullyPaid)
Setter for the field fullyPaid.
fullyPaid - a boolean.public Double getPaidAmount()
Getter for the field paidAmount.
Double object.public void setPaidAmount(Double paidAmount)
Setter for the field paidAmount.
paidAmount - a Double object.public Integer getDaysUntilDue()
Getter for the field daysUntilDue.
Integer object.public void setDaysUntilDue(Integer daysUntilDue)
Setter for the field daysUntilDue.
daysUntilDue - a Integer object.public String getExternalId()
Getter for the field externalId.
String object.public void setExternalId(String externalId)
Setter for the field externalId.
externalId - a String object.public String getClientNotes()
Getter for the field clientNotes.
String object.public void setClientNotes(String clientNotes)
Setter for the field clientNotes.
clientNotes - a String object.public void setNotes(String notes)
Setter for the field notes.
notes - a String object.public Integer getSwAccession()
Getter for the field swAccession.
getSwAccession in interface FirstTierModelInteger object.public void setSwAccession(Integer swAccession)
Setter for the field swAccession.
swAccession - a Integer object.public Date getCreateTimestamp()
Getter for the field createTimestamp.
Date object.public void setCreateTimestamp(Date createTimestamp)
Setter for the field createTimestamp.
createTimestamp - a Date object.Copyright © 2015 SeqWare. All rights reserved.