Class RatingFeedbackFactoryImpl
java.lang.Object
com.skava.ratingandreviews.factory.impl.RatingFeedbackFactoryImpl
- All Implemented Interfaces:
RatingFeedbackFactory
Class RatingFeedbackFactoryImpl
this class provides the implementation of the ratingFeedbackFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFeedbackResponse
(ReviewFeedbackDomain ratingfeedbackDomain) method createFeedbackResponsecreateRatingFeedbackDomain
(RatingFeedbackInfoDataRequest ratingFeedbackInfoDataRequest) method ReviewFeedbackDomaincreateRatingFeedbackDomain
(RatingFeedbackEntity ratingfeedbackEntity) method createRatingFeedbackDomain this method is used to create a RatingFeedbackDomain with the values that are derived from thecreateRatingFeedbackEntity
(ReviewFeedbackDomain reviewFeedbackDomain) method createRatingFeedbackEntityupdateRatingFeedbackDomain
(RatingFeedbackInfoDataRequest ratingFeedbackInfoDataRequest) method updateRatingFeedbackDomainupdateRatingFeedbackEntity
(ReviewFeedbackDomain ratingfeedbackDomain, RatingFeedbackEntity ratingFeedbackEntity) method UpdateRatingFeedbackEntity
-
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 interfaceRatingFeedbackFactory
- 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 interfaceRatingFeedbackFactory
- Parameters:
ratingFeedbackInfoDataRequest
- Holds the information about the RatingFeedbackInfoDataRequest.- Returns:
- ReviewFeedbackDomain
-
createRatingFeedbackEntity
method createRatingFeedbackEntity
this method is used to create a RatingFeedbackEntity with the values that are derived from the reviewfeedbackDomain
- Specified by:
createRatingFeedbackEntity
in interfaceRatingFeedbackFactory
- Parameters:
reviewFeedbackDomain
- Holds the value for ReviewFeedbackDomain.- Returns:
- RatingFeedbackEntity
-
createRatingFeedbackDomain
method createRatingFeedbackDomain this method is used to create a RatingFeedbackDomain with the values that are derived from the- Specified by:
createRatingFeedbackDomain
in interfaceRatingFeedbackFactory
- Parameters:
ratingfeedbackEntity
- holds the information about the ratingfeedbackEntity.- Returns:
- RatingFeedbackDomain
-
createFeedbackResponse
method createFeedbackResponse
this method is used to create a FeedbackResponse with the values that are derived from the ratingfeedbackDomain
- Specified by:
createFeedbackResponse
in interfaceRatingFeedbackFactory
- 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 interfaceRatingFeedbackFactory
- Parameters:
ratingfeedbackDomain
- Holds the information about the ratingfeedbackDomain.ratingFeedbackEntity
- Holds the information about the- Returns:
- RatingFeedbackEntity
-