public final class CustomerEncryptionService extends Object
This class is a service to encrypt / decrypt a Customer.
Designed as a singleton
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.plugins.grubusiness.business.customer.Customer |
encrypt(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer,
fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
Encrypts a
Customer from the specified Customer. |
fr.paris.lutece.plugins.grubusiness.business.customer.Customer |
encrypt(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer,
String strCode)
Encrypts a
Customer from the specified Customer. |
static CustomerEncryptionService |
getInstance()
Gives the instance
|
public static CustomerEncryptionService getInstance()
public fr.paris.lutece.plugins.grubusiness.business.customer.Customer encrypt(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer,
fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand)
Encrypts a Customer from the specified Customer.
The provided Customer is not modified.
customer - the customer from which the Customer is encrypted. Must not be nulldemand - the demand for which the Customer is encrypted. Must not be nullCustomerpublic fr.paris.lutece.plugins.grubusiness.business.customer.Customer encrypt(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer,
String strCode)
Encrypts a Customer from the specified Customer.
The provided Customer is not modified.
customer - the customer from which the Customer is encrypted. Must not be nullstrCode - the code used to encrypt the Customer. Must not be nullCustomerCopyright © 2018 City of Paris. All rights reserved.