add object
Interface Information
>This API belongs to SentinelLicensing.jar.
>The corresponding library is Sentinel RMS licensing library.
void add_object(String key, Attribute value)
Adds an attribute object containing the {key, value} pair in another attribute object.
Parameters
Argument | Description |
key [in] |
The key for the attribute object to be added. For example, SNTL_ATTR_CONFIG_SCP_PRODUCT_KEY_LIST is the key for adding the Product object. |
value [in] |
The value of attribute object that is to be added. For example, pAttrProductKey1 value can be specified for SNTL_ATTR_CONFIG_SCP_PRODUCT_KEY_LIST key. |
Attributes
# | Attribute for... | Key and Description | ||||
---|---|---|---|---|---|---|
1 | Customer List |
>Attribute Key - SNTL_ATTR_CONFIG_SCP_CUSTOMER_LIST >This attribute is used to add a customer object in the configure object. >This attribute contains the customer id, which is defined using set API.
|
||||
2 | Product Key List |
>Attribute Key - SNTL_ATTR_CONFIG_SCP_PRODUCT_KEY_LIST >This attribute is used to add product object in the customer object. >This product object contains the Product key id and product variant attributes (listed below), which is defined using set API.
NOTE After configuring this attribute, ensure to add it in the customer list attribute. |
Returns
The status code SNTL_SUCCESS is returned, if successful. Otherwise, it will return one of the following errors codes:
Error Code | Description |
---|---|
SNTL_INVALID_ATTR_KEY | The attribute key is invalid. |
SNTL_INVALID_ATTR_VALUE | The attribute key value is invalid. |