Class GiftCardPaymentImpl
java.lang.Object
org.broadleafcommerce.core.payment.domain.secure.GiftCardPaymentImpl
- All Implemented Interfaces:
Serializable,GiftCardPayment,Referenced
- 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()getPan()getPin()The indirect link between non-secure data and the secure data represented here.inthashCode()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.voidvoidvoidvoidsetReferenceNumber(String referenceNumber) Set the link between this secure entity and theOrderPayment.
-
Field Details
-
encryptionModule
protected org.broadleafcommerce.common.encryption.EncryptionModule encryptionModule -
id
-
referenceNumber
-
pan
-
pin
-
-
Constructor Details
-
GiftCardPaymentImpl
protected GiftCardPaymentImpl()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 interfaceGiftCardPayment- Specified by:
getIdin interfaceReferenced- Returns:
- the id
-
setId
- Specified by:
setIdin interfaceGiftCardPayment- Specified by:
setIdin interfaceReferenced- Parameters:
id- the id to set
-
getPan
- Specified by:
getPanin interfaceGiftCardPayment- Returns:
- the pan
-
setPan
- Specified by:
setPanin interfaceGiftCardPayment- Parameters:
pan- the pan to set
-
getPin
- Specified by:
getPinin interfaceGiftCardPayment- Returns:
- the pin
-
setPin
- Specified by:
setPinin interfaceGiftCardPayment- Parameters:
pin- the pin 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
-
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
-