@@ -0,0 +1,957 @@
+package de.uni_koeln.spinfo.upcase.controller.user;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.ui.Model;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0A%0Aimport de.uni_koeln.spinfo.upcase.mongodb.repository.UpcaseUserRepository;%0A%0A@Controller%0Apublic class UserCollectionController %7B%0A%0A%09Logger logger = LoggerFactory.getLogger(getClass());%0A%0A%09@Autowired%0A%09private UpcaseUserRepository upcaseUserRepository;%0A%0A%09@RequestMapping(value = %22/user/userCollection/%7Bid%7D%22, method = RequestMethod.GET)%0A%09public String userCollection(@PathVariable(%22id%22) String id, Model model) %7B%0A%09%09model.addAttribute(%22user%22, upcaseUserRepository.findById(id));%0A%09%09return %22user/userCollection%22;%0A%09%7D%0A%0A%7D%0A

Add user collection controller