Package org.cyclos.entities.banking
Class UserAccount
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.banking.Account
-
- org.cyclos.entities.banking.UserAccount
-
- All Implemented Interfaces:
Cloneable,HasCurrency,IAccount,IUserAccount,HasNetwork,ProcessableForProxying,UserPrincipal,IEntity
@Entity public class UserAccount extends Account implements IUserAccount
An account owned by a user
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanupperCreditLimitFromProduct
-
Constructor Summary
Constructors Constructor Description UserAccount()UserAccount(Long id, User user, UserAccountType type, String number, Date creationDate, boolean active, Date negativeSince, BigDecimal creditLimit, BigDecimal upperCreditLimit, boolean upperCreditLimitFromProduct)UserAccount(IUserAccount other)UserAccount(User user, UserAccountType type)
-
Method Summary
-
Methods inherited from class org.cyclos.entities.banking.Account
getAccountBalanceLimitLog, getAccountRates, getAccountRatesId, getAmountReservations, getArchivedBalance, getArchivedReserved, getArchivingDate, getClosedAccountBalances, getCreationDate, getCreditLimit, getCurrency, getNegativeSince, getNetwork, getNumber, getUpperCreditLimit, setAccountRates, setAccountRatesId, setArchivedBalance, setArchivedReserved, setArchivingDate, setClosedAccountBalances, setCreationDate, setCreditLimit, setNegativeSince, setNumber, setUpperCreditLimit, toVORef
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
getCurrency, round, withCurrency
-
Methods inherited from interface org.cyclos.entities.HasNetwork
getNetwork, isGlobal
-
Methods inherited from interface org.cyclos.entities.banking.IAccount
getAccountRatesId, getCreditLimit, getNumber, getUpperCreditLimit, setAccountRatesId, setCreditLimit, setNumber, setUpperCreditLimit
-
Methods inherited from interface org.cyclos.entities.banking.IUserAccount
getAccessClient, getBasicUser, getCustomFieldValue, getMobilePhone, getNegativeSince, getOwner, getPrincipal, getPrincipalType, getToken, getTrustedDevice, isCreditLimitFromProduct
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Field Detail
-
upperCreditLimitFromProduct
protected Boolean upperCreditLimitFromProduct
-
-
Constructor Detail
-
UserAccount
public UserAccount()
-
UserAccount
public UserAccount(IUserAccount other)
-
UserAccount
public UserAccount(Long id, User user, UserAccountType type, String number, Date creationDate, boolean active, Date negativeSince, BigDecimal creditLimit, BigDecimal upperCreditLimit, boolean upperCreditLimitFromProduct)
-
UserAccount
public UserAccount(User user, UserAccountType type)
-
-
Method Detail
-
getAccountPaymentAmountLimitLog
public List<AccountPaymentAmountLimitLog> getAccountPaymentAmountLimitLog()
-
getAccountType
public UserAccountType getAccountType()
- Specified by:
getAccountTypein interfaceIUserAccount- Specified by:
getAccountTypein interfaceUserPrincipal
-
getNature
public AccountTypeNature getNature()
-
getPaymentAmountLimit
public BigDecimal getPaymentAmountLimit()
- Specified by:
getPaymentAmountLimitin interfaceIUserAccount
-
getPaymentAmountPerDayLimit
public BigDecimal getPaymentAmountPerDayLimit()
- Specified by:
getPaymentAmountPerDayLimitin interfaceIUserAccount
-
getPaymentAmountPerMonthLimit
public BigDecimal getPaymentAmountPerMonthLimit()
- Specified by:
getPaymentAmountPerMonthLimitin interfaceIUserAccount
-
getPaymentAmountPerWeekLimit
public BigDecimal getPaymentAmountPerWeekLimit()
- Specified by:
getPaymentAmountPerWeekLimitin interfaceIUserAccount
-
getPaymentAmountPerYearLimit
public BigDecimal getPaymentAmountPerYearLimit()
- Specified by:
getPaymentAmountPerYearLimitin interfaceIUserAccount
-
getType
public UserAccountType getType()
-
getUser
public User getUser()
- Specified by:
getUserin interfaceIUserAccount
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceIUserAccount- Specified by:
isActivein classAccount
-
isPaymentAmountLimitFromProduct
public boolean isPaymentAmountLimitFromProduct()
-
isPaymentAmountPerDayLimitFromProduct
public boolean isPaymentAmountPerDayLimitFromProduct()
-
isPaymentAmountPerMonthLimitFromProduct
public boolean isPaymentAmountPerMonthLimitFromProduct()
-
isPaymentAmountPerWeekLimitFromProduct
public boolean isPaymentAmountPerWeekLimitFromProduct()
-
isPaymentAmountPerYearLimitFromProduct
public boolean isPaymentAmountPerYearLimitFromProduct()
-
isUpperCreditLimitFromProduct
public boolean isUpperCreditLimitFromProduct()
- Specified by:
isUpperCreditLimitFromProductin interfaceIUserAccount
-
setActive
public void setActive(boolean active)
- Specified by:
setActivein interfaceIUserAccount
-
setPaymentAmountLimit
public void setPaymentAmountLimit(BigDecimal paymentAmountLimit)
-
setPaymentAmountPerDayLimit
public void setPaymentAmountPerDayLimit(BigDecimal paymentAmountPerDayLimit)
-
setPaymentAmountPerMonthLimit
public void setPaymentAmountPerMonthLimit(BigDecimal paymentAmountPerMonthLimit)
-
setPaymentAmountPerWeekLimit
public void setPaymentAmountPerWeekLimit(BigDecimal paymentAmountPerWeekLimit)
-
setPaymentAmountPerYearLimit
public void setPaymentAmountPerYearLimit(BigDecimal paymentAmountPerYearLimit)
-
setType
public void setType(AccountType type)
-
setUpperCreditLimitFromProduct
public void setUpperCreditLimitFromProduct(boolean upperCreditLimitFromProduct)
-
setUser
public void setUser(User user)
-
-