public class ProcessGiftListAuthenticateActionCmdImpl extends AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl implements ProcessGiftListActionCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copy right field.
|
Constructor and Description |
---|
ProcessGiftListAuthenticateActionCmdImpl()
The default constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
protected boolean | authenticateUser(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg phyGiftListWithGrUserAuthEntries, java.lang.String password, int authType)
Authenticates the user based on the authentication type.
|
protected boolean | checkIfGiftListRequiresGuestAuthentication(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg phyGiftList)
Checks if the gift list requires authentication to view as a gift giver.
|
protected boolean | checkUserOwnsGiftList(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList)
Checks if the user making the request is the owner of the gift list.
|
protected boolean | checkUsersContext(java.lang.String externalIdentifier)
Checks the user"s gift center context to find out if the gift list is already being accessed.
|
protected com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg | getGiftListWithUserAuthEntries(java.lang.String uniqueID)
Retrieves the physical gift list which is populated with the Gruserauth objects.
|
void | performExecute()
Authenticates the user based on manage access password or guest access password.
|
void | validate()
Validates the request made.
|
public static final java.lang.String COPYRIGHT
public ProcessGiftListAuthenticateActionCmdImpl()
public void performExecute() throws java.lang.Exception
protected boolean checkIfGiftListRequiresGuestAuthentication(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg phyGiftList)
protected boolean checkUserOwnsGiftList(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg physicalGiftList) throws AbstractApplicationException
protected boolean checkUsersContext(java.lang.String externalIdentifier) throws java.lang.Exception
protected boolean authenticateUser(com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg phyGiftListWithGrUserAuthEntries, java.lang.String password, int authType) throws AbstractApplicationException
The method uses GiftListEncryptionHelper to decrypt and match passwords. The method also looks at encryption options for the password and based on that, decides to use either one way hash encryption or reversible encryption to compare passwords.
protected com.ibm.commerce.giftcenter.facade.server.entity.datatypes.Grgftreg getGiftListWithUserAuthEntries(java.lang.String uniqueID) throws AbstractApplicationException
public void validate() throws AbstractApplicationException