Package com.eaglegenomics.simlims.core

Examples of com.eaglegenomics.simlims.core.Group


    return new UserImpl();
  }

  @Override
  public Group getGroup() {
    return new Group();
  }
View Full Code Here


    return group.getGroupId();   
  }

  public Group getGroupById(Long groupId) throws IOException {
    List results = template.query(GROUP_SELECT_BY_ID, new Object[]{groupId}, new GroupMapper());
    Group g = results.size() > 0 ? (Group) results.get(0) : null;
    return g;
  }
View Full Code Here

    return g;
  }

  public Group getGroupByName(String groupName) throws IOException {
    List results = template.query(GROUP_SELECT_BY_NAME, new Object[]{groupName}, new GroupMapper());
    Group g = results.size() > 0 ? (Group) results.get(0) : null;
    return g;
  }
View Full Code Here

    }
  }

  public class GroupMapper implements RowMapper<Group> {
    public Group mapRow(ResultSet rs, int rowNum) throws SQLException {
      Group g = new Group();
      g.setGroupId(rs.getLong("groupId"));
      g.setName(rs.getString("name"));
      g.setDescription(rs.getString("description"));

      try {
        g.setUsers(listUsersByGroupName(g.getName()));
      }
      catch (IOException e) {
        e.printStackTrace();
      }
View Full Code Here

TOP

Related Classes of com.eaglegenomics.simlims.core.Group

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.