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,ProcessableForDataTranslation,UserPrincipal,IEntity
@Entity public class UserAccount extends Account implements IUserAccount
An account owned by a user
-
-
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, getAmountReservations, getClosedAccountBalances, getCreationDate, getCreditLimit, getCurrency, getNegativeSince, getNetwork, getNumber, getUpperCreditLimit, lockKey, setAccountRates, setClosedAccountBalances, setCreationDate, setCreditLimit, setNegativeSince, setNumber, setUpperCreditLimit, toVORef
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, hashCode, id, ids, isPersistent, isTransient, setId, toShortString, toString, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
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
getCreditLimit, getNumber, getUpperCreditLimit, setCreditLimit, setNumber, setUpperCreditLimit
-
Methods inherited from interface org.cyclos.entities.banking.IUserAccount
getAccessClient, getBasicUser, getCustomFieldValue, getMobilePhone, getOwner, getPrincipal, getPrincipalType, getToken, getTrustedDevice, isCreditLimitFromProduct
-
-
-
-
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()
-
getPaymentAmountPerDayLimit
public BigDecimal getPaymentAmountPerDayLimit()
-
getPaymentAmountPerMonthLimit
public BigDecimal getPaymentAmountPerMonthLimit()
-
getPaymentAmountPerWeekLimit
public BigDecimal getPaymentAmountPerWeekLimit()
-
getPaymentAmountPerYearLimit
public BigDecimal getPaymentAmountPerYearLimit()
-
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)
-
-