Package com.skava.business.factory
Interface NotesDomainFactory
- All Known Implementing Classes:
NotesDomainFactoryImpl
public interface NotesDomainFactory
An interface to define the factory for creating Notes domain objects.
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptioncreateNotesDomainFromDTO
(Notes notes) This method converts theNotes
object toNotesDomain
object.createNotesDomainFromEntity
(NotesEntity notes, CollectionEntity collectionEntity, UsersEntity usersEntity) createNotesEntityListDO
(List<NotesEntity> notes, long collectionId)
-
Method Details
-
createNotesDomainFromDTO
This method converts theNotes
object toNotesDomain
object.- Parameters:
notes
- HoldsNotes
object which is used to transfer the notes object to notes domain object.- Returns:
- The
NotesDomain
object.
-
createNotesDomainFromEntity
NotesDomain createNotesDomainFromEntity(NotesEntity notes, CollectionEntity collectionEntity, UsersEntity usersEntity) - 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.usersEntity
- HoldsUsersEntity
object which is used for saving userId in notes domain object.- Returns:
- The
NotesDomain
object.
-
createNotesEntityListDO
- 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.
-