Class RatingQuestionsAndAnswersFactoryImpl
java.lang.Object
com.skava.ratingandreviews.factory.impl.RatingQuestionsAndAnswersFactoryImpl
- All Implemented Interfaces:
RatingQuestionsAndAnswersFactory
@Component
public class RatingQuestionsAndAnswersFactoryImpl
extends Object
implements RatingQuestionsAndAnswersFactory
Class RatingQuestionsAndAnswersFactoryImpl
this class provides the implementation of the RatingQuestionsAndAnswersFactoryImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAnswersFromAnswerEntity
(RatingAnswersEntity ratingAnswersEntity) method createAnswersFromAnswerEntitycreateAnswerStatusDomain
(List<RatingAnswersEntity> ratingAnswersentities) method - createAnswerStatusDomaincreateQuestinsAndAnswersDomain
(RatingQuestionsAnswersRequest ratingQuestionsAndAnswersRequest) method createQuestinsAndAnswersDomaincreateQuestionAndAnswersResponse
(RatingQuestionsEntity ratingQuestionsEntity) method - createQuestionAndAnswersResponsecreateQuestionsEntity
(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain, RatingQuestionsAndAnswersDomain ratingQuestionsAndAnswersDomain) method createQuestionsEntitycreateQuestionStatusDomain
(List<RatingQuestionsEntity> questionStatusEntities) method - UpadetQuestionStatuscreateRatingQuestionsAndAnswersDomain
(List<RatingmultipleAnswersDomain> multipleAnswersResponse, RatingQuestionsEntity ratingQuestionsEntity) method createRatingQuestionsAndAnswersDomaincreateRatingQuestionsAndAnswersResponse
(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain) method createRatingQuestionsAndAnswersResponsesetAnswersDomain
(RatingAnswersEntity ratingAnswersEntity) method - setAnswersDomainsetAnswersResponse
(RatingAnswersEntity ratingAnswersEntity) method - setAnswersResponsevoid
setRatingAnswerEntity
(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain, RatingQuestionsEntity ratingQuestionsEntity, RatingmultipleAnswersDomain ratingmultipleAnswersDomain, RatingAnswersEntity ratingAnswersEntity) method - setRatingAnswerEntityvoid
setRatingQuestionsAndAnswersDomain
(RatingQuestionsEntity ratingQuestionsEntity, RatingQuestionsAndAnswersDomain ratingQuestionsAndAnswersDomain) method - setRatingQuestionsAndAnswersDomainvoid
setRatingQuestionsAndAnswersProcess
(RatingQuestionsAndAnswersProcess ratingQuestionsAndAnswersProcess) updateGetAnswersResponse
(List<RatingAnswersDomain> ratingAnswersDomains) method updateGetAnswersResponseupdateGetQuestionsResponse
(List<RatingQuestionsDomain> ratingQuestionsDomains) method updateGetQuestionsResponse
-
Constructor Details
-
RatingQuestionsAndAnswersFactoryImpl
public RatingQuestionsAndAnswersFactoryImpl()
-
-
Method Details
-
setRatingQuestionsAndAnswersProcess
@Autowired public void setRatingQuestionsAndAnswersProcess(RatingQuestionsAndAnswersProcess ratingQuestionsAndAnswersProcess) -
createQuestinsAndAnswersDomain
public RatingQuestionsAnswersDomain createQuestinsAndAnswersDomain(RatingQuestionsAnswersRequest ratingQuestionsAndAnswersRequest) method createQuestinsAndAnswersDomain
this method is used to update the values of the reviewquestions and answers domain based on the necessity with the help of validations
- Specified by:
createQuestinsAndAnswersDomain
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingQuestionsAndAnswersRequest
- ratingQuestionsAndAnswersRequest- Returns:
- RatingQuestionsAnswersDomain
-
createQuestionsEntity
public RatingQuestionsEntity createQuestionsEntity(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain, RatingQuestionsAndAnswersDomain ratingQuestionsAndAnswersDomain) method createQuestionsEntity
this method is used to update the values of the RatingQuestionsEntity based on the necessity with the help of validations
- Specified by:
createQuestionsEntity
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingQuestionsAndAnswersDomain
- ratingQuestionsAndAnswersDomainratingQuestionsAnswersDomain
- This parameter holds the RatingQuestionsAnswersDomain.- Returns:
- entity entity
-
createRatingQuestionsAndAnswersResponse
public RatingQuestionsAndAnswersResponse createRatingQuestionsAndAnswersResponse(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain) method createRatingQuestionsAndAnswersResponse
- Specified by:
createRatingQuestionsAndAnswersResponse
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingQuestionsAnswersDomain
- ratingQuestionsAnswersDomain- Returns:
- ratingQuestionsAndAnswersResponse ratingQuestionsAndAnswersResponse
-
createAnswersFromAnswerEntity
public RatingmultipleAnswersDomain createAnswersFromAnswerEntity(RatingAnswersEntity ratingAnswersEntity) method createAnswersFromAnswerEntity
- Specified by:
createAnswersFromAnswerEntity
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingAnswersEntity
- ratingAnswersEntity- Returns:
- ratingmultipleAnswersResponse ratingmultipleAnswersResponse
-
createRatingQuestionsAndAnswersDomain
public RatingQuestionsAndAnswersDomain createRatingQuestionsAndAnswersDomain(List<RatingmultipleAnswersDomain> multipleAnswersResponse, RatingQuestionsEntity ratingQuestionsEntity) method createRatingQuestionsAndAnswersDomain
- Specified by:
createRatingQuestionsAndAnswersDomain
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
multipleAnswersResponse
- multipleAnswersResponseratingQuestionsEntity
- ratingQuestionsEntity- Returns:
- ratingQuestionsAndAnswers ratingQuestionsAndAnswers
-
setRatingAnswerEntity
public void setRatingAnswerEntity(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain, RatingQuestionsEntity ratingQuestionsEntity, RatingmultipleAnswersDomain ratingmultipleAnswersDomain, RatingAnswersEntity ratingAnswersEntity) Description copied from interface:RatingQuestionsAndAnswersFactory
method - setRatingAnswerEntity- Specified by:
setRatingAnswerEntity
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingQuestionsAnswersDomain
- ratingQuestionsAnswersDomainratingQuestionsEntity
- ratingQuestionsEntityratingmultipleAnswersDomain
- ratingmultipleAnswersDomainratingAnswersEntity
- ratingAnswersEntity
-
createQuestionAndAnswersResponse
public GetByIdQuestionAndAnswersResponse createQuestionAndAnswersResponse(RatingQuestionsEntity ratingQuestionsEntity) Description copied from interface:RatingQuestionsAndAnswersFactory
method - createQuestionAndAnswersResponse- Specified by:
createQuestionAndAnswersResponse
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingQuestionsEntity
- ratingQuestionsEntity- Returns:
- GetByIdQuestionAndAnswersResponse
-
setRatingQuestionsAndAnswersDomain
public void setRatingQuestionsAndAnswersDomain(RatingQuestionsEntity ratingQuestionsEntity, RatingQuestionsAndAnswersDomain ratingQuestionsAndAnswersDomain) Description copied from interface:RatingQuestionsAndAnswersFactory
method - setRatingQuestionsAndAnswersDomain- Specified by:
setRatingQuestionsAndAnswersDomain
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingQuestionsEntity
- ratingQuestionsEntityratingQuestionsAndAnswersDomain
- ratingQuestionsAndAnswersDomain
-
setAnswersDomain
Description copied from interface:RatingQuestionsAndAnswersFactory
method - setAnswersDomain- Specified by:
setAnswersDomain
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingAnswersEntity
- ratingAnswersEntity- Returns:
- RatingmultipleAnswersDomain
-
setAnswersResponse
Description copied from interface:RatingQuestionsAndAnswersFactory
method - setAnswersResponse- Specified by:
setAnswersResponse
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingAnswersEntity
- ratingAnswersEntity- Returns:
- answersResponse
-
updateGetQuestionsResponse
public PatchQuestionStatusResponse updateGetQuestionsResponse(List<RatingQuestionsDomain> ratingQuestionsDomains) method updateGetQuestionsResponse
- Specified by:
updateGetQuestionsResponse
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingQuestionsDomains
- ratingQuestionsDomains- Returns:
- getQuestionsResponse
-
createQuestionStatusDomain
public List<RatingQuestionsDomain> createQuestionStatusDomain(List<RatingQuestionsEntity> questionStatusEntities) Description copied from interface:RatingQuestionsAndAnswersFactory
method - UpadetQuestionStatus- Specified by:
createQuestionStatusDomain
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
questionStatusEntities
- This parameter holds the list of RatingQuestionsEntity.
-
updateGetAnswersResponse
public PatchAnswerStatusResponse updateGetAnswersResponse(List<RatingAnswersDomain> ratingAnswersDomains) method updateGetAnswersResponse
- Specified by:
updateGetAnswersResponse
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingAnswersDomains
-- Returns:
- getAnswersResponse
-
createAnswerStatusDomain
public List<RatingAnswersDomain> createAnswerStatusDomain(List<RatingAnswersEntity> ratingAnswersentities) Description copied from interface:RatingQuestionsAndAnswersFactory
method - createAnswerStatusDomain- Specified by:
createAnswerStatusDomain
in interfaceRatingQuestionsAndAnswersFactory
- Parameters:
ratingAnswersentities
- This parameter holds the list of RatingAnswersEntity.
-