use of org.c4sg.dto.BookmarkDTO in project c4sg-services by Code4SocialGood.
the class BookmarkMapper method getBookmarkDtosFromEntities.
public List<BookmarkDTO> getBookmarkDtosFromEntities(List<Bookmark> bookmarks) {
List<BookmarkDTO> bookmarkList = new ArrayList<BookmarkDTO>();
Iterator<Bookmark> bookmarkIter = bookmarks.iterator();
while (bookmarkIter.hasNext()) {
Bookmark bookmark = bookmarkIter.next();
bookmarkList.add(getBookmarkDtoFromEntity(bookmark));
}
return bookmarkList;
}
Aggregations