Revision 26d19e4f
Added by Cherian Mathew over 8 years ago
eu.etaxonomy.taxeditor.cdmlib/src/main/java/eu/etaxonomy/taxeditor/service/CachedCommonServiceImpl.java | ||
---|---|---|
43 | 43 |
*/ |
44 | 44 |
@Override |
45 | 45 |
public CdmBase find(Class<? extends CdmBase> clazz, int id) { |
46 |
// if(cacheEnabled) { |
|
47 |
CdmBase cdmEntity = CdmApplicationState.getCurrentAppConfig().getCommonService().find(clazz, id, getPropertyPaths(clazz)); |
|
48 |
if(cdmEntity == null) { |
|
49 |
throw new NullPointerException("CDM Entity of type " + clazz.getName() + " with id " + id + " is null."); |
|
50 |
} |
|
51 |
return cdmEntity; |
|
52 |
//return cdmEntitySessionManager.load(cdmEntity, false); |
|
53 |
// } else { |
|
54 |
// return CdmBase.deproxy(commonService.find(clazz, id),clazz); |
|
55 |
// } |
|
46 |
CdmBase cdmEntity = CdmApplicationState.getCurrentAppConfig().getCommonService().find(clazz, id, getPropertyPaths(clazz)); |
|
47 |
if(cdmEntity == null) { |
|
48 |
throw new NullPointerException("CDM Entity of type " + clazz.getName() + " with id " + id + " is null."); |
|
49 |
} |
|
50 |
return cdmEntity; |
|
51 |
|
|
56 | 52 |
} |
57 | 53 |
|
58 | 54 |
|
Also available in: Unified diff
#5129 Extend export ui for remoting