示例#1
0
 @Override
 public List<NetworkVO> listByZoneSecurityGroup(Long zoneId) {
   SearchCriteria<NetworkVO> sc = ZoneSecurityGroupSearch.create();
   if (zoneId != null) {
     sc.setParameters("dataCenterId", zoneId);
   }
   sc.setJoinParameters("services", "service", Service.SecurityGroup.getName());
   return search(sc, null);
 }
示例#2
0
 @Override
 public List<NetworkVO> listSecurityGroupEnabledNetworks() {
   SearchCriteria<NetworkVO> sc = SecurityGroupSearch.create();
   sc.setJoinParameters("services", "service", Service.SecurityGroup.getName());
   return listBy(sc);
 }