Class RatingReviewPreferenceFactoryImpl

java.lang.Object
com.skava.ratingandreviews.factory.impl.RatingReviewPreferenceFactoryImpl
All Implemented Interfaces:
RatingReviewFactory

@Component public class RatingReviewPreferenceFactoryImpl extends Object implements RatingReviewFactory

Class RatingReviewPreferenceFactoryImpl

this class provides the implementation for the RatingReviewFactory

  • Constructor Details

    • RatingReviewPreferenceFactoryImpl

      @Autowired public RatingReviewPreferenceFactoryImpl(com.skava.core.auth.AuthTokenHandler authTokenHandler)
  • Method Details

    • createRatingReviewPreferenceDomain

      public RatingReviewDomain createRatingReviewPreferenceDomain(RatingReviewsInfoDataRequest ratingReviewsPreferenceDataRequest)
      method createRatingReviewPreferenceDomain this method createRatingReviewPreferenceDomain is used to create a ratingReviewPreferenceDomain with the help of ratingReviewpreferenceDataRequest from which the values required can be derived.
      Specified by:
      createRatingReviewPreferenceDomain in interface RatingReviewFactory
      Returns:
      RatingReviewDomain
    • updateRatingReviewPreferenceDomain

      public RatingReviewDomain updateRatingReviewPreferenceDomain(RatingReviewsInfoDataRequest ratingReviewsPreferenceDataRequest)
      method updateRatingReviewPreferenceDomain this method updateRatingReviewPreferenceDomain is used to update a ratingReviewPreferenceDomain with the help of ratingReviewPrefrenceDataRequest from which the values required can be derived.
      Specified by:
      updateRatingReviewPreferenceDomain in interface RatingReviewFactory
      Returns:
      RatingReviewDomain
    • createRatingReviewPreferenceDomain

      public RatingReviewDomain createRatingReviewPreferenceDomain(RatingsReviewsEntity ratingReviewsentity)
      method CreateRatingReviewPreferenceDomain this method CreateRatingReviewPreferenceDomain is used to create a ratingReviewPreferenceDomain with the help of ratingReviewEntity from which the values required can be derived and doing some validations in order to create a RatingReviewPreferenceDomain.
      Specified by:
      createRatingReviewPreferenceDomain in interface RatingReviewFactory
      Returns:
      RatingReviewDomain
    • createRatingReviewResponse

      public RatingReviewResponse createRatingReviewResponse(RatingReviewDomain ratingReviewdo)
      method CreateRatingReviewResponse this method RatingReviewResponse is used to create a RatingReviewResponse with the help of ratingReviewdo from which the values required can be derived.
      Specified by:
      createRatingReviewResponse in interface RatingReviewFactory
      Returns:
      RatingReviewResponse
    • createRatingReviewPreferenceEntity

      public RatingsReviewsEntity createRatingReviewPreferenceEntity(RatingReviewDomain ratingReviewsPreferenceDomain)
      method CreateRatingReviewPreferenceEntity this method RatingReviewResponse is used to create a RatingReviewPreferenceEntity with the help of ratingReviewPreferenceDomain from which the values required can be derived.
      Specified by:
      createRatingReviewPreferenceEntity in interface RatingReviewFactory
      Returns:
      RatingReviewEntity
    • updateUserRatingPreferenceEntity

      public RatingsReviewsEntity updateUserRatingPreferenceEntity(RatingReviewDomain ratingReviewPreferenceDomain, RatingsReviewsEntity ratingsReviewsEntity)
      method updateUserRatingPreferenceEntity this method updateUserRatingPreferenceEntity is used to update a RatingReviewsEntity with the help of ratingReviewPreferenceDomain and RatingsReviewsEntity from which the values required can be derived and some validations are done to get update .
      Specified by:
      updateUserRatingPreferenceEntity in interface RatingReviewFactory
      Returns:
      RatingReviewsEntity
    • createRatingReviewGetAllDomain

      public RatingReviewDomain createRatingReviewGetAllDomain(RatingReviewsInfoDataRequest input)
      method createRatingReviewGetAllDomain this method createRatingReviewGetAllDomain is used to create a RatingReviewGetAllDomain with the help of RatingReviewsInfoDataRequest from which the values required can be derived.
      Specified by:
      createRatingReviewGetAllDomain in interface RatingReviewFactory
      Returns:
      RatingReviewsDomain
    • updateRatingReviewPreferenceDomainLikeFeedback

      public RatingReviewDomain updateRatingReviewPreferenceDomainLikeFeedback(Integer likecount, Integer unlikecount)
      method updateRatingReviewPreferenceDomainLikeFeedback this method updateRatingReviewPreferenceDomainLikeFeedback is used to update a like count and unlike count with the help of likecount and unlikecount from which the values required can be derived and hence the ratingreviewPreference can be updated.
      Specified by:
      updateRatingReviewPreferenceDomainLikeFeedback in interface RatingReviewFactory
      Returns:
      ratingReviewDomain
    • getImageUrls

      public String getImageUrls(List<String> imageUrls)
      method get getImageUrls this method is used to get the url of the image
      Parameters:
      imageUrls - Holds the image url as string
      Returns:
      url as a string
    • getImageUrls

      public List<String> getImageUrls(String imageUrls)
      method getImageUrls this method is used to create more than 1 image urls.
      Parameters:
      imageUrls - Holds the urls of the images
      Returns:
      List the response output is in the form of list