Interface Account
-
- All Superinterfaces:
java.lang.Comparable<com.novomind.ecom.common.api.persistence.Entity>
,com.novomind.ecom.common.api.persistence.Entity
,MasterEntity
,com.novomind.ecom.common.api.attribute.Named
,StorageProvider
,TenantProvider
public interface Account extends MasterEntity, com.novomind.ecom.common.api.attribute.Named, StorageProvider, TenantProvider
Represents an Account object- Since:
- 10.0.16
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Account.AccountType
This enumeration describes the type of an account.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Account.AccountType
getAccountType()
The method returns theAccountType
of this account.java.lang.String
getAddress()
Returns the Account's email address.java.util.Optional<Account>
getAlternativeOutgoingAccount()
Channel
getChannel()
java.lang.String
getProtocol()
boolean
isEnabled()
Returns the enabled statusboolean
isSendAllowed()
Returns if the account is allowed to send answers-
Methods inherited from interface com.novomind.ecom.common.api.persistence.Entity
compareTo, getId, isDeleted, isNotDeleted
-
Methods inherited from interface com.novomind.ecom.api.iagent.provider.StorageProvider
getStorage
-
Methods inherited from interface com.novomind.ecom.api.iagent.provider.TenantProvider
getTenant
-
-
-
-
Method Detail
-
getAddress
java.lang.String getAddress()
Returns the Account's email address. The email address is also a unique identifier for this account.- Returns:
- the email address as string
- Since:
- 10.0.16
-
getChannel
Channel getChannel()
- Returns:
- the Channel of the account.
- Since:
- 10.0.50
-
isEnabled
boolean isEnabled()
Returns the enabled status- Returns:
- true if account is enables otherwise false
- Since:
- 10.0.50
-
isSendAllowed
boolean isSendAllowed()
Returns if the account is allowed to send answers- Returns:
- true if account is allowed to send answers
- Since:
- 10.0.120
-
getProtocol
java.lang.String getProtocol()
- Returns:
- the protocol of the account
- Since:
- 10.0.50
-
getAlternativeOutgoingAccount
java.util.Optional<Account> getAlternativeOutgoingAccount()
- Returns:
- the optional alternative outgoing account used to send messages
- Since:
- 10.0.142
-
getAccountType
Account.AccountType getAccountType()
The method returns theAccountType
of this account.- Returns:
- the AccountType of the account
- Since:
- 11.24
-
-