Revision 9e59c2ac
Added by Patrick Plitzner over 10 years ago
- @Override annotation
- fixed some more warnings
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/OccurrenceEditorInput.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
31 | 31 |
* @version 1.0 |
32 | 32 |
*/ |
33 | 33 |
public class OccurrenceEditorInput extends AbstractBulkEditorInput<SpecimenOrObservationBase> { |
34 |
|
|
34 |
|
|
35 | 35 |
/** |
36 |
*
|
|
36 |
* |
|
37 | 37 |
*/ |
38 | 38 |
private static final long serialVersionUID = 1014860873939989973L; |
39 | 39 |
|
... | ... | |
41 | 41 |
public static final String ID = "bulkeditor.input.occurrence"; |
42 | 42 |
|
43 | 43 |
private static OccurrenceEditorInput instance; |
44 |
|
|
44 |
|
|
45 | 45 |
/** |
46 | 46 |
* <p>Getter for the field <code>instance</code>.</p> |
47 | 47 |
* |
... | ... | |
53 | 53 |
} |
54 | 54 |
return instance; |
55 | 55 |
} |
56 |
|
|
56 |
|
|
57 | 57 |
/* (non-Javadoc) |
58 | 58 |
* @see eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput#listEntities(eu.etaxonomy.cdm.api.service.config.IIdentifiableEntityServiceConfigurator) |
59 | 59 |
*/ |
... | ... | |
70 | 70 |
/** {@inheritDoc} */ |
71 | 71 |
@Override |
72 | 72 |
protected SpecimenOrObservationBase loadEntity(UUID entityUuid) { |
73 |
List<String> propertyPaths = Arrays.asList(new String[]{});
|
|
73 |
List<String> propertyPaths = Arrays.asList(new String[]{}); |
|
74 | 74 |
return CdmStore.getService(IOccurrenceService.class).load(entityUuid, propertyPaths); |
75 | 75 |
} |
76 | 76 |
|
... | ... | |
82 | 82 |
* |
83 | 83 |
* @return a {@link java.lang.String} object. |
84 | 84 |
*/ |
85 |
public String getName() { |
|
85 |
@Override |
|
86 |
public String getName() { |
|
86 | 87 |
return BulkEditorInputType.OCCURRENCE.label; |
87 | 88 |
} |
88 | 89 |
|
... | ... | |
94 | 95 |
* |
95 | 96 |
* @return a {@link java.lang.String} object. |
96 | 97 |
*/ |
97 |
public String getToolTipText() { |
|
98 |
@Override |
|
99 |
public String getToolTipText() { |
|
98 | 100 |
return getName(); |
99 | 101 |
} |
100 |
|
|
102 |
|
|
101 | 103 |
/** |
102 | 104 |
* <p>getId</p> |
103 | 105 |
* |
... | ... | |
111 | 113 |
* @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityPersistenceService#delete(java.lang.Object) |
112 | 114 |
*/ |
113 | 115 |
/** {@inheritDoc} */ |
114 |
public boolean delete(SpecimenOrObservationBase entity) { |
|
116 |
@Override |
|
117 |
public boolean delete(SpecimenOrObservationBase entity) { |
|
115 | 118 |
return CdmStore.getService(IOccurrenceService.class).delete(entity) != null; |
116 | 119 |
} |
117 | 120 |
|
... | ... | |
119 | 122 |
* @see eu.etaxonomy.taxeditor.annotatedlineeditor.IEntityPersistenceService#save(java.lang.Object) |
120 | 123 |
*/ |
121 | 124 |
/** {@inheritDoc} */ |
122 |
public boolean save(SpecimenOrObservationBase entity) { |
|
125 |
@Override |
|
126 |
public boolean save(SpecimenOrObservationBase entity) { |
|
123 | 127 |
return CdmStore.getService(IOccurrenceService.class).save(entity) != null; |
124 | 128 |
} |
125 |
|
|
129 |
|
|
126 | 130 |
|
127 | 131 |
/* (non-Javadoc) |
128 | 132 |
* @see eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput#createEntityCreator() |
... | ... | |
138 | 142 |
@Override |
139 | 143 |
public List<IBulkEditorSortProvider<SpecimenOrObservationBase>> getSortProviders() { |
140 | 144 |
List<IBulkEditorSortProvider<SpecimenOrObservationBase>> sortProviders = super.getSortProviders(); |
141 |
|
|
145 |
|
|
142 | 146 |
sortProviders.add(0, new IdentifiableEntitySortProvider<SpecimenOrObservationBase>()); |
143 |
|
|
147 |
|
|
144 | 148 |
return sortProviders; |
145 | 149 |
} |
146 | 150 |
} |
Also available in: Unified diff