Project

General

Profile

« Previous | Next » 

Revision 5facd1e9

Added by Andreas Müller over 4 years ago

fix #7088 fix NPE when saving Media in bulk editor (cont.) - minor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/store/CdmStore.java
47 47
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
48 48
import eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService;
49 49
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService;
50
import eu.etaxonomy.cdm.api.service.IPreferenceService;
50 51
import eu.etaxonomy.cdm.api.service.IReferenceService;
51 52
import eu.etaxonomy.cdm.api.service.IRegistrationService;
52 53
import eu.etaxonomy.cdm.api.service.IRightsService;
......
79 80
import eu.etaxonomy.cdm.model.description.WorkingSet;
80 81
import eu.etaxonomy.cdm.model.media.Media;
81 82
import eu.etaxonomy.cdm.model.media.Rights;
83
import eu.etaxonomy.cdm.model.metadata.CdmPreference;
82 84
import eu.etaxonomy.cdm.model.molecular.Amplification;
83 85
import eu.etaxonomy.cdm.model.molecular.Primer;
84 86
import eu.etaxonomy.cdm.model.name.Registration;
......
720 722
            else if (cdmBase instanceof Annotation) {
721 723
                service = (IService<T>) getService(IAnnotationService.class);
722 724
            }
723
//            else if (cdmBase instanceof AuditEvent) {
724
//                service = (IService<T>) getService(IAuditEventService.class);
725
//            }
726 725
            else if (cdmBase instanceof Classification) {
727 726
                service = (IService<T>) getService(IClassificationService.class);
728 727
            }
......
753 752
            else if (cdmBase instanceof Rights) {
754 753
                service = (IService<T>) getService(IRightsService.class);
755 754
            }
755
//            else if (cdmBase instanceof AuditEvent) {
756
//                service = (IService<T>) getService(IAuditEventService.class);
757
//            }
758
//            else if (cdmBase instanceof CdmPreference) {
759
//                service = (IService<T>) getService(IPreferenceService.class);
760
//            }
756 761
            else{
757 762
            	String message = "Service for entity of class %s not yet implemented in TaxEditor";
758 763
            	message = String.format(message, cdmBase.getClass().getSimpleName());

Also available in: Unified diff