Esempio n. 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());
    }
  }
Esempio n. 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>();
  }