import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collection;
+import java.util.List;
import java.util.Map;
import java.util.UUID;
@Test
public void testFindPreferredMedia(){
- ArrayList<Media> imageList = new ArrayList<>();
+ List<Media> imageList = new ArrayList<>();
imageList.add(mediaImage1);
imageList.add(mediaImage2);
imageList.add(mediaImage3);
Assert.assertNotNull(findMediaByUUID(filteredList.keySet(), mediaImage2.getUuid()));
Assert.assertNotNull(findMediaByUUID(filteredList.keySet(), mediaImage3.getUuid()));
- ArrayList<Media> mixedMediaList = new ArrayList<>();
+ List<Media> mixedMediaList = new ArrayList<>();
mixedMediaList.add(mediaImage1);
mixedMediaList.add(mediaImage2);
mixedMediaList.add(mediaImage3);
@Transient
public List<Media> getDerivedUnitMedia() {
if (! checkDerivedUnit()){
- return new ArrayList<Media>();
+ return new ArrayList<>();
}
try {
List<Media> result = getMediaList(derivedUnit, false);
public Pager<Media> getMedia(DescriptionElementBase descriptionElement, Integer pageSize, Integer pageNumber, List<String> propertyPaths) {
Long numberOfResults = descriptionElementDao.countMedia(descriptionElement);
- List<Media> results = new ArrayList<Media>();
+ List<Media> results = new ArrayList<>();
if(numberOfResults > 0) { // no point checking again //TODO use AbstractPagerImpl.hasResultsInRange(numberOfResults, pageNumber, pageSize)
results = descriptionElementDao.getMedia(descriptionElement, pageSize, pageNumber, propertyPaths);
}
* Generate a string representation of the structured <code>description</code> supplied in natural language
* The <code>featureTree</code> will be used to structure the NaturalLanguageDescription.
* This method does not require a initialization strategy so there is no <code>propertyPaths</code> parameter.
- * @param featureTree
- * @param description
- * @param preferredLanguages
- * @param separator
- * @return
*/
public String generateNaturalLanguageDescription(TermTree featureTree,TaxonDescription description, List<Language> preferredLanguages, String separator);
* @deprecated The means of determining this fact may change soon, so this method is
annotated as being deprecated.
* @param description
- * @return
*/
@Deprecated
public boolean hasStructuredData(DescriptionBase<?> description);
public List<DescriptionBaseDto> loadDtosForTaxon(UUID taxonUuid);
-
/**
- * find the taxon node for the taxon associated to the specimen in classification with classificationUuid
- * @param specimenUuid
- * @param classificationUuid
- * @return
+ * Find the taxon node for the taxon associated to the specimen in classification with classificationUuid
*/
- TaxonNodeDto findTaxonNodeDtoForIndividualAssociation(UUID specimenUuid, UUID classificationUuid);
+ public TaxonNodeDto findTaxonNodeDtoForIndividualAssociation(UUID specimenUuid, UUID classificationUuid);
}
\ No newline at end of file