org.homeunix.thecave.buddi.model
Interface Document
- All Superinterfaces:
- java.lang.Comparable<ModelObject>, ModelObject, StandardDocument
- All Known Implementing Classes:
- DocumentImpl
public interface Document
- extends ModelObject, StandardDocument
RESET_PASSWORD
static final int RESET_PASSWORD
- See Also:
- Constant Field Values
CHANGE_PASSWORD
static final int CHANGE_PASSWORD
- See Also:
- Constant Field Values
addAccount
void addAccount(Account account)
throws ModelException
- Throws:
ModelException
addAccountType
void addAccountType(AccountType type)
throws ModelException
- Throws:
ModelException
addBudgetCategory
void addBudgetCategory(BudgetCategory budgetCategory)
throws ModelException
- Throws:
ModelException
addScheduledTransaction
void addScheduledTransaction(ScheduledTransaction scheduledTransaction)
throws ModelException
- Throws:
ModelException
addTransaction
void addTransaction(Transaction transaction)
throws ModelException
- Throws:
ModelException
getAccount
Account getAccount(java.lang.String name)
getAccounts
java.util.List<Account> getAccounts()
getAccountType
AccountType getAccountType(java.lang.String name)
getAccountTypes
java.util.List<AccountType> getAccountTypes()
getBudgetCategories
java.util.List<BudgetCategory> getBudgetCategories()
getBudgetCategory
BudgetCategory getBudgetCategory(java.lang.String fullName)
getNetWorth
long getNetWorth(java.util.Date date)
getObjectByUid
ModelObject getObjectByUid(java.lang.String uid)
getScheduledTransactions
java.util.List<ScheduledTransaction> getScheduledTransactions()
getSources
java.util.List<Source> getSources()
getTransactions
java.util.List<Transaction> getTransactions()
getTransactions
java.util.List<Transaction> getTransactions(java.util.Date startDate,
java.util.Date endDate)
getTransactions
java.util.List<Transaction> getTransactions(Source source)
getTransactions
java.util.List<Transaction> getTransactions(Source source,
java.util.Date startDate,
java.util.Date endDate)
refreshUidMap
void refreshUidMap()
throws ModelException
- Throws:
ModelException
removeAccount
void removeAccount(Account account)
throws ModelException
- Throws:
ModelException
removeAccountType
void removeAccountType(AccountType type)
throws ModelException
- Throws:
ModelException
removeBudgetCategory
void removeBudgetCategory(BudgetCategory budgetCategory)
throws ModelException
- Throws:
ModelException
removeScheduledTransaction
void removeScheduledTransaction(ScheduledTransaction scheduledTransaction)
throws ModelException
- Throws:
ModelException
removeTransaction
void removeTransaction(Transaction transaction)
throws ModelException
- Throws:
ModelException
save
void save()
throws DocumentSaveException
- Description copied from interface:
StandardDocument
- Save the data file to the current file (obtained by getFile()). If the current file has
not yet been set, perform a saveAs().
- Specified by:
save in interface StandardDocument
- Throws:
DocumentSaveException
saveAs
void saveAs(java.io.File file)
throws DocumentSaveException
- Description copied from interface:
StandardDocument
- Prompt the user for a different file, and save the model to that file. Set the
current file, for future saves.
- Specified by:
saveAs in interface StandardDocument
- Parameters:
file - File to save to
- Throws:
DocumentSaveException
saveToStream
void saveToStream(java.io.OutputStream os)
throws DocumentSaveException
- Throws:
DocumentSaveException
setFlag
void setFlag(int flag,
boolean set)
updateAllBalances
void updateAllBalances()
updateScheduledTransactions
void updateScheduledTransactions()
clone
Document clone()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException