1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.rice.kim.impl.responsibility |
17 | |
|
18 | |
|
19 | |
|
20 | |
import org.kuali.rice.kim.api.KimConstants |
21 | |
|
22 | |
|
23 | |
class ReviewResponsibilityBo extends ResponsibilityBo { |
24 | |
|
25 | |
private static final long serialVersionUID = 1L |
26 | |
|
27 | |
public static final String ACTION_DETAILS_AT_ROLE_MEMBER_LEVEL_FIELD_NAME = "actionDetailsAtRoleMemberLevel" |
28 | |
|
29 | |
String documentTypeName |
30 | |
String routeNodeName |
31 | |
boolean actionDetailsAtRoleMemberLevel |
32 | |
boolean required |
33 | |
String qualifierResolverProvidedIdentifier |
34 | |
|
35 | |
public ReviewResponsibilityBo() { |
36 | |
} |
37 | |
|
38 | |
public ReviewResponsibilityBo(ResponsibilityBo resp) { |
39 | 0 | loadFromKimResponsibility(resp) |
40 | |
} |
41 | |
|
42 | |
public void loadFromKimResponsibility(ResponsibilityBo resp) { |
43 | 0 | resp.metaClass.properties.each { |
44 | 0 | if (this.metaClass.respondsTo(this, MetaProperty.getSetterName(it.name))) { |
45 | 0 | this.setProperty(it.name, resp.getProperty(it.name)) |
46 | |
} |
47 | |
} |
48 | |
|
49 | 0 | Map<String,String> respDetails = resp.getAttributes() |
50 | 0 | documentTypeName = respDetails.get(KimConstants.AttributeConstants.DOCUMENT_TYPE_NAME) |
51 | 0 | routeNodeName = respDetails.get(KimConstants.AttributeConstants.ROUTE_NODE_NAME) |
52 | 0 | actionDetailsAtRoleMemberLevel = Boolean.valueOf(respDetails.get(KimConstants.AttributeConstants.ACTION_DETAILS_AT_ROLE_MEMBER_LEVEL)) |
53 | 0 | required = Boolean.valueOf(respDetails.get(KimConstants.AttributeConstants.REQUIRED)) |
54 | 0 | qualifierResolverProvidedIdentifier = respDetails.get(KimConstants.AttributeConstants.QUALIFIER_RESOLVER_PROVIDED_IDENTIFIER) |
55 | |
} |
56 | |
} |