Returns a list taken from data access with the given parameters.

@param ctx The context
@param filter A filter
@param from The index of the first element
@param count The maximun number of items retrieved
@return The list
@throws PMException
555092
public List<?> getList(PMContext ctx, EntityFilter filter, ListSort sort, Integer from, Integer count) throws PMException {
        return getDataAccess().list(ctx, filter, null, sort, from, count);
    }
279162
public static <T> List<T> filter(List<T> list, Filter<T> filter) {
		if (null == list || null == filter) {
			return list;
		}
		final List<T> list2 = (list instanceof LinkedList) ? new LinkedList<T>() : new ArrayList<T>(list.size());
		for (T t : list) {
			if (filter.accept(t)) {
				list2.add(t);
			}
		}
		return list2;
	}
1198022
@Override
  public SortedMap<String, Counter> getCounters(MetricFilter filter) {
    return this.innerMetricContext.getCounters(filter);
  }
603743
public static <T, E extends Exception> List<T> filter(final T[] a, final int fromIndex, final int toIndex, final Try.Predicate<? super T, E> filter,
            final int max) throws E {
        checkFromToIndex(fromIndex, toIndex, len(a));
        N.checkArgNotNull(filter);

        if (N.isNullOrEmpty(a)) {
            return new ArrayList<>();
        }

        final List<T> result = new ArrayList<>(min(9, max, (toIndex - fromIndex)));

        for (int i = fromIndex, cnt = 0; i < toIndex && cnt < max; i++) {
            if (filter.test(a[i])) {
                result.add(a[i]);
                cnt++;
            }
        }

        return result;
    }
1081972
public static bridgegroup[] get_filtered(nitro_service service, String filter) throws Exception{
		bridgegroup obj = new bridgegroup();
		options option = new options();
		option.set_filter(filter);
		bridgegroup[] response = (bridgegroup[]) obj.getfiltered(service, option);
		return response;
	}
193207
public static cmpaction[] get_filtered(nitro_service service, String filter) throws Exception{
		cmpaction obj = new cmpaction();
		options option = new options();
		option.set_filter(filter);
		cmpaction[] response = (cmpaction[]) obj.getfiltered(service, option);
		return response;
	}
102684
public static mps_image[] get_filtered(nitro_service service, String filter) throws Exception
	{
		mps_image obj = new mps_image();
		options option = new options();
		option.set_filter(filter);
		mps_image[] response = (mps_image[]) obj.getfiltered(service, option);
		return response;
	}
826138
public static tmtrafficpolicy[] get_filtered(nitro_service service, String filter) throws Exception{
		tmtrafficpolicy obj = new tmtrafficpolicy();
		options option = new options();
		option.set_filter(filter);
		tmtrafficpolicy[] response = (tmtrafficpolicy[]) obj.getfiltered(service, option);
		return response;
	}
970000
public static ci[] get_filtered(nitro_service service, String filter) throws Exception{
		ci obj = new ci();
		options option = new options();
		option.set_filter(filter);
		ci[] response = (ci[]) obj.getfiltered(service, option);
		return response;
	}
282582
public static route[] get_filtered(nitro_service service, String filter) throws Exception{
		route obj = new route();
		options option = new options();
		option.set_filter(filter);
		route[] response = (route[]) obj.getfiltered(service, option);
		return response;
	}
762145
public static tmtrafficaction[] get_filtered(nitro_service service, String filter) throws Exception{
		tmtrafficaction obj = new tmtrafficaction();
		options option = new options();
		option.set_filter(filter);
		tmtrafficaction[] response = (tmtrafficaction[]) obj.getfiltered(service, option);
		return response;
	}
500506
public static managed_device[] get_filtered(nitro_service service, String filter) throws Exception
	{
		managed_device obj = new managed_device();
		options option = new options();
		option.set_filter(filter);
		managed_device[] response = (managed_device[]) obj.getfiltered(service, option);
		return response;
	}
1027536
public static systemcmdpolicy[] get_filtered(nitro_service service, String filter) throws Exception{
		systemcmdpolicy obj = new systemcmdpolicy();
		options option = new options();
		option.set_filter(filter);
		systemcmdpolicy[] response = (systemcmdpolicy[]) obj.getfiltered(service, option);
		return response;
	}
250054
public static service[] get_filtered(nitro_service service, String filter) throws Exception{
		service obj = new service();
		options option = new options();
		option.set_filter(filter);
		service[] response = (service[]) obj.getfiltered(service, option);
		return response;
	}
950021
public static sent_mails[] get_filtered(nitro_service service, String filter) throws Exception
	{
		sent_mails obj = new sent_mails();
		options option = new options();
		option.set_filter(filter);
		sent_mails[] response = (sent_mails[]) obj.getfiltered(service, option);
		return response;
	}
287305
public void addFilter(Filter filter) {
    filter.setInitialContext(initialContext);

    int minIndex = Integer.MAX_VALUE;
    String[] before = filter.before();
    for (int i = 0; i < before.length; i++) {
        String s = before[i];
        int index = index(activeFilters, s);
        if (index < minIndex) {
          minIndex = index;
        }
      }
      if (minIndex == Integer.MAX_VALUE) {
        // -1 is more usable for not-found than MAX_VALUE
        minIndex = -1;
      }

    if (contains(filter.before(), FIRST_IN_PIPE)) {
      activeFilters.add(0, filter);
    } else if (minIndex != -1) {
      activeFilters.add(minIndex, filter);
    } else {
      activeFilters.add(filter);
    }
  }
565290
public static snmpgroup[] get_filtered(nitro_service service, String filter) throws Exception{
		snmpgroup obj = new snmpgroup();
		options option = new options();
		option.set_filter(filter);
		snmpgroup[] response = (snmpgroup[]) obj.getfiltered(service, option);
		return response;
	}