public abstract class base_resource extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SESSION_NOT_EXISTS |
| Constructor and Description |
|---|
base_resource() |
| Modifier and Type | Method and Description |
|---|---|
protected base_resource[] |
add_resource(nitro_service service)
Use this method to perform a add operation on MPS resource.
|
protected base_resource[] |
add_resource(nitro_service service,
options option)
Use this method to perform a add operation on MPS resource.
|
protected static base_resource[] |
delete_bulk_request(nitro_service service,
base_resource[] resources)
Use this method to perform a delete operation on multiple MPS resources.
|
protected base_resource[] |
delete_resource(nitro_service service)
Use this method to perform a delete operation on MPS resource.
|
protected abstract base_resource[] |
get_nitro_bulk_response(nitro_service service,
String str) |
protected abstract base_resource[] |
get_nitro_response(nitro_service service,
String str) |
protected abstract String |
get_object_id() |
protected String |
get_object_type()
Gets the resource type.
|
protected base_resource |
get_resource(nitro_service service)
Use this method to perform a get operation on MPS resource.
|
protected base_resource |
get_resource(nitro_service service,
options option)
Use this method to perform a get operation on MPS resource.
|
protected base_resource[] |
get_resources(nitro_service service)
Use this method to perform a get operation on MPS resource.
|
protected base_resource[] |
get_resources(nitro_service service,
options option)
Use this method to perform a get operation on MPS resource.
|
protected base_resource[] |
getfiltered(nitro_service service,
options option)
Use this method to perform a filtered get operation on MPS resource.
|
protected static base_resource[] |
perform_operation_bulk_request(nitro_service service,
base_resource[] resources,
String action)
Use this method to perform add/reboot/stop/reboot ...etc
operation on multiple MPS resources.
|
base_resource[] |
perform_operation(nitro_service service)
Use this method to perform a any post operation ...etc
operation on MPS resource.
|
base_resource[] |
perform_operation(nitro_service service,
options option)
Use this method to perform a post operation...etc
operation on MPS resource.
|
base_resource[] |
perform_operation(nitro_service service,
String action)
Use this method to perform a start/stop/reboot/ ...etc
operation on MPS resource.
|
protected String |
resource_to_string(nitro_service service)
Converts MPS resource to Json string.
|
protected String |
resource_to_string(nitro_service service,
options option)
Converts MPS resource to Json string.
|
protected static base_resource[] |
update_bulk_request(nitro_service service,
base_resource[] resources)
Use this method to perform a modify operation on multiple MPS resources.
|
protected base_resource[] |
update_resource(nitro_service service)
Use this method to perform a modify operation on MPS resource.
|
protected base_resource[] |
update_resource(nitro_service service,
options option)
Use this method to perform a modify operation on MPS resource.
|
protected void |
validate(String operationType)
This method, performs validation for all data of the resource.
|
public static final int SESSION_NOT_EXISTS
protected abstract base_resource[] get_nitro_response(nitro_service service, String str) throws Exception
Exceptionprotected abstract base_resource[] get_nitro_bulk_response(nitro_service service, String str) throws Exception
Exceptionprotected abstract String get_object_id()
protected String get_object_type()
protected String resource_to_string(nitro_service service, options option)
service - nitro_service object.option - Options object.protected String resource_to_string(nitro_service service)
service - nitro_service objectprotected base_resource[] getfiltered(nitro_service service, options option) throws Exception
service - nitro_service object.option - options class object.Exception - API exception is thrown.protected base_resource[] get_resources(nitro_service service) throws Exception
service - nitro_service object.option - options class object.Exception - API exception is thrown.protected base_resource[] get_resources(nitro_service service, options option) throws Exception
service - nitro_service object.option - options class object.Exception - API exception is thrown.protected base_resource get_resource(nitro_service service, options option) throws Exception
service - nitro_service object.option - options class object.Exception - API exception is thrown.protected base_resource get_resource(nitro_service service) throws Exception
service - nitro_service object.Exception - API exception is thrown.public base_resource[] perform_operation(nitro_service service, String action) throws Exception
service - nitro_service object.action - action needs to be taken on resource.Exception - API exception is thrown.public base_resource[] perform_operation(nitro_service service) throws Exception
service - nitro_service object.Exception - API exception is thrown.public base_resource[] perform_operation(nitro_service service, options option) throws Exception
service - nitro_service object.option - options object with action that is to be performed set.Exception - API exception is thrown.protected base_resource[] add_resource(nitro_service service) throws Exception
service - nitro_service object.Exceptionprotected base_resource[] add_resource(nitro_service service, options option) throws Exception
service - nitro_service object.option - options class object.Exceptionprotected base_resource[] update_resource(nitro_service service) throws Exception
service - nitro_service object.Exceptionprotected base_resource[] update_resource(nitro_service service, options option) throws Exception
service - nitro_service object.option - options class object.Exceptionprotected base_resource[] delete_resource(nitro_service service) throws Exception
service - nitro_service objectException - API exception is thrown.protected void validate(String operationType) throws Exception
operationType - : add,delete,modify,get etc.Exceptionprotected static base_resource[] perform_operation_bulk_request(nitro_service service, base_resource[] resources, String action) throws Exception
service - nitro_service object.resources - Array of Nitro resources on which the specified action to be performed.option - options object with action that is to be performed set.Exception - Nitro exception is thrown.protected static base_resource[] update_bulk_request(nitro_service service, base_resource[] resources) throws Exception
service - nitro_service object.Exceptionprotected static base_resource[] delete_bulk_request(nitro_service service, base_resource[] resources) throws Exception
service - nitro_service objectException - API exception is thrown.Copyright © 2013 Citrix Systems, Inc.. All Rights Reserved.