View Javadoc
1   /*
2    * Copyright 2008-2009 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.module.purap.document.validation.event;
17  
18  import org.kuali.ole.module.purap.businessobject.SensitiveData;
19  import org.kuali.ole.sys.document.validation.event.AttributedDocumentEventBase;
20  import org.kuali.rice.krad.document.Document;
21  
22  import java.util.List;
23  
24  public final class AttributedAssignSensitiveDataEvent extends AttributedDocumentEventBase {
25  
26      private String sensitiveDataAssignmentReason;
27      private List<SensitiveData> sensitiveDatasAssigned;
28  
29      /**
30       * Constructs an AssignSensitiveDataEvent with the given errorPathPrefix, document, and sensitive data list.
31       *
32       * @param errorPathPrefix        the error path
33       * @param document               document the event was invoked on
34       * @param sensitiveDatasAssigned the sensitive data list to be checked for assignment
35       */
36      public AttributedAssignSensitiveDataEvent(String errorPathPrefix, Document document, String sensitiveDataAssignmentReason, List<SensitiveData> sensitiveDatasAssigned) {
37          super("Assign sensitive data to purchase order " + getDocumentId(document), errorPathPrefix, document);
38          this.sensitiveDataAssignmentReason = sensitiveDataAssignmentReason;
39          this.sensitiveDatasAssigned = sensitiveDatasAssigned;
40      }
41  
42      public String getSensitiveDataAssignmentReason() {
43          return sensitiveDataAssignmentReason;
44      }
45  
46      public void setSensitiveDataAssignmentReason(String sensitiveDataAssignmentReason) {
47          this.sensitiveDataAssignmentReason = sensitiveDataAssignmentReason;
48      }
49  
50      public List<SensitiveData> getSensitiveDatasAssigned() {
51          return sensitiveDatasAssigned;
52      }
53  
54      public void setSensitiveDatasAssigned(List<SensitiveData> sensitiveDatasAssigned) {
55          this.sensitiveDatasAssigned = sensitiveDatasAssigned;
56      }
57  
58  }