ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1643951 - in /ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2: concept/UmlsJdbcConceptFactory.java dictionary/UmlsJdbcRareWordDictionary.java
Date Mon, 08 Dec 2014 22:49:13 GMT
Author: seanfinan
Date: Mon Dec  8 22:49:13 2014
New Revision: 1643951

URL: http://svn.apache.org/r1643951
Log:
Use UmlsUserApprover as a Singleton

Modified:
    ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/UmlsJdbcConceptFactory.java
    ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/dictionary/UmlsJdbcRareWordDictionary.java

Modified: ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/UmlsJdbcConceptFactory.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/UmlsJdbcConceptFactory.java?rev=1643951&r1=1643950&r2=1643951&view=diff
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/UmlsJdbcConceptFactory.java
(original)
+++ ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/concept/UmlsJdbcConceptFactory.java
Mon Dec  8 22:49:13 2014
@@ -23,7 +23,7 @@ final public class UmlsJdbcConceptFactor
 
    public UmlsJdbcConceptFactory( final String name, final UimaContext uimaContext, final
Properties properties )
          throws SQLException {
-      final boolean isValidUser = UmlsUserApprover.isValidUMLSUser( uimaContext, properties
);
+      final boolean isValidUser = UmlsUserApprover.getInstance().isValidUMLSUser( uimaContext,
properties );
       if ( !isValidUser ) {
          throw new SQLException( "Invalid User for UMLS Concept Factory " + name );
       }

Modified: ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/dictionary/UmlsJdbcRareWordDictionary.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/dictionary/UmlsJdbcRareWordDictionary.java?rev=1643951&r1=1643950&r2=1643951&view=diff
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/dictionary/UmlsJdbcRareWordDictionary.java
(original)
+++ ctakes/trunk/ctakes-dictionary-lookup-fast/src/main/java/org/apache/ctakes/dictionary/lookup2/dictionary/UmlsJdbcRareWordDictionary.java
Mon Dec  8 22:49:13 2014
@@ -24,7 +24,7 @@ final public class UmlsJdbcRareWordDicti
 
    public UmlsJdbcRareWordDictionary( final String name, final UimaContext uimaContext, final
Properties properties )
          throws SQLException {
-      final boolean isValidUser = UmlsUserApprover.isValidUMLSUser( uimaContext, properties
);
+      final boolean isValidUser = UmlsUserApprover.getInstance().isValidUMLSUser( uimaContext,
properties );
       if ( !isValidUser ) {
          throw new SQLException( "Invalid User for UMLS dictionary " + name );
       }



Mime
View raw message