@@ -0,0 +1,1054 @@
+package org.opentosca.csarrepo.service;%0A%0Aimport java.util.List;%0A%0Aimport org.opentosca.csarrepo.exception.PersistenceException;%0Aimport org.opentosca.csarrepo.model.OpenToscaServer;%0Aimport org.opentosca.csarrepo.model.repository.OpenToscaServerRepository;%0A%0A/**%0A * Service which returns a List of OpenToscaServers for a specific user%0A * %0A * @author Marcus Eisele%0A */%0Apublic class ListOpenToscaServerService extends AbstractService %7B%0A%0A%09private final OpenToscaServerRepository openToscaServerRepository = new OpenToscaServerRepository();%0A%09private List%3COpenToscaServer%3E openToscaServers = null;%0A%0A%09/**%0A%09 * @param userId%0A%09 */%0A%09public ListOpenToscaServerService(long userId) %7B%0A%09%09super(userId);%0A%09%09try %7B%0A%09%09%09// TODO: use userId instead of .getAll()%0A%09%09%09this.openToscaServers = openToscaServerRepository.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 OpenToscaServers%0A%09 */%0A%09public List%3COpenToscaServer%3E getResult() %7B%0A%09%09super.logInvalidResultAccess(%22getResult%22);%0A%0A%09%09return this.openToscaServers;%0A%09%7D%0A%0A%7D%0A

create ListOpenToscaServerService refs #186