Class CodesetManagerUtil
RequestStatus as return type methods will result in being returned as either true or false as its status.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ads.api.util.BaseUtil
com.ads.api.util.BaseUtil.TokenType -
Field Summary
Fields inherited from class com.ads.api.util.BaseUtil
AUTH_TOKEN, AUTH_TOKEN_TYPE -
Method Summary
Modifier and TypeMethodDescriptionaddCodeValue(int codesetId, CodeValue codeValue, boolean saveExtendedProperties) Codevalue is added for the specified codesetId, codevalue object and also extended properties are added only if the saveExtendedProperties flag is true.addCodeValue(CodeValue codeValue, boolean saveExtendedProperties) Codevalue is added for the specified codevalue object and also extended properties are added only if the saveExtendedProperties flag is true.addCodeValueAs(String codeValue, boolean saveExtendedProperties, String outputFormat) Codevalue is added for the specified codeValue object and also extended properties are added only if the saveExtendedProperties flag is true.addCodeValues(int codesetId, List<CodeValue> codeValues, boolean saveExtendedProperties) Codevalues are added for the specified codesetId list of codevalue objects and also extended properties are added only if the saveExtendedProperties flag is true.addCodeValues(List<CodeValue> codeValues, boolean saveExtendedProperties) Codevalues are added for the specified list of codevalue objects and also extended properties are added only if the saveExtendedProperties flag is true.addCodeValuesAs(String codeValues, boolean saveExtendedProperties, String outputFormat) Codevalues are added for the specified list of codeValue objects and also extended properties are added only if the saveExtendedProperties flag is true.assignCodeset(Node.NodeType nodeType, int nodeId, Codeset codeset) Assigns the specified codeset object to the specified nodeType and nodeId.assignCodesetAs(String nodeType, int nodeId, String codeset, String outputFormat) Assigns the specified codeset object to the specified nodeType and nodeId.assignCodesets(Node.NodeType nodeType, int nodeId, List<Codeset> codesets) Assigns the specified list of codesets to the specified nodeType and nodeId.assignCodesets(Node.NodeType nodeType, int nodeId, List<Integer> codesetIds, boolean unassignExisting) Assigns codesets of specified codeset ids to the specified nodeType and nodeId.assignCodesetsAs(String nodeType, int nodeId, String codesetIds, boolean unassignExisting, String outputFormat) Assigns codesets of specified codeset ids to the specified nodeType and nodeId.cloneCodeset(int srcCodesetId, int tgtCategoryId, boolean createNewVersionIfExists) Codeset is cloned for the given srcCodesetId to the given tgtCategoryId.cloneCodesetAs(int srcCodesetId, int tgtCategoryId, boolean createNewVersionIfExists, String outputFormat) Codeset is cloned for the given srcCodesetId to the given tgtCategoryId.createCategories(List<Category> categories) Categories are added for the specified list of category objects.createCategoriesAs(String categories, String outputFormat) Categories are added for the specified list of category objects.createCategory(int parentCategoryId, Category.Type categoryType, String categoryName) Category is added for the specified categoryName and categoryType.createCategory(Category category) Category is added for the specified category object.createCategoryAs(int parentCategoryId, String categoryType, String categoryName, String outputFormat) Category is added for the specified categoryName and categoryType.createCategoryAs(String category, String outputFormat) Category is added for the specified category object.createCodeset(int categoryId, Codeset codeset, boolean saveCodeValues) Codeset is added for the specified categoryId, codeset object and also code values are added only if the saveCodeValues flag is true.createCodeset(Codeset codeset, boolean saveCodeValues) Codeset is added for the specified codeset object and also codevalues are added only if the saveCodeValues flag is true.createCodesetAs(String codeset, boolean saveCodeValues, String outputFormat) Codeset is added for the specified codeset object and also codevalues are added only if the saveCodeValues flag is true.createCodesets(int categoryId, List<Codeset> codesets, boolean saveCodeValues) Codesets are added for the specified list of codeset objects and also code values are added only if the saveCodeValues flag is true.createCodesets(List<Codeset> codesets, boolean saveCodeValues) Codesets are added for the specified list of codeset objects and also codevalues are added only if the saveCodeValues flag is true.createCodesetsAs(String codesets, boolean saveCodeValues, String outputFormat) Codesets are added for the specified list of codeset objects and also codevalues are added only if the saveCodeValues flag is true.createEnvironment(CSMEnvironment csmEnvironment) CSMEnvironment is added for the specified environment object.createEnvironmentAs(String environment, String outputFormat) CSMEnvironment is added for the specified environment object.createEnvironments(List<CSMEnvironment> csmEnvironments) List of environments are added for the specified list of environment objects.createEnvironmentsAs(String environments, String outputFormat) List of environments are added for the specified list of environment objects.deleteCategories(List<Integer> categoryIds, Category.Type categoryType) Deletes the categories with the specified list of categoryIds and categoryType.deleteCategoriesAs(String categoryIds, String categoryType, String outputFormat) Deletes the categories with the specified list of categoryIds and categoryType.deleteCategory(int categoryId, Category.Type categoryType) Deletes the category with the specified categoryId and categoryType.deleteCategory(int parentCategoryId, Category.Type categoryType, String categoryName) Deletes the category with the specified categoryName and categoryType.deleteCategory(Category category) Deletes the category with the specified category object.deleteCategoryAs(int categoryId, String categoryType, String outputFormat) Deletes the category with the specified categoryId and categoryType.deleteCategoryAs(int parentCategoryId, String categoryType, String categoryName, String outputFormat) Deletes the category with the specified categoryName and categoryType.deleteCodeset(int codesetId) Deletes the codeset with the specified codesetId.Specifying the codesetId is mandatory to delete a particular codeset.deleteCodeset(int codesetId, APIConstants.VersionMode versionMode) Deletes the codeset with the specified codesetId and versionMode.deleteCodeset(Codeset codeset) Deletes the codeset with the specified codeset object.deleteCodesetAs(int codesetId, String outputFormat) Deletes the codeset with the specified codesetId.Specifying the codesetId is mandatory to delete a particular codeset.deleteCodesetAs(int codesetId, String versionMode, String outputFormat) Deletes the codeset with the specified codesetId and versionMode.deleteCodesets(int categoryId) Deletes the list of codesets for the given categoryId.deleteCodesets(int categoryId, APIConstants.VersionMode versionMode) Deletes the list of codesets for the specified categoryId and versionMode Specifying the categoryId is mandatory to delete codesets.deleteCodesets(int categoryId, List<String> codesetNames, APIConstants.VersionMode versionMode) Deletes the list of codesets for the specified categoryId, codesetNames list and versionMode.deleteCodesets(List<Integer> codesetIds) Deletes the codesets with the specified list of codesetIds.deleteCodesets(List<Integer> codesetIds, APIConstants.VersionMode versionMode) Deletes the codeset with the specified codesetIds list and versionMode.deleteCodesetsAs(int categoryId, String outputFormat) Deletes the list of codesets for the given categoryId.deleteCodesetsAs(int categoryId, String versionMode, String outputFormat) Deletes the list of codesets for the specified categoryId and versionMode Specifying the categoryId is mandatory to delete codesets.deleteCodesetsAs(int categoryId, String codesetNames, String versionMode, String outputFormat) Deletes the list of codesets for the specified categoryId, codesetNames and versionMode.deleteCodesetsAs(String codesetIds, String outputFormat) Deletes the codesets with the specified list of codesetIds.deleteCodesetsAs(String codesetIds, String versionMode, String outputFormat) Deletes the codesets with the specified codesetIds list and versionMode.deleteCodeValue(int codeValueId, APIConstants.DeleteMode deleteMode) Deletes the code value with the specified codeValueId and deleteMode.deleteCodeValueAs(int codeValueId, String deleteMode, String outputFormat) Deletes the codevalue object with the specified codeValueId and deleteMode.deleteCodeValues(int codesetId, APIConstants.DeleteMode deleteMode) Deletes the list of codevalue objects with the specified codesetId and deleteMode.deleteCodeValues(List<Integer> codeValueIds, APIConstants.DeleteMode deleteMode) Deletes the list of code value objects with the specified codeValueIds list and deleteMode.deleteCodeValuesAs(int codesetId, String deleteMode, String outputFormat) Deletes the list of codevalue objects with the specified codesetId and deleteMode.deleteCodeValuesAs(String codeValueIds, String deleteMode, String outputFormat) Deletes the list of codeValue objects with the specified codeValueIds list and deleteMode.deleteEnvironment(int environmentId) Deletes the environment with the specified environmentId.deleteEnvironment(CSMEnvironment csmEnvironment) Deletes the environment with the specified environmen object.deleteEnvironment(String environmentName) Deletes the environment with the specified environmentName.deleteEnvironmentAs(int environmentId, String outputFormat) Deletes the environment with the specified environmentId.deleteEnvironmentAs(String environmentName, String outputFormat) Deletes the environment with the specified environmentName.deleteEnvironments(List<Integer> environmentIds) Deletes the environments with the specified list of environmentIds.deleteEnvironmentsAs(String environmentIds, String outputFormat) Deletes the environments with the specified list of environmentIds.All the codesets present in enterprise codesets are exported to excel.exportAllAs(String outputFormat) All the codesets present in enterprise codesets are exported to excel.exportCodesets(int categoryId, boolean includeSubCategories) Codesets are exported to excel for the specified categoryId.exportCodesetsAs(int categoryId, boolean includeSubCategories, String outputFormat) Codesets are exported to excel for the specified categoryId.exportCodeValues(int codesetId) Codevalues are exported to excel for the specified codesetId.exportCodeValuesAs(int codesetId, String outputFormat) Codevalues are exported to excel for the specified codesetId.Returns the list of all retired codesets present in enterprise codesets.getAllRetiredCodesetsAs(String outputFormat) Returns the list of all retired codesets present in enterprise codesets.getAssignedCodesets(Node.NodeType nodeType, int nodeId) Returns the list of codeset objects for the specified nodeType and nodeId where each codeset object contains codeset name, codeset description, codeset status and category name in which codeset is present etc...getAssignedCodesets(Node.NodeType nodeType, int nodeId, int fillOptions) Returns the list of codeset objects for the specified nodeType and nodeId.getAssignedCodesetsAs(String nodeType, int nodeId, int fillOptions, String outputFormat) Returns the list of codeset objects for the specified nodeType and nodeId.getCategories(List<Integer> categoryIds, Category.Type categoryType) Returns the list of category objects for the specified categoryIds list and categoryType.getCategories(List<Integer> categoryIds, Category.Type categoryType, int fillOptions) Returns the list of category objects for the specified categoryIds list and categoryType.getCategoriesAs(String categoryIds, String categoryType, int fillOptions, String outputFormat) Returns the list of category objects for the specified categoryIds list and categoryType.Specifying the categoryIds list and categoryType are mandatory.getCategory(int categoryId, Category.Type categoryType) Returns the category object for the specified categoryId and categoryType.getCategory(int categoryId, Category.Type categoryType, int fillOptions) Returns the category object for the specified categoryId and categoryType.getCategory(int parentCategoryId, Category.Type categoryType, String categoryName) Returns the category object for the specified parentCategoryId, categoryType and categoryName.getCategoryAs(int categoryId, String categoryType, int fillOptions, String outputFormat) Returns the category object for the specified categoryId and categoryType.getCategoryAs(int categoryId, String categoryType, String outputFormat) Returns the category object for the specified categoryId and categoryType.getCategoryAs(int parentCategoryId, String categoryType, String categoryName, String outputFormat) Returns the category object for the specified parentCategoryId, categoryType and categoryName.intgetCategoryId(int parentCategoryId, Category.Type categoryType, String categoryName) Returns the category id for the given categoryName and categoryType.getCategoryIdAs(int parentCategoryId, String categoryType, String categoryName, String outputFormat) Returns the category id for the specified categoryName and categoryType.getCodeset(int codesetId) Returns the codeset object for the specified codesetId.getCodeset(int codesetId, int fillOptions) Returns the codeset object for the specified codesetId.getCodeset(int categoryId, String codesetName) Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory.getCodeset(int categoryId, String codesetName, float version) Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory.getCodeset(int categoryId, String codesetName, float version, int fillOptions) Returns the codeset object for the specified categoryId, codesetName and version.getCodeset(int categoryId, String codesetName, int fillOptions) Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory.getCodesetAs(int codesetId, int fillOptions, String outputFormat) Returns the codeset object for the specified codesetId.getCodesetAs(int codesetId, String outputFormat) Returns the codeset object for the specified codesetId.getCodesetAs(int categoryId, String codesetName, float version, int fillOptions, String outputFormat) Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory.getCodesetAs(int categoryId, String codesetName, float version, String outputFormat) Returns the codeset object for the specified categoryId, codesetName and version.getCodesetAs(int categoryId, String codesetName, int fillOptions, String outputFormat) Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory.getCodesetAs(int categoryId, String codesetName, String outputFormat) Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory.intgetCodesetId(int categoryId, String codesetName) Returns the codeset id for the specified categoryId and codesetName.getCodesetIdAs(int categoryId, String codesetName, String outputFormat) Returns the codeset id for the specified categoryId and codesetName.getCodesets(int categoryId) Returns the list of codeset objects for the specified categoryId.getCodesets(int categoryId, int fillOptions) Returns the list of codeset objects for the specified categoryId.getCodesets(List<Integer> codesetIds) Returns the list of codeset objects for the specified codesetIds list.getCodesets(List<Integer> codesetIds, int fillOptions) Returns the list of codeset objects for the specified codesetIds list.getCodesetsAs(int categoryId, int fillOptions, String outputFormat) Returns the list of codeset objects for the specified categoryId.getCodesetsAs(int categoryId, String outputFormat) Returns the list of codeset objects for the specified categoryId.getCodesetsAs(String codesetIds, int fillOptions, String outputFormat) Returns the list of codeset objects for the specified codesetIds list.getCodesetsAs(String codesetIds, String outputFormat) Returns the list of codeset objects for the specified codesetIds list.getCodeValues(int codesetId) Returns the list of codevalue objects for the specified codesetId.getCodeValues(int codesetId, int fillOptions) Returns the list of codevalue objects for the specified codesetId.getCodeValues(int categoryId, String codesetName) Returns the list of codevalue objects for the specified categoryId and codesetName.getCodeValues(int categoryId, String codesetName, int fillOptions) Returns the list of codevalue objects for the specified categoryId and codesetName.getCodeValuesAs(int codesetId, int fillOptions, String outputFormat) Returns the list of codevalue objects for the specified codesetId.getCodeValuesAs(int codesetId, String outputFormat) Returns the list of codevalue objects for the specified codesetId.getCodeValuesAs(int categoryId, String codesetName, int fillOptions, String outputFormat) Returns the list of codevalue objects for the specified categoryId and codesetName.getCodeValuesAs(int categoryId, String codesetName, String outputFormat) Returns the list of codevalue objects for the specified categoryId and codesetName.getEnvironment(int environmentId) Returns the environment object for the specified environmentId.getEnvironmentAs(int environmentId, String outputFormat) Returns the environment object for the specified environmentId.intgetEnvironmentId(String environmentName) Returns the environment id for the specified environment name.getEnvironmentIdAs(String environmentName, String outputFormat) Returns the environmentId for the specified environmentName.getEnvironmentName(int environmentId) Returns the environmen name for the specified environmentId.getEnvironmentNameAs(int environmentId, String outputFormat) Returns the environmen name for the specified environmentId.Returns the list of environments along with all the details regarding each environment.getEnvironmentsAs(String outputFormat) Returns the list of environments along with all the details regarding each environment.getLogicallyDeletedCodeValues(int codesetId) Returns the list of logically deleted codevalue objects for the specified codesetId.getLogicallyDeletedCodeValuesAs(int codesetId, String outputFormat) Returns the list of logically deleted codevalue objects for the specified codesetId.getPublishedCodesets(int environmentId) Returns the list of published codeset objects for the specified environmentId.getPublishedCodesetsAs(int environmentId, String outputFormat) Returns the list of published codesets for the specified environmentId.getRetiredCodesets(int categoryId) Returns the list of retired codeset objects for the specified categoryId.getRetiredCodesetsAs(int categoryId, String outputFormat) Returns the list of retired codeset objects for the specified categoryId.getValidValues(Node.NodeType nodeType, int nodeId) Returns the list of code value objects for the specified nodeId where each code value object contains code name, code value, code description and codeset name in which code value is present etc....getValidValues(Node.NodeType nodeType, int nodeId, int fillOptions) Returns the list of codeValue objects for the specified nodeType and nodeId.getValidValuesAs(String nodeType, int nodeId, int fillOptions, String outputFormat) Returns the list of codeValue objects for the specified nodeType and nodeId.importCodesets(int categoryId, ImportHelper importHelper) Imports the codesets on the specified categoryId.importCodesetsAs(int categoryId, String importHelper, String outputFormat) Imports the codesets on the specified categoryId.importCodeValues(int codesetId, ImportHelper importHelper) Imports the codevalues on the specified codesetId.importCodeValuesAs(int codesetId, String importHelper, String outputFormat) Imports the codevalues on the specified codesetId.publishCodeset(Codeset codeset) Codeset is published for the specified codeset object.publishCodesetAs(String codeset, String outputFormat) Codeset is published for the specified codeset object.publishCodesets(List<Codeset> codesets) Codesets are published for the specified list of codeset objects.publishCodesetsAs(String codesets, String outputFormat) Codesets are published for the specified list of codeset objects.restoreCodeValues(List<Integer> codeValueIds) Retired codevalues can be restored for the specified codeValueIds.restoreCodeValuesAs(String codeValueIds, String outputFormat) Retired codevalues can be restored for the specified codeValueIds.retireCodeset(int codesetId) Codeset is retired for the given codesetId.retireCodesetAs(int codesetId, String outputFormat) Codeset is retired for the given codesetId.retireCodesets(List<Integer> codesetIds) Codesets are retired for the given list of codesetIds.retireCodesetsAs(String codesetIds, String outputFormat) Codesets are retired for the given list of codesetIds.unassignExistingCodesets(Node.NodeType nodeType, int nodeId) Unassigns existing codesets for the specified nodeId of nodeType.unassignExistingCodesetsAs(String nodeType, int nodeId, String outputFormat) Unassigns existing codesets for the specified nodeType of nodeId.unpublishCodeset(int codesetId) Codeset is unpublished for the specified codesetId.unpublishCodesetAs(int codesetId, String outputFormat) Codeset is unpublished for the specified codesetId.unpublishCodesets(List<Integer> codesetIds) Codesets are unpublished for the specified list of codesetIds.unpublishCodesetsAs(String codesetIds, String outputFormat) Codesets are unpublished for the specified list of codesetIds.updateCategories(List<Category> categories) Updates the categories with the specified list of category objects.updateCategoriesAs(String categories, String outputFormat) Updates the list of categories with the specified category objects.updateCategory(Category category) Updates the category with the specified category object.updateCategoryAs(String category, String outputFormat) Updates the category with the specified category object.updateCodeset(Codeset codeset) Updates the codeset with the specified codeset object.updateCodesetAs(String codeset, String outputFormat) Updates the codeset with the specified codeset object.updateCodesets(List<Codeset> codesets) Updates the codeset with the specified codeset objects list.updateCodesetsAs(String codesets, String outputFormat) Updates the codesets with the specified codeset objects list.updateCodeValue(CodeValue codeValue) Updates codevalue for the code id specified in the codeValue object.updateCodeValue(CodeValue codeValue, boolean updateExtendedProperties) Updates codevalue for the code id specified in the codevalue object and also updates its extended properties only if updateExtendedProperties flag is true.updateCodeValueAs(String codeValueObjJson, boolean updateExtendedProperties, String outputFormat) Updates codevalue for the codeId specified in the codevalue object and also updates its extended properties only if updateExtendedProperties flag is true.updateCodeValues(List<CodeValue> codeValues) Updates list of codevalues for the code id specified in the list of each codevalue object.updateCodeValues(List<CodeValue> codeValues, boolean updateExtendedProperties) Updates list of codevalues for the code id specified in the each codevalue object and also updates its corresponding extended properties only if updateExtendedProperties flag is true.updateCodeValuesAs(String codeValuesObjJsonArray, boolean updateExtendedProperties, 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.updateEnvironment(CSMEnvironment csmEnvironment) Updates the environment with the specified environment object.updateEnvironmentAs(String environment, String outputFormat) Updates the environment with the specified environment object.versionCodeset(Codeset codeset) Codeset is versioned for the specified codeset object.versionCodesetAs(String codeset, String outputFormat) Codeset is versioned for the specified codeset object.versionCodesets(List<Codeset> codesets) Codesets are versioned for the specified list of codeset objects.versionCodesetsAs(String codesets, String outputFormat) Codesets are versioned for the specified list of codeset objects.Methods inherited from class com.ads.api.util.BaseUtil
getAccessToken, getAccessTokenType, getTokenType, getUserDetails, permissionDeniedMessage, permissionDeniedStatus, setAccessToken, setAccessTokenType
-
Method Details
-
updateCodeValue
Updates codevalue for the code id specified in the codeValue object. Specification of code id in the codeValue object is mandatory.
If codevalue is updated successfully,RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeValue- CodeValue- Returns:
- RequestStatus object.
- Since:
- 8.2.1
-
updateCodeValues
Updates list of codevalues for the code id specified in the list of each codevalue object. Specification of code id in each codevalue object is mandatory.
If codevalues are updated successfully,RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeValues- List- Returns:
- RequestStatus object.
- Since:
- 8.2.1
-
updateCodeValue
Updates codevalue for the code id specified in the codevalue object and also updates its extended properties only if updateExtendedProperties flag is true. Specification of code id in the codevalue object and updateExtendedProperties flag are mandatory.
If codevalue is updated successfully,RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeValue- CodeValueupdateExtendedProperties- boolean- Returns:
- RequestStatus object.
- Since:
- 8.2.1
-
updateCodeValues
Updates list of codevalues for the code id specified in the each codevalue object and also updates its corresponding extended properties only if updateExtendedProperties flag is true. Specification of codeId in the each codevalue object and updateExtendedProperties flag are mandatory.
If codevalues are updated successfully,RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeValues- ListupdateExtendedProperties- boolean- Returns:
- RequestStatus object.
- Since:
- 8.2.1
-
updateCodeValueAs
public String updateCodeValueAs(String codeValueObjJson, boolean updateExtendedProperties, String outputFormat) Updates codevalue for the codeId specified in the codevalue object and also updates its extended properties only if updateExtendedProperties flag is true. Specification of codeId in the codevalue object and updateExtendedProperties flag are mandatory.
The supported date formats for the startDate and endDate are long value(1460701213000), YYYY-MM-DD and YYYY-MM-DDTHH:mm:ss formats.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeValueObjJson- StringupdateExtendedProperties- booleanoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalue is updated 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 '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
} - Since:
- 8.2.1
-
updateCodeValuesAs
public String updateCodeValuesAs(String codeValuesObjJsonArray, boolean updateExtendedProperties, 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.
Specification of codeId in the each codevalue object and updateExtendedProperties flag are mandatory.
The supported date formats for the startDate and endDate are long value(1460701213000), YYYY-MM-DD and YYYY-MM-DDTHH:mm:ss formats.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeValuesObjJsonArray- StringupdateExtendedProperties- booleanoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalues are updated 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 '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
}
] - Since:
- 8.2.1
-
createCategory
Category is added for the specified category object. Specifying the category name and category type are mandatory, while creating the category. To create a sub category specifying the parent category id is mandatory.
If category is added successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
category- Category Object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
createCategory
public RequestStatus createCategory(int parentCategoryId, Category.Type categoryType, String categoryName) Category is added for the specified categoryName and categoryType. Specifying the categoryName and categoryType are mandatory, while creating the category. To create a sub category specifying the parentCategoryId is mandatory.
If category is added successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGSparentCategoryId- intcategoryName- String- Returns:
- RequestStatus Object
- Since:
- 12.0
-
createCategories
Categories are added for the specified list of category objects. Specification of category name and category type in each category object are mandatory. To create a sub category specifying the parent category id is mandatory.
If categories are added successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categories- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
updateCategory
Updates the category with the specified category object. All the information pertaining to the category can be updated. Specifying the category id and category name are mandatory to update the category.
If category details are updated successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
category- Category Object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
updateCategories
Updates the categories with the specified list of category objects. All the information related to the categories can be updated. Specification of category id and category name in each category object is mandatory to update the categories.
If categories details are updated successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categories- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCategory
Deletes the category with the specified categoryId and categoryType. Specifying the categoryId and categoryType are mandatory to delete a particular category.
If the category is deleted all its associated data will also be deleted.
If category is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCategory
Deletes the category with the specified category object. Specifying the categoryId and categoryType are mandatory to delete a particular category.
If the category is deleted all its associated data will also be deleted.
If category is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
category- Category object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCategory
public RequestStatus deleteCategory(int parentCategoryId, Category.Type categoryType, String categoryName) Deletes the category with the specified categoryName and categoryType. Specifying the categoryName and categoryType are mandatory to delete a particular category. To delete a sub category specifying the parentCategoryId is mandatory.
If the category is deleted all its associated data will also be deleted.
If category is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGSparentCategoryId- intcategoryName- String- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCategories
Deletes the categories with the specified list of categoryIds and categoryType. Specifying the categoryIds list and categoryType are mandatory.
If the categories are deleted all its associated data will also be deleted.
If categories are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryIds- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
getCategory
Returns the category object for the specified categoryId and categoryType. Specifying the categoryId and categoryType are mandatory.
It returns all the details like category name, description, category type, parentCategoryId, and auditHistory details etc..- Parameters:
categoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryId- int- Returns:
- String - Category object in the form of JSON String.
- Throws:
Exception- Since:
- 12.0
-
getCategory
public Category getCategory(int categoryId, Category.Type categoryType, int fillOptions) throws Exception Returns the category object for the specified categoryId and categoryType. Specifying the categoryId, categoryType are mandatory. If you want to return the category object filled with codeset and codevalues specifying the value of fillOption is needed.
Here fillOptions parameter takes value of eitherAPIConstants.CSMFillOptions.CODE_SETSorAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the category object and if you want to get category with codesets and codevalues then fillOptions parameter value will be be addition of CODE_SETS value and CODE_VALUES value i.e 4+1 = 5 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like category name, category type, description, parentCategoryId, and auditHistory details etc..- Parameters:
categoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryId- intfillOptions-APIConstants.CSMFillOptionsint- Returns:
- String - Category object in the form of JSON String.
- Throws:
Exception- Since:
- 12.0
-
getCategory
public Category getCategory(int parentCategoryId, Category.Type categoryType, String categoryName) throws Exception Returns the category object for the specified parentCategoryId, categoryType and categoryName. Specifying the parentCategoryId, categoryType and categoryName are mandatory.
It returns all the details like category name, category type, description, parentCategoryId, and auditHistory details etc..- Parameters:
categoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGSparentCategoryId- intcategoryName- String- Returns:
- String - Category object in the form of JSON String.
- Throws:
Exception- Since:
- 12.0
-
getCategories
public List<Category> getCategories(List<Integer> categoryIds, Category.Type categoryType, int fillOptions) throws Exception Returns the list of category objects for the specified categoryIds list and categoryType. Specifying the categoryIds list and categoryType are mandatory.If you want to return the category object filled with codeset and codevalues specifying the value of fillOption is needed.
Here fillOptions parameter takes value of eitherAPIConstants.CSMFillOptions.CODE_SETSorAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the category object and if you want to get category with codesets and codevalues then fillOptions parameter value will be be addition of CODE_SETS value and CODE_VALUES value i.e 4+1 = 5 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like category name, category type, description, parentCategoryId, and auditHistory details etc..- Parameters:
categoryType- String Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryIds- ListfillOptions-APIConstants.CSMFillOptionsint- Returns:
- List of category objects in the form of JSON String
- Throws:
Exception- Since:
- 12.0
-
getCategories
public List<Category> getCategories(List<Integer> categoryIds, Category.Type categoryType) throws Exception Returns the list of category objects for the specified categoryIds list and categoryType. Specifying the categoryIds list and categoryType are mandatory.
It returns all the details like category name, category type, description, parentCategoryId, and auditHistory details etc..- Parameters:
categoryIds- ListcategoryType- String Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGS- Returns:
- List of category objects in the form of JSON String
- Throws:
Exception- Since:
- 12.0
-
getCategoryId
public int getCategoryId(int parentCategoryId, Category.Type categoryType, String categoryName) throws Exception Returns the category id for the given categoryName and categoryType. Specifying the categoryName and categoryType are mandatory. In order to return the sub category id specifying the parentCategoryId is mandatory.
It returns the categoryId- Parameters:
categoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGS.parentCategoryId- intcategoryName- String- Returns:
- categoryId int
- Throws:
Exception- Since:
- 12.0
-
createCodeset
Codeset is added for the specified codeset object and also codevalues are added only if the saveCodeValues flag is true. Specifying the codeset name, category id and saveCodeValues flag are mandatory, while creating the codeset.
If codeset is created successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeset- Codeset ObjectsaveCodeValues- boolean- Returns:
- RequestStatus Object
- Since:
- 12.0
-
createCodeset
Codeset is added for the specified categoryId, codeset object and also code values are added only if the saveCodeValues flag is true. Specifying the codeset name, category id and saveCodeValues flag are mandatory, while creating the code set.
If codeset is created successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryId- intcodeset- CodeSet ObjectsaveCodeValues- boolean- Returns:
- RequestStatus Object
- Since:
- 12.0
-
createCodesets
Codesets are added for the specified list of codeset objects and also codevalues are added only if the saveCodeValues flag is true. Specification of codeset name, category id in each codeset object and saveCodeValues flag are mandatory.
If codesets are created successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesets- ListsaveCodeValues- boolean- Returns:
- RequestStatus Object
- Since:
- 12.0
-
createCodesets
Codesets are added for the specified list of codeset objects and also code values are added only if the saveCodeValues flag is true. Specification of codeset name, category id in each codeset object and saveCodeValues flag are mandatory.
If codesets are created successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryId- intcodesets- List of codeset objectssaveCodeValues- boolean- Returns:
- RequestStatus Object
- Since:
- 12.0
-
updateCodeset
Updates the codeset with the specified codeset object. All the information related to the codeset can be updated. Specifying the codeset id, codeset name and category id are mandatory to update the codeset.
If codeset details are updated successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeset- Codeset Object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
updateCodesets
Updates the codeset with the specified codeset objects list. All the information related to the codesets can be updated. Specification of codeset id, codeset name and category id in each codeset object are mandatory to update the codesets.
If codesets details are updated successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesets- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodeset
Deletes the codeset with the specified codesetId.Specifying the codesetId is mandatory to delete a particular codeset.
If the codeset is deleted all its associated data will also be deleted.
If codeset is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodeset
Deletes the codeset with the specified codeset object. Specifying the codesetId is mandatory to delete a particular code set.
If the codeset is deleted all its associated data will also be deleted.
If codeset is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeset- CodeSet object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodeset
Deletes the codeset with the specified codesetId and versionMode. Specifying the codesetId is mandatory to delete a particular codeset. If versionMode is not specified current version codeset will be deleted.
Version mode has values ALL_VERSIONS, CURRENT_VERSION.
ALL_VERSIONS - Deletes all codesets.
CURRENT_VERSION - Deletes the present/current version.
If the codeset is deleted all its associated data will also be deleted.
If codeset is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetId- intversionMode- VersionMode type - Valid values are ALL_VERSIONS/CURRENT_VERSION- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodesets
Deletes the codesets with the specified list of codesetIds. Specifying the codesetIds list is mandatory. All current version codesets will be deleted.
If codesets are deleted all its associated data will also be deleted.
If codesets are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetIds- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodesets
Deletes the codeset with the specified codesetIds list and versionMode. Specifying the codesetIds list is mandatory. If versionMode is not specified all current version codesets will be deleted.
Version mode has values ALL_VERSIONS, CURRENT_VERSION.
ALL_VERSIONS - Deletes all codesets.
CURRENT_VERSION - Deletes the present/current version.
If codesets are deleted all its associated data will also be deleted.
If codesets are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetIds- ListversionMode- VersionMode type - Valid values are ALL_VERSIONS/CURRENT_VERSION.- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodesets
Deletes the list of codesets for the given categoryId. Specifying the categoryId is mandatory to delete codesets.
If the codesets are deleted all its associated data will also be deleted.
If codesets are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodesets
Deletes the list of codesets for the specified categoryId and versionMode Specifying the categoryId is mandatory to delete codesets. If versionMode is not specified all current version codesets will be deleted.
Version mode has values ALL_VERSIONS, CURRENT_VERSION.
ALL_VERSIONS - Deletes all codesets.
CURRENT_VERSION - Deletes the present/current version.
If the codesets are deleted all its associated data will also be deleted.
If codesets are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryId- intversionMode- VersionMode type - Valid values are ALL_VERSIONS/CURRENT_VERSION.- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodesets
public RequestStatus deleteCodesets(int categoryId, List<String> codesetNames, APIConstants.VersionMode versionMode) Deletes the list of codesets for the specified categoryId, codesetNames list and versionMode. Specifying the categoryId and codesetNames list are mandatory to delete codesets. If versionMode is not specified all current version codesets will be deleted.
Version mode has values ALL_VERSIONS, CURRENT_VERSION.
ALL_VERSIONS - Deletes all codesets.
CURRENT_VERSION - Deletes the present/current version.
If the codesets are deleted all its associated data will also be deleted.
If codesets are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
categoryId- intcodesetNames- ListversionMode- - VersionMode type - Valid values are ALL_VERSIONS/CURRENT_VERSION.- Returns:
- RequestStatus Object
- Since:
- 12.0
-
getCodeset
Returns the codeset object for the specified codesetId. Specifying the codesetId is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
codesetId- int- Returns:
- Codeset Object
- Throws:
Exception- Since:
- 12.0
-
getCodeset
Returns the codeset object for the specified codesetId. Specifying the codesetId is mandatory. If you want to return the codeset object with codevalues specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
codesetId- intfillOptions-APIConstants.CSMFillOptionsint- Returns:
- Codeset Object
- Throws:
Exception- Since:
- 12.0
-
getCodeset
Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory. Only active version codesets will be returned in this method
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
categoryId- intcodesetName- String- Returns:
- Codeset Object
- Throws:
Exception- Since:
- 12.0
-
getCodeset
Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory. If you want to return the codeset object with codevalues specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
categoryId- intcodesetName- StringfillOptions-APIConstants.CSMFillOptionsint- Returns:
- Codeset Object
- Throws:
Exception- Since:
- 12.0
-
getCodeset
Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory. Active/Passive codesets based on version will be returned in this method
It returns all the details like codeset name, description, categoryId, and auditHistory details.- Parameters:
categoryId- intcodesetName- Stringversion- float- Returns:
- Codeset Object
- Throws:
Exception- Since:
- 12.0
-
getCodeset
public Codeset getCodeset(int categoryId, String codesetName, float version, int fillOptions) throws Exception Returns the codeset object for the specified categoryId, codesetName and version. Specifying the categoryId, codesetName and version are mandatory. Active/Passive codeset based on version will be returned in this method. If you want to return the codeset object filled with codevalues specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
categoryId- intcodesetName- Stringversion- floatfillOptions-APIConstants.CSMFillOptionsint- Returns:
- Codeset Object
- Throws:
Exception- Since:
- 12.0
-
getCodesetId
Returns the codeset id for the specified categoryId and codesetName. Specifying the categoryId and codesetName are mandatory. Only active version codeset id will be returned in this method.
It returns codeset id.- Parameters:
categoryId- intcodesetName- String- Returns:
- codesetId int
- Throws:
Exception- Since:
- 12.0
-
getCodesets
Returns the list of codeset objects for the specified categoryId. Specifying the categoryId is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
categoryId- int- Returns:
- List of Codesets
- Throws:
Exception- Since:
- 12.0
-
getCodesets
Returns the list of codeset objects for the specified categoryId. Specifying the categoryId is mandatory. If you want to return the codeset objects filled with codevalues specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
categoryId- intfillOptions-APIConstants.CSMFillOptionsint- Returns:
- List of Codesets
- Throws:
Exception- Since:
- 12.0
-
getCodesets
Returns the list of codeset objects for the specified codesetIds list. Specifying the codesetIds list is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
codesetIds- List- Returns:
- List of Codesets
- Throws:
Exception- Since:
- 12.0
-
getCodesets
Returns the list of codeset objects for the specified codesetIds list. Specifying the codesetIds list is mandatory. If you want to return the codeset objects filled with codevalues specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
codesetIds- ListfillOptions-APIConstants.CSMFillOptionsint- Returns:
- List of Codesets
- Throws:
Exception- Since:
- 12.0
-
getPublishedCodesets
Returns the list of published codeset objects for the specified environmentId. Specifying the environmentId is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
environmentId- int- Returns:
- List of PublishedCodesets
- Throws:
Exception- Since:
- 12.0
-
getRetiredCodesets
Returns the list of retired codeset objects for the specified categoryId. Specifying the categoryId is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Parameters:
categoryId- int- Returns:
- List of RetiredCodesets
- Throws:
Exception- Since:
- 12.0
-
getAllRetiredCodesets
Returns the list of all retired codesets present in enterprise codesets.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..- Returns:
- List of RetiredCodesets
- Throws:
Exception- Since:
- 12.0
-
publishCodeset
Codeset is published for the specified codeset object. Specifying the codeset id, change description and publish environments list are mandatory to publish codeset.
If codeset is published successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeset- Codeset Object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
publishCodesets
Codesets are published for the specified list of codeset objects. Specification of codeset id, change description and publish environments list in each codeset object are mandatory.
If codeset are published successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesets- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
unpublishCodeset
Codeset is unpublished for the specified codesetId. Specifying the codesetId is mandatory to unpublish codeset.
If codeset is unpublished successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
unpublishCodesets
Codesets are unpublished for the specified list of codesetIds. Specifying the list of codesetIds is mandatory to unpublish codesets.
If codesets are unpublished successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetIds- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
retireCodeset
Codeset is retired for the given codesetId. Specifying the codesetId is mandatory. Retired codesets cannot be restored.
If codeset is retired successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
retireCodesets
Codesets are retired for the given list of codesetIds. specifying the list of codesetIds is mandatory. Retired codesets cannot be restored.
If codesets are retired successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetIds- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
versionCodeset
Codeset is versioned for the specified codeset object. Creates a copy of entire codeset with new codeset Id and passive state. Specifying the codeset id, change description are mandatory to version the codeset.
If codeset is versioned successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeset- Codeset Object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
versionCodesets
Codesets are versioned for the specified list of codeset objects. Specifying the codeset id, change description are mandatory to version the codesets.
If codesets are versioned successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesets- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
cloneCodeset
public RequestStatus cloneCodeset(int srcCodesetId, int tgtCategoryId, boolean createNewVersionIfExists) Codeset is cloned for the given srcCodesetId to the given tgtCategoryId. Specifying the srcCodesetId and tgtCategoryId are mandatory to clone the codeset.
If codeset is cloned successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
srcCodesetId- intcreateNewVersionIfExists- booleantgtCategoryId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
createEnvironment
CSMEnvironment is added for the specified environment object. Specifying the environment name is mandatory, while creating the environment.
If environment is created successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
csmEnvironment- CSMEnvironment Object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
createEnvironments
List of environments are added for the specified list of environment objects. Specifying the environment name is mandatory, while creating the environments.
If environments are created successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
csmEnvironments- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
updateEnvironment
Updates the environment with the specified environment object. All the information pertaining to the environment can be updated. Specifying the environment id is mandatory to update the environment.
If environment details are updated successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
csmEnvironment- CSMEnvironment Object- Returns:
- RequestStatus Object
- Since:
- 12.0
-
getEnvironmentId
Returns the environment id for the specified environment name. Specifying the environment name is mandatory.
It returns the environment id- Parameters:
environmentName- String- Returns:
- environmentId int
- Throws:
Exception- Since:
- 12.0
-
getEnvironmentName
Returns the environmen name for the specified environmentId. Specifying the environmentId is mandatory.
It returns the environment name- Parameters:
environmentId- int- Returns:
- EnvironmentName String
- Throws:
Exception- Since:
- 12.0
-
getEnvironment
Returns the environment object for the specified environmentId. Specifying the environmentId is mandatory.
It returns all the details like environment name, description, auditHistory details etc..- Parameters:
environmentId- int- Returns:
- CSMEnvironment Object
- Throws:
Exception- Since:
- 12.0
-
getEnvironments
Returns the list of environments along with all the details regarding each environment.
Returns all the available environments as a list of environment object.- Returns:
- List of Environments
- Throws:
Exception- Since:
- 12.0
-
deleteEnvironment
Deletes the environment with the specified environmentId. Specifying the environmentId is mandatory to delete a particular environment.
If the environment is deleted all its associated data will also be deleted.
If environment is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
environmentId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteEnvironment
Deletes the environment with the specified environmen object. Specifying the environmentId is mandatory to delete a particular environment.
If the environment is deleted all its associated data will also be deleted.
If environment is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
csmEnvironment-- Returns:
- Since:
- 12.0
-
deleteEnvironment
Deletes the environment with the specified environmentName. Specifying the environmentName is mandatory to delete a particular environment.
If the environment is deleted all its associated data will also be deleted.
If environment is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
environmentName- String- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteEnvironments
Deletes the environments with the specified list of environmentIds. Specifying the environmentIds list is mandatory.
If the environments are deleted all its associated data will also be deleted.
If environments are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
environmentIds- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
addCodeValue
Codevalue is added for the specified codevalue object and also extended properties are added only if the saveExtendedProperties flag is true. Specifying the codeset id, code name, value and saveExtendedProperties flag are mandatory, while creating the codevalue.
If codevalue is added successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeValue- CodeValue ObjectsaveExtendedProperties- boolean- Returns:
- RequestStatus Object
- Since:
- 12.0
-
addCodeValue
public RequestStatus addCodeValue(int codesetId, CodeValue codeValue, boolean saveExtendedProperties) Codevalue is added for the specified codesetId, codevalue object and also extended properties are added only if the saveExtendedProperties flag is true. Specifying the codeset id, code name, value and saveExtendedProperties flag are mandatory, while adding the codevalue.
If codevalue is added successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetId- intcodeValue- CodeValuesaveExtendedProperties- boolean- Returns:
- RequestStatus Object
- Since:
- 12.0
-
addCodeValues
Codevalues are added for the specified list of codevalue objects and also extended properties are added only if the saveExtendedProperties flag is true. Specification of codeset id, code name, value in each codevalue object and saveExtendedProperties flag are mandatory.
If codevalues are added successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeValues- ListsaveExtendedProperties- boolean- Returns:
- RequestStatus Object
- Since:
- 12.0
-
addCodeValues
public RequestStatus addCodeValues(int codesetId, List<CodeValue> codeValues, boolean saveExtendedProperties) Codevalues are added for the specified codesetId list of codevalue objects and also extended properties are added only if the saveExtendedProperties flag is true. Specification of codeset id, code name, value in each codevalue object and saveExtendedProperties flag are mandatory.
If codevalues are added successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetId- intcodeValues- List of CodeValue objectssaveExtendedProperties- boolean- Returns:
- RequestStatus Object
- Since:
- 12.0
-
getCodeValues
Returns the list of codevalue objects for the specified categoryId and codesetName. Specifying the categoryId and codesetName are mandatory.
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..- Parameters:
categoryId- intcodesetName- String- Returns:
- List of Codevalue Objects
- Throws:
Exception- Since:
- 12.0
-
getCodeValues
public List<CodeValue> getCodeValues(int categoryId, String codesetName, int fillOptions) throws Exception Returns the list of codevalue objects for the specified categoryId and codesetName. Specifying the categoryId and codesetName are mandatory. Extended properties of each codevalue object are returned based on the fillOptions parameter value passed with reference/addition ofAPIConstants.CSMFillOptions.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESIf odeValue's extended properties are not required then pass 0(zero) which is default value for fillOptions
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..- Parameters:
categoryId- intcodesetName- StringfillOptions-APIConstants.CSMFillOptionsint- Returns:
- List of codevalue objects
- Throws:
Exception- Since:
- 12.0
-
getCodeValues
Returns the list of codevalue objects for the specified codesetId. Specifying the codesetId is mandatory.
It returns all the details like code name, value, description, codesetId, and auditHistory details etc- Parameters:
codesetId- int- Returns:
- List of codevalue objects
- Throws:
Exception- Since:
- 12.0
-
getCodeValues
Returns the list of codevalue objects for the specified codesetId. Specifying the codesetId is mandatory. Extended properties of each codevalue object are returned based on the fillOptions parameter value passed with reference/addition ofAPIConstants.CSMFillOptions.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESIf codeValue's extended properties are not required then pass 0(zero) which is default value for fillOptions
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..- Parameters:
codesetId- intfillOptions-APIConstants.CSMFillOptionsint- Returns:
- List of codevalue objects
- Throws:
Exception- Since:
- 12.0
-
getLogicallyDeletedCodeValues
Returns the list of logically deleted codevalue objects for the specified codesetId. Specifying the codesetId is mandatory.
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..- Parameters:
codesetId- int- Returns:
- List of LogicallyDeletedCodeValues
- Throws:
Exception- Since:
- 12.0
-
restoreCodeValues
Retired codevalues can be restored for the specified codeValueIds. Specifying the codeValueIds list is mandatory.- Parameters:
codeValueIds- List- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodeValue
Deletes the code value with the specified codeValueId and deleteMode. Specifying the codeValueId is mandatory to delete a particular codeValue. If deleteMode is not specified the code value object will be purge deleted. The retired code values can be restored.
Delete mode has values RETIRE and PURGE.
RETIRE - The temporary delete can be restored.
PURGE - The permanent delete, cannot be restored.
If the codeValue is deleted all its associated data will also be deleted.
If code value is deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeValueId- intdeleteMode- DeleteMode type - Valid values are RETIRE/PURGE.- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodeValues
public RequestStatus deleteCodeValues(List<Integer> codeValueIds, APIConstants.DeleteMode deleteMode) Deletes the list of code value objects with the specified codeValueIds list and deleteMode. Specifying the codeValueIds list is mandatory to delete code values. If deleteMode is not specified the code value objects will be purge deleted. The retired code values can be restored.
Delete mode has values RETIRE, PURGE.
RETIRE - The temporary delete can be restored.
PURGE - The permanent delete, cannot be restored.
If the code values are deleted all its associated data will also be deleted.
If code values are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codeValueIds- ListdeleteMode- DeleteMode type - Valid values are RETIRE/PURGE.- Returns:
- RequestStatus Object
- Since:
- 12.0
-
deleteCodeValues
public RequestStatus deleteCodeValues(int codesetId, APIConstants.DeleteMode deleteMode) throws Exception Deletes the list of codevalue objects with the specified codesetId and deleteMode. Specifying the codesetId is mandatory to delete codevalues. If deleteMode is not specified the codevalue object will be purge deleted. The retired code values can be restored.
Delete mode has values RETIRE, PURGE.
RETIRE - The temporary delete can be restored.
PURGE - The permanent delete, cannot be restored.
If the codevalues are deleted all its associated data will also be deleted.
If codevalues are deleted successfully, RequestStatus.isRequestSuccess() will return true otherwise false.- Parameters:
codesetId- intdeleteMode- DeleteMode type - Valid values are RETIRE/PURGE.- Returns:
- RequestStatus Object
- Throws:
Exception- Since:
- 12.0
-
importCodesets
Imports the codesets on the specified categoryId. Specifying the filePath and filePathType are mandatory in importHelper object. The supported values for the filePathType are ABSOLUTE, RELATIVE. Here the the file in filePath given must be in xlsx or xls format only.
Specifying the categoryId is mandatory.- Parameters:
categoryId- intimportHelper- ImportHelper- Returns:
- RequestStatus Object
- Since:
- 12.0
-
importCodeValues
Imports the codevalues on the specified codesetId. Specifying the filePath and filePathType are mandatory in importHelper object. The supported values for the filePathType are ABSOLUTE, RELATIVE. Here the the file in filePath given must be in xlsx or xls format only.
Specifying the codesetId is mandatory.- Parameters:
codesetId- intimportHelper- ImportHelper- Returns:
- RequestStatus Object
- Since:
- 12.0
-
exportCodeValues
Codevalues are exported to excel for the specified codesetId. Specifying the codesetId is mandatory.
All the codevalues of the specified codesetId are exported to excel. The exported filePath will be available in the userObject of requestStatus object and the filePath will be RELATIVE.- Parameters:
codesetId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
exportCodesets
Codesets are exported to excel for the specified categoryId. All the codesets of the specified categoryId are exported to excel, and sub category codesets are included only if the includeSubCategories flag is true. Specifying the categoryId is mandatory.
The exported filePath will be available in the userObject of requestStatus object and the filePath will be RELATIVE. Specifying the categoryId and includeSubCategories flag are mandatory.- Parameters:
categoryId- int- Returns:
- RequestStatus Object
- Since:
- 12.0
-
exportAll
All the codesets present in enterprise codesets are exported to excel. The exported filePath will be available in the userObject of requestStatus object and the filePath will be RELATIVE.- Returns:
- RequestStatus Object
- Since:
- 12.0
-
assignCodeset
Assigns the specified codeset object to the specified nodeType and nodeId. Specifying the codeset object having codesetId, nodeType and nodeId are are mandatory.
NodeType can be either SM_COLUMN or BGM_TERM. Depending upon the nodeType, nodeId will be either columnId or termId. If the codeset is assigned successfully, RequestStatus.isRequestSuccess() returns true otherwise returns false.- Parameters:
nodeType- NodenodeId- intcodeset- Codeset- Returns:
- RequestStatus object
- Since:
- 12.0
-
assignCodesets
Assigns the specified list of codesets to the specified nodeType and nodeId. Specifying the nodeType, nodeId and list of codesets having codesetId are mandatory.
NodeType can be either SM_COLUMN or BGM_TERM. Depending upon the nodeType, nodeId will be either columnId or termId. If the codesets are assigned successfully, RequestStatus.isRequestSuccess() returns true otherwise returns false.- Parameters:
nodeType- NodenodeId- intcodesets- List of Codeset objects- Returns:
- RequestStatus object
- Since:
- 12.0
-
assignCodesets
public RequestStatus assignCodesets(Node.NodeType nodeType, int nodeId, List<Integer> codesetIds, boolean unassignExisting) Assigns codesets of specified codeset ids to the specified nodeType and nodeId. Specifying the nodeType, nodeId, list of codeset ids and unassignExisting flag are mandatory.
UnassignExisting flag can be either true or false. If it is true then existing codesets of specified nodeId are unassigned if any and the new codesets are assigned. If it is false then the new codesets are assigned without unassiging existing codesets of nodeId.
NodeType can be either SM_COLUMN or BGM_TERM. Depending upon the nodeType, nodeId will be either columnId or termId. If the codeSetIds are assigned successfully, RequestStatus.isRequestSuccess() returns true otherwise returns false.- Parameters:
nodeType- NodenodeId- intcodesetIds- ListunassignExisting- boolean- Returns:
- RequestStatus object
- Since:
- 12.0
-
unassignExistingCodesets
Unassigns existing codesets for the specified nodeId of nodeType. Specifying the nodeType and nodeId are mandatory.
Specification of nodeId and nodeType are mandatory, based on these it unassigns the existing codesets of a node.
NodeType can be either BGM_TERM or SM_COLUMN. Depending upon the nodeType, nodeId will be either termId or columnId. If the codeSets are unassigned successfully, RequestStatus.isRequestSuccess() returns true otherwise returns false.- Parameters:
nodeType- NodenodeId- int- Returns:
- RequestStatus object
- Since:
- 12.0
-
getAssignedCodesets
Returns the list of codeset objects for the specified nodeType and nodeId where each codeset object contains codeset name, codeset description, codeset status and category name in which codeset is present etc...
Specification of nodeType and nodeId are mandatory. NodeType can be either BGM_TERM or SM_COLUMN. Depending upon the nodeType, nodeId will be either termId or columnId.- Parameters:
nodeType- NodenodeId- int- Returns:
- List - Codeset Objects
- Throws:
Exception- Since:
- 12.0
-
getAssignedCodesets
public List<Codeset> getAssignedCodesets(Node.NodeType nodeType, int nodeId, int fillOptions) throws Exception Returns the list of codeset objects for the specified nodeType and nodeId. The returned codeset objects contains all the details pertaining to codeset such as codeset name, codeset description, codeset status and category name in which codeset is present etc.. and also contains details of codeValue and codeValue's extended properties based on the fillOptions parameter value passed with reference/addition ofAPIConstants.SMFillOptions.
Here fillOptions parameter takes value of eitherAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeValues and codeValue extended properties then fillOptions parameter value will be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2=3 and so on.
Specification of nodeType and nodeId are mandatory. NodeType can be either BGM_TERM or SM_COLUMN. Depending upon the nodeType, nodeId will be either termId or columnId.- Parameters:
nodeType- NodenodeId- intfillOptions-APIConstants.CSMFillOptionsint- Returns:
- List - Codeset Objects
- Throws:
Exception- Since:
- 12.0
-
getValidValues
Returns the list of code value objects for the specified nodeId where each code value object contains code name, code value, code description and codeset name in which code value is present etc....
Specification of nodeType and nodeId are mandatory. NodeType can be either BGM_TERM or SM_COLUMN. Depending upon the nodeType, nodeId will be either termId or columnId.- Parameters:
nodeType- NodenodeId- int- Returns:
- List - CodeValue objects
- Throws:
Exception- Since:
- 12.0
-
getValidValues
public List<CodeValue> getValidValues(Node.NodeType nodeType, int nodeId, int fillOptions) throws Exception Returns the list of codeValue objects for the specified nodeType and nodeId. The returned codeValue objects contains all the details pertaining to codeValue such as code name, code value, code description, codeset name in which codeValue is present etc..and also contains details of codeValue's extended properties based on the fillOptions parameter value passed with reference/addition ofAPIConstants.CSMFillOptions.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESwhose value is 2. If fillOptions parameter value is passed as 64 then codeValue's extended properties are returned within the CodeValue object. If CodeValue's extended properties are not required then pass 0(zero) which is default value for fillOptions.
Specification of nodeType and nodeId are mandatory. NodeType can be either BGM_TERM or SM_COLUMN. Depending upon the nodeType, nodeId will be either termId or columnId.- Parameters:
nodeType- NodenodeId- intfillOptions-APIConstants.SMFillOptionsint- Returns:
- List of CodeValue Objects
- Throws:
Exception- Since:
- 12.0
-
createCategoryAs
Category is added for the specified category object. Specifying the category name and category type are mandatory, while creating the category. To create a sub category specifying the parent category id is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
category- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If category 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 'Category' JSON :
{
"categoryType": "",
"name": "",
"parentId": 0,
"description": "",
"auditHistory": null,
"categories": [],
"codesets": []
} - Since:
- 12.0
-
createCategoryAs
public String createCategoryAs(int parentCategoryId, String categoryType, String categoryName, String outputFormat) Category is added for the specified categoryName and categoryType. Specifying the categoryName and categoryType are mandatory, while creating the category. To create a sub category specifying the parentCategoryId is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
parentCategoryId- intcategoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If category 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.
- Since:
- 12.0
-
createCategoriesAs
Categories are added for the specified list of category objects. Specification of category name and category type in each category object is mandatory while creating the category. To create a sub category specifying the parent category id is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categories- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If categories are 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 'Categories' JsonArray :
[
{
"categoryType": "",
"name": "",
"parentId": 0,
"description": "",
"auditHistory": null,
"categories": [],
"codesets": []
},
{
"categoryType": "",
"name": "",
"parentId": 0,
"description": "",
"auditHistory": null,
"categories": [],
"codesets": []
}
] - Since:
- 12.0
-
updateCategoryAs
Updates the category with the specified category object. All the information about the category can be updated. Specifying the category id and category name are mandatory to update the category.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
category- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If category is updated 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 'Category' JSON :
{
"categoryType": "",
"id": 0,
"name": "",
"parentId": 0,
"description": "",
"auditHistory": null,
"categories": [],
"codesets": []
} - Since:
- 12.0
-
updateCategoriesAs
Updates the list of categories with the specified category objects. All the information about the categories can be updated. Specification of category id and category name in each category object is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categories- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If categories are updated 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 'Categories' JsonArray :
[
{
"categoryType": "",
"id": 0,
"name": "",
"parentId": 0,
"description": "",
"auditHistory": null,
"categories": [],
"codesets": []
},
{
"categoryType": "",
"id": 0,
"name": "",
"parentId": 0,
"description": "",
"auditHistory": null,
"categories": [],
"codesets": []
}
] - Since:
- 12.0
-
deleteCategoryAs
Deletes the category with the specified categoryId and categoryType. Specifying the categoryId and categoryType are mandatory to delete a particular category.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcategoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGSoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If category is deleted 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:
- 12.0
-
deleteCategoryAs
public String deleteCategoryAs(int parentCategoryId, String categoryType, String categoryName, String outputFormat) Deletes the category with the specified categoryName and categoryType. Specifying the categoryName and categoryType are mandatory to delete a particular category. To delete a sub category specifying the parentCategoryId is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
parentCategoryId- intcategoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If category is deleted 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:
- 12.0
-
deleteCategoriesAs
Deletes the categories with the specified list of categoryIds and categoryType. Specifying the categoryIds list and categoryType are mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryIds- StringcategoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGSoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If categories are deleted 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:
- 12.0
-
getCategoryAs
Returns the category object for the specified categoryId and categoryType. Specifying the categoryId and categoryType are mandatory.
It returns all the details like category name, description, parentCategoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcategoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGSoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Category object in the form of JSON or XML String.
- Since:
- 12.0
-
getCategoryAs
public String getCategoryAs(int categoryId, String categoryType, int fillOptions, String outputFormat) Returns the category object for the specified categoryId and categoryType. Specifying the categoryId and categoryType are mandatory. If you want to return the category object filled with codeset and codevalues specifying the value of fillOptions is needed.
APIConstants.CSMFillOptions.CODE_SETSorAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the category object and if you want to get category with codesets and codevalues then fillOptions parameter value will be be addition of CODE_SETS value and CODE_VALUES value i.e 4+1 = 5 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like category name, category type, description, parentCategoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcategoryType- StringfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Category object in the form of JSON String.
- Since:
- 12.0
-
getCategoryAs
public String getCategoryAs(int parentCategoryId, String categoryType, String categoryName, String outputFormat) Returns the category object for the specified parentCategoryId, categoryType and categoryName. Specifying the parentCategoryId, categoryType and categoryName are mandatory.
It returns all the details like category name, category type, description, parentCategoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
parentCategoryId- intcategoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Category object in the form of JSON or XML String.
- Since:
- 12.0
-
getCategoriesAs
public String getCategoriesAs(String categoryIds, String categoryType, int fillOptions, String outputFormat) throws Exception Returns the list of category objects for the specified categoryIds list and categoryType.Specifying the categoryIds list and categoryType are mandatory. If you want to return the category object filled with codeset and codevalues specifying the value of fillOptions is needed.
Here fillOptions parameter takes value of eitherAPIConstants.CSMFillOptions.CODE_SETSorAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the category object and if you want to get category with codesets and codevalues then fillOptions parameter value will be be addition of CODE_SETS value and CODE_VALUES value i.e 4+1 = 5 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like category name, category type, description, parentCategoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryIds- StringcategoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGSfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of Category objects in the form of JSON or XML String
- Throws:
Exception- Since:
- 12.0
-
getCategoryIdAs
public String getCategoryIdAs(int parentCategoryId, String categoryType, String categoryName, String outputFormat) Returns the category id for the specified categoryName and categoryType. Specifying the categoryName and categoryType are mandatory.
It returns the category id.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
parentCategoryId- intcategoryType- String - Valid values are - ENTERPRISE_CODESETS/CODESET_MAPPINGScategoryName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - categoryId in the form of JSON or XML String.
- Since:
- 12.0
-
createCodesetAs
Codeset is added for the specified codeset object and also codevalues are added only if the saveCodeValues flag is true. Specifying the codeset name, category id and saveCodeValues flag are mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeset- StringsaveCodeValues- booleanoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset 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 'Codeset' JSON :
{
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": false,
"locked": false,
"lockedBy": "",
"environments": [],
"codeValues": []
} - Since:
- 12.0
-
createCodesetsAs
Codesets are added for the specified list of codeset objects and also codevalues are added only if the saveCodeValues flag is true. Specification of codeset name and category id in each codeset object and saveCodeValues flag are mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesets- StringsaveCodeValues- booleanoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are 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 'Codesets' JsonArray :
[
{
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": false,
"locked": false,
"lockedBy": "",
"environments": [],
"codeValues": []
},
{
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": false,
"locked": false,
"lockedBy": "",
"environments": [],
"codeValues": []
}
] - Since:
- 12.0
-
updateCodesetAs
Updates the codeset with the specified codeset object. All the information about the codeset can be updated. Specifying the codeset id, codeset name and category id are mandatory to update the codeset.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeset- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is updated 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 'Codeset' JSON :
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": false,
"locked": false,
"lockedBy": "",
"environments": [],
"codeValues": []
} - Since:
- 12.0
-
updateCodesetsAs
Updates the codesets with the specified codeset objects list. All the information related to the codesets can be updated. Specification of the codeset id, codeset name, and category id in each codeset object are mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesets- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are updated 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 'Codesets' JsonArray :
[
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": false,
"locked": false,
"lockedBy": "",
"environments": [],
"codeValues": []
},
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": false,
"locked": false,
"lockedBy": "",
"environments": [],
"codeValues": []
}
] - Since:
- 12.0
-
deleteCodesetAs
Deletes the codeset with the specified codesetId.Specifying the codesetId is mandatory to delete a particular codeset.
If the codeset is deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is deleted 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:
- 12.0
-
deleteCodesetAs
Deletes the codeset with the specified codesetId and versionMode. Specifying the codesetId is mandatory to delete particular codeset. If versionMode is not specified current version codeset will be deleted.
Version mode has values ALL_VERSIONS, CURRENT_VERSION.
ALL_VERSIONS - Deletes all codesets.
CURRENT_VERSION - Deletes the present/current version.
If the codeset is deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intversionMode- String - Valid values are ALL_VERSIONS/CURRENT_VERSION.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is deleted 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:
- 12.0
-
deleteCodesetsAs
Deletes the codesets with the specified list of codesetIds. Specifying the codesetIds list is mandatory. .
If codesets are deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetIds- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are deleted 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:
- 12.0
-
deleteCodesetsAs
Deletes the codesets with the specified codesetIds list and versionMode. Specifying the codesetIds list is mandatory. if versionMode is not specified all current version codesets will be deleted.
Version mode has values ALL_VERSIONS, CURRENT_VERSION.
ALL_VERSIONS - Deletes all codesets.
CURRENT_VERSION - Deletes the present/current version.
If codesets are deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetIds- StringversionMode- VersionMode type - Valid values are ALL_VERSIONS/CURRENT_VERSION.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are deleted 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:
- 12.0
-
deleteCodesetsAs
Deletes the list of codesets for the given categoryId. Specifying the categoryId is mandatory to delete codesets.
If the codesets are deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are deleted 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:
- 12.0
-
deleteCodesetsAs
Deletes the list of codesets for the specified categoryId and versionMode Specifying the categoryId is mandatory to delete codesets. If versionMode is not specified all current version codesets will be deleted.
Version mode has values ALL_VERSIONS, CURRENT_VERSION.
ALL_VERSIONS - Deletes all codesets.
CURRENT_VERSION - Deletes the present/current version.
If the codesets are deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intversionMode- String - Valid values are ALL_VERSIONS/CURRENT_VERSION.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are deleted 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:
- 12.0
-
deleteCodesetsAs
public String deleteCodesetsAs(int categoryId, String codesetNames, String versionMode, String outputFormat) Deletes the list of codesets for the specified categoryId, codesetNames and versionMode. Specifying the categoryId, codesetNames list are mandatory to delete codesets. If versionMode is not specified all current version codesets will be deleted.
Version mode has values ALL_VERSIONS, CURRENT_VERSION.
ALL_VERSIONS - Deletes all codesets.
CURRENT_VERSION - Deletes the present/current version.
If the codesets are deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcodesetNames- StringversionMode- String - Valid values are ALL_VERSIONS/CURRENT_VERSION.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are deleted 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:
- 12.0
-
getCodesetAs
Returns the codeset object for the specified codesetId. Specifying the codesetId is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Codeset object in the form of JSON or XML String.
- Since:
- 12.0
-
getCodesetAs
Returns the codeset object for the specified codesetId. Specifying the codesetId is mandatory. If you want to return the codeset object filled with codevalues and its extended properties specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Codeset object in the form of JSON or XML String.
- Since:
- 12.0
-
getCodesetAs
Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory. It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcodesetName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Codeset object in the form of JSON or XML String.
- Since:
- 12.0
-
getCodesetAs
public String getCodesetAs(int categoryId, String codesetName, int fillOptions, String outputFormat) Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory. If you want to return the codeset object filled with codevalues and its extended properties specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcodesetName- StringfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Codeset object in the form of JSON or XML String.
- Since:
- 12.0
-
getCodesetAs
Returns the codeset object for the specified categoryId, codesetName and version. Specifying the categoryId and codesetName are mandatory. Active/Passive codeset based on version will be returned in this method.
It returns all the details like codeset name, description, categoryId, and auditHistory details.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcodesetName- Stringversion- floatoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Codeset object in the form of JSON String.
- Since:
- 12.0
-
getCodesetAs
public String getCodesetAs(int categoryId, String codesetName, float version, int fillOptions, String outputFormat) Returns the codeset object for the specified categoryId and codesetName Specifying the categoryId and codesetName are mandatory. Active/Passive codesets based on version will be returned in this method. If you want to return the codeset object filled with codevalues and its extended properties specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcodesetName- Stringversion- floatfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - Codeset object in the form of JSON String.
- Since:
- 12.0
-
getCodesetIdAs
Returns the codeset id for the specified categoryId and codesetName. Specifying the categoryId and codesetName are mandatory. Only active version codeset id will be returned in this method.
It returns codeset id.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcodesetName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - codeset id in the form of JSON or XML String.
- Since:
- 12.0
-
getCodesetsAs
Returns the list of codeset objects for the specified categoryId. Specifying the categoryId is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of Codeset objects in the form of JSON String
- Since:
- 12.0
-
getCodesetsAs
Returns the list of codeset objects for the specified categoryId. Specifying the categoryId is mandatory. If you want to return the codeset objects filled with codevalues specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeset with codevalues and its extended properties then fillOptions parameter value will be be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2 = 3 and so on. The default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of Codeset objects in the form of JSON String
- Since:
- 12.0
-
getCodesetsAs
Returns the list of codeset objects for the specified codesetIds list. Specifying the codesetIds list is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetIds- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of Codeset objects in the form of JSON String
- Since:
- 12.0
-
getCodesetsAs
Returns the list of codeset objects for the specified codesetIds list. Specifying the codesetIds list is mandatory. If you want to return the codeset objects filled with codevalues specifying the value of fillOptions is mandatory.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUESThe default integer value for fillOptions is 0(zero).
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetIds- StringfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of Codeset objects in the form of JSON or XML String
- Since:
- 12.0
-
getPublishedCodesetsAs
Returns the list of published codesets for the specified environmentId. Specifying the environmentId is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environmentId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of published codeset objects in the form of JSON or XML String
- Since:
- 12.0
-
getRetiredCodesetsAs
Returns the list of retired codeset objects for the specified categoryId. Specifying the categoryId is mandatory.
It returns all the details like codeset name, description, categoryId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of retired codeset objects in the form of JSON or XML String
- Since:
- 12.0
-
publishCodesetAs
Codeset is published for the specified codeset object. Specifying the codeset id, change description, and publish environments list are mandatory to publish codeset.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeset- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is published 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 'Codeset' JSON :
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": "",
"locked": "",
"lockedBy": "",
"environments": [ {
"id": 0,
"name": "" }
],
"codeValues": []
} - Since:
- 12.0
-
publishCodesetsAs
Codesets are published for the specified list of codeset objects. Specification of codeset id, change description and publish environments list in each codeset object are mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesets- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are published 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 'Codesets' JsonArray :
[
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": "",
"locked": "",
"lockedBy": "",
"environments": [ {
"id": 0,
"name": "" }
],
"codeValues": []
},
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": "",
"locked": "",
"lockedBy": "",
"environments": [ {
"id": 0,
"name": "" }
],
"codeValues": []
}
] - Since:
- 12.0
-
unpublishCodesetAs
Codeset is unpublished for the specified codesetId. Specifying the codesetId is mandatory to unpublish codeset.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is unpublished 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:
- 12.0
-
unpublishCodesetsAs
Codesets are unpublished for the specified list of codesetIds. Specifying the list of codesetIds is mandatory to unpublish codesets.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetIds- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are unpublished 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:
- 12.0
-
retireCodesetAs
Codeset is retired for the given codesetId. Specifying the codesetId is mandatory. Retired codesets cannot be restored.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is retired 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:
- 12.0
-
retireCodesetsAs
Codesets are retired for the given list of codesetIds. specifying the list of codesetIds is mandatory. Retired codesets cannot be restored.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetIds- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are retired 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:
- 12.0
-
versionCodesetAs
Codeset is versioned for the specified codeset object. Creates a copy of entire codeset with new codeset id and passive state. Specifying the codeset id, change description are mandatory to version the codeset .
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeset- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is versioned 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 'Codeset' JSON :
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": "",
"locked": "",
"lockedBy": "",
"environments": [ {
"id": 0,
"name": "" }
],
"codeValues": []
} - Since:
- 12.0
-
versionCodesetsAs
Codesets are versioned for the specified list of codeset objects. Specification of codeset Id, change description in each codeset object are mandatory to version the codesets.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesets- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are versioned 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 'Codesets' JsonArray :
[
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": "",
"locked": "",
"lockedBy": "",
"environments": [ {
"id": 0,
"name": "" }
],
"codeValues": []
},
{
"id":0,
"categoryId": 0,
"name": "",
"description": "",
"auditHistory": null,
"status": "ACTIVE",
"version": "",
"versionLabel": "",
"changedDescription": "",
"published": "",
"locked": "",
"lockedBy": "",
"environments": [ {
"id": 0,
"name": "" }
],
"codeValues": []
}
] - Since:
- 12.0
-
cloneCodesetAs
public String cloneCodesetAs(int srcCodesetId, int tgtCategoryId, boolean createNewVersionIfExists, String outputFormat) Codeset is cloned for the given srcCodesetId to the given tgtCategoryId. Specifying the srcCodesetId and tgtCategoryId are mandatory to clone the codeset.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
srcCodesetId- intcreateNewVersionIfExists- booleantgtCategoryId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is cloned 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:
- 12.0
-
createEnvironmentAs
CSMEnvironment is added for the specified environment object. Specifying the environment name is mandatory, while creating the environment.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environment- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If environment 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 'CSMEnvironment' JSON :
{
"name": "",
"auditHistory": null
} - Since:
- 12.0
-
createEnvironmentsAs
List of environments are added for the specified list of environment objects. Specification of the environment name in each environment object is mandatory while creating the environments.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environments- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If environment are 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 'Environments' JsonArray :
[
{
"name": "",
"auditHistory": null
},
{
"name": "",
"auditHistory": null
}
] - Since:
- 12.0
-
updateEnvironmentAs
Updates the environment with the specified environment object. All the information related to the environment can be updated. Specifying the environmentId is mandatory to update the environment.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environment- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If environment is updated 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 'CSMEnvironment' JSON :
{
"id": 0,
"name": "",
"auditHistory": null
} - Since:
- 12.0
-
getEnvironmentIdAs
Returns the environmentId for the specified environmentName. Specifying the environmentName is mandatory.
It returns the environmentId
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environmentName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - CSMEnvironmentId in the form of JSON or XML String.
- Since:
- 12.0
-
getEnvironmentNameAs
Returns the environmen name for the specified environmentId. Specifying the environmentId is mandatory.
It returns the environment name
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environmentId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - CSMEnvironment name in the form of JSON or XML String.
- Since:
- 12.0
-
getEnvironmentAs
Returns the environment object for the specified environmentId. Specifying the environmentId is mandatory.
It returns all the details like environment name, description, auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environmentId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - CSMEnvironment object in the form of JSON String.
- Since:
- 12.0
-
getEnvironmentsAs
Returns the list of environments along with all the details regarding each environment.
Returns all the available environments as a list of environment objects.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
outputFormat- String - Valid values: JSON or XML- Returns:
- String - List of CSMEnvironment objects in the form of JSON or XML String
- Since:
- 12.0
-
deleteEnvironmentAs
Deletes the environment with the specified environmentId. Specifying the environmentId is mandatory to delete a particular environment.
If the environment is deleted all its associated data will also be deleted
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environmentId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If environment is deleted 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:
- 12.0
-
deleteEnvironmentAs
Deletes the environment with the specified environmentName. Specifying the environmentName is mandatory to delete a particular environment.
If the environment is deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environmentName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If environment is deleted 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:
- 12.0
-
deleteEnvironmentsAs
Deletes the environments with the specified list of environmentIds. Specifying the environmentIds list is mandatory.
If the environments are deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
environmentIds- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If environments are deleted 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:
- 12.0
-
addCodeValueAs
Codevalue is added for the specified codeValue object and also extended properties are added only if the saveExtendedProperties flag is true. Specifying the codeset id, code name and value are mandatory while creating the codevalue.
The supported date formats for the startDate and endDate are long value(1460701213000), YYYY-MM-DD and YYYY-MM-DDTHH:mm:ss formats.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeValue- StringsaveExtendedProperties- booleanoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalue 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 'codeValueObj' JSON :
{
"codesetId": 0,
"name": "",
"value": "",
"description": "",
"auditHistory": null,
"systemName": "",
"systemEnvironmentName": "",
"systemId": 0,
"startDate": null,
"endDate": null,
"userDefinedField1": "",
"userDefinedField2": "",
"userDefinedField3": "",
"userDefinedField4": "",
"userDefinedField5": "",
"userDefinedField6": "",
"userDefinedField7": "",
"userDefinedField8": "",
"userDefinedField9": "",
"userDefinedField10": "",
"extendedProperties": [],
"active": false,
"deleteFlag": false
} - Since:
- 12.0
-
addCodeValuesAs
public String addCodeValuesAs(String codeValues, boolean saveExtendedProperties, String outputFormat) Codevalues are added for the specified list of codeValue objects and also extended properties are added only if the saveExtendedProperties flag is true. Specification of codeset id, code name and value in each codevalue object and saveExtendedProperties flag are mandatory.
The supported date formats for the startDate and endDate are long value(1460701213000), YYYY-MM-DD and YYYY-MM-DDTHH:mm:ss formats.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeValues-saveExtendedProperties- booleanoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalues are 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 'codeValuesObj' JSON :
[
{
"codesetId": 0,
"name": "",
"value": "",
"description": "",
"auditHistory": null,
"systemName": "",
"systemEnvironmentName": "",
"systemId": 0,
"startDate": null,
"endDate": null,
"userDefinedField1": "",
"userDefinedField2": "",
"userDefinedField3": "",
"userDefinedField4": "",
"userDefinedField5": "",
"userDefinedField6": "",
"userDefinedField7": "",
"userDefinedField8": "",
"userDefinedField9": "",
"userDefinedField10": "",
"extendedProperties": [],
"active": false,
"deleteFlag": false
},
{
"codesetId": 0,
"name": "",
"value": "",
"description": "",
"auditHistory": null,
"systemName": "",
"systemEnvironmentName": "",
"systemId": 0,
"startDate": null,
"endDate": null,
"userDefinedField1": "",
"userDefinedField2": "",
"userDefinedField3": "",
"userDefinedField4": "",
"userDefinedField5": "",
"userDefinedField6": "",
"userDefinedField7": "",
"userDefinedField8": "",
"userDefinedField9": "",
"userDefinedField10": "",
"extendedProperties": [],
"active": false,
"deleteFlag": false
}
] - Since:
- 12.0
-
getCodeValuesAs
Returns the list of codevalue objects for the specified categoryId and codesetName. Specifying the categoryId and codesetName are mandatory.
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcodesetName- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of codevalue objects in the form of JSON String.
- Since:
- 12.0
-
getCodeValuesAs
Returns the list of codevalue objects for the specified codesetId. Specifying the codesetId is mandatory.
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of codevalue objects in the form of JSON or XML String.
- Since:
- 12.0
-
deleteCodeValueAs
Deletes the codevalue object with the specified codeValueId and deleteMode. Specifying the codeValueId is mandatory to delete a particular codeValue. If deleteMode is not specified the codevalue object will be purge deleted. Retired codevalues can be restored.
Delete mode has values RETIRE, PURGE.
RETIRE - The temporary delete can be restored.
PURGE - The permanent delete, cannot be restored.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeValueId- intdeleteMode- String - Valid values are RETIRE/PURGE.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalue is deleted 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:
- 12.0
-
deleteCodeValuesAs
Deletes the list of codeValue objects with the specified codeValueIds list and deleteMode. Specifying the codeValueIds list mandatory to delete codevalues. If deleteMode is not specified the codevalue object will be purge deleted. Retired codevalues can be restored.
Delete mode has values RETIRE, PURGE.
RETIRE - The temporary delete can be restored.
PURGE - The permanent delete, cannot be restored.
If the codeValues are deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeValueIds- StringdeleteMode- String - Valid values are RETIRE/PURGE.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalues are deleted 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:
- 12.0
-
deleteCodeValuesAs
Deletes the list of codevalue objects with the specified codesetId and deleteMode. Specifying the codesetId and deleteMode are mandatory to delete codevalues. If deleteMode is not specified the codevalue objects will be purge deleted. Retired codevalue's can be restored.
Delete mode has values RETIRE, PURGE.
RETIRE - The temporary delete can be restored.
PURGE - The permanent delete, cannot be restored.
If the codevalues are deleted all its associated data will also be deleted.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intdeleteMode- String - Valid values are RETIRE/PURGE.outputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalues are deleted 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:
- 12.0
-
importCodesetsAs
Imports the codesets on the specified categoryId. Specifying the filePath and filePathType are mandatory in importHelper object. The supported values for the filePathType are ABSOLUTE, RELATIVE. Here the the file in filePath given must be in xlsx or xls format only.
Specifying the categoryId is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intimportHelper- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are imported 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 'ImportHelper' JSON :
{
"filePath" : "",
"filePathType": ""
} - Since:
- 12.0
-
importCodeValuesAs
Imports the codevalues on the specified codesetId. Specifying the filePath and filePathType are mandatory in importHelper object. The supported values for the filePathType are ABSOLUTE, RELATIVE. Here the the file in filePath given must be in xlsx or xls format only.
Specifying the codesetId is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intimportHelper- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalues are imported 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 'ImportHelper' JSON :
{
"filePath" : "",
"filePathType": ""
} - Since:
- 12.0
-
exportCodeValuesAs
Codevalues are exported to excel for the specified codesetId.
All the codevalues of the specified codesetId are exported to excel. The exported filePath will be available in the userObject of requestStatus object and the filePath will be RELATIVE. Specifying the codesetId is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalues are exported 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:
- 12.0
-
exportCodesetsAs
Codesets are exported to excel for the specified categoryId. All the codesets of the specified categoryId are exported to excel, and sub category codesets are included only if the includeSubCategories flag is true.
The exported filePath will be available in the userObject of requestStatus object and the filePath will be RELATIVE. Specifying the categoryId and includeSubCategories flag are mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intincludeSubCategories- booleanoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are exported 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:
- 12.0
-
exportAllAs
All the codesets present in enterprise codesets are exported to excel. The exported filePath will be available in the userObject of requestStatus object and the filePath will be RELATIVE.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
outputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are exported 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:
- 12.0
-
getLogicallyDeletedCodeValuesAs
Returns the list of logically deleted codevalue objects for the specified codesetId. Specifying the codesetId is mandatory.
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of LogicallyDeletedCodeValues.
- Since:
- 12.0
-
restoreCodeValuesAs
Retired codevalues can be restored for the specified codeValueIds. Specifying the codeValueIds list is mandatory.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codeValueIds- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codevalues are restored 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:
- 12.0
-
getCodeValuesAs
public String getCodeValuesAs(int categoryId, String codesetName, int fillOptions, String outputFormat) Returns the list of codevalue objects for the specified categoryId and codesetName. Specifying the categoryId and codesetName are mandatory. Extended properties of each codevalue object are returned based on the fillOptions parameter value passed with reference/addition ofAPIConstants.CSMFillOptions.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESIf codeValue's extended properties are not required then pass 0(zero) which is default value for fillOptions
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
categoryId- intcodesetName- StringfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of codevalue objects in the form of JSON or XML String.
- Since:
- 12.0
-
getCodeValuesAs
Returns the list of codevalue objects for the specified codesetId. Specifying the codesetId is mandatory.Extended properties of each codevalue object are returned based on the fillOptions parameter value passed with reference/addition ofAPIConstants.CSMFillOptions.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESIf codeValue's extended properties are not required then pass 0(zero) which is default value for fillOptions
It returns all the details like code name, value, description, codesetId, and auditHistory details etc..
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
codesetId- intfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of codevalue objects in the form of JSON or XML String.
- Since:
- 12.0
-
getAllRetiredCodesetsAs
Returns the list of all retired codesets present in enterprise codesets.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
outputFormat- String - Valid values: JSON or XML- Returns:
- String - List of retired codesets in the form of JSON or XML String.
- Since:
- 12.0
-
assignCodesetAs
Assigns the specified codeset object to the specified nodeType and nodeId. Specifying the codeset object having codesetId, nodeType and nodeId are are mandatory.
NodeType can be either SM_COLUMN or BGM_TERM. Depending upon the nodeType, nodeId will be either columnId or termId.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeType- StringnodeId- intcodeset- StringoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codeset is assigned 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:
- 12.0
-
getAssignedCodesetsAs
public String getAssignedCodesetsAs(String nodeType, int nodeId, int fillOptions, String outputFormat) Returns the list of codeset objects for the specified nodeType and nodeId. The returned codeset objects contains all the details pertaining to codeset such as codeset name, codeset description, codeset status and category name in which codeset is present etc.. and also contains details of codeValue and codeValue's extended properties based on the fillOptions parameter value passed with reference/addition ofAPIConstants.CSMFillOptions.
Here fillOptions parameter takes value of eitherAPIConstants.CSMFillOptions.CODE_VALUESorAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESBased on the value passed its related data is returned within the codeset object and if you want to get codeValues and codeValue extended properties then fillOptions parameter value will be addition of CODE_VALUES value and CODE_VALUE_EXTENDED_PROPERTIES value i.e 1+2=3 and so on.
Specification of nodeType and nodeId are mandatory. NodeType can be either BGM_TERM or SM_COLUMN. Depending upon the nodeType, nodeId will be either termId or columnId.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeType- StringnodeId- intfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String List of codesets in the form of JSON or XML String.
- Since:
- 12.0
-
getValidValuesAs
Returns the list of codeValue objects for the specified nodeType and nodeId. The returned codeValue objects contains all the details pertaining to codeValue such as code name, code value, code description, codeset name in which codeValue is present etc..and also contains details of codeValue's extended properties based on the fillOptions parameter value passed with reference/addition ofAPIConstants.CSMFillOptions.
Here fillOptions parameter takes value ofAPIConstants.CSMFillOptions.CODE_VALUE_EXTENDED_PROPERTIESwhose value is 2. If fillOptions parameter value is passed as 2 then codeValue's extended properties are returned within the CodeValue object. If CodeValue's extended properties are not required then pass 0(zero) which is default value for fillOptions.
Specification of nodeType and nodeId are mandatory. NodeType can be either BGM_TERM or SM_COLUMN. Depending upon the nodeType, nodeId will be either termId or columnId.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeType- StringnodeId- intfillOptions-APIConstants.CSMFillOptionsintoutputFormat- String - Valid values: JSON or XML- Returns:
- String - List of codevalues in the form of JSON or XML String.
- Since:
- 12.0
-
assignCodesetsAs
public String assignCodesetsAs(String nodeType, int nodeId, String codesetIds, boolean unassignExisting, String outputFormat) Assigns codesets of specified codeset ids to the specified nodeType and nodeId. Specifying the nodeType, nodeId, list of codeset ids and unassignExisting flag are mandatory.
UnassignExisting flag can be either true or false. If it is true then existing codesets of specified nodeId are unassigned if any and the new codesets are assigned. If it is false then the new codesets are assigned without unassiging existing codesets of nodeId.
NodeType can be either SM_COLUMN or BGM_TERM. Depending upon the nodeType, nodeId will be either columnId or termId.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeType- StringnodeId- intcodesetIds- StringunassignExisting- booleanoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are assigned 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:
- 12.0
-
unassignExistingCodesetsAs
Unassigns existing codesets for the specified nodeType of nodeId. Specifying the nodeType and nodeId are mandatory, based on these it unassigns the existing codesets of a node.
NodeType can be either BGM_TERM or SM_COLUMN. Depending upon the nodeType, nodeId will be either termId or columnId.
OutputFormat can be either JSON or XML. If outputFormat is not specified, by default the method will return the JSON String.- Parameters:
nodeType- StringnodeId- intoutputFormat- String - Valid values: JSON or XML- Returns:
- String - If codesets are unassigned 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:
- 12.0
-