1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
package org.kuali.rice.kew.rule; |
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
|
23 | |
|
24 | |
|
25 | |
public class Role implements java.io.Serializable { |
26 | |
|
27 | |
private static final long serialVersionUID = 1211399058525182383L; |
28 | |
private String name; |
29 | |
private String baseName; |
30 | |
private String label; |
31 | |
|
32 | |
private String returnUrl;; |
33 | |
|
34 | 0 | public Role() { |
35 | 0 | } |
36 | |
|
37 | |
public String getReturnUrl() { |
38 | 0 | return returnUrl; |
39 | |
} |
40 | |
public void setReturnUrl(String returnUrl) { |
41 | 0 | this.returnUrl = returnUrl; |
42 | 0 | } |
43 | |
|
44 | 0 | public Role(Class attributeClass, String roleName, String roleLabel) { |
45 | 0 | this.label = roleLabel; |
46 | 0 | this.baseName = roleName; |
47 | 0 | this.name = constructRoleValue(attributeClass.getName(), roleName); |
48 | 0 | } |
49 | |
|
50 | |
public String getLabel() { |
51 | 0 | return label; |
52 | |
} |
53 | |
|
54 | |
public void setLabel(String roleLabel) { |
55 | 0 | this.label = roleLabel; |
56 | 0 | } |
57 | |
|
58 | |
public String getName() { |
59 | 0 | return name; |
60 | |
} |
61 | |
|
62 | |
public void setName(String roleName) { |
63 | 0 | this.name = roleName; |
64 | 0 | } |
65 | |
public String getBaseName() { |
66 | 0 | return baseName; |
67 | |
} |
68 | |
|
69 | |
public static String constructRoleValue(String attributeClassName, String roleName) { |
70 | 0 | return attributeClassName + "!" + roleName; |
71 | |
} |
72 | |
} |