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,ProcessableForDataTranslation,UserPrincipal,IEntity
@Entity public class UserAccount extends Account implements UserPrincipal
An account owned by a user
-
-
Constructor Summary
Constructors Constructor Description UserAccount()UserAccount(User user)
-
Method Summary
-
Methods inherited from class org.cyclos.entities.banking.Account
getAccountBalanceLimitLog, getAccountRates, getAmountReservations, getClosedAccountBalances, getCreationDate, getCurrency, getCustomCreditLimit, getCustomUpperCreditLimit, getNegativeSince, getNetwork, getNumber, isHasCustomCreditLimit, isHasCustomUpperCreditLimit, setAccountRates, setClosedAccountBalances, setCreationDate, setCustomCreditLimit, setCustomUpperCreditLimit, setHasCustomCreditLimit, setHasCustomUpperCreditLimit, setNegativeSince, setNumber
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
clone, equals, getId, getId, getIds, getUniqueIds, getUniqueIds, hashCode, isPersistent, isTransient, toShortString, toString
-
-
-
-
Constructor Detail
-
UserAccount
public UserAccount()
-
UserAccount
public UserAccount(User user)
-
-
Method Detail
-
getAccessClient
public AccessClient getAccessClient()
- Specified by:
getAccessClientin interfaceUserPrincipal
-
getAccount
public UserAccount getAccount()
- Specified by:
getAccountin interfaceUserPrincipal
-
getAccountPaymentAmountLimitLog
public List<AccountPaymentAmountLimitLog> getAccountPaymentAmountLimitLog()
-
getBasicUser
public BasicUser getBasicUser()
- Specified by:
getBasicUserin interfaceUserPrincipal
-
getCustomFieldValue
public UserCustomFieldValue getCustomFieldValue()
- Specified by:
getCustomFieldValuein interfaceUserPrincipal
-
getCustomPaymentAmountLimit
public BigDecimal getCustomPaymentAmountLimit()
-
getCustomPaymentAmountPerDayLimit
public BigDecimal getCustomPaymentAmountPerDayLimit()
-
getCustomPaymentAmountPerMonthLimit
public BigDecimal getCustomPaymentAmountPerMonthLimit()
-
getCustomPaymentAmountPerWeekLimit
public BigDecimal getCustomPaymentAmountPerWeekLimit()
-
getMobilePhone
public MobilePhone getMobilePhone()
- Specified by:
getMobilePhonein interfaceUserPrincipal
-
getNature
public AccountTypeNature getNature()
-
getOwner
public InternalAccountOwner getOwner()
-
getPrincipal
public String getPrincipal()
Description copied from interface:UserPrincipalShould return a value that can be used to identify the user. In case the value should be hidden, implementors should return null.- Specified by:
getPrincipalin interfaceUserPrincipal
-
getPrincipalType
public PrincipalType getPrincipalType()
- Specified by:
getPrincipalTypein interfaceUserPrincipal
-
getToken
public Token getToken()
- Specified by:
getTokenin interfaceUserPrincipal
-
getTrustedDevice
public TrustedDevice getTrustedDevice()
- Specified by:
getTrustedDevicein interfaceUserPrincipal
-
getType
public UserAccountType getType()
-
getUser
public User getUser()
-
isDisposed
public boolean isDisposed()
WARNING: This method is considered internal, to be used only on AccountServiceImpl.adjustAccounts(User). To check if an account is active, use AccountServiceLocal.isActive(account)
-
isHasCustomPaymentAmountLimit
public boolean isHasCustomPaymentAmountLimit()
-
isHasCustomPaymentAmountPerDayLimit
public boolean isHasCustomPaymentAmountPerDayLimit()
-
isHasCustomPaymentAmountPerMonthLimit
public boolean isHasCustomPaymentAmountPerMonthLimit()
-
isHasCustomPaymentAmountPerWeekLimit
public boolean isHasCustomPaymentAmountPerWeekLimit()
-
setCustomPaymentAmountLimit
public void setCustomPaymentAmountLimit(BigDecimal customPaymentAmountLimit)
-
setCustomPaymentAmountPerDayLimit
public void setCustomPaymentAmountPerDayLimit(BigDecimal customPaymentAmountPerDayLimit)
-
setCustomPaymentAmountPerMonthLimit
public void setCustomPaymentAmountPerMonthLimit(BigDecimal customPaymentAmountPerMonthLimit)
-
setCustomPaymentAmountPerWeekLimit
public void setCustomPaymentAmountPerWeekLimit(BigDecimal customPaymentAmountPerWeekLimit)
-
setDisposed
public void setDisposed(boolean disposed)
-
setType
public void setType(AccountType type)
-
setUser
public void setUser(User user)
-
-