We might get into a situation where we find a lot many guest users end up created in the database with out having any order placed.
isGeneric() method of the the controller command helps to control the creation of guest users in the WCS database, here is the reason why-
By default isGeneric() method returns false which depicts that the OOB version of the controller command does not allow the user to access it with generic user mode hence the framework has to create a guest user to allow the user to access the command in question.
for example ProductDisplayCmd command can still continue having isGenric() method returning true which in return ensure that the generic user is able to access the product page and no guest user has to be created for the continued access over the PDP page on the site, whereas we would want the OrderItemAddCmdImpl to return false to block for the generic user and hence the guest user will be created once the command is invoked.
isGeneric() method of the the controller command helps to control the creation of guest users in the WCS database, here is the reason why-
By default isGeneric() method returns false which depicts that the OOB version of the controller command does not allow the user to access it with generic user mode hence the framework has to create a guest user to allow the user to access the command in question.
for example ProductDisplayCmd command can still continue having isGenric() method returning true which in return ensure that the generic user is able to access the product page and no guest user has to be created for the continued access over the PDP page on the site, whereas we would want the OrderItemAddCmdImpl to return false to block for the generic user and hence the guest user will be created once the command is invoked.
No comments:
Post a Comment