public class ClearCheckBookHelper extends Object
ClearCheckBookConnection class. It is expected client code will use
this class as an interface to the API.| Constructor and Description |
|---|
ClearCheckBookHelper(String userName,
String password,
int consumers) |
public File exportAccounts(String fileName, List<AccountDataType> accounts) throws ClearcheckbookException
ClearcheckbookExceptionpublic File exportCategories(String fileName, List<CategoryDataType> categories) throws ClearcheckbookException
ClearcheckbookExceptionpublic File exportLimits(String fileName, List<LimitDataType> limits) throws ClearcheckbookException
ClearcheckbookExceptionpublic File exportReminders(String fileName, List<ReminderDataType> reminders) throws ClearcheckbookException
ClearcheckbookExceptionpublic File exportTransactions(String fileName, List<TransactionDataType> transactions) throws ClearcheckbookException
ClearcheckbookExceptionpublic List<AccountDataType> getAccounts() throws ClearcheckbookException
ClearcheckbookExceptionpublic Map<Long,AccountDataType> getAccountsMap() throws ClearcheckbookException
ClearcheckbookExceptionpublic List<CategoryDataType> getCategories() throws ClearcheckbookException
ClearcheckbookExceptionpublic List<LimitDataType> getLimits() throws ClearcheckbookException
ClearcheckbookExceptionpublic List<ReminderDataType> getReminders() throws ClearcheckbookException
ClearcheckbookExceptionpublic List<TransactionDataType> getTransactions() throws ClearcheckbookException
ClearcheckbookExceptionpublic List<TransactionDataType> getTransactions(AccountDataType account) throws ClearcheckbookException
ClearcheckbookExceptionpublic List<AccountDataType> importAccounts(String fileName) throws ClearcheckbookException
ClearcheckbookExceptionpublic List<TransactionDataType> importTransactions(String transactionsFileName, FilePreProcessor preprocessor) throws ClearcheckbookException
ClearcheckbookExceptionpublic boolean isAccountIdValid(Long accountId) throws ClearcheckbookException
accountId - ClearcheckbookExceptionpublic List<String> processTransactions(List<TransactionDataType> dataTypeList, ClearCheckBookTaskProcessor<TransactionDataType> processor) throws ClearcheckbookException
ClearcheckbookExceptionpublic List<String> processTransactions(List<TransactionDataType> modified, List<TransactionDataType> original) throws ClearcheckbookException
ClearcheckbookExceptionpublic List<String> processTransactionsInParallel(List<TransactionDataType> modified, List<TransactionDataType> original) throws ClearcheckbookException
ClearcheckbookExceptionpublic List<String> processTransactionsInParallel(List<TransactionDataType> modified) throws ClearcheckbookException
ClearcheckbookExceptionpublic List<String> processTransactions(List<TransactionDataType> modified) throws ClearcheckbookException
ClearcheckbookExceptionpublic List<String> processTransactions(List<TransactionDataType> modified, List<TransactionDataType> original, ClearCheckBookTaskProcessor<TransactionDataType> processor) throws ClearcheckbookException
ClearcheckbookExceptionprotected List<TransactionDataType> getChangesOnly(List<TransactionDataType> modified, List<TransactionDataType> original)
public void processAccounts(List<AccountDataType> accounts) throws ClearcheckbookException
ClearcheckbookExceptionCopyright © 2014 Leonard UK Ltd. All rights reserved.