Class CustomerProvider
java.lang.Object
fr.paris.lutece.plugins.notificationstore.service.CustomerProvider
This class provides customers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.plugins.grubusiness.business.customer.CustomerDecrypts aCustomerfrom the specifiedCustomer.fr.paris.lutece.plugins.grubusiness.business.customer.Customerdecrypt(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand) Decrypts aCustomerfrom the specifiedCustomer.fr.paris.lutece.plugins.grubusiness.business.customer.CustomerProvides a customer with the specified GUID / CIDbooleanhas identity servicestatic CustomerProviderinstance()retrieve singletonstatic booleanisConnectionIdValid(String strId) check connection ID : must contains at least 36 charsstatic booleanisCustomerIdValid(String strId) check customer ID : must contains 36 chars
-
Constructor Details
-
CustomerProvider
public CustomerProvider()
-
-
Method Details
-
instance
retrieve singleton -
hasIdentityService
public boolean hasIdentityService()has identity service- Returns:
- true if identityService is not null
-
get
public fr.paris.lutece.plugins.grubusiness.business.customer.Customer get(String strGuid, String strCuid) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Provides a customer with the specified GUID / CID- Parameters:
strGuid- the connection idstrCuid- the customer id- Returns:
- the customer
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
decrypt
public fr.paris.lutece.plugins.grubusiness.business.customer.Customer decrypt(fr.paris.lutece.plugins.grubusiness.business.customer.Customer customer, String strCode) Decrypts a
Customerfrom the specifiedCustomer.The provided
Customeris not modified.- Parameters:
customer- the customer from which theCustomeris decrypted. Must not benullstrCode- the code used to decrypt theCustomer. Must not benull- Returns:
- the decrypted
Customer
-
decrypt
public fr.paris.lutece.plugins.grubusiness.business.customer.Customer decrypt(fr.paris.lutece.plugins.grubusiness.business.demand.Demand demand) Decrypts a
Customerfrom the specifiedCustomer.The provided
Customeris not modified.- Parameters:
customer- the customer from which theCustomeris decrypted. Must not benulldemand- the demand for which theCustomeris decrypted. Must not benull- Returns:
- the decrypted
Customer
-
isCustomerIdValid
check customer ID : must contains 36 chars- Parameters:
strId-- Returns:
- true if valid
-
isConnectionIdValid
check connection ID : must contains at least 36 chars- Parameters:
strId-- Returns:
- true if valid
-