This project has retired. For details please refer to its
Attic page.
LdapGroupMapping 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 java.util.Arrays;
22 import java.util.Collection;
23
24
25
26
27
28 public class LdapGroupMapping
29 {
30 private String group;
31
32 private Collection<String> roleNames;
33
34 public LdapGroupMapping()
35 {
36
37 }
38
39 public LdapGroupMapping( String group )
40 {
41 this.group = group;
42 }
43
44 public LdapGroupMapping( String group, Collection<String> roleNames )
45 {
46 this.group = group;
47 this.roleNames = roleNames;
48 }
49
50 public LdapGroupMapping( String group, String[] roleNames )
51 {
52 this.group = group;
53 if ( roleNames != null )
54 {
55 this.roleNames = Arrays.asList( roleNames );
56 }
57 }
58
59 public String getGroup()
60 {
61 return group;
62 }
63
64 public void setGroup( String group )
65 {
66 this.group = group;
67 }
68
69 public Collection<String> getRoleNames()
70 {
71 return roleNames;
72 }
73
74 public void setRoleNames( Collection<String> roleNames )
75 {
76 this.roleNames = roleNames;
77 }
78
79 @Override
80 public boolean equals( Object o )
81 {
82 if ( this == o )
83 {
84 return true;
85 }
86 if ( o == null || getClass() != o.getClass() )
87 {
88 return false;
89 }
90
91 LdapGroupMapping/../../../org/apache/archiva/admin/model/beans/LdapGroupMapping.html#LdapGroupMapping">LdapGroupMapping that = (LdapGroupMapping) o;
92
93 if ( group != null ? !group.equals( that.group ) : that.group != null )
94 {
95 return false;
96 }
97
98 return true;
99 }
100
101 @Override
102 public int hashCode()
103 {
104 return group != null ? group.hashCode() : 0;
105 }
106
107 @Override
108 public String toString()
109 {
110 return "LdapGroupMapping{" +
111 "group='" + group + '\'' +
112 ", roleNames=" + roleNames +
113 '}';
114 }
115 }