Class ProductReviewAction

java.lang.Object
org.apache.struts.action.Action
com.softslate.commerce.customer.core.BaseAction
com.softslate.commerce.customer.product.ProductReviewAction

public class ProductReviewAction extends BaseAction
This action processes the review submitted by the user.
Author:
Tony Zakula
  • Field Details

    • log

      static org.apache.commons.logging.Log log
  • Constructor Details

    • ProductReviewAction

      public ProductReviewAction()
  • Method Details

    • execute

      public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
      Overrides:
      execute in class org.apache.struts.action.Action
      Throws:
      Exception
    • loadProduct

      protected Product loadProduct(ProductReviewForm baseForm) throws Exception
      Throws:
      Exception
    • uploadFiles

      protected void uploadFiles(ProductReviewForm baseForm) throws Exception
      Throws:
      Exception
    • customerSubmittedReviewForProduct

      protected boolean customerSubmittedReviewForProduct(Customer customer, Product product)
    • sendAdministratorEmail

      public void sendAdministratorEmail(ProductReviewForm baseForm, ProductReview productReview)
    • constructEmailText

      public String constructEmailText(javax.servlet.http.HttpServletRequest request, String adminURL)
    • constructEmailHTML

      public String constructEmailHTML(javax.servlet.http.HttpServletRequest request, String adminURL)
    • getFileExt

      private String getFileExt(String fmtFileName)