Revision e33f4469
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/input/AgentEditorInput.java | ||
---|---|---|
51 | 51 |
return ID; |
52 | 52 |
} |
53 | 53 |
|
54 |
|
|
55 | 54 |
@Override |
56 | 55 |
public String getName() { |
57 | 56 |
return BulkEditorInputType.AGENT.label; |
... | ... | |
114 | 113 |
return CdmStore.getSearchManager().findTeamOrPersons(configurator); |
115 | 114 |
} |
116 | 115 |
|
117 |
/** {@inheritDoc} |
|
118 |
@Override |
|
119 |
public AgentBase loadEntity(UUID uuid) { |
|
120 |
List<String> propertyPaths = Arrays.asList(new String[]{}); |
|
121 |
return CdmStore.getService(IAgentService.class).load(uuid, propertyPaths); |
|
122 |
}*/ |
|
123 |
|
|
124 |
|
|
125 | 116 |
public boolean delete(AgentBase entity) throws ReferencedObjectUndeletableException { |
126 | 117 |
return CdmStore.getService(IAgentService.class).delete(entity) != null; |
127 | 118 |
|
128 | 119 |
} |
129 | 120 |
|
130 |
/** {@inheritDoc} */ |
|
131 |
public boolean save(AgentBase entity) { |
|
132 |
|
|
133 |
return CdmStore.getService(IAgentService.class).saveOrUpdate(entity) != null; |
|
134 |
} |
|
135 |
|
|
136 | 121 |
@Override |
137 | 122 |
public List<IBulkEditorSortProvider<TeamOrPersonBase>> getSortProviders() { |
138 | 123 |
List<IBulkEditorSortProvider<TeamOrPersonBase>> sortProviders = super.getSortProviders(); |
... | ... | |
142 | 127 |
return sortProviders; |
143 | 128 |
} |
144 | 129 |
|
145 |
|
|
146 | 130 |
@Override |
147 | 131 |
protected IEntityCreator<TeamOrPersonBase> createEntityCreator() { |
148 | 132 |
return new AgentCreator(); |
... | ... | |
164 | 148 |
} |
165 | 149 |
} |
166 | 150 |
|
167 |
/* (non-Javadoc) |
|
168 |
* @see eu.etaxonomy.taxeditor.editor.CdmEntitySessionInput#merge() |
|
169 |
*/ |
|
170 | 151 |
@Override |
171 | 152 |
public void merge() { |
172 | 153 |
|
173 | 154 |
} |
174 | 155 |
|
175 |
|
|
176 | 156 |
@Override |
177 | 157 |
protected TeamOrPersonBase loadEntity(UUID entityUuid) { |
178 | 158 |
List<String> propertyPaths = Arrays.asList(new String[]{}); |
179 | 159 |
return HibernateProxyHelper.deproxy(CdmStore.getService(IAgentService.class).load(entityUuid, propertyPaths), TeamOrPersonBase.class); |
180 | 160 |
} |
181 | 161 |
|
182 |
|
|
183 |
|
|
184 | 162 |
} |
Also available in: Unified diff
clean up