This project has retired. For details please refer to its
Attic page.
LdapConfiguration xref
1 package org.apache.archiva.admin.model.beans;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import javax.xml.bind.annotation.XmlRootElement;
22 import java.io.Serializable;
23 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.List;
26 import java.util.Map;
27
28
29
30
31
32 @XmlRootElement(name = "ldapConfiguration")
33 public class LdapConfiguration
34 implements Serializable
35 {
36
37
38
39
40
41 private String hostName;
42
43
44
45
46 private int port;
47
48
49
50
51 private boolean ssl = false;
52
53
54
55
56 private String baseDn;
57
58
59
60
61 private String contextFactory;
62
63
64
65
66 private String bindDn;
67
68
69
70
71 private String baseGroupsDn;
72
73
74
75
76 private String password;
77
78
79
80
81 private String authenticationMethod;
82
83
84
85
86 private boolean bindAuthenticatorEnabled;
87
88
89
90
91 private boolean useRoleNameAsGroup = false;
92
93
94
95
96 private Map<String, String> extraProperties = new HashMap<>();
97
98
99
100
101 private List<PropertyEntry> extraPropertiesEntries;
102
103
104
105
106 private boolean writable = false;
107
108 public LdapConfiguration()
109 {
110
111 }
112
113 public String getHostName()
114 {
115 return hostName;
116 }
117
118 public void setHostName( String hostName )
119 {
120 this.hostName = hostName;
121 }
122
123 public int getPort()
124 {
125 return port;
126 }
127
128 public void setPort( int port )
129 {
130 this.port = port;
131 }
132
133 public boolean isSsl()
134 {
135 return ssl;
136 }
137
138 public void setSsl( boolean ssl )
139 {
140 this.ssl = ssl;
141 }
142
143 public String getBaseDn()
144 {
145 return baseDn;
146 }
147
148 public void setBaseDn( String baseDn )
149 {
150 this.baseDn = baseDn;
151 }
152
153 public String getContextFactory()
154 {
155 return contextFactory;
156 }
157
158 public void setContextFactory( String contextFactory )
159 {
160 this.contextFactory = contextFactory;
161 }
162
163 public String getBindDn()
164 {
165 return bindDn;
166 }
167
168 public void setBindDn( String bindDn )
169 {
170 this.bindDn = bindDn;
171 }
172
173 public String getPassword()
174 {
175 return password;
176 }
177
178 public void setPassword( String password )
179 {
180 this.password = password;
181 }
182
183 public String getAuthenticationMethod()
184 {
185 return authenticationMethod;
186 }
187
188 public void setAuthenticationMethod( String authenticationMethod )
189 {
190 this.authenticationMethod = authenticationMethod;
191 }
192
193 public Map<String, String> getExtraProperties()
194 {
195 return extraProperties;
196 }
197
198 public void setExtraProperties( Map<String, String> extraProperties )
199 {
200 this.extraProperties = extraProperties;
201 }
202
203 public boolean isBindAuthenticatorEnabled()
204 {
205 return bindAuthenticatorEnabled;
206 }
207
208 public void setBindAuthenticatorEnabled( boolean bindAuthenticatorEnabled )
209 {
210 this.bindAuthenticatorEnabled = bindAuthenticatorEnabled;
211 }
212
213 public List<PropertyEntry> getExtraPropertiesEntries()
214 {
215 extraPropertiesEntries = new ArrayList<>( getExtraProperties().size() );
216 for ( Map.Entry<String, String> entry : getExtraProperties().entrySet() )
217 {
218 extraPropertiesEntries.add( new PropertyEntry( entry.getKey(), entry.getValue() ) );
219 }
220 return extraPropertiesEntries;
221 }
222
223 public void setExtraPropertiesEntries( List<PropertyEntry> extraPropertiesEntries )
224 {
225 this.extraPropertiesEntries = extraPropertiesEntries;
226 if ( extraPropertiesEntries != null )
227 {
228 for ( PropertyEntry propertyEntry : extraPropertiesEntries )
229 {
230 this.extraProperties.put( propertyEntry.getKey(), propertyEntry.getValue() );
231 }
232 }
233 }
234
235 public String getBaseGroupsDn()
236 {
237 return baseGroupsDn;
238 }
239
240 public void setBaseGroupsDn( String baseGroupsDn )
241 {
242 this.baseGroupsDn = baseGroupsDn;
243 }
244
245 public boolean isWritable()
246 {
247 return writable;
248 }
249
250 public void setWritable( boolean writable )
251 {
252 this.writable = writable;
253 }
254
255 public boolean isUseRoleNameAsGroup()
256 {
257 return useRoleNameAsGroup;
258 }
259
260 public void setUseRoleNameAsGroup( boolean useRoleNameAsGroup )
261 {
262 this.useRoleNameAsGroup = useRoleNameAsGroup;
263 }
264 }