Revision 233a8fe2
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/OccurrenceEditorInput.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
package eu.etaxonomy.taxeditor.bulkeditor.input; |
12 | 12 |
|
13 |
import java.util.Arrays; |
|
14 | 13 |
import java.util.List; |
15 |
import java.util.UUID; |
|
16 | 14 |
|
17 | 15 |
import eu.etaxonomy.cdm.api.service.IOccurrenceService; |
18 | 16 |
import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator; |
... | ... | |
69 | 67 |
/* (non-Javadoc) |
70 | 68 |
* @see eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput#loadEntity(java.util.UUID) |
71 | 69 |
*/ |
72 |
/** {@inheritDoc}
|
|
70 |
/** {@inheritDoc} |
|
73 | 71 |
@Override |
74 | 72 |
protected SpecimenOrObservationBase loadEntity(UUID entityUuid) { |
75 | 73 |
List<String> propertyPaths = Arrays.asList(new String[]{}); |
... | ... | |
125 | 123 |
/* (non-Javadoc) |
126 | 124 |
* @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityPersistenceService#delete(java.lang.Object) |
127 | 125 |
*/ |
128 |
/** {@inheritDoc}
|
|
126 |
/** {@inheritDoc} |
|
129 | 127 |
* @throws ReferencedObjectUndeletableException */ |
130 | 128 |
@Override |
131 | 129 |
public boolean delete(SpecimenOrObservationBase entity) throws ReferencedObjectUndeletableException { |
... | ... | |
138 | 136 |
/** {@inheritDoc} */ |
139 | 137 |
@Override |
140 | 138 |
public boolean save(SpecimenOrObservationBase entity) { |
141 |
return CdmStore.getService(IOccurrenceService.class).save(entity) != null; |
|
139 |
if(CdmStore.getCurrentSessionManager().isRemoting()) { |
|
140 |
return CdmStore.getService(IOccurrenceService.class).merge(entity) != null; |
|
141 |
} else { |
|
142 |
return CdmStore.getService(IOccurrenceService.class).save(entity) != null; |
|
143 |
} |
|
142 | 144 |
} |
143 | 145 |
|
144 | 146 |
|
Also available in: Unified diff
#5012 Adding remoting session and updating save methods for Bulk Editor
Replace properties file with xml file
#5012 updates for making Bulk Editor remoting capable