1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.kim.rule.event.ui;
17
18 import org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember;
19 import org.kuali.rice.kim.document.IdentityManagementPersonDocument;
20 import org.kuali.rice.kim.rule.ui.AddPersonDocumentDelegationMemberQualifierRule;
21 import org.kuali.rice.kim.rule.ui.AddPersonDocumentRoleQualifierRule;
22 import org.kuali.rice.kns.rule.BusinessRule;
23 import org.kuali.rice.kns.rule.event.KualiDocumentEventBase;
24
25
26
27
28
29
30
31 public class AddPersonDocumentDelegationMemberQualifierEvent extends KualiDocumentEventBase {
32
33 private IdentityManagementPersonDocument document;
34 private RoleDocumentDelegationMember delegationMember;
35
36 public AddPersonDocumentDelegationMemberQualifierEvent(String errorPathPrefix, IdentityManagementPersonDocument document,
37 RoleDocumentDelegationMember delegationMember) {
38 super("adding delegationMember qualifiers to person document " + getDocumentId(document), errorPathPrefix, document);
39 this.document = document;
40 this.delegationMember = delegationMember;
41 }
42
43
44
45
46
47
48 public Class getRuleInterfaceClass() {
49 return AddPersonDocumentDelegationMemberQualifierRule.class;
50 }
51
52
53
54
55
56
57 public boolean invokeRuleMethod(BusinessRule rule) {
58 return ((AddPersonDocumentDelegationMemberQualifierRule) rule).processAddPersonDocumentDelegationMemberQualifier(delegationMember, document);
59 }
60
61 }