Project

General

Profile

« Previous | Next » 

Revision d31115e0

Added by Niels Hoffmann over 13 years ago

added a readme file

View differences:

taxeditor-bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/ReferenceEditorInput.java
15 15

  
16 16
import eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator;
17 17
import eu.etaxonomy.cdm.model.common.MarkerType;
18
import eu.etaxonomy.cdm.model.reference.ReferenceBase;
18
import eu.etaxonomy.cdm.model.reference.Reference;
19 19
import eu.etaxonomy.taxeditor.bulkeditor.command.BulkEditorInputTypeValues.BulkEditorInputType;
20 20
import eu.etaxonomy.taxeditor.store.CdmStore;
21 21

  
......
27 27
 * @created 25.06.2009
28 28
 * @version 1.0
29 29
 */
30
public class ReferenceEditorInput extends AbstractBulkEditorInput<ReferenceBase> {
30
public class ReferenceEditorInput extends AbstractBulkEditorInput<Reference> {
31 31

  
32 32
	/**
33 33
	 * 
......
122 122

  
123 123
	/** {@inheritDoc} */
124 124
	@Override
125
	public ReferenceBase loadEntity(UUID entityUuid) {
125
	public Reference loadEntity(UUID entityUuid) {
126 126
		List<String> propertyPaths = Arrays.asList(new String[]{"*", "inReference.*", "authorTeam.*"}); 
127 127
		return CdmStore.getReferenceService().load(entityUuid, propertyPaths);
128 128
	}
129 129

  
130 130
	/** {@inheritDoc} */
131 131
	public boolean delete(Object entity) {
132
		return CdmStore.getReferenceService().delete((ReferenceBase) entity) != null;
132
		return CdmStore.getReferenceService().delete((Reference) entity) != null;
133 133
	}
134 134

  
135 135
	/** {@inheritDoc} */
136 136
	public boolean save(Object entity) {
137
		return CdmStore.getReferenceService().saveOrUpdate((ReferenceBase) entity) != null;
137
		return CdmStore.getReferenceService().saveOrUpdate((Reference) entity) != null;
138 138
	}
139 139
}

Also available in: Unified diff