Class KeyValueService
In order to implement these operations on key values, usage of collection classes is being employed.
All the WebServices methods have return type String - meaning if the method is execution is successful, then it will return a string in the form of JSON or XML String based on the outputFormat parameter given by the user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKeyValue(String userName, String password, String outputFormat, String key, String value, String objectTypeId, String objectId) Deprecated.addKeyValueForObjectIds(String userName, String password, String outputFormat, String key, String value, String objectTypeId, String objectIdListJson) Deprecated.addKeyValueForObjectTypeIdsMap(String userName, String password, String outputFormat, String Key, String Value, String ObjectTypeIdsListOfObjectIdsJson) Deprecated.addKeyValueObject(String userName, String password, String outputFormat, String keyValuejson) Inserts a single KeyValue pair object for the specified KeyValue object,objectTypeId and objectId.OutputFormat can be either JSON or XML.addKeyValueObjectByObjectId(String userName, String password, String outputFormat, String keyValuejson, String objectType, String objectId) Inserts a single KeyValue pair object for the specified KeyValue object,objectTypeId and objectId.OutputFormat can be either JSON or XML.addKeyValueObjects(String userName, String password, String outputFormat, String keyValuejsonlist, String objectType, String objectId) Inserts a multiple KeyValue pair objects for the specified List of KeyValue objects,objectTypeId and objectId.OutputFormat can be either JSON or XML.addKeyValueObjectsMap(String userName, String password, String outputFormat, String objectType, String objectIdsListOfKeyValuesJson) Inserts multiple key-value pair objects for the specified node type and given objectIds along with key-value objects.addKeyValuesForObjectId(String userName, String password, String outputFormat, String keyvalueMapJson, String objectTypeId, String objectId) Deprecated.addKeyValuesForObjectIds(String userName, String password, String outputFormat, String keyvalueMapJson, String objectTypeId, String objectIdListJson) Deprecated.addKeyValuesForObjectTypeIdsMap(String userName, String password, String outputFormat, String keyValueMapJson, String ObjectTypeIdsListOfObjectIdsJson) Deprecated.deleteAllKeyValuesForObjectId(String userName, String password, String outputFormat, String objectTypeId, String objectId) Deletes all Keys for the specified ObjectId and ObjectTypeId.deleteAllKeyValuesForObjectIds(String userName, String password, String outputFormat, String objectTypeId, String listobjectIdsJson) Delete all Keys for the specified ObjectTypeId and List of ObjectId's.deleteAllKeyValuesForObjectTypeIdsMap(String userName, String password, String outputFormat, String mapOfObjectTypeIdsWithListOfObjectIdsJson) Deletes all Keys for the specified Map of ObjectTypeId and List of ObjectId's.deleteKeyValueByIds(String userName, String password, String outputFormat, String keyIdsMapJson) Deletes all Keys for the specified List of keyId's.deleteKeyValueByName(String userName, String password, String outputFormat, String key, String objectTypeId, String objectId) Deletes all Keys for the specified Key, ObjectId and Object Type Id.outputFormat can be either JSON or XML.deleteKeyValuesByNameForObjectId(String userName, String password, String outputFormat, String listkeysJson, String objectTypeId, String objectId) Deletes all Keys for the specified List of keys, ObjectId and ObjectTypeId.getAllKeyIdsForObjectTypeIdsMap(String userName, String password, String outputFormat, String ObjectTypeIdListObjectId) Returns the Map of keyId's for the specified Map of objectTypeId and List of objectIds.getAllKeyValuesForObjectId(String userName, String password, String outputFormat, String objectTypeId, String objectId) Returns the key value pairs for the specified objectTypeId and objectId.outputFormat can be either JSON or XML.getAllKeyValuesForObjectTypeIdsMap(String userName, String password, String outputFormat, String ObjectTypeIdsMapWithObjectIdsListJson) Returns Map of Key Value pairs for the specified Map of objectTypeId's and List of objectId's.outputFormat can be either JSON or XML.getKeyIdsByName(String userName, String password, String outputFormat, String key, String objectTypeId, String objectId) Returns the List of keyId's for the specified key, objectTypeId and objectId.getKeyIdsByNames(String userName, String password, String outputFormat, String keys, String objectTypeId, String objectId) Returns the Map of keyId's for the specified List of keys, objectTypeId and objectId.getKeyIdsForObjectId(String userName, String password, String outputFormat, String objectTypeId, String objectId) Returns the Map of keyId's for the specified objectTypeId and objectId.getKeyIdsForObjectIds(String userName, String password, String outputFormat, String key, String objectTypeId, String listobjectIdJson) Returns the Map of keyId's for the specified key, objectTypeId and List of objectId's.outputFormat can be either JSON or XML.getKeyValueObject(String userName, String password, String outputFormat, String objectType, String objectId) Returns the List of KeyValue Objects for the specified objectTypeId and objectId.getKeyValueObjects(String userName, String password, String outputFormat, String objectType, String objectIdsJson) Returns the Map of KeyValue Objects for the specified objectTypeId and List of objectIds.getKeyValuesForObjectId(String userName, String password, String outputFormat, String objectTypeId, String objectId) Returns Map of Key Value pairs for the specified objectTypeId and objectId.outputFormat can be either JSON or XML.updateKeyValueById(String userName, String password, String outputFormat, String keyId, String value, String objectTypeId, String objectId) Updates the single Key Value pair for the specified keyId, value, objectTypeId and objectId.updateKeyValueByIdForObjectIds(String userName, String password, String outputFormat, String keyId, String value, String objectTypeId, String listobjectIdsJson) Updates the single key value pair for the specified keyId, value, objectTypeId and List of objectId's.updateKeyValueByIdsForObjectId(String userName, String password, String outputFormat, String keyIdValueMapJson, String objectTypeId, String objectId) Updates the Map of Key Value pairs for the specified Map KeyIdValue, objectTypeId and objectId.outputFormat can be either JSON or XML.updateKeyValueByIdsForObjectIds(String userName, String password, String outputFormat, String keyIdValueMapJson, String objectTypeId, String objectIds) Updates the Map of Key Value pairs for the specified Map of KeyIdValue, objectTypeId and List of objectId'S.outputFormat can be either JSON or XML.updateKeyValueByIdsForObjectTypeIdsMap(String userName, String password, String outputFormat, String keyIdValue, String ObjectTypeIdListObjectId) Updates the Map of Key Value pairs for the specified Map of KeyIdValue, Map of objectTypeId's and List of objectId's.outputFormat can be either JSON or XML.updateKeyValueObject(String userName, String password, String outputFormat, String keyValuejson) Updates the Key Value pair Object for the specified KeyValue object, Specifying Id,ObjectTypeId,ObjectId and Key in object is mandatory.updateKeyValueObjects(String userName, String password, String outputFormat, String keyValuejsonlist) Updates the List of Key Value pair Objects for the specified List of KeyValue objects, Specifying Id ,ObjectTypeId,ObjectId,Key in object is mandatory.
-
Constructor Details
-
KeyValueService
public KeyValueService()
-
-
Method Details
-
addKeyValue
public String addKeyValue(String userName, String password, String outputFormat, String key, String value, String objectTypeId, String objectId) Deprecated.Inserts a single keyValue pair for the specified objectTypeId and objectId. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectId and key are mandatory.
objectTypeId refers to the id given to a specific objectType such as SYSTEM, ENVIRONMENT, TABLE, COLUMN, COMPONENT, PROJECT, SUBJECT, MAPPING, MAPPING_ROW. objectId refers to the id of the type of the object specified.
For Instance: 1) If objectTypeId of objectType SYSTEM is 1 then corresponding objectId will be the id of the particular system.
2) If objectTypeId of objectType TABLE is 3 then corresponding objectId will be the id of the particular table.- Parameters:
key- Stringvalue- StringobjectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If Key Value pair is created successfully, it will return RequestStatus Object consisting of Request success flag, status message and userObject etc... in the form of JSON or XML String.
- Since:
- 6.2
-
addKeyValuesForObjectId
public String addKeyValuesForObjectId(String userName, String password, String outputFormat, String keyvalueMapJson, String objectTypeId, String objectId) Deprecated.Inserts a Map of Key Value pairs for the specified objectTypeId and objectId.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectId and keyvalueMapJson are mandatory- Parameters:
keyvalueMapJson- Map ObjectobjectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If Key Value pair is created successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'keyvalueMapJson' JSON :
{
"key1": "value1",
"key2": "value2"
} - Since:
- 6.2
-
addKeyValueForObjectIds
public String addKeyValueForObjectIds(String userName, String password, String outputFormat, String key, String value, String objectTypeId, String objectIdListJson) Deprecated.Inserts a single Key Value pair for the specified objectTypeId and List of objectId's. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectIds and key are mandatory.
List of objectId's refers to the id's of all objects which are of same objectType(same objectTypeId).- Parameters:
key- Stringvalue- StringobjectTypeId- StringobjectIdListJson- objectIds ListuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If Key Value pair is created successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'objectIdListJson' JSON :
{
"objectId": [1,2]
} - Since:
- 6.2
-
addKeyValuesForObjectIds
public String addKeyValuesForObjectIds(String userName, String password, String outputFormat, String keyvalueMapJson, String objectTypeId, String objectIdListJson) Deprecated.Inserts a Map of Key Value pairs for the specified objectTypeId and List of objectId's.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectIds and keyvalueMapJson are mandatory
List of objectId's refers to the id's of all objects which are of same objectType(same objectTypeId).
Adds the same Key Value pairs to all objects with the same objectTypeId.- Parameters:
keyvalueMapJson- Map ObjectobjectTypeId- StringuserName- Stringpassword- StringobjectIdListJson- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If Key Value pair is added successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'keyvalueMapJson' JSON :
{
"key1": "value1",
"key2": "value2"
}
Sample 'objectIdListJson' JSON :
{
"objectId": [1,2]
} - Since:
- 6.2
-
addKeyValuesForObjectTypeIdsMap
public String addKeyValuesForObjectTypeIdsMap(String userName, String password, String outputFormat, String keyValueMapJson, String ObjectTypeIdsListOfObjectIdsJson) Deprecated.Inserts a Map of Key Value pairs for the specified Map of objectTypeId's and objectId's.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeIds,ObjectIds and Keys are mandatory
Adds the same Key Value pairs to all objectId's with the same objectTypeId.
Map of objectTypeId's has collection of multiple objectType's. Where each of the objectTypeId consists of the List of objectId's.- Parameters:
ObjectTypeIdsListOfObjectIdsJson- StringuserName- StringkeyValueMapJson- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If Key Value pair is added successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'keyValueMapJson' JSON :
{
"key1": "value1",
"key2": "value2"
}
Sample 'ObjectTypeIdsListOfObjectIdsJson' JSON :
{
9: [283,284],
8:[74,76]
} - Since:
- 6.2
-
addKeyValueForObjectTypeIdsMap
public String addKeyValueForObjectTypeIdsMap(String userName, String password, String outputFormat, String Key, String Value, String ObjectTypeIdsListOfObjectIdsJson) Deprecated.Inserts a single key value pair for the specified Map of objectTypeId's and objectId's.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeIds,ObjectIds and Key are mandatory
Map of objectTypeId's has collection of multiple objectType's. Where each of the objecTypeId consists of the List of objectId's.
If Key Value pair is added successfully then RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
Key- StringValue- StringObjectTypeIdsListOfObjectIdsJson- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If Key Value pair is added successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'ObjectTypeIdsListOfObjectIdsJson' JSON :
{
9:[1,2],
8:[3,4]
} - Since:
- 6.2
-
addKeyValueObject
public String addKeyValueObject(String userName, String password, String outputFormat, String keyValuejson) Inserts a single KeyValue pair object for the specified KeyValue object,objectTypeId and objectId.OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectId and key in object is mandatory- Parameters:
userName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XMLkeyValuejson-- Returns:
- String - If Key Value pair is added successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'keyValuejson' for this:
{
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "Value1",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"id": 0,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"value": "",
"pref_type": "Consolidated",
"key": "",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
} - Since:
- 8.2
-
addKeyValueObjectByObjectId
public String addKeyValueObjectByObjectId(String userName, String password, String outputFormat, String keyValuejson, String objectType, String objectId) Inserts a single KeyValue pair object for the specified KeyValue object,objectTypeId and objectId.OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectId and key are mandatory- Parameters:
userName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XMLkeyValuejson-objectType-objectId-- Returns:
- String - If Key Value pair is added successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'keyValuejson' for this:
{
"key": "",
"value": "",
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "Value1",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"id": 0,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"pref_type": "Consolidated",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
} - Since:
- 8.2
-
addKeyValueObjects
public String addKeyValueObjects(String userName, String password, String outputFormat, String keyValuejsonlist, String objectType, String objectId) Inserts a multiple KeyValue pair objects for the specified List of KeyValue objects,objectTypeId and objectId.OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectId and keyValuejsonlist are mandatory- Parameters:
userName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XMLkeyValuejsonlist-objectType-objectId-- Returns:
- String - If Key Value pair is added successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'keyValuejsonlist' JSON :
[
{
"key": "",
"value": "",
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"id": 0,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"pref_type": "Consolidated",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
},
{
"key": "",
"value": "",
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"id": 0,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"pref_type": "Consolidated",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
}
] - Since:
- 8.2
-
addKeyValueObjectsMap
public String addKeyValueObjectsMap(String userName, String password, String outputFormat, String objectType, String objectIdsListOfKeyValuesJson) Inserts multiple key-value pair objects for the specified node type and given objectIds along with key-value objects. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the nodeType, objectIds and keyValuejsonlist are mandatory.- Parameters:
userName- Stringpassword- StringoutputFormat- StringobjectType- StringobjectIdsListOfKeyValuesJson- String- Returns:
- String - If Key Value pair is added successfully, it will return RequestStatus Object consisting of Request success flag, status message
and userObject etc... in the form of JSON or XML String.
Sample 'keyValuejsonlist' JSON :
{
"1":[
{
"key": "",
"value": "",
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"id": 0,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"pref_type": "Consolidated",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
},
{
"key": "",
"value": "",
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"id": 0,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"pref_type": "Consolidated",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
}
]
}
-
getAllKeyValuesForObjectId
public String getAllKeyValuesForObjectId(String userName, String password, String outputFormat, String objectTypeId, String objectId) Returns the key value pairs for the specified objectTypeId and objectId.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId and ObjectId are mandatory- Parameters:
objectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - JSONArray of key , values
- Since:
- 6.2
-
getKeyIdsByName
public String getKeyIdsByName(String userName, String password, String outputFormat, String key, String objectTypeId, String objectId) Returns the List of keyId's for the specified key, objectTypeId and objectId. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId ,ObjectId and key are mandatory- Parameters:
key- StringobjectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of KeyId's in the form of JSON String.
- Since:
- 6.2
-
getKeyIdsForObjectIds
public String getKeyIdsForObjectIds(String userName, String password, String outputFormat, String key, String objectTypeId, String listobjectIdJson) Returns the Map of keyId's for the specified key, objectTypeId and List of objectId's.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId ,ObjectIds and Key are mandatory- Parameters:
key- StringobjectTypeId- StringlistobjectIdJson- objectIds ListuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Map of KeyNames and its List of KeyId's in the form of
JSON String.
Sample 'listobjectIdJson' JSON :
{
"objectId":[283,284]
} - Since:
- 6.2
-
getKeyValuesForObjectId
public String getKeyValuesForObjectId(String userName, String password, String outputFormat, String objectTypeId, String objectId) Returns Map of Key Value pairs for the specified objectTypeId and objectId.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId and ObjectId are mandatory- Parameters:
objectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Map of KeyValue pairs in the form of JSON String.
- Since:
- 6.2
-
getAllKeyValuesForObjectTypeIdsMap
public String getAllKeyValuesForObjectTypeIdsMap(String userName, String password, String outputFormat, String ObjectTypeIdsMapWithObjectIdsListJson) Returns Map of Key Value pairs for the specified Map of objectTypeId's and List of objectId's.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeIds and ObjectIds are mandatory- Parameters:
ObjectTypeIdsMapWithObjectIdsListJson- String - ObjectTypeIds,List of ObjectIds Map objectuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - KeyValue pairs Map Object in the form of JSON String
Sample 'ObjectTypeIdsMapWithObjectIdsListJson' JSON :
{
9:[283,284],
8:[74,76]
} - Since:
- 6.2
-
getKeyIdsForObjectId
public String getKeyIdsForObjectId(String userName, String password, String outputFormat, String objectTypeId, String objectId) Returns the Map of keyId's for the specified objectTypeId and objectId. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId and ObjectId are mandatory- Parameters:
objectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Map of KeyNames and its List of KeyId's in the form of JSON String.
- Since:
- 6.2
-
getKeyIdsByNames
public String getKeyIdsByNames(String userName, String password, String outputFormat, String keys, String objectTypeId, String objectId) Returns the Map of keyId's for the specified List of keys, objectTypeId and objectId. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId ,ObjectId and Keys are mandatory- Parameters:
keys- ListobjectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Map of KeyNames and its List of KeyId's in the form of
JSON String.
Sample 'keys' JSON :
{
keys:[key1,key2]
} - Since:
- 6.2
-
getAllKeyIdsForObjectTypeIdsMap
public String getAllKeyIdsForObjectTypeIdsMap(String userName, String password, String outputFormat, String ObjectTypeIdListObjectId) Returns the Map of keyId's for the specified Map of objectTypeId and List of objectIds. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId and ObjectIds are mandatory- Parameters:
ObjectTypeIdListObjectId- MapuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Map of KeyId's in the form of JSON String.
Sample 'ObjectTypeIdListObjectId' JSON :
{
"8":[74,76]
} - Since:
- 6.2
-
getKeyValueObject
public String getKeyValueObject(String userName, String password, String outputFormat, String objectType, String objectId) Returns the List of KeyValue Objects for the specified objectTypeId and objectId. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId and ObjectId are mandatory- Parameters:
userName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XMLobjectType- StringobjectId- String- Returns:
- String - List of KeyValue Objects in the form of JSON String.
- Since:
- 8.2
-
getKeyValueObjects
public String getKeyValueObjects(String userName, String password, String outputFormat, String objectType, String objectIdsJson) Returns the Map of KeyValue Objects for the specified objectTypeId and List of objectIds. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId and ObjectIds are mandatory- Parameters:
userName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XMLobjectType- StringobjectIdsJson- String- Returns:
- String - Map of KeyValue Objects in the form of JSON String.
Sample 'objectIdsJson' JSON :
[283,284] - Since:
- 8.2
-
updateKeyValueById
public String updateKeyValueById(String userName, String password, String outputFormat, String keyId, String value, String objectTypeId, String objectId) Updates the single Key Value pair for the specified keyId, value, objectTypeId and objectId. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId ,ObjectId and KeyId are mandatory- Parameters:
keyId- Stringvalue- StringobjectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is updated successfully, it returns True along with the count of updated keyValues, from APIConstants.UPDATE_KEY_COUNT otherwise returns False.
- Since:
- 6.2
-
updateKeyValueByIdForObjectIds
public String updateKeyValueByIdForObjectIds(String userName, String password, String outputFormat, String keyId, String value, String objectTypeId, String listobjectIdsJson) Updates the single key value pair for the specified keyId, value, objectTypeId and List of objectId's. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectIds and keyId are mandatory
Updates the same Key Value pair for all objects with the same objectTypeId.- Parameters:
keyId- Stringvalue- StringobjectTypeId- StringlistobjectIdsJson- objectIds ListuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is updated successfully,
it returns True along with the count of updated keyValues, from APIConstants.UPDATE_KEY_COUNT otherwise returns False.
Sample 'listobjectIdsJson' JSON :
{
"objectId":[74,76]
} - Since:
- 6.2
-
updateKeyValueByIdsForObjectId
public String updateKeyValueByIdsForObjectId(String userName, String password, String outputFormat, String keyIdValueMapJson, String objectTypeId, String objectId) Updates the Map of Key Value pairs for the specified Map KeyIdValue, objectTypeId and objectId.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectId and keyIdValueMapJson are mandatory
Updates the key value pairs available in the Map to the same objectTypeId and objectId.- Parameters:
keyIdValueMapJson- KeyId,Value Map ObjectobjectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is updated successfully,
it returns True along with the count of updated keyValues, from APIConstants.UPDATE_KEY_COUNT otherwise returns False.
Sample 'keyIdValueMapJson' JSON :
{
"1": "value1",
"2": "value2"
} - Since:
- 6.2
-
updateKeyValueByIdsForObjectIds
public String updateKeyValueByIdsForObjectIds(String userName, String password, String outputFormat, String keyIdValueMapJson, String objectTypeId, String objectIds) Updates the Map of Key Value pairs for the specified Map of KeyIdValue, objectTypeId and List of objectId'S.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectIds and keyIdValueMapJson are mandatory
Updates the key value pairs available in the Map to all objectId's of same objectTypeId.- Parameters:
keyIdValueMapJson- KeyId,Value Map ObjectobjectTypeId- StringobjectIds- ListuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is updated successfully,
it returns True along with the count of updated keyValues, from APIConstants.UPDATE_KEY_COUNT otherwise returns False.
Sample 'keyIdValueMapJson' JSON :
{
"1": "value1",
"2": "value2"
}
Sample 'objectIds' JSON :
{
"objectIds":[74,76]
} - Since:
- 6.2
-
updateKeyValueByIdsForObjectTypeIdsMap
public String updateKeyValueByIdsForObjectTypeIdsMap(String userName, String password, String outputFormat, String keyIdValue, String ObjectTypeIdListObjectId) Updates the Map of Key Value pairs for the specified Map of KeyIdValue, Map of objectTypeId's and List of objectId's.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectIds and keyIdValue are mandatory
Updates the Key Value pairs available to all objectsId's in the List of the Map of bjectTypeId's.- Parameters:
keyIdValue- Map ObjectObjectTypeIdListObjectId- Map ObjectuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is updated successfully,
it returns True along with the count of updated keyValues, from APIConstants.UPDATE_KEY_COUNT otherwise returns False.
Sample 'keyIdValue' JSON :
{
1:"value1",
2:"value2"
}
Sample 'ObjectTypeIdListObjectId' JSON :
{
8:[74,76]
} - Since:
- 6.2
-
updateKeyValueObject
public String updateKeyValueObject(String userName, String password, String outputFormat, String keyValuejson) Updates the Key Value pair Object for the specified KeyValue object, Specifying Id,ObjectTypeId,ObjectId and Key in object is mandatory. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Updates the Key Value pair for available objectId and objectTypeId.- Parameters:
userName-password-outputFormat- - Valid values: JSON or XMLkeyValuejson-- Returns:
- String - If the keyValue pair is updated successfully, it returns
true otherwise it returns false.
Sample 'keyValuejson' JSON :
{
"id": 0,
"key": "",
"value": "",
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "Value1",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"pref_type": "Consolidated",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
} - Since:
- 8.2
-
updateKeyValueObjects
public String updateKeyValueObjects(String userName, String password, String outputFormat, String keyValuejsonlist) Updates the List of Key Value pair Objects for the specified List of KeyValue objects, Specifying Id ,ObjectTypeId,ObjectId,Key in object is mandatory. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Updates the List of Key Value pair for available objectId and objectTypeId.- Parameters:
userName-password-outputFormat- - Valid values: JSON or XMLkeyValuejsonlist-- Returns:
- String - If the List of keyValue pair is updated successfully, it
returns true otherwise it returns false.
Sample 'keyValuejsonlist' JSON :
[
{
"id": 0,
"key": "",
"value": "",
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"pref_type": "Consolidated",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
},
{
"id": 0,
"key": "",
"value": "",
"fromParent": false,
"objectTypeId": "",
"userData": {},
"objectStyle": null,
"defaultValue": "",
"tooltip": null,
"masterConfig": null,
"fetchOnlyParent": false,
"type": null,
"mode": null,
"valueRefId": null,
"formatRefValues": true,
"parentObjectTypeId": "",
"systemBased": false,
"html": false,
"text": "",
"order": 1,
"fieldLength": 0,
"visibility": 1,
"keyStyle": null,
"displayPolicy": 1,
"published": false,
"childId": 0,
"fromChild": false,
"processingOrder": 0,
"dependencies": [],
"expand": false,
"consolidated": false,
"parentKey": "",
"configObject": null,
"htmlDisabled": false,
"fieldType": null,
"regularExpression": null,
"objectLevel": 0,
"description": null,
"mandatory": false,
"enabled": false,
"loadonStartup": 0,
"parentObjectId": "",
"selectedValue": null,
"pref_type": "Consolidated",
"objectId": "",
"valueStyle": null,
"combovalues": [],
"uitype": "TEXTBOX",
"keyValues": [],
"parentId": 0,
"component": "{}",
"cellType": null
}
] - Since:
- 8.2
-
deleteKeyValueByName
public String deleteKeyValueByName(String userName, String password, String outputFormat, String key, String objectTypeId, String objectId) Deletes all Keys for the specified Key, ObjectId and Object Type Id.outputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectId and key are mandatory- Parameters:
key- StringobjectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is deleted successfully, it returns True along with the count of deleted keyValues, from APIConstants.DELETE_KEY_COUNT otherwise returns False.
- Since:
- 6.2
-
deleteKeyValuesByNameForObjectId
public String deleteKeyValuesByNameForObjectId(String userName, String password, String outputFormat, String listkeysJson, String objectTypeId, String objectId) Deletes all Keys for the specified List of keys, ObjectId and ObjectTypeId. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying the objectTypeId, objectId and listkeysJson are mandatory- Parameters:
listkeysJson- keys ListobjectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is deleted successfully,
it returns True along with the count of deleted keyValues, from APIConstants.DELETE_KEY_COUNT otherwise returns False.
Sample 'listkeysJson' JSON :
{
keys:[key1,key2]
} - Since:
- 6.2
-
deleteKeyValueByIds
public String deleteKeyValueByIds(String userName, String password, String outputFormat, String keyIdsMapJson) Deletes all Keys for the specified List of keyId's. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying KeyIds are mandatory
KeyIds are unique Id's given to the Key Value Pairs.- Parameters:
keyIdsMapJson- keyIds ListuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is deleted successfully,
it returns True along with the count of deleted keyValues, from APIConstants.DELETE_KEY_COUNT otherwise returns False.
Sample 'keyIdsMapJson' JSON :
{
"keyIds":[1,2]
} - Since:
- 6.2
-
deleteAllKeyValuesForObjectId
public String deleteAllKeyValuesForObjectId(String userName, String password, String outputFormat, String objectTypeId, String objectId) Deletes all Keys for the specified ObjectId and ObjectTypeId. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId and ObjectId are mandatory- Parameters:
objectTypeId- StringobjectId- StringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is deleted successfully, it returns True along with the count of deleted keyValues, from APIConstants.DELETE_KEY_COUNT otherwise returns False.
- Since:
- 6.2
-
deleteAllKeyValuesForObjectIds
public String deleteAllKeyValuesForObjectIds(String userName, String password, String outputFormat, String objectTypeId, String listobjectIdsJson) Delete all Keys for the specified ObjectTypeId and List of ObjectId's. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeId and ObjectIds are mandatory- Parameters:
objectTypeId- StringuserName- Stringpassword- StringlistobjectIdsJson- objectIds ListoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is deleted successfully,
it returns True along with the count of deleted keyValues, from APIConstants.DELETE_KEY_COUNT otherwise returns False.
Sample 'listobjectIdsJson' JSON :
{
objectId:[1,2]
} - Since:
- 6.2
-
deleteAllKeyValuesForObjectTypeIdsMap
public String deleteAllKeyValuesForObjectTypeIdsMap(String userName, String password, String outputFormat, String mapOfObjectTypeIdsWithListOfObjectIdsJson) Deletes all Keys for the specified Map of ObjectTypeId and List of ObjectId's. OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.
Specifying ObjectTypeIds and ObjectIds are mandatory- Parameters:
mapOfObjectTypeIdsWithListOfObjectIdsJson- JsonStringuserName- Stringpassword- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If the keyValue pair is deleted successfully,
it returns True along with the count of deleted keyValues, from APIConstants.DELETE_KEY_COUNT otherwise returns False.
Sample 'mapOfObjectTypeIdsWithListOfObjectIdsJson' JSON :
{
9:[1,2],
8:[3,4]
} - Since:
- 6.2
-