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


Field Summary
static int CHANGE_PASSWORD
           
static int RESET_PASSWORD
           
 
Method Summary
 void addAccount(Account account)
           
 void addAccountType(AccountType type)
           
 void addBudgetCategory(BudgetCategory budgetCategory)
           
 void addScheduledTransaction(ScheduledTransaction scheduledTransaction)
           
 void addTransaction(Transaction transaction)
           
 Document clone()
           
 Account getAccount(java.lang.String name)
           
 java.util.List<Account> getAccounts()
           
 AccountType getAccountType(java.lang.String name)
           
 java.util.List<AccountType> getAccountTypes()
           
 java.util.List<BudgetCategory> getBudgetCategories()
           
 BudgetCategory getBudgetCategory(java.lang.String fullName)
           
 long getNetWorth(java.util.Date date)
           
 ModelObject getObjectByUid(java.lang.String uid)
           
 java.util.List<ScheduledTransaction> getScheduledTransactions()
           
 java.util.List<Source> getSources()
           
 java.util.List<Transaction> getTransactions()
           
 java.util.List<Transaction> getTransactions(java.util.Date startDate, java.util.Date endDate)
           
 java.util.List<Transaction> getTransactions(Source source)
           
 java.util.List<Transaction> getTransactions(Source source, java.util.Date startDate, java.util.Date endDate)
           
 void refreshUidMap()
           
 void removeAccount(Account account)
           
 void removeAccountType(AccountType type)
           
 void removeBudgetCategory(BudgetCategory budgetCategory)
           
 void removeScheduledTransaction(ScheduledTransaction scheduledTransaction)
           
 void removeTransaction(Transaction transaction)
           
 void save()
          Save the data file to the current file (obtained by getFile()).
 void saveAs(java.io.File file)
          Prompt the user for a different file, and save the model to that file.
 void saveToStream(java.io.OutputStream os)
           
 void setFlag(int flag, boolean set)
           
 void updateAllBalances()
           
 void updateScheduledTransactions()
           
 
Methods inherited from interface org.homeunix.thecave.buddi.model.ModelObject
compareTo, getDocument, getModified, getUid, setChanged, setDocument
 
Methods inherited from interface org.homeunix.thecave.moss.model.StandardDocument
addDocumentChangeListener, finishBatchChange, getFile, isChanged, removeDocumentChangeListener, resetChanged, setChanged, setFile, startBatchChange
 

Field Detail

RESET_PASSWORD

static final int RESET_PASSWORD
See Also:
Constant Field Values

CHANGE_PASSWORD

static final int CHANGE_PASSWORD
See Also:
Constant Field Values
Method Detail

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