@@ -0,0 +1,1136 @@
+package org.opentosca.csarrepo.service;%0A%0Aimport org.opentosca.csarrepo.exception.PersistenceException;%0Aimport org.opentosca.csarrepo.model.OpenToscaServer;%0Aimport org.opentosca.csarrepo.model.repository.OpenToscaServerRepository;%0A%0A/**%0A * Service to show a specific OpenToscaServer%0A * %0A * @author eiselems (marcus.eisele@gmail.com)%0A */%0Apublic class ShowOpenToscaServerService extends AbstractService %7B%0A%0A%09private final OpenToscaServerRepository openToscaServerRepository = new OpenToscaServerRepository();%0A%09private OpenToscaServer openToscaServer = null;%0A%0A%09/**%0A%09 * @param userId%0A%09 * @param serverId%0A%09 */%0A%09public ShowOpenToscaServerService(long userId, long serverId) %7B%0A%09%09super(userId);%0A%09%09try %7B%0A%09%09%09// TODO: use userId in addition to serverId%0A%09%09%09openToscaServer = openToscaServerRepository.getbyId(serverId);%0A%09%09%7D catch (PersistenceException e) %7B%0A%09%09%09this.addError(e.getMessage());%0A%09%09%7D%0A%0A%09%09if (this.openToscaServer == null) %7B%0A%09%09%09this.addError(%22invalidOpenToscaServer%22);%0A%09%09%7D%0A%09%7D%0A%0A%09/**%0A%09 * @return List of OpenToscaServer%0A%09 */%0A%09public OpenToscaServer getResult() %7B%0A%09%09super.logInvalidResultAccess(%22getResult%22);%0A%09%09return this.openToscaServer;%0A%09%7D%0A%7D%0A

add ShowOpenToscaServerService refs #185