@@ -0,0 +1,873 @@
+package org.opentosca.csarrepo.service;%0A%0Aimport java.util.List;%0A%0Aimport org.opentosca.csarrepo.exception.PersistenceException;%0Aimport org.opentosca.csarrepo.model.WineryServer;%0Aimport org.opentosca.csarrepo.model.repository.WineryServerRepository;%0A%0Apublic class ListWineryServerService extends AbstractService %7B%0A%0A%09private final WineryServerRepository wineryServerRepo = new WineryServerRepository();%0A%09private List%3CWineryServer%3E wineryServers = null;%0A%0A%09/**%0A%09 * @param userId%0A%09 */%0A%09public ListWineryServerService(long userId) %7B%0A%09%09super(userId);%0A%09%09try %7B%0A%09%09%09// TODO handle user id%0A%09%09%09this.wineryServers = wineryServerRepo.getAll();%0A%09%09%7D catch (PersistenceException e) %7B%0A%09%09%09this.addError(e.getMessage());%0A%09%09%7D%0A%09%7D%0A%0A%09/**%0A%09 * @return List of WineryServers%0A%09 */%0A%09public List%3CWineryServer%3E getResult() %7B%0A%09%09super.logInvalidResultAccess(%22getResult%22);%0A%0A%09%09return this.wineryServers;%0A%09%7D%0A%0A%7D%0A

add ListWineryServerService, refs #188