1
2
3
4
5
6
7 package gov.bnl.gums;
8
9 /*** This class defines which mapping policy should be used for the given group.
10 * It tells that a given user group (all the members of the 'usatlas'
11 * group in the 'atlas' LDAP vo) should be mapped using a given mapping policy
12 * (a composite made of a NISAccountMapper and GroupAccountMapper, meaning
13 * each user should be mapped to his account if exists, otherwise the generic
14 * group account should be used).
15 * <p>
16 * This class is used by the Hostname mapping to hold a series of group/accountmapping
17 * pairs.
18 *
19 * @author Gabriele Carcassi
20 */
21 public class GroupMapper {
22
23 /***
24 * Holds value of property group.
25 */
26 private UserGroup group;
27
28 /***
29 * Holds value of property mapper.
30 */
31 private AccountMapper mapper;
32
33 /***
34 * Holds value of property name.
35 */
36 private String name;
37
38 /***
39 * Holds value of property accountingVo.
40 */
41 private String accountingVo;
42
43 /***
44 * Holds value of property accountingDesc.
45 */
46 private String accountingDesc;
47
48 /***
49 * Getter for property group.
50 * @return Value of property group.
51 */
52 public UserGroup getGroup() {
53 return this.group;
54 }
55
56 /***
57 * Setter for property group.
58 * @param group New value of property group.
59 */
60 public void setGroup(UserGroup group) {
61 this.group = group;
62 }
63
64 /***
65 * Getter for property mapper.
66 * @return Value of property mapper.
67 */
68 public AccountMapper getMapper() {
69 return this.mapper;
70 }
71
72 /***
73 * Setter for property mapper.
74 * @param mapper New value of property mapper.
75 */
76 public void setMapper(AccountMapper mapper) {
77 this.mapper = mapper;
78 }
79
80 /***
81 * Getter for property name.
82 * @return Value of property name.
83 */
84 public String getName() {
85 return this.name;
86 }
87
88 /***
89 * Setter for property name.
90 * @param name New value of property name.
91 */
92 public void setName(String name) {
93 this.name = name;
94 }
95
96 /***
97 * Getter for property accountingVo.
98 * @return Value of property accountingVo.
99 */
100 public String getAccountingVo() {
101
102 return this.accountingVo;
103 }
104
105 /***
106 * Setter for property accountingVo.
107 * @param accountingVo New value of property accountingVo.
108 */
109 public void setAccountingVo(java.lang.String accountingVo) {
110
111 this.accountingVo = accountingVo;
112 }
113
114 /***
115 * Getter for property accountingDesc.
116 * @return Value of property accountingDesc.
117 */
118 public String getAccountingDesc() {
119
120 return this.accountingDesc;
121 }
122
123 /***
124 * Setter for property accountingDesc.
125 * @param accountingDesc New value of property accountingDesc.
126 */
127 public void setAccountingDesc(String accountingDesc) {
128
129 this.accountingDesc = accountingDesc;
130 }
131
132 }