Class BankAccountPaymentImpl
java.lang.Object
org.broadleafcommerce.core.payment.domain.secure.BankAccountPaymentImpl
- All Implemented Interfaces:
Serializable,BankAccountPayment,Referenced
- Author:
- jfischer
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRather than constructing directly, useSecureOrderPaymentService.create(org.broadleafcommerce.core.payment.service.type.PaymentType)so that the appropriateEncryptionModulecan be hooked up to this entity -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.broadleafcommerce.common.encryption.EncryptionModulegetId()The indirect link between non-secure data and the secure data represented here.inthashCode()voidsetAccountNumber(String accountNumber) voidsetEncryptionModule(org.broadleafcommerce.common.encryption.EncryptionModule encryptionModule) Sets the encryption module used by to encrypt and decrypt the data saved in the blSecurePU persistence unit.voidvoidsetReferenceNumber(String referenceNumber) Set the link between this secure entity and theOrderPayment.voidsetRoutingNumber(String routingNumber)
-
Field Details
-
encryptionModule
protected org.broadleafcommerce.common.encryption.EncryptionModule encryptionModule -
id
-
referenceNumber
-
accountNumber
-
routingNumber
-
-
Constructor Details
-
BankAccountPaymentImpl
protected BankAccountPaymentImpl()Rather than constructing directly, useSecureOrderPaymentService.create(org.broadleafcommerce.core.payment.service.type.PaymentType)so that the appropriateEncryptionModulecan be hooked up to this entity
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceBankAccountPayment- Specified by:
getIdin interfaceReferenced- Returns:
- the id
-
setId
- Specified by:
setIdin interfaceBankAccountPayment- Specified by:
setIdin interfaceReferenced- Parameters:
id- the id to set
-
getReferenceNumber
Description copied from interface:ReferencedThe indirect link between non-secure data and the secure data represented here. Since implementing entities should be in a separate persistence unit (blSecurePU), this is the only avenue to show a relationship between the two.
From the
Orderside of the domain, this is linked byOrderPayment.getReferenceNumber()on theOrderPaymententity.- Specified by:
getReferenceNumberin interfaceReferenced
-
setReferenceNumber
Description copied from interface:ReferencedSet the link between this secure entity and theOrderPayment. This should not be null as this is required- Specified by:
setReferenceNumberin interfaceReferenced
-
getAccountNumber
- Specified by:
getAccountNumberin interfaceBankAccountPayment- Returns:
- the account number
-
setAccountNumber
- Specified by:
setAccountNumberin interfaceBankAccountPayment- Parameters:
accountNumber- the account number to set
-
getRoutingNumber
- Specified by:
getRoutingNumberin interfaceBankAccountPayment- Returns:
- the routing number
-
setRoutingNumber
- Specified by:
setRoutingNumberin interfaceBankAccountPayment- Parameters:
routingNumber- the routing number to set
-
getEncryptionModule
public org.broadleafcommerce.common.encryption.EncryptionModule getEncryptionModule()- Specified by:
getEncryptionModulein interfaceReferenced- Returns:
- the
EncryptionModuleused to encrypt and decrypt this secure information back and forth
-
setEncryptionModule
public void setEncryptionModule(org.broadleafcommerce.common.encryption.EncryptionModule encryptionModule) Description copied from interface:ReferencedSets the encryption module used by to encrypt and decrypt the data saved in the blSecurePU persistence unit. This normally corresponds to the blEncryptionModule Spring bean which should be automatically set after invokingSecureOrderPaymentService.findSecurePaymentInfo(String, org.broadleafcommerce.core.payment.service.type.PaymentType)andSecureOrderPaymentService.create(org.broadleafcommerce.core.payment.service.type.PaymentType).- Specified by:
setEncryptionModulein interfaceReferenced
-
hashCode
public int hashCode() -
equals
-