[1390] | 1 | // Copyright 2012 Georg-August-Universität Göttingen, Germany |
---|
| 2 | // |
---|
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
---|
| 4 | // you may not use this file except in compliance with the License. |
---|
| 5 | // You may obtain a copy of the License at |
---|
| 6 | // |
---|
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 8 | // |
---|
| 9 | // Unless required by applicable law or agreed to in writing, software |
---|
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 12 | // See the License for the specific language governing permissions and |
---|
| 13 | // limitations under the License. |
---|
| 14 | |
---|
| 15 | package de.ugoe.cs.autoquest.httpmonitor; |
---|
| 16 | |
---|
| 17 | import dummyservice.DummyServicePortTypeImpl; |
---|
| 18 | import dummyservice.SynStatus; |
---|
| 19 | import dummyservice.UserInfo; |
---|
| 20 | import dummyservice.VerifyUserInMsgType; |
---|
| 21 | import dummyservice.VerifyUserOutMsgType; |
---|
| 22 | |
---|
| 23 | /** |
---|
| 24 | * <p> |
---|
| 25 | * Dummy implementation of a SOAP service for testing |
---|
| 26 | * </p> |
---|
| 27 | * |
---|
| 28 | * @author Patrick Harms |
---|
| 29 | */ |
---|
| 30 | public class DummyServiceImpl extends DummyServicePortTypeImpl { |
---|
| 31 | |
---|
| 32 | /* (non-Javadoc) |
---|
| 33 | * @see eu.midas_project.enduser.api.identityandauthenticationservice_wsdl.IdentityAndAuthPortTypeImpl#verifyUser(eu.midas_project.enduser.api.identityandauthenticationtypes.VerifyUserInMsgType) |
---|
| 34 | */ |
---|
| 35 | @Override |
---|
| 36 | public VerifyUserOutMsgType verifyUser(VerifyUserInMsgType content) { |
---|
| 37 | System.out.println("DummyServiceImpl.verifyUser"); |
---|
| 38 | |
---|
| 39 | VerifyUserOutMsgType result = new VerifyUserOutMsgType(); |
---|
| 40 | result.setMsg("OK"); |
---|
| 41 | result.setStatus(SynStatus.DONE); |
---|
| 42 | UserInfo userInfo = new UserInfo(); |
---|
| 43 | userInfo.setUsername("dummyUser"); |
---|
| 44 | userInfo.setIsAdmin(true); |
---|
| 45 | userInfo.setFullname("Dummy User"); |
---|
| 46 | userInfo.setEmail("dummy.user@midas_project.eu"); |
---|
| 47 | result.setUserInfo(userInfo); |
---|
| 48 | return result; |
---|
| 49 | } |
---|
| 50 | |
---|
| 51 | } |
---|