public class ProcessGiftListAuthenticateActionCmdImpl extends AbstractProcessCustomActionUsingBusinessObjectMediatorCmdImpl implements ProcessGiftListActionCmd
ProcessGiftListAuthenticateActionCmdImpl
command
authenticates the user for a gift list by guest access password or by manage
access password. If both the passwords are not provided, the command checks
if the gift list requires a password for granting guest access. It also
checks if the user owning the gift list is making a request to update the
context with the registrant relationship with the gift list. If both
passwords are provided, an exception is thrown as the service can
authenticate based on either of the passwords.
The command never updates the user"s context to lower the access level
on the gift list. For example, if the user already bears a registrant
relationship with the gift list, a service request with manage password will
not change the user"s relationship to co-registrant.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 |
---|---|
void |
performExecute()
Authenticates the user based on manage access password or guest access
password.
|
void |
validate()
Validates the request made.
|
getChangeBusinessObjectMediator, getChangeControlBusinessObjectMediator
getActionExpression, getNoun, isGeneric, isReadyToCallExecute, reset, setActionExpression, setNoun, setPersistentObjects
execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isGeneric, setActionExpression, setNoun, setPersistentObjects
public static final java.lang.String COPYRIGHT
public ProcessGiftListAuthenticateActionCmdImpl()
public void performExecute() throws java.lang.Exception
GiftListContextUpdateCmd
In all other cases, an error is
thrown.performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.websphere.command.TargetableCommandImpl
java.lang.Exception
- the authentication fails.ProcessGiftListAuthenticateActionCmdImpl#checkUserOwnsGiftList(String, String)}
{@link ProcessGiftListAuthenticateActionCmdImpl#checkUsersContext(String)}
{@link ProcessGiftListAuthenticateActionCmdImpl#authenticateUser(Grgftreg, String, int)}
{@link ProcessGiftListAuthenticateActionCmdImpl#checkIfGiftListRequiresGuestAuthentication(Grgftreg)}
,
GiftListContextUpdateCmd}
public void validate() throws AbstractApplicationException
validate
in interface AbstractProcessNounActionCmd
AbstractApplicationException
- When the validation fails.