Package org.jboss.errai.demo.todo.shared

Examples of org.jboss.errai.demo.todo.shared.SharedList


    if (!sharedWithMe.isEmpty()) {
      final List<TodoItem> list = entityManager.createNamedQuery("allSharedItems", TodoItem.class)
              .setParameter("userIds", sharedWithMe).getResultList();

      String userName = null;
      SharedList currentList = null;
      for (TodoItem todoItem : list) {
        if (!todoItem.getLoginName().equals(userName)) {
          currentList = new SharedList(userNames.get(todoItem.getLoginName()).getShortName());
          sharedLists.add(currentList);
          userName = todoItem.getLoginName();
        }

        currentList.getItems().add(todoItem);
      }
    }
    return sharedLists;
  }
View Full Code Here

TOP

Related Classes of org.jboss.errai.demo.todo.shared.SharedList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.