Class VotesFactoryImpl

java.lang.Object
com.skava.ratingandreviews.factory.impl.VotesFactoryImpl
All Implemented Interfaces:
VotesFactory

@Component public class VotesFactoryImpl extends Object implements VotesFactory

Class VotesFactoryImpl

this class provides the implementation of the VotesFactory

  • Constructor Details

    • VotesFactoryImpl

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

    • createVotesEntity

      public VotesEntity createVotesEntity(VotesRequest request)
      method createVotesEntity this method is used to create VotesEntity with the help of VotesRequest from which the values can be derived and the stored inside the VotesEntity.
      Specified by:
      createVotesEntity in interface VotesFactory
      Parameters:
      request - - Holds the VotesRequest
      Returns:
      VotesEntity
    • createVotesResponce

      public VotesResponse createVotesResponce(VotesEntity votesEntity)
      method createVotesResponce this method is used to create VotesResponce with the help of VotesEntity from which the values can be derived and the stored inside the VotesEntity.
      Specified by:
      createVotesResponce in interface VotesFactory
      Parameters:
      votesEntity - - Holds the VotesEntity
      Returns:
      VotesResponse