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 Summary
ConstructorsConstructorDescriptionRatingReviewPreferenceFactoryImpl
(com.skava.core.auth.AuthTokenHandler authTokenHandler) -
Method Summary
Modifier and TypeMethodDescriptionmethod createRatingReviewGetAllDomain this method createRatingReviewGetAllDomain is used to create a RatingReviewGetAllDomain with the help of RatingReviewsInfoDataRequest from which the values required can be derived.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.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.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.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.getImageUrls
(String imageUrls) method getImageUrls this method is used to create more than 1 image urls.getImageUrls
(List<String> imageUrls) method get getImageUrls this method is used to get the url of the imageupdateRatingReviewPreferenceDomain
(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.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.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 .
-
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 interfaceRatingReviewFactory
- 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 interfaceRatingReviewFactory
- 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 interfaceRatingReviewFactory
- Returns:
- RatingReviewDomain
-
createRatingReviewResponse
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 interfaceRatingReviewFactory
- 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 interfaceRatingReviewFactory
- 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 interfaceRatingReviewFactory
- Returns:
- RatingReviewsEntity
-
createRatingReviewGetAllDomain
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 interfaceRatingReviewFactory
- 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 interfaceRatingReviewFactory
- Returns:
- ratingReviewDomain
-
getImageUrls
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
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
-