Esempio n. 1
0
 /**
  * Use this API to fetch filtered set of nsip resources. set the filter parameter values in
  * filtervalue object.
  */
 public static nsip[] get_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   nsip obj = new nsip();
   options option = new options();
   option.set_filter(filter);
   nsip[] response = (nsip[]) obj.getfiltered(service, option);
   return response;
 }
Esempio n. 2
0
 /**
  * Use this API to count the filtered set of nsip resources. set the filter parameter values in
  * filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   nsip obj = new nsip();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   nsip[] response = (nsip[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }