示例#1
0
  public List<String> queryDomainGroup(String domain) {
    Domain domainGroup = m_domainGroup.findDomain(domain);

    if (domainGroup == null) {
      return new ArrayList<String>();
    } else {
      return new ArrayList<String>(domainGroup.getGroups().keySet());
    }
  }
示例#2
0
  public List<String> queryIpByDomainAndGroup(String domain, String group) {
    Domain domainInfo = m_domainGroup.findDomain(domain);

    if (domainInfo != null) {
      Group groupInfo = domainInfo.findGroup(group);

      if (groupInfo != null) {
        return groupInfo.getIps();
      }
    }
    return new ArrayList<String>();
  }