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
ClearcheckbookException
public File exportCategories(String fileName, List<CategoryDataType> categories) throws ClearcheckbookException
ClearcheckbookException
public File exportLimits(String fileName, List<LimitDataType> limits) throws ClearcheckbookException
ClearcheckbookException
public File exportReminders(String fileName, List<ReminderDataType> reminders) throws ClearcheckbookException
ClearcheckbookException
public File exportTransactions(String fileName, List<TransactionDataType> transactions) throws ClearcheckbookException
ClearcheckbookException
public List<AccountDataType> getAccounts() throws ClearcheckbookException
ClearcheckbookException
public Map<Long,AccountDataType> getAccountsMap() throws ClearcheckbookException
ClearcheckbookException
public List<CategoryDataType> getCategories() throws ClearcheckbookException
ClearcheckbookException
public List<LimitDataType> getLimits() throws ClearcheckbookException
ClearcheckbookException
public List<ReminderDataType> getReminders() throws ClearcheckbookException
ClearcheckbookException
public List<TransactionDataType> getTransactions() throws ClearcheckbookException
ClearcheckbookException
public List<TransactionDataType> getTransactions(AccountDataType account) throws ClearcheckbookException
ClearcheckbookException
public List<AccountDataType> importAccounts(String fileName) throws ClearcheckbookException
ClearcheckbookException
public List<TransactionDataType> importTransactions(String transactionsFileName, FilePreProcessor preprocessor) throws ClearcheckbookException
ClearcheckbookException
public boolean isAccountIdValid(Long accountId) throws ClearcheckbookException
accountId
- ClearcheckbookException
public List<String> processTransactions(List<TransactionDataType> dataTypeList, ClearCheckBookTaskProcessor<TransactionDataType> processor) throws ClearcheckbookException
ClearcheckbookException
public List<String> processTransactions(List<TransactionDataType> modified, List<TransactionDataType> original) throws ClearcheckbookException
ClearcheckbookException
public List<String> processTransactionsInParallel(List<TransactionDataType> modified, List<TransactionDataType> original) throws ClearcheckbookException
ClearcheckbookException
public List<String> processTransactionsInParallel(List<TransactionDataType> modified) throws ClearcheckbookException
ClearcheckbookException
public List<String> processTransactions(List<TransactionDataType> modified) throws ClearcheckbookException
ClearcheckbookException
public List<String> processTransactions(List<TransactionDataType> modified, List<TransactionDataType> original, ClearCheckBookTaskProcessor<TransactionDataType> processor) throws ClearcheckbookException
ClearcheckbookException
protected List<TransactionDataType> getChangesOnly(List<TransactionDataType> modified, List<TransactionDataType> original)
public void processAccounts(List<AccountDataType> accounts) throws ClearcheckbookException
ClearcheckbookException
Copyright © 2014 Leonard UK Ltd. All rights reserved.