Package org.cyclos.entities.banking
Interface IUserAccount
-
- All Superinterfaces:
HasCurrency,HasNetwork,IAccount,IEntity,UserPrincipal
- All Known Implementing Classes:
PendingUserAccount,UserAccount
public interface IUserAccount extends IAccount, UserPrincipal
Represents a user account, with all aspects it comprises
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default AccessClientgetAccessClient()default UserAccountTypegetAccountType()default BasicUsergetBasicUser()default UserCustomFieldValuegetCustomFieldValue()default MobilePhonegetMobilePhone()default DategetNegativeSince()default UsergetOwner()BigDecimalgetPaymentAmountLimit()BigDecimalgetPaymentAmountPerDayLimit()BigDecimalgetPaymentAmountPerMonthLimit()BigDecimalgetPaymentAmountPerWeekLimit()BigDecimalgetPaymentAmountPerYearLimit()default StringgetPrincipal()Should return a value that can be used to identify the user.default PrincipalTypegetPrincipalType()default TokengetToken()default TrustedDevicegetTrustedDevice()UserAccountTypegetType()UsergetUser()booleanisActive()default booleanisCreditLimitFromProduct()booleanisUpperCreditLimitFromProduct()voidsetActive(boolean active)-
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
-
-
-
-
Method Detail
-
getAccessClient
default AccessClient getAccessClient()
- Specified by:
getAccessClientin interfaceUserPrincipal
-
getAccountType
default UserAccountType getAccountType()
- Specified by:
getAccountTypein interfaceUserPrincipal
-
getBasicUser
default BasicUser getBasicUser()
- Specified by:
getBasicUserin interfaceUserPrincipal
-
getCustomFieldValue
default UserCustomFieldValue getCustomFieldValue()
- Specified by:
getCustomFieldValuein interfaceUserPrincipal
-
getMobilePhone
default MobilePhone getMobilePhone()
- Specified by:
getMobilePhonein interfaceUserPrincipal
-
getNegativeSince
default Date getNegativeSince()
-
getPaymentAmountLimit
BigDecimal getPaymentAmountLimit()
-
getPaymentAmountPerDayLimit
BigDecimal getPaymentAmountPerDayLimit()
-
getPaymentAmountPerMonthLimit
BigDecimal getPaymentAmountPerMonthLimit()
-
getPaymentAmountPerWeekLimit
BigDecimal getPaymentAmountPerWeekLimit()
-
getPaymentAmountPerYearLimit
BigDecimal getPaymentAmountPerYearLimit()
-
getPrincipal
default 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
default PrincipalType getPrincipalType()
- Specified by:
getPrincipalTypein interfaceUserPrincipal
-
getToken
default Token getToken()
- Specified by:
getTokenin interfaceUserPrincipal
-
getTrustedDevice
default TrustedDevice getTrustedDevice()
- Specified by:
getTrustedDevicein interfaceUserPrincipal
-
getType
UserAccountType getType()
-
getUser
User getUser()
-
isActive
boolean isActive()
-
isCreditLimitFromProduct
default boolean isCreditLimitFromProduct()
-
isUpperCreditLimitFromProduct
boolean isUpperCreditLimitFromProduct()
-
setActive
void setActive(boolean active)
-
-