cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.cdmlib / src / main / java / eu / etaxonomy / taxeditor / service / RemoteInvocationTermCacher.java
index 002fc82fb5471102895fb0ccbb1bdf0bf2eee382..e6a9b4cec515351f25514a3812760a6b056e7690 100644 (file)
@@ -36,18 +36,18 @@ public class RemoteInvocationTermCacher implements IRemoteInvocationTermCacher {
     }
 
        @Override
-       public void cacheTerms(RemoteInvocation ri, RemoteInvocationResult rir) {
+       public void cacheTerms(RemoteInvocation remoteInvoc, RemoteInvocationResult remoteInvocResul) {
            if(cdmServiceCacher != null) {
-               if(ri.getMethodName().equals("listByTermType")) {
-                   if(ri.getArguments()[1] == null) {
+               if(remoteInvoc.getMethodName().equals("listByTermType")) {
+                   if(remoteInvoc.getArguments()[1] == null) {
                        Set<DefinedTermBase<?>> terms = new HashSet<>();
-                       if(rir.getValue() != null) {
-                           terms.addAll((List<DefinedTermBase<?>>)rir.getValue());
+                       if(remoteInvocResul.getValue() != null) {
+                           terms.addAll((List<DefinedTermBase<?>>)remoteInvocResul.getValue());
 
                            for(DefinedTermBase<?> term : terms) {
                                cdmServiceCacher.load(term);
                            }
-                           termTypeMap.put((TermType)ri.getArguments()[0], rir);
+                           termTypeMap.put((TermType)remoteInvoc.getArguments()[0], remoteInvocResul);
                        }
                    }
                }