getting blog entry by using user id
Here we are passing the user id of the user to reterive the blog
int userId = Integer.parseInt(renderRequest.getParameter("userId"));
List
int count1 =BlogsEntryLocalServiceUtil.getBlogsEntriesCount(); //Getting the total blogs
List
for(BlogsEntry blogsEntry :blogsList){ //Iterating the blogs
if(blogsEntry.getUserId()==userId) //Checking the users
list.add(blogsEntry); //Adding the particlular user in the list
Comments
Post a Comment