Package com.skava.business.factoryimpl
Class ConsentFactoryImpl
java.lang.Object
com.skava.business.factoryimpl.ConsentFactoryImpl
- All Implemented Interfaces:
ConsentFactory
This service class implements ConsentFactory and handles the transformation of Entity to DTO
and Domain to DTO objects.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConsent
(ConsentEntity consents, CollectionEntity collectionEntity) This method converts theConsentEntity
object toConsent
object.createConsent
(ConsentDomain consents) This method converts theConsentDomain
object toConsent
object.
-
Constructor Details
-
ConsentFactoryImpl
public ConsentFactoryImpl()
-
-
Method Details
-
createConsent
This method converts theConsentDomain
object toConsent
object.- Specified by:
createConsent
in interfaceConsentFactory
- Parameters:
consents
- HoldsConsentDomain
object which is used to transfer consent domain to consent.- Returns:
- The
Consent
object.
-
createConsent
This method converts theConsentEntity
object toConsent
object.- Specified by:
createConsent
in interfaceConsentFactory
- Parameters:
consents
- HoldsConsentEntity
object which is used to transform consent entity to consent object.collectionEntity
- HoldsCollectionEntity
object which is used to transform consent entity to consent object.- Returns:
- The
Consent
object.
-