View Javadoc
1   /*
2    * Copyright 2006 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  
17  package org.kuali.ole.module.purap.businessobject;
18  
19  import org.kuali.ole.integration.purap.PurchasingAccountsPayableSensitiveData;
20  import org.kuali.rice.core.api.mo.common.active.MutableInactivatable;
21  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
22  
23  import java.util.LinkedHashMap;
24  
25  /**
26   * Sensitive Data Business Object.
27   */
28  public class SensitiveData extends PersistableBusinessObjectBase implements PurchasingAccountsPayableSensitiveData, MutableInactivatable {
29  
30      private String sensitiveDataCode;
31      private String sensitiveDataDescription;
32      private boolean active;
33  
34      /**
35       * Default constructor.
36       */
37      public SensitiveData() {
38  
39      }
40  
41      public String getSensitiveDataCode() {
42          return sensitiveDataCode;
43      }
44  
45      public void setSensitiveDataCode(String sensitiveDataCode) {
46          this.sensitiveDataCode = sensitiveDataCode;
47      }
48  
49      public String getSensitiveDataDescription() {
50          return sensitiveDataDescription;
51      }
52  
53      public void setSensitiveDataDescription(String sensitiveDataDescription) {
54          this.sensitiveDataDescription = sensitiveDataDescription;
55      }
56  
57      public boolean isActive() {
58          return active;
59      }
60  
61      public void setActive(boolean active) {
62          this.active = active;
63      }
64  
65      /**
66       * @see org.kuali.rice.krad.bo.BusinessObjectBase#toStringMapper()
67       */
68      protected LinkedHashMap toStringMapper_RICE20_REFACTORME() {
69          LinkedHashMap m = new LinkedHashMap();
70          m.put("restrictedMaterialCode", this.sensitiveDataCode);
71          return m;
72      }
73  
74  }