Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/validation/rules/probe/UniqueHauptprobenNr.java @ 711:3ec358698b4d
Code style and documentation.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 22 Jul 2015 16:03:03 +0200 |
parents | 7a97e4b1cc18 |
children | 1c41c7b8f7c2 |
comparison
equal
deleted
inserted
replaced
710:2ae27dde4823 | 711:3ec358698b4d |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
1 package de.intevation.lada.validation.rules.probe; | 8 package de.intevation.lada.validation.rules.probe; |
2 | 9 |
3 import java.util.List; | 10 import java.util.List; |
4 | 11 |
5 import javax.inject.Inject; | 12 import javax.inject.Inject; |
12 import de.intevation.lada.util.rest.Response; | 19 import de.intevation.lada.util.rest.Response; |
13 import de.intevation.lada.validation.Violation; | 20 import de.intevation.lada.validation.Violation; |
14 import de.intevation.lada.validation.annotation.ValidationRule; | 21 import de.intevation.lada.validation.annotation.ValidationRule; |
15 import de.intevation.lada.validation.rules.Rule; | 22 import de.intevation.lada.validation.rules.Rule; |
16 | 23 |
24 /** | |
25 * Validation rule for probe. | |
26 * Validates if the probe has a unique "hauptprobennr". | |
27 * | |
28 * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> | |
29 */ | |
17 @ValidationRule("Probe") | 30 @ValidationRule("Probe") |
18 public class UniqueHauptprobenNr implements Rule { | 31 public class UniqueHauptprobenNr implements Rule { |
19 | 32 |
20 @Inject | 33 @Inject |
21 @RepositoryConfig(type=RepositoryType.RO) | 34 @RepositoryConfig(type=RepositoryType.RO) |