@Entity public class GiftCardPaymentImpl extends Object implements GiftCardPayment
| Modifier and Type | Field and Description |
|---|---|
protected EncryptionModule |
encryptionModule |
protected Long |
id |
protected String |
pan |
protected String |
pin |
protected String |
referenceNumber |
| Modifier | Constructor and Description |
|---|---|
protected |
GiftCardPaymentImpl()
Rather than constructing directly, use
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)
so that the appropriate EncryptionModule can be hooked up to this entity |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
EncryptionModule |
getEncryptionModule() |
Long |
getId() |
String |
getPan() |
String |
getPin() |
String |
getReferenceNumber()
The indirect link between non-secure data and the secure data represented here.
|
int |
hashCode() |
void |
setEncryptionModule(EncryptionModule encryptionModule)
Sets the encryption module used by to encrypt and decrypt the data saved in the blSecurePU persistence unit.
|
void |
setId(Long id) |
void |
setPan(String pan) |
void |
setPin(String pin) |
void |
setReferenceNumber(String referenceNumber)
Set the link between this secure entity and the
OrderPayment. |
protected EncryptionModule encryptionModule
protected Long id
protected String referenceNumber
protected String pan
protected String pin
protected GiftCardPaymentImpl()
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)
so that the appropriate EncryptionModule can be hooked up to this entitypublic Long getId()
getId in interface GiftCardPaymentgetId in interface Referencedpublic String getPan()
getPan in interface GiftCardPaymentpublic String getPin()
getPin in interface GiftCardPaymentpublic void setId(Long id)
setId in interface GiftCardPaymentsetId in interface Referencedid - the id to setpublic void setPan(String pan)
setPan in interface GiftCardPaymentpan - the pan to setpublic void setPin(String pin)
setPin in interface GiftCardPaymentpin - the pin to setpublic String getReferenceNumber()
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 Order side of the domain, this is linked by OrderPayment.getReferenceNumber() on the
OrderPayment entity.
getReferenceNumber in interface ReferencedOrderPayment#getReferenceNumber()}public void setReferenceNumber(String referenceNumber)
ReferencedOrderPayment. This should not be null as this is requiredsetReferenceNumber in interface Referencedpublic EncryptionModule getEncryptionModule()
getEncryptionModule in interface ReferencedEncryptionModule used to encrypt and decrypt this secure information back and forthpublic void setEncryptionModule(EncryptionModule encryptionModule)
ReferencedSecureOrderPaymentService#findSecurePaymentInfo(String, org.broadleafcommerce.core.payment.service.type.PaymentType)
and SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType).setEncryptionModule in interface ReferencedSecureOrderPaymentService#findSecurePaymentInfo(String, org.broadleafcommerce.core.payment.service.type.PaymentType)},
SecureOrderPaymentService#create(org.broadleafcommerce.core.payment.service.type.PaymentType)}Copyright © 2015. All Rights Reserved.