Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
morpheus-87 committed Sep 4, 2024
1 parent ae067c0 commit d4848b6
Showing 1 changed file with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ public String doForward(Identifiable identifiable, Model model) throws Technical
return "forward:/fileresources/" + uuid;
case ARTICLE:
return "forward:/articles/" + uuid;
// List<SubtopicImpl> subtopics =
// subtopicService.getSubtopicsOfEntity(entity.getUuid());
// if (!subtopics.isEmpty()) {
// Subtopic subtopic = subtopics.get(0);
// return "forward:/knowledge/node/" + subtopic.getUuid().toString();
// }
// List<SubtopicImpl> subtopics =
// subtopicService.getSubtopicsOfEntity(entity.getUuid());
// if (!subtopics.isEmpty()) {
// Subtopic subtopic = subtopics.get(0);
// return "forward:/knowledge/node/" + subtopic.getUuid().toString();
// }

case COLLECTION:
return "forward:/collections/" + uuid;
Expand All @@ -144,36 +144,36 @@ public String doForward(Identifiable identifiable, Model model) throws Technical
case GEO_LOCATION:
case HUMAN_SETTLEMENT:
return "forward:/geolocations/" + uuid;
// GeoLocation geoLocation = geoLocationsService.findOne(entity.getUuid());
// GeoLocationType geoLocationType = geoLocation.getGeoLocationType();
// switch (geoLocationType) {
// case CANYON:
// return "forward:/geo/canyons/" + uuid;
// case CAVE:
// return "forward:/geo/caves/" + uuid;
// case CONTINENT:
// return "forward:/geo/continents/" + uuid;
// case COUNTRY:
// return "forward:/geo/countries/" + uuid;
// case CREEK:
// return "forward:/geo/creeks/" + uuid;
// case HUMAN_SETTLEMENT:
// return "forward:/geo/human_settlements/" + uuid;
// case LAKE:
// return "forward:/geo/lakes/" + uuid;
// case MOUNTAIN:
// return "forward:/geo/mountains/" + uuid;
// case OCEAN:
// return "forward:/geo/oceans/" + uuid;
// case RIVER:
// return "forward:/geo/rivers/" + uuid;
// case SEA:
// return "forward:/geo/seas/" + uuid;
// case STILL_WATERS:
// return "forward:/geo/still_waters/" + uuid;
// case VALLEY:
// return "forward:/geo/valleys/" + uuid;
// }
// GeoLocation geoLocation = geoLocationsService.findOne(entity.getUuid());
// GeoLocationType geoLocationType = geoLocation.getGeoLocationType();
// switch (geoLocationType) {
// case CANYON:
// return "forward:/geo/canyons/" + uuid;
// case CAVE:
// return "forward:/geo/caves/" + uuid;
// case CONTINENT:
// return "forward:/geo/continents/" + uuid;
// case COUNTRY:
// return "forward:/geo/countries/" + uuid;
// case CREEK:
// return "forward:/geo/creeks/" + uuid;
// case HUMAN_SETTLEMENT:
// return "forward:/geo/human_settlements/" + uuid;
// case LAKE:
// return "forward:/geo/lakes/" + uuid;
// case MOUNTAIN:
// return "forward:/geo/mountains/" + uuid;
// case OCEAN:
// return "forward:/geo/oceans/" + uuid;
// case RIVER:
// return "forward:/geo/rivers/" + uuid;
// case SEA:
// return "forward:/geo/seas/" + uuid;
// case STILL_WATERS:
// return "forward:/geo/still_waters/" + uuid;
// case VALLEY:
// return "forward:/geo/valleys/" + uuid;
// }
case HEADWORD_ENTRY:
HeadwordEntry headwordEntry =
cudamiClient.forHeadwordEntries().getByUuid(identifiable.getUuid());
Expand Down

0 comments on commit d4848b6

Please sign in to comment.