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 - setAnswersResponsevoidsetRatingAnswerEntity(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain, RatingQuestionsEntity ratingQuestionsEntity, RatingmultipleAnswersDomain ratingmultipleAnswersDomain, RatingAnswersEntity ratingAnswersEntity) method - setRatingAnswerEntityvoidsetRatingQuestionsAndAnswersDomain(RatingQuestionsEntity ratingQuestionsEntity, RatingQuestionsAndAnswersDomain ratingQuestionsAndAnswersDomain) method - setRatingQuestionsAndAnswersDomainvoidsetRatingQuestionsAndAnswersProcess(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:
createQuestinsAndAnswersDomainin 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:
createQuestionsEntityin interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingQuestionsAndAnswersDomain- ratingQuestionsAndAnswersDomainratingQuestionsAnswersDomain- This parameter holds the RatingQuestionsAnswersDomain.- Returns:
- entity entity
-
createRatingQuestionsAndAnswersResponse
public RatingQuestionsAndAnswersResponse createRatingQuestionsAndAnswersResponse(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain) method createRatingQuestionsAndAnswersResponse
- Specified by:
createRatingQuestionsAndAnswersResponsein interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingQuestionsAnswersDomain- ratingQuestionsAnswersDomain- Returns:
- ratingQuestionsAndAnswersResponse ratingQuestionsAndAnswersResponse
-
createAnswersFromAnswerEntity
public RatingmultipleAnswersDomain createAnswersFromAnswerEntity(RatingAnswersEntity ratingAnswersEntity) method createAnswersFromAnswerEntity
- Specified by:
createAnswersFromAnswerEntityin interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingAnswersEntity- ratingAnswersEntity- Returns:
- ratingmultipleAnswersResponse ratingmultipleAnswersResponse
-
createRatingQuestionsAndAnswersDomain
public RatingQuestionsAndAnswersDomain createRatingQuestionsAndAnswersDomain(List<RatingmultipleAnswersDomain> multipleAnswersResponse, RatingQuestionsEntity ratingQuestionsEntity) method createRatingQuestionsAndAnswersDomain
- Specified by:
createRatingQuestionsAndAnswersDomainin interfaceRatingQuestionsAndAnswersFactory- Parameters:
multipleAnswersResponse- multipleAnswersResponseratingQuestionsEntity- ratingQuestionsEntity- Returns:
- ratingQuestionsAndAnswers ratingQuestionsAndAnswers
-
setRatingAnswerEntity
public void setRatingAnswerEntity(RatingQuestionsAnswersDomain ratingQuestionsAnswersDomain, RatingQuestionsEntity ratingQuestionsEntity, RatingmultipleAnswersDomain ratingmultipleAnswersDomain, RatingAnswersEntity ratingAnswersEntity) Description copied from interface:RatingQuestionsAndAnswersFactorymethod - setRatingAnswerEntity- Specified by:
setRatingAnswerEntityin interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingQuestionsAnswersDomain- ratingQuestionsAnswersDomainratingQuestionsEntity- ratingQuestionsEntityratingmultipleAnswersDomain- ratingmultipleAnswersDomainratingAnswersEntity- ratingAnswersEntity
-
createQuestionAndAnswersResponse
public GetByIdQuestionAndAnswersResponse createQuestionAndAnswersResponse(RatingQuestionsEntity ratingQuestionsEntity) Description copied from interface:RatingQuestionsAndAnswersFactorymethod - createQuestionAndAnswersResponse- Specified by:
createQuestionAndAnswersResponsein interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingQuestionsEntity- ratingQuestionsEntity- Returns:
- GetByIdQuestionAndAnswersResponse
-
setRatingQuestionsAndAnswersDomain
public void setRatingQuestionsAndAnswersDomain(RatingQuestionsEntity ratingQuestionsEntity, RatingQuestionsAndAnswersDomain ratingQuestionsAndAnswersDomain) Description copied from interface:RatingQuestionsAndAnswersFactorymethod - setRatingQuestionsAndAnswersDomain- Specified by:
setRatingQuestionsAndAnswersDomainin interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingQuestionsEntity- ratingQuestionsEntityratingQuestionsAndAnswersDomain- ratingQuestionsAndAnswersDomain
-
setAnswersDomain
Description copied from interface:RatingQuestionsAndAnswersFactorymethod - setAnswersDomain- Specified by:
setAnswersDomainin interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingAnswersEntity- ratingAnswersEntity- Returns:
- RatingmultipleAnswersDomain
-
setAnswersResponse
Description copied from interface:RatingQuestionsAndAnswersFactorymethod - setAnswersResponse- Specified by:
setAnswersResponsein interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingAnswersEntity- ratingAnswersEntity- Returns:
- answersResponse
-
updateGetQuestionsResponse
public PatchQuestionStatusResponse updateGetQuestionsResponse(List<RatingQuestionsDomain> ratingQuestionsDomains) method updateGetQuestionsResponse
- Specified by:
updateGetQuestionsResponsein interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingQuestionsDomains- ratingQuestionsDomains- Returns:
- getQuestionsResponse
-
createQuestionStatusDomain
public List<RatingQuestionsDomain> createQuestionStatusDomain(List<RatingQuestionsEntity> questionStatusEntities) Description copied from interface:RatingQuestionsAndAnswersFactorymethod - UpadetQuestionStatus- Specified by:
createQuestionStatusDomainin interfaceRatingQuestionsAndAnswersFactory- Parameters:
questionStatusEntities- This parameter holds the list of RatingQuestionsEntity.
-
updateGetAnswersResponse
public PatchAnswerStatusResponse updateGetAnswersResponse(List<RatingAnswersDomain> ratingAnswersDomains) method updateGetAnswersResponse
- Specified by:
updateGetAnswersResponsein interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingAnswersDomains-- Returns:
- getAnswersResponse
-
createAnswerStatusDomain
public List<RatingAnswersDomain> createAnswerStatusDomain(List<RatingAnswersEntity> ratingAnswersentities) Description copied from interface:RatingQuestionsAndAnswersFactorymethod - createAnswerStatusDomain- Specified by:
createAnswerStatusDomainin interfaceRatingQuestionsAndAnswersFactory- Parameters:
ratingAnswersentities- This parameter holds the list of RatingAnswersEntity.
-