1 /*
2 * Copyright 2008 The Kuali Foundation
3 *
4 * Licensed under the Educational Community License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/ecl2.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.kuali.ole.sys.document.validation.event;
17
18 import java.util.Map;
19
20 import org.kuali.rice.krad.bo.AdHocRoutePerson;
21 import org.kuali.rice.krad.document.Document;
22
23
24 public class AttributedAddAdHocRoutePersonEvent extends AttributedDocumentEventBase implements AttributedDocumentEvent {
25 Map<String, Object> attributes;
26 private AdHocRoutePerson adHocRoutePerson;
27
28 /**
29 * Constructs an AddAdHocRoutePersonEvent with the specified errorPathPrefix, document, and adHocRoutePerson
30 *
31 * @param document
32 * @param adHocRoutePerson
33 * @param errorPathPrefix
34 */
35 public AttributedAddAdHocRoutePersonEvent(String errorPathPrefix, Document document, AdHocRoutePerson adHocRoutePerson) {
36 super("creating add ad hoc route person event for document " + getDocumentId(document), errorPathPrefix, document);
37 this.adHocRoutePerson = adHocRoutePerson;
38 }
39
40 /**
41 * Constructs an AddAdHocRoutePersonEvent with the given document
42 *
43 * @param document
44 * @param adHocRoutePerson
45 */
46 public AttributedAddAdHocRoutePersonEvent(Document document, AdHocRoutePerson adHocRoutePerson) {
47 this("", document, adHocRoutePerson);
48 }
49
50 /**
51 * This method retrieves the document adHocRoutePerson associated with this event.
52 *
53 * @return AdHocRoutePerson
54 */
55 public AdHocRoutePerson getAdHocRoutePerson() {
56 return adHocRoutePerson;
57 }
58 }