コード例 #1
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /**
  * Use this API to fetch all the aaauser resources that are configured on netscaler. This uses
  * aaauser_args which is a way to provide additional arguments while fetching the resources.
  */
 public static aaauser[] get(nitro_service service, aaauser_args args) throws Exception {
   aaauser obj = new aaauser();
   options option = new options();
   option.set_args(nitro_util.object_to_string_withoutquotes(args));
   aaauser[] response = (aaauser[]) obj.get_resources(service, option);
   return response;
 }
コード例 #2
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /**
  * Use this API to fetch filtered set of aaauser resources. filter string should be in JSON
  * format.eg: "port:80,servicetype:HTTP".
  */
 public static aaauser[] get_filtered(nitro_service service, String filter) throws Exception {
   aaauser obj = new aaauser();
   options option = new options();
   option.set_filter(filter);
   aaauser[] response = (aaauser[]) obj.getfiltered(service, option);
   return response;
 }
コード例 #3
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /** Use this API to count the aaauser resources configured on NetScaler. */
 public static long count(nitro_service service) throws Exception {
   aaauser obj = new aaauser();
   options option = new options();
   option.set_count(true);
   aaauser[] response = (aaauser[]) obj.get_resources(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
コード例 #4
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /**
  * Use this API to count the filtered set of aaauser resources. set the filter parameter values in
  * filtervalue object.
  */
 public static long count_filtered(nitro_service service, filtervalue[] filter) throws Exception {
   aaauser obj = new aaauser();
   options option = new options();
   option.set_count(true);
   option.set_filter(filter);
   aaauser[] response = (aaauser[]) obj.getfiltered(service, option);
   if (response != null) {
     return response[0].__count;
   }
   return 0;
 }
コード例 #5
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /** Use this API to fetch aaauser resource of given name . */
 public static aaauser get(nitro_service service, String username) throws Exception {
   aaauser obj = new aaauser();
   obj.set_username(username);
   aaauser response = (aaauser) obj.get_resource(service);
   return response;
 }
コード例 #6
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /** Use this API to fetch all the aaauser resources that are configured on netscaler. */
 public static aaauser[] get(nitro_service service, options option) throws Exception {
   aaauser obj = new aaauser();
   aaauser[] response = (aaauser[]) obj.get_resources(service, option);
   return response;
 }
コード例 #7
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /** Use this API to update aaauser. */
 public static base_response update(nitro_service client, aaauser resource) throws Exception {
   aaauser updateresource = new aaauser();
   updateresource.username = resource.username;
   updateresource.password = resource.password;
   return updateresource.update_resource(client);
 }
コード例 #8
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /** Use this API to delete aaauser. */
 public static base_response delete(nitro_service client, aaauser resource) throws Exception {
   aaauser deleteresource = new aaauser();
   deleteresource.username = resource.username;
   return deleteresource.delete_resource(client);
 }
コード例 #9
0
ファイル: aaauser.java プロジェクト: netscaler/nitro
 /** Use this API to add aaauser. */
 public static base_response add(nitro_service client, aaauser resource) throws Exception {
   aaauser addresource = new aaauser();
   addresource.username = resource.username;
   addresource.password = resource.password;
   return addresource.add_resource(client);
 }