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 org.kuali.rice.kim.api.group.Group;
19 import org.kuali.rice.kim.api.services.KimApiServiceLocator;
20
21
22
23
24
25
26
27 public class GroupRuleResponsibility extends RuleResponsibilityBo {
28 protected Group group;
29 private String namespaceCode;
30 private String name;
31
32 public String getNamespaceCode() {
33 return this.namespaceCode;
34 }
35
36 public void setNamespaceCode(String namespaceCode) {
37 this.namespaceCode = namespaceCode;
38 }
39
40 public String getName() {
41 return this.name;
42 }
43
44 public void setName(String name) {
45 this.name = name;
46 }
47
48 @Override
49 public Group getGroup() {
50 if (this.group == null) {
51 this.group = KimApiServiceLocator.getGroupService().getGroupByNamespaceCodeAndName(getNamespaceCode(),
52 getName());
53 }
54 return this.group;
55 }
56 }