public class Expense extends PermissionsAware implements Serializable, Comparable<Expense>
Expense class.
Constructor and Description |
---|
Expense()
Constructor for Expense.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Expense that) |
boolean |
equals(Object other) |
Double |
getAddedSurcharge()
Getter for the field
addedSurcharge . |
String |
getAgent()
Getter for the field
agent . |
String |
getDescription()
Getter for the field
description . |
Integer |
getExpenseId()
Getter for the field
expenseId . |
String |
getExpenseType()
Getter for the field
expenseType . |
Date |
getFinishedTimestamp()
Getter for the field
finishedTimestamp . |
Invoice |
getInvoice()
Getter for the field
invoice . |
Double |
getPricePerUnit()
Getter for the field
pricePerUnit . |
String |
getPricePerUnitString()
Getter for the field
pricePerUnit . |
Integer |
getSwAccession()
Getter for the field
swAccession . |
Double |
getTotalPrice()
Getter for the field
totalPrice . |
String |
getTotalPriceString()
Getter for the field
totalPrice . |
Double |
getTotalUnits()
Getter for the field
totalUnits . |
WorkflowRun |
getWorkflowRun()
Getter for the field
workflowRun . |
boolean |
givesPermissionInternal(Registration registration,
Set<Integer> considered)
Short-circuit permission checking by providing a set of entities that have already been checked
|
int |
hashCode() |
void |
setAddedSurcharge(Double addedSurcharge)
Setter for the field
addedSurcharge . |
void |
setAgent(String agent)
Setter for the field
agent . |
void |
setDescription(String description)
Setter for the field
description . |
void |
setExpenseId(Integer expenseId)
Setter for the field
expenseId . |
void |
setExpenseType(String expenseType)
Setter for the field
expenseType . |
void |
setFinishedTimestamp(Date finishedTimestamp)
Setter for the field
finishedTimestamp . |
void |
setInvoice(Invoice invoice)
Setter for the field
invoice . |
void |
setPricePerUnit(Double pricePerUnit)
Setter for the field
pricePerUnit . |
void |
setSwAccession(Integer swAccession)
Setter for the field
swAccession . |
void |
setTotalPrice(Double totalPrice)
Setter for the field
totalPrice . |
void |
setTotalUnits(Double totalUnits)
Setter for the field
totalUnits . |
void |
setWorkflowRun(WorkflowRun workflowRun)
Setter for the field
workflowRun . |
String |
toString() |
givesPermission, givesPermission
public int compareTo(Expense that)
compareTo
in interface Comparable<Expense>
that
- public boolean givesPermissionInternal(Registration registration, Set<Integer> considered)
givesPermissionInternal
in class PermissionsAware
public Integer getExpenseId()
Getter for the field expenseId
.
Integer
object.public void setExpenseId(Integer expenseId)
Setter for the field expenseId
.
expenseId
- a Integer
object.public void setInvoice(Invoice invoice)
Setter for the field invoice
.
invoice
- a Invoice
object.public WorkflowRun getWorkflowRun()
Getter for the field workflowRun
.
WorkflowRun
object.public void setWorkflowRun(WorkflowRun workflowRun)
Setter for the field workflowRun
.
workflowRun
- a WorkflowRun
object.public void setAgent(String agent)
Setter for the field agent
.
agent
- a String
object.public String getExpenseType()
Getter for the field expenseType
.
String
object.public void setExpenseType(String expenseType)
Setter for the field expenseType
.
expenseType
- a String
object.public String getDescription()
Getter for the field description
.
String
object.public void setDescription(String description)
Setter for the field description
.
description
- a String
object.public Double getPricePerUnit()
Getter for the field pricePerUnit
.
Double
object.public String getPricePerUnitString()
Getter for the field pricePerUnit
.
String
object.public void setPricePerUnit(Double pricePerUnit)
Setter for the field pricePerUnit
.
pricePerUnit
- a Double
object.public Double getTotalUnits()
Getter for the field totalUnits
.
Double
object.public void setTotalUnits(Double totalUnits)
Setter for the field totalUnits
.
totalUnits
- a Double
object.public Double getTotalPrice()
Getter for the field totalPrice
.
Double
object.public String getTotalPriceString()
Getter for the field totalPrice
.
Double
object.public void setTotalPrice(Double totalPrice)
Setter for the field totalPrice
.
totalPrice
- a Double
object.public Double getAddedSurcharge()
Getter for the field addedSurcharge
.
Double
object.public void setAddedSurcharge(Double addedSurcharge)
Setter for the field addedSurcharge
.
addedSurcharge
- a Double
object.public Integer getSwAccession()
Getter for the field swAccession
.
Integer
object.public void setSwAccession(Integer swAccession)
Setter for the field swAccession
.
swAccession
- a Integer
object.public Date getFinishedTimestamp()
Getter for the field finishedTimestamp
.
Date
object.Copyright © 2015 SeqWare. All rights reserved.