LexEVS Distributed Migration Guide 6.0, 6.1, 6.2
Changes 6.0 to 6.1
6.1 includes the addition of the Simple Search Extension providing fast, but simple searches, across multiple terminologies. Because this is instantiated as an extension no additions needed to be made to the Distributed Java API. This version of simple search included by default both active and inactive terms.
LexBIGService lbSvc = (LexEVSDistributed)ApplicationServiceProvider.getApplicationServiceFromUrl(serviceUrl, "EvsServiceInfo"); SearchExtension searchExtension = (SearchExtension) lbSvc.getGenericExtension("SearchExtension");
Changes 6.1 to 6.2
The behavior of simple search changes to default to active only terms. Since this is not backwards compatible 6.3 will change this behavior back to what was current during 6.1. Also an additional method for resolving hierarchies was made available in the convenience methods, providing a namespace parameter to further restrict the resolution of hierarchies. This supports another extension currently providing services to the browser where terminologies can now be loaded with terms belonging to multiple namespaces.
LexBIGService lbSvc = (LexEVSDistributed)ApplicationServiceProvider.getApplicationServiceFromUrl(serviceUrl, "EvsServiceInfo") LexBIGServiceConvenienceMethods lbscm = (LexBIGServiceConvenienceMethods) lbSvc .getGenericExtension("LexBIGServiceConvenienceMethods"); // Iterate through all hierarchies ... CodingSchemeVersionOrTag csvt = Constructors.createCodingSchemeVersionOrTagFromVersion(NPO_SCHEME_MULTI_NAMESPACE_VERSION); String[] hierarchyIDs = lbscm.getHierarchyIDs(NPO_SCHEME_MULTI_NAMESPACE_URL, csvt); String hierarchyId = (hierarchyIDs.length > 0) ? hierarchyIDs[0] : null; for (String hierarchy : hierarchyIDs) { if (hierarchy.equalsIgnoreCase("is_a")) hierarchyId = hierarchy; } String code= "NPO_1607"; AssociationList associations = lbscm.getHierarchyPathToRoot(NPO_SCHEME_MULTI_NAMESPACE, csvt, hierarchyId, code, false, LexBIGServiceConvenienceMethods.HierarchyPathResolveOption.ALL, null);