4546474849505152535455
GroupDTO out = new GroupDTO(ge.getId()); out.setMemberCount(ge.getMembers().size()); if (members) { for (MemberEntity me : ge.getMembers()) { out.getMembers().add(new MemberDTO(me.getMemberId(), me.isOwner())); } } return out;
125126127128129130131132133134
for (int i = 0; i < tableModel.getRowCount(); i++) { String name = (String) tableModel.getValueAt(i, 0); Boolean owner = (Boolean) tableModel.getValueAt(i, 1); group.getMembers().add(new MemberDTO(name, owner)); } return group; }