Search in sources :

Example 1 with BookmarkDTO

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;
}
Also used : BookmarkDTO(org.c4sg.dto.BookmarkDTO) Bookmark(org.c4sg.entity.Bookmark) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 BookmarkDTO (org.c4sg.dto.BookmarkDTO)1 Bookmark (org.c4sg.entity.Bookmark)1