Revision c4a57e04
Added by Andreas Müller almost 2 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/registration/RegistrationWorkingSetService.java | ||
---|---|---|
30 | 30 |
import eu.etaxonomy.cdm.api.application.CdmRepository; |
31 | 31 |
import eu.etaxonomy.cdm.api.service.dto.RegistrationDTO; |
32 | 32 |
import eu.etaxonomy.cdm.api.service.dto.RegistrationWorkingSet; |
33 |
import eu.etaxonomy.cdm.api.service.exception.RegistrationValidationException;
|
|
33 |
import eu.etaxonomy.cdm.api.service.exception.TypeDesignationSetException;
|
|
34 | 34 |
import eu.etaxonomy.cdm.api.service.pager.Pager; |
35 | 35 |
import eu.etaxonomy.cdm.api.service.pager.impl.DefaultPagerImpl; |
36 | 36 |
import eu.etaxonomy.cdm.api.util.UserHelper; |
... | ... | |
262 | 262 |
|
263 | 263 |
/** |
264 | 264 |
* {@inheritDoc} |
265 |
* @throws RegistrationValidationException
|
|
265 |
* @throws TypeDesignationSetException
|
|
266 | 266 |
*/ |
267 | 267 |
@Override |
268 |
public RegistrationWorkingSet loadWorkingSetByReferenceUuid(UUID referenceUuid, boolean resolveSections) throws RegistrationValidationException, PermissionDeniedException {
|
|
268 |
public RegistrationWorkingSet loadWorkingSetByReferenceUuid(UUID referenceUuid, boolean resolveSections) throws TypeDesignationSetException, PermissionDeniedException {
|
|
269 | 269 |
|
270 | 270 |
Reference reference = repo.getReferenceService().load(referenceUuid); // needed to use load to avoid the problem described in #7331 |
271 | 271 |
if(resolveSections){ |
... | ... | |
356 | 356 |
|
357 | 357 |
/** |
358 | 358 |
* {@inheritDoc} |
359 |
* @throws RegistrationValidationException
|
|
359 |
* @throws TypeDesignationSetException
|
|
360 | 360 |
*/ |
361 | 361 |
@Override |
362 |
public RegistrationWorkingSet loadWorkingSetByReferenceID(Integer referenceID, boolean resolveSections) throws RegistrationValidationException, PermissionDeniedException {
|
|
362 |
public RegistrationWorkingSet loadWorkingSetByReferenceID(Integer referenceID, boolean resolveSections) throws TypeDesignationSetException, PermissionDeniedException {
|
|
363 | 363 |
|
364 | 364 |
Reference reference = repo.getReferenceService().find(referenceID); |
365 | 365 |
if(resolveSections){ |
... | ... | |
379 | 379 |
} |
380 | 380 |
|
381 | 381 |
@Override |
382 |
public Pager<RegistrationDTO> pageWorkingSetsByNameUUID(Collection<UUID> taxonNameUuids, Integer pageIndex, Integer pageSize, List<OrderHint> orderHints) throws RegistrationValidationException, PermissionDeniedException {
|
|
382 |
public Pager<RegistrationDTO> pageWorkingSetsByNameUUID(Collection<UUID> taxonNameUuids, Integer pageIndex, Integer pageSize, List<OrderHint> orderHints) throws TypeDesignationSetException, PermissionDeniedException {
|
|
383 | 383 |
|
384 | 384 |
if(orderHints == null){ |
385 | 385 |
orderHints = Arrays.asList(new OrderHint("identifier", SortOrder.ASCENDING)); |
Also available in: Unified diff
cleanup and rename RegistrationValidationException to TypeDesignationSetException