1 | |
package org.apache.archiva.web.xmlrpc.api.beans; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
import java.io.Serializable; |
23 | |
|
24 | |
import com.atlassian.xmlrpc.ServiceBean; |
25 | |
import com.atlassian.xmlrpc.ServiceBeanField; |
26 | |
|
27 | |
@ServiceBean |
28 | |
public class RemoteRepository |
29 | |
implements Serializable |
30 | |
{ |
31 | |
private String id; |
32 | |
|
33 | |
private String name; |
34 | |
|
35 | |
private String url; |
36 | |
|
37 | |
private String layout; |
38 | |
|
39 | |
public RemoteRepository() |
40 | 0 | { |
41 | |
|
42 | 0 | } |
43 | |
|
44 | |
public RemoteRepository( String id, String name, String url, String layout ) |
45 | 0 | { |
46 | 0 | this.id = id; |
47 | 0 | this.name = name; |
48 | 0 | this.url = url; |
49 | 0 | this.layout = layout; |
50 | 0 | } |
51 | |
|
52 | |
public boolean equals(Object other) |
53 | |
{ |
54 | 0 | if ( this == other) |
55 | |
{ |
56 | 0 | return true; |
57 | |
} |
58 | |
|
59 | 0 | if ( !(other instanceof RemoteRepository) ) |
60 | |
{ |
61 | 0 | return false; |
62 | |
} |
63 | |
|
64 | 0 | RemoteRepository that = (RemoteRepository) other; |
65 | 0 | boolean result = true; |
66 | 0 | result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) ); |
67 | 0 | return result; |
68 | |
} |
69 | |
|
70 | |
public String getId() |
71 | |
{ |
72 | 0 | return this.id; |
73 | |
} |
74 | |
|
75 | |
public String getLayout() |
76 | |
{ |
77 | 0 | return this.layout; |
78 | |
} |
79 | |
|
80 | |
public String getName() |
81 | |
{ |
82 | 0 | return this.name; |
83 | |
} |
84 | |
|
85 | |
public String getUrl() |
86 | |
{ |
87 | 0 | return this.url; |
88 | |
} |
89 | |
|
90 | |
public int hashCode() |
91 | |
{ |
92 | 0 | int result = 17; |
93 | 0 | result = 37 * result + ( id != null ? id.hashCode() : 0 ); |
94 | 0 | return result; |
95 | |
} |
96 | |
|
97 | |
@ServiceBeanField( "id" ) |
98 | |
public void setId(String id) |
99 | |
{ |
100 | 0 | this.id = id; |
101 | 0 | } |
102 | |
|
103 | |
@ServiceBeanField( "layout" ) |
104 | |
public void setLayout(String layout) |
105 | |
{ |
106 | 0 | this.layout = layout; |
107 | 0 | } |
108 | |
|
109 | |
@ServiceBeanField( "name" ) |
110 | |
public void setName(String name) |
111 | |
{ |
112 | 0 | this.name = name; |
113 | 0 | } |
114 | |
|
115 | |
@ServiceBeanField( "url" ) |
116 | |
public void setUrl(String url) |
117 | |
{ |
118 | 0 | this.url = url; |
119 | 0 | } |
120 | |
} |