Package com.skava.business.factoryimpl
Class NotesDomainFactoryImpl
java.lang.Object
com.skava.business.factoryimpl.NotesDomainFactoryImpl
- All Implemented Interfaces:
NotesDomainFactory
This service class implements NotesDomainFactory and handles the transformation of Entity to Domain
and DTO object to Domain objects.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateNotesDomainFromDTO
(Notes notes) This method converts theNotes
object toNotesDomain
object.createNotesDomainFromEntity
(NotesEntity notes, CollectionEntity collectionEntity, UsersEntity userEntity) createNotesEntityListDO
(List<NotesEntity> notes, long collectionId)
-
Constructor Details
-
NotesDomainFactoryImpl
public NotesDomainFactoryImpl()
-
-
Method Details
-
createNotesDomainFromDTO
This method converts theNotes
object toNotesDomain
object.- Specified by:
createNotesDomainFromDTO
in interfaceNotesDomainFactory
- Parameters:
notes
- HoldsNotes
object which is used to transfer the notes object to notes domain object.- Returns:
- The
NotesDomain
object.
-
createNotesDomainFromEntity
public NotesDomain createNotesDomainFromEntity(NotesEntity notes, CollectionEntity collectionEntity, UsersEntity userEntity) - Specified by:
createNotesDomainFromEntity
in interfaceNotesDomainFactory
- Parameters:
notes
- HoldsNotesEntity
object which is used to transfer the notes entity object to notes domain object.collectionEntity
- HoldsCollectionEntity
object which is used for saving collectionId in notes domain object.userEntity
- HoldsUsersEntity
object which is used for saving userId in notes domain object.- Returns:
- The
NotesDomain
object.
-
createNotesEntityListDO
- Specified by:
createNotesEntityListDO
in interfaceNotesDomainFactory
- Parameters:
notes
- Holds theList
ofNotesEntity
objects which is used to transform the list of notes entity object to notes domain object.collectionId
- Indicates the collection id used for assigning collectionId to notes entity.- Returns:
- The
List
ofNotesDomain
object.
-