1package org.apache.archiva.redback.rest.api.model;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021import javax.xml.bind.annotation.XmlRootElement;
22import java.io.Serializable;
2324/**25 * @author Olivier Lamy26 * @since 2.027 */28 @XmlRootElement( name = "userRegistrationRequest" )
29publicclassUserRegistrationRequest30implements Serializable
31 {
32privateUser user;
3334private String applicationUrl;
3536publicUserRegistrationRequest()
37 {
38// no op39 }
4041publicUserRegistrationRequest( User user, String applicationUrl )
42 {
43this.user = user;
44this.applicationUrl = applicationUrl;
45 }
4647publicUser getUser()
48 {
49return user;
50 }
5152publicvoid setUser( User user )
53 {
54this.user = user;
55 }
5657public String getApplicationUrl()
58 {
59return applicationUrl;
60 }
6162publicvoid setApplicationUrl( String applicationUrl )
63 {
64this.applicationUrl = applicationUrl;
65 }
6667 @Override
68public String toString()
69 {
70final StringBuilder sb = new StringBuilder();
71 sb.append( "UserRegistrationRequest" );
72 sb.append( "{user=" ).append( user );
73 sb.append( ", applicationUrl='" ).append( applicationUrl ).append( '\'' );
74 sb.append( '}' );
75return sb.toString();
76 }
77 }