Example #1
0
 public EmlGroupVo getByName(String principal) {
   int i = principal.indexOf("@");
   String userName = principal.substring(0, i);
   String host = principal.substring(i + 1);
   EmlGroup group = groupDao.selectGroup(userName, host);
   return new EmlGroupVo(group);
 }
Example #2
0
  public EmlGroupVo get(String clientId, String groupId) {
    EmlGroup emlGroup = groupDao.selectGroup(groupId);

    EmlGroupVo emlGroupVo = new EmlGroupVo(emlGroup);
    try {
      EmlGroupConfigVo emlGroupConfigVo =
          objectMapper.readValue(emlGroup.getServerConfig(), EmlGroupConfigVo.class);
      emlGroupVo.setServerConfig(emlGroupConfigVo);

    } catch (IOException e) {
      e.printStackTrace();
    }
    return emlGroupVo;
  }
Example #3
0
 public EmlGroupVo getByName(String userName, String host) {
   EmlGroup group = groupDao.selectGroup(userName, host);
   return new EmlGroupVo(group);
 }