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