public class CodesetManagerUtil
extends BaseUtil
RequestStatus as return type methods will result in being returned as either true or false as its status.
Constructor and Description |
---|
CodesetManagerUtil(java.lang.String token) |
CodesetManagerUtil(java.lang.String tokenType,
java.lang.String token) |
Modifier and Type | Method and Description |
---|---|
RequestStatus |
updateCodeValue(CodeValue codeValue)
Updates CodeValue for the codeId specified in the CodeValue Object.
|
RequestStatus |
updateCodeValue(CodeValue codeValue,
boolean updateExtendedProperties)
Updates CodeValue for the codeId specified in the CodeValue Object and
also updates its extended properties only if updateExtendedProperties
flag is true.
|
java.lang.String |
updateCodeValueAs(java.lang.String codeValueObjJson,
boolean updateExtendedProperties,
java.lang.String outputFormat)
Updates CodeValue for the codeId specified in the CodeValue Object and
also updates its extended properties only if updateExtendedProperties
flag is true.
|
RequestStatus |
updateCodeValues(java.util.List<CodeValue> codeValues)
Updates list of CodeValues for the codeId specified in the list of each
CodeValue Object.
|
RequestStatus |
updateCodeValues(java.util.List<CodeValue> codeValues,
boolean updateExtendedProperties)
Updates list of CodeValues for the codeId specified in the each CodeValue
Object and also updates its corresponding extended properties only if
updateExtendedProperties flag is true.
|
java.lang.String |
updateCodeValuesAs(java.lang.String codeValuesObjJsonArray,
boolean updateExtendedProperties,
java.lang.String outputFormat)
Updates list of CodeValues for the codeId specified in the each CodeValue
Object and also updates its corresponding extended properties only if
updateExtendedProperties flag is true.
|
public CodesetManagerUtil(java.lang.String token)
token
- public CodesetManagerUtil(java.lang.String tokenType, java.lang.String token)
tokenType
- token
- public RequestStatus updateCodeValue(CodeValue codeValue)
codeValue
- CodeValuepublic RequestStatus updateCodeValues(java.util.List<CodeValue> codeValues)
codeValues
- Listpublic RequestStatus updateCodeValue(CodeValue codeValue, boolean updateExtendedProperties)
codeValue
- CodeValueupdateExtendedProperties
- booleanpublic RequestStatus updateCodeValues(java.util.List<CodeValue> codeValues, boolean updateExtendedProperties)
codeValues
- ListupdateExtendedProperties
- booleanpublic java.lang.String updateCodeValueAs(java.lang.String codeValueObjJson, boolean updateExtendedProperties, java.lang.String outputFormat)
codeValueObjJson
- StringupdateExtendedProperties
- booleanoutputFormat
- String - Valid values: JSON or XML
Sample 'codeValueObjJson' JSON :
{
"id": 0,
"codesetId": 0,
"name": "",
"value": "",
"description": "",
"systemName": "",
"systemEnvironmentName": "",
"systemId": 0,
"startDate": null,
"endDate": null,
"userDefinedField1": "",
"userDefinedField2": "",
"userDefinedField3": "",
"userDefinedField4": "",
"userDefinedField5": "",
"userDefinedField6": "",
"userDefinedField7": "",
"userDefinedField8": "",
"userDefinedField9": "",
"userDefinedField10": "",
"extendedProperties": [],
"active": false,
"deleteFlag": false
}
public java.lang.String updateCodeValuesAs(java.lang.String codeValuesObjJsonArray, boolean updateExtendedProperties, java.lang.String outputFormat)
codeValuesObjJsonArray
- StringupdateExtendedProperties
- booleanoutputFormat
- String - Valid values: JSON or XML
Sample 'codeValuesObjJsonArray' JSON :
[
{
"id": 0,
"codesetId": 0,
"name": "",
"value": "",
"description": "",
"systemName": "",
"systemEnvironmentName": "",
"systemId": 0,
"startDate": null,
"endDate": null,
"userDefinedField1": "",
"userDefinedField2": "",
"userDefinedField3": "",
"userDefinedField4": "",
"userDefinedField5": "",
"userDefinedField6": "",
"userDefinedField7": "",
"userDefinedField8": "",
"userDefinedField9": "",
"userDefinedField10": "",
"extendedProperties": [],
"active": false,
"deleteFlag": false
},
{
"id": 0,
"codesetId": 0,
"name": "",
"value": "",
"description": "",
"systemName": "",
"systemEnvironmentName": "",
"systemId": 0,
"startDate": null,
"endDate": null,
"userDefinedField1": "",
"userDefinedField2": "",
"userDefinedField3": "",
"userDefinedField4": "",
"userDefinedField5": "",
"userDefinedField6": "",
"userDefinedField7": "",
"userDefinedField8": "",
"userDefinedField9": "",
"userDefinedField10": "",
"extendedProperties": [],
"active": false,
"deleteFlag": false
}
]