1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kew.rule; |
17 | |
|
18 | |
import java.util.ArrayList; |
19 | |
import java.util.List; |
20 | |
|
21 | |
import org.kuali.rice.kew.identity.EmployeeId; |
22 | |
import org.kuali.rice.kew.identity.Id; |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
|
32 | 0 | public class UniversityIdRoleAttribute extends AbstractIdRoleAttribute { |
33 | |
|
34 | |
private static final long serialVersionUID = -7258860156654681708L; |
35 | |
|
36 | |
private static final String UNIVERSITY_ID_ROLE_NAME = "universityId"; |
37 | |
private static final String ATTRIBUTE_ELEMENT = "UniversityIdRoleAttribute"; |
38 | |
private static final String UNIVERSITY_ID_ELEMENT = "universityId"; |
39 | |
|
40 | |
public List<Role> getRoleNames() { |
41 | 0 | List<Role> roleNames = new ArrayList<Role>(); |
42 | 0 | roleNames.add(new Role(getClass(), UNIVERSITY_ID_ROLE_NAME, "University ID")); |
43 | 0 | return roleNames; |
44 | |
} |
45 | |
|
46 | |
protected String getAttributeElementName() { |
47 | 0 | return ATTRIBUTE_ELEMENT; |
48 | |
} |
49 | |
|
50 | |
protected Id resolveId(String id) { |
51 | 0 | return id == null ? null : new EmployeeId(id); |
52 | |
} |
53 | |
|
54 | |
protected String getIdName() { |
55 | 0 | return UNIVERSITY_ID_ELEMENT; |
56 | |
} |
57 | |
|
58 | |
public String getUniversityId() { |
59 | 0 | return getIdValue(); |
60 | |
} |
61 | |
|
62 | |
public void setUniversityId(String universityId) { |
63 | 0 | setIdValue(universityId); |
64 | 0 | } |
65 | |
|
66 | |
} |