public class AccountManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
AccountManager(Integer organizationId)
Creates a new instance of AccountManager
|
| Modifier and Type | Method and Description |
|---|---|
Transaction |
beginTLU() |
void |
commitTransaction(Transaction accountTransaction,
User user) |
void |
endTLU() |
static AccountManager |
getAccountManager(Integer organizationId) |
double |
getBalance() |
Transaction |
getTLU() |
List |
getTransactions(int listMax,
int type) |
List |
getTransactions(int firstResult,
int listMax,
int type) |
static boolean |
isEnableAccounting() |
Transaction |
prepareTransaction(int type,
String description) |
static void |
setEnableAccounting(boolean state) |
public static final long serialVersionUID
public AccountManager(Integer organizationId)
organizationId - public static AccountManager getAccountManager(Integer organizationId) throws Exception
organizationId - Exceptionpublic Transaction prepareTransaction(int type, String description) throws Exception
transactionClass - description - Exceptionpublic Transaction beginTLU() throws Exception
Exceptionpublic Transaction getTLU()
public void commitTransaction(Transaction accountTransaction, User user) throws Exception
accountTransaction - user - Exceptionpublic List getTransactions(int listMax, int type) throws Exception
listMax - transactionType - Exceptionpublic List getTransactions(int firstResult, int listMax, int type) throws Exception
firstResult - listMax - transactionType - Exceptionpublic static void setEnableAccounting(boolean state)
state - public static boolean isEnableAccounting()
Copyright © 2016. All rights reserved.