Package com.skava.business.factoryimpl
Class UserConsentEntityFactoryImpl
java.lang.Object
com.skava.business.factoryimpl.UserConsentEntityFactoryImpl
- All Implemented Interfaces:
UserConsentEntityFactory
@Component
public class UserConsentEntityFactoryImpl
extends Object
implements UserConsentEntityFactory
This service class implements UserConsentEntityFactory and handles the transformation of Entity to Domain
and Domain to Entity objects.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateUserConsentEntity
(UserConsentDomain userConsentDomain, ConsentEntity consentEntity, UsersEntity usersEntity) This method converts theUserConsentDomain
object toUserConsentEntity
object.
-
Constructor Details
-
UserConsentEntityFactoryImpl
public UserConsentEntityFactoryImpl()
-
-
Method Details
-
createUserConsentEntity
public UserConsentEntity createUserConsentEntity(UserConsentDomain userConsentDomain, ConsentEntity consentEntity, UsersEntity usersEntity) This method converts theUserConsentDomain
object toUserConsentEntity
object.- Specified by:
createUserConsentEntity
in interfaceUserConsentEntityFactory
- Parameters:
userConsentDomain
- HoldsUserConsentDomain
object which is used for creating user consent entity.consentEntity
- HoldsConsentEntity
object which is used for assigning consentId in user consent entity.usersEntity
- HoldsUsersEntity
object which is used for assigning userId in user consent entity.- Returns:
- The
UserConsentEntity
object.
-