public class CheckGiftRegistryCredentialsCmdImpl extends BusinessObjectDocumentCmdImpl implements CheckGiftRegistryCredentialsCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
Classname com.ibm.commerce.component.giftregistry.commands.CheckGiftRegistryCredentialsCmdImpl
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
CheckGiftRegistryCredentialsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | authenticateUser(GiftRegistryAuthenticationVO authenticationVO)
This method first ensures that a password and an externalId are supplied for the gift registry.
|
protected boolean | checkIfBODHasValidAccessKey(java.lang.String externalId, GiftRegistryAuthenticationVO authenticationVO)
This method checks the GRGFTREG.GUESTACCESSKEY and GRGFTREG.REGACCESSKEY table.column to see if the access key is valid.
|
protected boolean | checkIfRegistryRequiresAuthentication(java.lang.String externalId, java.lang.Long giftRegistryId)
This method checks the gift registry and returns true if GRGFTREG.GUESTOPTION is set to ECGiftRegistryConstants.EC_GIFT_REGISTRY_GUEST_ACCESS_OPTION_PUBLIC, meaning no password is required to view this gift registry item list.
|
protected boolean | checkIfUserIsOwner(java.lang.String externalId, java.lang.Long giftRegistryId)
This method checks the GRRGSTRNT.USERID table.column to see if this user owns the gift registry.
|
protected boolean | checkUsersContext(java.lang.String externalId, GiftRegistryAuthenticationVO authenticationVO)
This method is run if a password is not supplied for a registry.
|
void | performExecute()
Executes this command.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public void performExecute() throws ECException
protected void authenticateUser(GiftRegistryAuthenticationVO authenticationVO) throws ECApplicationException
protected boolean checkUsersContext(java.lang.String externalId, GiftRegistryAuthenticationVO authenticationVO)
protected boolean checkIfUserIsOwner(java.lang.String externalId, java.lang.Long giftRegistryId)
protected boolean checkIfRegistryRequiresAuthentication(java.lang.String externalId, java.lang.Long giftRegistryId)
protected boolean checkIfBODHasValidAccessKey(java.lang.String externalId, GiftRegistryAuthenticationVO authenticationVO)