Coverage Report - org.homeunix.thecave.buddi.model.Document
 
Classes in this File Line Coverage Branch Coverage Complexity
Document
N/A
N/A
1
 
 1  
 /*
 2  
  * Created on Jul 30, 2007 by wyatt
 3  
  */
 4  
 package org.homeunix.thecave.buddi.model;
 5  
 
 6  
 import java.io.File;
 7  
 import java.io.OutputStream;
 8  
 import java.util.Date;
 9  
 import java.util.List;
 10  
 
 11  
 import org.homeunix.thecave.buddi.plugin.api.exception.ModelException;
 12  
 
 13  
 import ca.digitalcave.moss.application.document.StandardDocument;
 14  
 import ca.digitalcave.moss.application.document.exception.DocumentSaveException;
 15  
 
 16  
 public interface Document extends ModelObject, StandardDocument {
 17  
 
 18  
         public static final int RESET_PASSWORD = 1;  //Should we change the current password?
 19  
         public static final int CHANGE_PASSWORD = 2; //Should we prompt for a password?
 20  
         
 21  
         public void addAccount(Account account) throws ModelException;
 22  
         public void addAccountType(AccountType type) throws ModelException;
 23  
         public void addBudgetCategory(BudgetCategory budgetCategory) throws ModelException;
 24  
         public void addScheduledTransaction(ScheduledTransaction scheduledTransaction) throws ModelException;
 25  
         public void addTransaction(Transaction transaction) throws ModelException;
 26  
         public String doSanityChecks();
 27  
         public Account getAccount(String name);
 28  
         public List<Account> getAccounts();
 29  
         public AccountType getAccountType(String name);
 30  
         public List<AccountType> getAccountTypes();
 31  
         public List<BudgetCategory> getBudgetCategories();
 32  
         public BudgetCategory getBudgetCategory(String fullName);
 33  
         public long getNetWorth(Date date);
 34  
         public ModelObject getObjectByUid(String uid);
 35  
         public List<ScheduledTransaction> getScheduledTransactions();
 36  
         public List<Source> getSources();
 37  
         public List<Transaction> getTransactions();
 38  
         public List<Transaction> getTransactions(Date startDate, Date endDate);
 39  
         public List<Transaction> getTransactions(Source source);
 40  
         public List<Transaction> getTransactions(Source source, Date startDate, Date endDate);
 41  
         public void refreshUidMap() throws ModelException;
 42  
         public void removeAccount(Account account) throws ModelException;
 43  
         public void removeAccountType(AccountType type) throws ModelException;
 44  
         public void removeBudgetCategory(BudgetCategory budgetCategory) throws ModelException;
 45  
         public void removeScheduledTransaction(ScheduledTransaction scheduledTransaction) throws ModelException;
 46  
         public void removeTransaction(Transaction transaction) throws ModelException;
 47  
         public void save() throws DocumentSaveException;
 48  
         public void saveAs(File file) throws DocumentSaveException;
 49  
         public void saveToStream(OutputStream os) throws DocumentSaveException;
 50  
         public void setFlag(int flag, boolean set);
 51  
         public void updateAllBalances();
 52  
         public void updateScheduledTransactions();
 53  
         public Document clone() throws CloneNotSupportedException;
 54  
 }