Class RatingFeedbackFactoryImpl

java.lang.Object
com.skava.ratingandreviews.factory.impl.RatingFeedbackFactoryImpl
All Implemented Interfaces:
RatingFeedbackFactory

@Component public class RatingFeedbackFactoryImpl extends Object implements RatingFeedbackFactory

Class RatingFeedbackFactoryImpl

this class provides the implementation of the ratingFeedbackFactory

  • Constructor Details

    • RatingFeedbackFactoryImpl

      public RatingFeedbackFactoryImpl()
  • Method Details

    • createRatingFeedbackDomain

      public ReviewFeedbackDomain createRatingFeedbackDomain(RatingFeedbackInfoDataRequest ratingFeedbackInfoDataRequest)

      method ReviewFeedbackDomain

      this method is used to set the values of feedback,userId,RatingFeedbackId,properties,UserId from the

      Specified by:
      createRatingFeedbackDomain in interface RatingFeedbackFactory
      Parameters:
      ratingFeedbackInfoDataRequest - to the reviewfeedbackdomain and return the values as reviewfeedbackdomain
      Returns:
      reviewfeedbackdomain
    • updateRatingFeedbackDomain

      public ReviewFeedbackDomain updateRatingFeedbackDomain(RatingFeedbackInfoDataRequest ratingFeedbackInfoDataRequest)

      method updateRatingFeedbackDomain

      this method is used to update the values of the reviewfeedbackdomain based on the necessity with the help of validations

      Specified by:
      updateRatingFeedbackDomain in interface RatingFeedbackFactory
      Parameters:
      ratingFeedbackInfoDataRequest - Holds the information about the RatingFeedbackInfoDataRequest.
      Returns:
      ReviewFeedbackDomain
    • createRatingFeedbackEntity

      public RatingFeedbackEntity createRatingFeedbackEntity(ReviewFeedbackDomain reviewFeedbackDomain)

      method createRatingFeedbackEntity

      this method is used to create a RatingFeedbackEntity with the values that are derived from the reviewfeedbackDomain

      Specified by:
      createRatingFeedbackEntity in interface RatingFeedbackFactory
      Parameters:
      reviewFeedbackDomain - Holds the value for ReviewFeedbackDomain.
      Returns:
      RatingFeedbackEntity
    • createRatingFeedbackDomain

      public ReviewFeedbackDomain createRatingFeedbackDomain(RatingFeedbackEntity ratingfeedbackEntity)
      method createRatingFeedbackDomain this method is used to create a RatingFeedbackDomain with the values that are derived from the
      Specified by:
      createRatingFeedbackDomain in interface RatingFeedbackFactory
      Parameters:
      ratingfeedbackEntity - holds the information about the ratingfeedbackEntity.
      Returns:
      RatingFeedbackDomain
    • createFeedbackResponse

      public ReviewFeedbackResponse createFeedbackResponse(ReviewFeedbackDomain ratingfeedbackDomain)

      method createFeedbackResponse

      this method is used to create a FeedbackResponse with the values that are derived from the ratingfeedbackDomain

      Specified by:
      createFeedbackResponse in interface RatingFeedbackFactory
      Parameters:
      ratingfeedbackDomain - Holds the information about the ReviewFeedbackDomain.
      Returns:
      RatingFeedbackResponse
    • updateRatingFeedbackEntity

      public RatingFeedbackEntity updateRatingFeedbackEntity(ReviewFeedbackDomain ratingfeedbackDomain, RatingFeedbackEntity ratingFeedbackEntity)

      method UpdateRatingFeedbackEntity

      This method is used to update the values of RatingFeedbackEntity with the values that are derived from the ratingfeedbackDomain and performing certain validations for updation.

      Specified by:
      updateRatingFeedbackEntity in interface RatingFeedbackFactory
      Parameters:
      ratingfeedbackDomain - Holds the information about the ratingfeedbackDomain.
      ratingFeedbackEntity - Holds the information about the
      Returns:
      RatingFeedbackEntity