Revision 4db0e47a
Added by Katja Luther about 4 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/org/springframework/remoting/httpinvoker/CachingHttpInvokerProxyFactoryBean.java | ||
---|---|---|
100 | 100 |
UpdateResult result = (UpdateResult)invocationResult.getValue(); |
101 | 101 |
if(result.isOk()){ |
102 | 102 |
logger.debug("Entity from UpdateResult stored in cache with updating cached data" ); |
103 |
cdmEntitySessionManager().load(result.getCdmEntity(), true);
|
|
103 |
cdmEntitySessionManager().load(result, true); |
|
104 | 104 |
} |
105 | 105 |
} else { |
106 | 106 |
invocationResult = new RemoteInvocationResult(cdmEntitySessionManager().load(invocationResult.getValue(), false)); |
... | ... | |
108 | 108 |
} |
109 | 109 |
|
110 | 110 |
} |
111 |
cache(invocation, invocationResult); |
|
111 | 112 |
return invocationResult; |
112 | 113 |
} |
113 | 114 |
|
115 |
public void cache(RemoteInvocation ri, RemoteInvocationResult rir) { |
|
116 |
|
|
117 |
} |
|
118 |
|
|
114 | 119 |
/** |
115 | 120 |
* @param invocation |
116 | 121 |
* @param originalInvocation |
... | ... | |
180 | 185 |
return cdmEntitySessionManager; |
181 | 186 |
} |
182 | 187 |
|
188 |
|
|
183 | 189 |
} |
Also available in: Unified diff
fix handleGeneralRequest, load(result) instead of load(result.getCdmEntity())