Revision e734a4fb
Added by Andreas Kohlbecker about 4 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/RegistrationWorkingSet.java | ||
---|---|---|
143 | 143 |
} |
144 | 144 |
|
145 | 145 |
/** |
146 |
* Calculates the total count of messages in the registrations contained
|
|
146 |
* Calculates the total count of validation problems in the registrations contained
|
|
147 | 147 |
* in the working set. |
148 | 148 |
* |
149 | 149 |
* @return |
150 | 150 |
*/ |
151 |
public int messagesCount() {
|
|
152 |
int messagesCount = 0;
|
|
151 |
public int validationProblemsCount() {
|
|
152 |
int validationProblemsCount = 0;
|
|
153 | 153 |
for(RegistrationDTO dto : getRegistrationDTOs()) { |
154 |
messagesCount = messagesCount + dto.getValidationProblems().size();
|
|
154 |
validationProblemsCount = validationProblemsCount + dto.getValidationProblems().size();
|
|
155 | 155 |
} |
156 |
return messagesCount;
|
|
156 |
return validationProblemsCount;
|
|
157 | 157 |
} |
158 | 158 |
|
159 | 159 |
/** |
Also available in: Unified diff
ref #8069 renaming messages to validation problems